|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<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>
|
|
|
|
<script src="__STATIC__/bg4_4.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/name.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/common-cz.css">
|
|
|
|
<title>橙枫科技</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<if condition="$user.age_status eq 0">
|
|
|
|
<div class="login-box">
|
|
|
|
<div class="login-input">
|
|
|
|
<img src="__IMG__/user/mingzibianji2.png" alt="">
|
|
|
|
<input id="real_name" type="text" placeholder="请输入真实姓名">
|
|
|
|
</div>
|
|
|
|
<div class="login-input">
|
|
|
|
<img src="__IMG__/user/shimingrenzhengmoren2.png" alt="">
|
|
|
|
<input id="idcard" type="text" placeholder="请输入身份证号码">
|
|
|
|
</div>
|
|
|
|
<button class="login-btn jssubmit">提交</button>
|
|
|
|
</div>
|
|
|
|
<else />
|
|
|
|
<div class="remove-info">
|
|
|
|
<div class="remove-title">您已进行过实名认证</div>
|
|
|
|
<div class="remove-input">
|
|
|
|
<div>真实姓名:{$user['real_name']}</div>
|
|
|
|
<div>身份证号:{$user['idcard']}</div>
|
|
|
|
</div>
|
|
|
|
<div class="save back">返回设置中心</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<style>
|
|
|
|
.pop-dialog span{
|
|
|
|
top:25%;
|
|
|
|
line-height: 1.5;
|
|
|
|
max-width: 3rem;
|
|
|
|
padding: 10px;
|
|
|
|
font-size: .32rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="popmsg pop-dialog"></div>
|
|
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
|
|
<script src="__STATIC__/isCardID.js"></script>
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$(".back").on("click",function(){
|
|
|
|
window.history.go(-1)
|
|
|
|
})
|
|
|
|
$('.jssubmit').click(function() {
|
|
|
|
var pmsg = $('.popmsg').pop();
|
|
|
|
var real_name = $.trim($('#real_name').val());
|
|
|
|
var idcard = $.trim($('#idcard').val());
|
|
|
|
|
|
|
|
if(real_name == ""){
|
|
|
|
pmsg.msg("请输入真实姓名");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(idcard.length == 0){
|
|
|
|
pmsg.msg("身份证号码不能为空");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(real_name.length <2){
|
|
|
|
pmsg.msg("真实姓名必须大于两个字");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
var reg = /^[\u4E00-\u9FA5]+$/;
|
|
|
|
if(reg.test(real_name) == false){
|
|
|
|
pmsg.msg("输入姓名不合法");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
cache:true,
|
|
|
|
type:'post',
|
|
|
|
url:"{:U('User/userauth')}",
|
|
|
|
data:{
|
|
|
|
"idcard":idcard,
|
|
|
|
"real_name":real_name
|
|
|
|
},
|
|
|
|
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>
|
|
|
|
</body>
|