实名认证
This commit is contained in:
9
Host/Views.Mobile/LineList/Xieyi.cshtml
Normal file
9
Host/Views.Mobile/LineList/Xieyi.cshtml
Normal file
File diff suppressed because one or more lines are too long
@@ -34,6 +34,27 @@
|
||||
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,账号需要实名认证方可使用主要功能,请前往用户主页实名认证。');
|
||||
window.location.href="/User/Index";
|
||||
}
|
||||
}
|
||||
});
|
||||
$(".btnNav").click(function () {
|
||||
$(".mask").fadeIn();
|
||||
});
|
||||
|
||||
@@ -17,6 +17,30 @@
|
||||
}
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
|
||||
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,账号需要实名认证方可使用主要功能,请前往用户主页实名认证。');
|
||||
window.location.href="/User/Index";
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<vc:redirecct-login></vc:redirecct-login>
|
||||
<vc:pay-wait></vc:pay-wait>
|
||||
<div id="app">
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -6,6 +6,33 @@
|
||||
@{
|
||||
Layout = "_UserLayout";
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
let realverify = {
|
||||
cookie:document.cookie,
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://php-api.juip.com/api/Realname/index',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(realverify),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == -10000) {
|
||||
alert('接主管部门要求,账号需要实名认证方可使用主要功能,请前往用户主页实名认证。');
|
||||
window.location.href="/User/Index";
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
<div id="app">
|
||||
@*<div class="qq">
|
||||
<img src="~/m/img/smile.png"> 为给您带来更好的服务体验,请完善QQ号和微信号
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<p><img src="~/m/img/phone.png"><input type="text" name="" id="wxhao" value="" placeholder="微信号" /></p>
|
||||
<p><img src="~/m/img/phone.png"><input type="text" name="" id="wxhao" value="" placeholder="QQ号" /></p>
|
||||
</div>
|
||||
<p class="xieyi"><input type="checkbox" name="" id="" value="" />我同意<span>《聚IP JUIP.COM用户注册协议》</span></p>
|
||||
<p class="xieyi"><input type="checkbox" name="" id="xieyi" value="" />我同意<span><a href="/LineList/xieyi" target="_blank">《聚IP JUIP.COM用户注册协议》</a></span></p>
|
||||
<p><button type="button" class="btnLogin" onclick="reg()">注册</button></p>
|
||||
<p class="tixing">*手机号不是IP账号,请登录后开通IP账号*</p>
|
||||
<p class="bianjie">已有账号?<a href="#">立即登录</a></p>
|
||||
@@ -62,6 +62,10 @@
|
||||
return true;
|
||||
}
|
||||
function reg() {
|
||||
if(!$("input[type='checkbox']").is(':checked')){
|
||||
alert('请认真阅读用户注册协议后勾选 我同意 方可注册!');
|
||||
return;
|
||||
}
|
||||
var name = $("#username").val()
|
||||
var pwd = $("#password").val()
|
||||
var code = $("#yanzhengma").val()
|
||||
|
||||
Reference in New Issue
Block a user