实名认证
This commit is contained in:
@@ -117,6 +117,24 @@
|
||||
padding: 30px;
|
||||
display: none;
|
||||
}
|
||||
.real-name {
|
||||
position: fixed;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -200px;
|
||||
margin-top: -160px;
|
||||
z-index: 3;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0px 6px 8px 6px #ccc;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
padding: 30px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chargeList form {
|
||||
width: 100%;
|
||||
@@ -218,11 +236,32 @@
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="real-name">
|
||||
<form>
|
||||
<p>接主管部门要求,注册账号需要实名认证方可使用主要功能,请仔细阅读</p>
|
||||
<p>1、为了你的帐号安全请勿使用他人手机号或身份信息</p>
|
||||
<p>2、平台保护隐私,未经法定程序其他个人和组织无法获取实名信息</p>
|
||||
<p>3、请正确填写姓名和身份证号</p>
|
||||
<div class="form-group">
|
||||
<label>真实姓名:</label>
|
||||
<input type="text" id="real-name-name" class="form-control" placeholder="请输入真实姓名" >
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>身份证号:</label>
|
||||
<input type="text" id="real-name-code" class="form-control" placeholder="请输入身份证号码" >
|
||||
</div>
|
||||
|
||||
<p class="text-center">
|
||||
<button type="button" class="btn btn-primary" id="cash_out_confirm" onclick="realname()">确认</button>
|
||||
<button type="button" class="btn btn-danger quxiao" style="margin-left:20px;" onclick="$('.real-name').hide()">取消</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<div class="zhanghu">
|
||||
<div class="accout_tit"><span class="lineBar"></span>账户信息</div>
|
||||
<div class="accout_tit"><span class="lineBar"></span>账户信息<span onclick="$('.real-name').show()" style="float:right;cursor:pointer;color:blue;">实名认证</span></div>
|
||||
<p class="edit"><a>编辑</a></p>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 accoutLeft">
|
||||
@@ -473,6 +512,45 @@
|
||||
});
|
||||
}
|
||||
|
||||
function realname(){
|
||||
let id_code = $('#real-name-code').val(),
|
||||
name = $('#real-name-name').val();
|
||||
|
||||
if(id_code.length <= 0){
|
||||
alert("抱歉!请重新输入身份证号!");
|
||||
return;
|
||||
}
|
||||
if(name.length <= 0){
|
||||
alert("抱歉!请重新输入姓名!");
|
||||
return;
|
||||
}
|
||||
|
||||
let data = {
|
||||
cookie:document.cookie,
|
||||
id_code: id_code,
|
||||
name: name
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
$('.real-name').hide();
|
||||
alert('实名认证成功。');
|
||||
} else {
|
||||
alert('请正确填写姓名和身份证号码。');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function cash_out() {
|
||||
|
||||
let cash_out_money = $('#cash-out-money').val(),
|
||||
|
||||
Reference in New Issue
Block a user