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.
119 lines
3.9 KiB
HTML
119 lines
3.9 KiB
HTML
<extend name="Public/bases" />
|
|
<block name="body" >
|
|
<link href="__CSS__/user.css" rel="stylesheet" >
|
|
<script src="__JS__/jquery-1.11.3.min.js"></script>
|
|
<script type="text/javascript" src="__JS__/getRem.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/name.css">
|
|
<section class="trunker">
|
|
<section class="container">
|
|
<form id="form" action="" method="post" onsubmit="return false" class="">
|
|
<div class="name">
|
|
<!-- 子页公共头部 -->
|
|
<div class="subpage-heard">实名认证
|
|
<a href="javascript:window.history.go(-1);" class="arrows"></a>
|
|
</div>
|
|
|
|
<?php if(!empty($user['real_name'])){ ?>
|
|
<div class="name-input">
|
|
<div class="name-inputBox">
|
|
<img src="__IMG__/shimingrenzhengmoren.png" alt="">
|
|
<div>真实姓名</div>
|
|
</div>
|
|
<input type="text" placeholder="请输入真实姓名" style="padding: 0;color: #292929" name="real_name" id="real_name" value="王大锤">
|
|
</div>
|
|
<?php }else{ ?>
|
|
<div class="name-input">
|
|
<div class="name-inputBox">
|
|
<img src="__IMG__/shimingrenzhengmoren.png" alt="">
|
|
<div>真实姓名</div>
|
|
</div>
|
|
<input type="text" placeholder="请输入真实姓名" style="padding: 0" name="real_name" id="real_name" value="{$user['real_name']}">
|
|
</div>
|
|
<?php }?>
|
|
|
|
|
|
<?php if(!empty($user['idcard'])){ ?>
|
|
<div class="name-input">
|
|
<div class="name-inputBox">
|
|
<img src="__IMG__/haoma.png" alt="">
|
|
<div>证件号码</div>
|
|
</div>
|
|
<input type="text" placeholder="请输入证件号码" style="padding: 0;color: #292929" name="idcard" id="idcard" value="350516518718718748">
|
|
</div>
|
|
<?php }else{ ?>
|
|
<div class="name-input">
|
|
<div class="name-inputBox">
|
|
<img src="__IMG__/haoma.png" alt="">
|
|
<div>证件号码</div>
|
|
</div>
|
|
<input type="text" placeholder="请输入证件号码" style="padding: 0" name="idcard" id="idcard" value="{$user['idcard']}">
|
|
</div>
|
|
<?php }?>
|
|
|
|
|
|
<div class="save jssubmit">保存修改</div>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</section>
|
|
<div class="popmsg pop-dialog"></div>
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
<script src="__STATIC__/isCardID.js"></script>
|
|
<script>
|
|
$(function() {
|
|
$('.jssubmit').click(function() {
|
|
var real_name = $.trim($('#real_name').val());
|
|
var idcard = $.trim($('#idcard').val());
|
|
var pmsg = $('.popmsg').pop();
|
|
if(real_name == ""){
|
|
pmsg.msg("请输入真实姓名");
|
|
$('#real_name').focus();
|
|
return false;
|
|
}
|
|
|
|
if(idcard.length == 0){
|
|
pmsg.msg("身份证号码不能为空");
|
|
$('#idcard').focus();
|
|
return false;
|
|
}
|
|
|
|
if(real_name.length <2){
|
|
pmsg.msg("真实姓名必须大于两个字");
|
|
$('#real_name').focus();
|
|
return false;
|
|
}
|
|
|
|
var reg = /^[\u4E00-\u9FA5]+$/;
|
|
if(reg.test(real_name) == false){
|
|
pmsg.msg("输入姓名不合法");
|
|
$('#real_name').focus();
|
|
return false;
|
|
}
|
|
|
|
$.ajax({
|
|
cache:true,
|
|
type:'post',
|
|
url:"{:U('User/userauth')}",
|
|
data:$('#form').serialize(),
|
|
dataType:'json',
|
|
success:function(result){
|
|
pmsg.msg(result.info);
|
|
if(result.url !='' && result.status){
|
|
setTimeout(function () {
|
|
window.location.href = result.url;
|
|
}, 2000);
|
|
}
|
|
},
|
|
error:function(){
|
|
alert("错误")
|
|
}
|
|
})
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
</block> |