实名认证

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

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

View File

@@ -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">