From 2bc289e6fdf486d2fe405ca40f6808786bff4b65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”>
Date: Sat, 27 Mar 2021 15:44:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Host/Views/User/Index.cshtml | 200 ++++++++++++++++++-----------------
1 file changed, 102 insertions(+), 98 deletions(-)
diff --git a/Host/Views/User/Index.cshtml b/Host/Views/User/Index.cshtml
index 91c45d1..0d60435 100644
--- a/Host/Views/User/Index.cshtml
+++ b/Host/Views/User/Index.cshtml
@@ -274,12 +274,113 @@
-
+
请打开 支付宝 扫码进行认证
+
@@ -590,103 +691,6 @@
});
}
- function realname(){
- let id_code = $('#real-name-code').val(),
- name = $('#real-name-name').val(),
- phone = $('#real-name-phone').val();
-
- if(id_code.length <= 0){
- alert("抱歉!请重新输入身份证号!");
- return;
- }
- if(phone.length != 11){
- alert("抱歉!请重新输入手机号!");
- return;
- }
- if(name.length <= 0){
- alert("抱歉!请重新输入姓名!");
- return;
- }
-
- var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
- if(reg.test(id_code) === false)
- {
- alert("身份证输入不合法");
- return false;
- }
-
- let data = {
- cookie:document.cookie,
- id_code: id_code,
- name: name,
- phone: phone
- }
-
-
- $.ajax({
- type: 'POST',
- url: 'http://php-api.juip.com/api/test/aliverify',
- dataType: "json",
- contentType: "application/json",
- data: JSON.stringify(data),
- beforeSend: function(xhr) {
- xhr.withCredentials = true;
- },
- crossDomain: true,
- success: function (res) {
- if (res.Code == 20000) {
- alert('已经认证成功');
- window.location.href='/User/Index';
- return ;
- }
- if (res.Code == 30000) {
- alert('该身份已经进行认证,无法再次进行认证!');
- window.location.href='/User/Index';
- return ;
- }
- if (res.Code == 10000) {
- $('#id-cert').hide();
- $('#verify-info').show();
- new QRCode(document.getElementById("qrcode_s"), {
- text: res.url,
- width : 550,
- height : 550
- });
- t1 = window.setInterval(get_verify_res,1500);
-
- } else {
- alert('请正确填写姓名和身份证号码。');
- }
-
-
- }
- });
-
- // 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 get_verify_res(){
let data = {