实名认证
This commit is contained in:
@@ -69,7 +69,10 @@
|
||||
<vc:redirecct-login></vc:redirecct-login>
|
||||
<div class="container msg">
|
||||
<!-- 账户信息 -->
|
||||
<div class="accout_tit"><span class="lineBar"></span>账户信息 <button class="btnXq" onclick="$('#infoBox').show()">完善信息</button> <button class="btnXq" onclick="$('#pwdBox').show()">修改密码</button></div>
|
||||
<div class="accout_tit"><span class="lineBar"></span>账户信息 <button class="btnXq" onclick="$('#infoBox').show()">完善信息</button>
|
||||
<button class="btnXq" onclick="$('#pwdBox').show()">修改密码</button>
|
||||
<button class="btnXq" id="real-name-confirm" onclick="$('#real-name').show()">实名认证</button>
|
||||
</div>
|
||||
<div class="model">
|
||||
<div class="item">
|
||||
用户名:
|
||||
@@ -278,15 +281,15 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>提现理由:</td>
|
||||
<td><input type="number" id="cash-out-reason" class="inputBox" placeholder="请输入提现理由"/></td>
|
||||
<td><input type="text" id="cash-out-reason" class="inputBox" placeholder="请输入提现理由"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>提现支付宝账号:</td>
|
||||
<td><input type="number" id="alipay-account" class="inputBox" placeholder="请输入支付宝账号"/></td>
|
||||
<td><input type="text" id="alipay-account" class="inputBox" placeholder="请输入支付宝账号"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>支付宝真实姓名</td>
|
||||
<td><input type="number" id="alipay-account" class="inputBox" placeholder="请输入与支付宝关联的真实姓名"/></td>
|
||||
<td><input type="text" id="alipay-account" class="inputBox" placeholder="请输入与支付宝关联的真实姓名"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -297,6 +300,30 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layerTable" id="real-name" style="margin-right:10em;">
|
||||
<form id="nameForm">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<p>接主管部门要求,注册账号需要实名认证方可使用主要功能,请仔细阅读</p><br>
|
||||
<p>1、为了你的帐号安全请勿使用他人手机号或身份信息</p><br>
|
||||
<p>2、平台保护隐私,未经法定程序其他个人和组织无法获取实名信息</p><br>
|
||||
<p>3、请正确填写姓名和身份证号</p><br>
|
||||
<tr>
|
||||
<td>真实姓名:</td>
|
||||
<td><input type="text" id="real-name-name" class="inputBox" placeholder="请输入真实姓名"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>身份证号:</td>
|
||||
<td><input type="number" id="real-name-code" class="inputBox" placeholder="请输入身份证号码"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="" style="text-align:center;">
|
||||
<button type="button" class="btnXq" onclick="$('#real-name').hide()">返回</button>
|
||||
<button type="button" class="btnXq" onclick="realname()">确定</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 支付弹窗 -->
|
||||
<div id="aliPayBox" style="display:none"></div>
|
||||
|
||||
@@ -386,6 +413,46 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
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