实名认证
This commit is contained in:
@@ -87,6 +87,11 @@ namespace Home.Controllers
|
||||
return View(ret);
|
||||
}
|
||||
|
||||
public async Task<IActionResult> Xieyi()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> Excel([FromQuery]LineSearchModel request)
|
||||
{
|
||||
|
||||
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()
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
</div>
|
||||
|
||||
<p class="tixing">*手机号不是IP账号,请登录后开通IP账号*</p>
|
||||
<p class="tixing"><input type="checkbox" name="" id="" value="" />我同意<a href="#">聚IP JUIP.COM用户注册协议</a></p>
|
||||
<p class="tixing"><input type="checkbox" name="" id="xieyi" value="" />我同意<a href="/LineList/xieyi" target="_blank">《聚IP JUIP.COM用户注册协议》</a></p>
|
||||
<p class="denglu"><button type="button" class="btn btn-login" onclick="reg()">注册</button></p>
|
||||
<p class="zhiyin grayText">已有账号?<a href="#" class="loginLink">立即登录</a></p>
|
||||
</div>
|
||||
@@ -726,6 +726,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()
|
||||
|
||||
8
Host/Views/LineList/Xieyi.cshtml
Normal file
8
Host/Views/LineList/Xieyi.cshtml
Normal file
File diff suppressed because one or more lines are too long
@@ -35,6 +35,29 @@
|
||||
<script src="~/js/vue.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";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.spinner .btn:first-of-type').on('click', function () {
|
||||
$('.spinner input').val(parseInt($('.spinner input').val(), 10) + 1);
|
||||
});
|
||||
|
||||
@@ -17,6 +17,27 @@
|
||||
}
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
|
||||
<script type="text/javascript">
|
||||
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";
|
||||
}
|
||||
}
|
||||
});
|
||||
$(function () {
|
||||
$('.spinner .btn:first-of-type').on('click', function () {
|
||||
$('.spinner input').val(parseInt($('.spinner input').val(), 10) + 1);
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
</div>
|
||||
|
||||
<p class="tixing">*手机号不是IP账号,请登录后开通IP账号*</p>
|
||||
<p class="tixing"><input type="checkbox" name="" id="" value="" />我同意<a href="#">聚IP JUIP.COM用户注册协议</a></p>
|
||||
<p class="tixing"><input type="checkbox" name="" id="xieyi" value="" />我同意<a href="/LineList/xieyi" target="_blank">《聚IP JUIP.COM用户注册协议》</a></p>
|
||||
<p class="denglu"><button type="button" class="btn btn-reg">注册</button></p>
|
||||
<p class="zhiyin grayText">已有账号?<a href="#" class="loginLink">立即登录</a></p>
|
||||
</div>
|
||||
@@ -426,6 +426,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()
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -9,6 +9,28 @@
|
||||
<script>
|
||||
$(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";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#myTabs a').click(function (e) {
|
||||
e.preventDefault()
|
||||
$(this).tab('show')
|
||||
|
||||
Reference in New Issue
Block a user