实名认证

This commit is contained in:
wyongk
2020-12-13 12:53:37 +08:00
parent de8a9a493a
commit f07f74cab2
14 changed files with 325 additions and 8 deletions

View File

@@ -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()

File diff suppressed because one or more lines are too long

View File

@@ -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);
});

View File

@@ -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);

View File

@@ -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()

View File

@@ -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(),

View File

@@ -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')