You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.4 KiB
HTML
70 lines
2.4 KiB
HTML
<extend name="Public/bases" />
|
|
<block name="body" >
|
|
<link href="__CSS__/user.css" rel="stylesheet" >
|
|
<body class="">
|
|
<header class="header">
|
|
<div class="">
|
|
<a href="{:U('User/userset')}" class="hbtn back"><i class="iconfont icon-drop-left"></i></a>
|
|
<h1 class="caption">修改性别</h1>
|
|
<a href="javascript:;" class="hbtn addbtn jssubmit">保存</a>
|
|
</div>
|
|
</header>
|
|
<div class="occupy"></div>
|
|
<section class="trunker">
|
|
<section class="container">
|
|
<form id='form' action="" method="post" class="">
|
|
<div class="t-table user-auth-list">
|
|
<ul class="table clearfix">
|
|
<li class="table-row">
|
|
<span class="table-cell">性别</span>
|
|
<span class="table-cell">
|
|
<label class="input-radio">
|
|
<input type="radio" name="sex" class="radio sex <if condition='$sex == 0'>on</if>" value="0" checked><i class="iconfont icon-male"></i><span>男</span>
|
|
</label>
|
|
<label class="input-radio">
|
|
<input type="radio" name="sex" class="radio sex <if condition='$sex == 1'>on</if>" value="1"><i class="iconfont icon-female"></i><span>女</span>
|
|
</label>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</section>
|
|
<div class="popmsg pop-dialog"></div>
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
<script>
|
|
$(function() {
|
|
$('input[name=sex]').click(function() {
|
|
var that = $(this);
|
|
$('input[name=sex]').removeClass('on');
|
|
if (that.prop('checked')) {
|
|
that.addClass('on');
|
|
}
|
|
});
|
|
|
|
$('.jssubmit').click(function() {
|
|
var pmsg = $('.popmsg').pop();
|
|
$.ajax({
|
|
cache:true,
|
|
type:'post',
|
|
url:"{:U('User/usersex')}",
|
|
data:$('#form').serialize(),
|
|
dataType:'json',
|
|
success:function(result){
|
|
pmsg.msg(result.info);
|
|
if(result.url !=''){
|
|
setTimeout(function () {
|
|
window.location.href = result.url;
|
|
}, 2000);
|
|
}
|
|
},
|
|
error:function(){
|
|
alert("错误")
|
|
}
|
|
})
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</block> |