diff --git a/view/yinmeng/modules/identity/js/jsvm_all.js b/view/yinmeng/modules/identity/js/jsvm_all.js new file mode 100644 index 0000000..7271a33 --- /dev/null +++ b/view/yinmeng/modules/identity/js/jsvm_all.js @@ -0,0 +1 @@ +var e0;+function n(e,c,a){function t(n){function i(n){return typeof n}function s(n){var t=0;n:for(;void 0!==t;){var i,s,o=7&t>>3;switch(7&t){case 0:switch(o){case 0:var r=e[7],u=a[1],v=n;t=v?32:1;continue n;case 1:var w=d[c[13]](l),h=~(~(w&~m)&~(~w&m));m=w,f+=e[13][a[8]](h),t=24;continue n;case 2:S=typeof n,t=34;continue n;case 3:l++,t=4;continue n;case 4:r=typeof Symbol,v=c[4]==r,t=1;continue n}continue n;case 1:switch(o){case 0:var p=v;t=p?26:2;continue n;case 1:var d=e[11],f=a[3],m=e[7],l=c[10];t=4;continue n;case 2:var g=parseInt(c[11],c[12]);z=parseInt(e[10],a[6])+g,t=10;continue n;case 3:var b=c[16];m=e[12]+b,t=8;continue n;case 4:j++,t=35;continue n}continue n;case 2:switch(o){case 0:var I=p;t=I?19:27;continue n;case 1:var y=A[c[13]](j),k=~(~(y&~z)&~(~y&z));z=y,x+=a[7][c[14]](k),t=33;continue n;case 2:I=r!==(u=Symbol[x]),t=27;continue n;case 3:var C=c[5];C+=e[8],C+=c[6],p=(r=n[C=(C+=a[2])[c[7]](c[8])[c[9]]()[e[9]](a[3])])===(u=Symbol),t=2;continue n;case 4:return r=S}continue n;case 3:switch(o){case 0:t=l?8:25;continue n;case 1:t=j?10:17;continue n;case 2:r=n;var A=a[4],x=a[3],z=c[10],j=e[7];t=35;continue n;case 3:var S=I;t=S?9:16;continue n;case 4:t=j>2;switch(3&o){case 0:switch(v){case 0:var w=typeof Symbol,h=e[1];h+=e[2];var p=(h=(h+=c[1])[e[3]](e[4])[e[5]]()[c[2]](e[4]))==w;o=p?4:1;continue n;case 1:w=typeof(w=Symbol[c[3]]),p=e[6]==w,o=1;continue n;case 2:return w=(t=d)(n)}continue n;case 1:switch(v){case 0:var d=p;o=d?5:9;continue n;case 1:d=i,o=8;continue n;case 2:d=s,o=8;continue n}continue n}}}function i(){function n(n,t){function i(n){var t=1;n:for(;void 0!==t;){var i,s,o=1&t>>1;switch(1&t){case 0:switch(o){case 0:var r=a[45];r+=a[46],r+=c[44],r=(r+=c[45])[a[14]](e[4])[e[5]]()[c[2]](c[8]),an=cn[r](),t=2;continue n;case 1:t=void 0;continue n}continue n;case 1:switch(o){case 0:var u;t=a[44]===n?0:2;continue n}continue n}}}var s=26;n:for(;void 0!==s;){var o,r,u=7&s>>3;switch(7&s){case 0:switch(u){case 0:s=b>3;switch(7&t){case 0:switch(r){case 0:I++,t=32;continue n;case 1:var u=l[e[20]](I),v=~(~(u&~b)&~(~u&b));b=u,g+=c[26][e[21]](v),t=0;continue n;case 2:A++,t=18;continue n;case 3:var w=e[7],h=a[1],p,d=window[e[32]];t=d?33:11;continue n;case 4:t=I>2;switch(3&t){case 0:switch(r){case 0:t=m>2;switch(3&n){case 0:switch(s){case 0:var o=e[7];n=an?12:9;continue n;case 1:n=d>3;switch(7&s){case 0:switch(u){case 0:var v=f===n;s=v?17:26;continue n;case 1:return n=(n=new WebAssembly[c[68]](C))instanceof(i=WebAssembly[e[58]]);case 2:m++,s=34;continue n;case 3:n=typeof WebAssembly;var w=e[55]===n;s=w?25:11;continue n;case 4:I++,s=10;continue n}continue n;case 1:switch(u){case 0:var h=parseInt(a[56],c[27]),p=g[e[20]](I)-(parseInt(a[57],e[15])+h);b+=e[13][c[14]](p),s=32;continue n;case 1:n=w;var d=c[61],f=c[8],m=a[1];s=34;continue n;case 2:var l=c[63];l+=e[57],l+=c[64],l+=c[65],n=typeof(n=WebAssembly[l]),v=a[58]===n,s=26;continue n;case 3:var g=a[55],b=e[4],I=e[7];s=10;continue n;case 4:s=void 0;continue n}continue n;case 2:switch(u){case 0:var y=~(~(d[e[20]](m)&~parseInt(c[62],e[42]))&~(~(d[c[13]](m)&d[e[20]](m))&parseInt(e[56],a[6])));f+=c[26][e[21]](y),s=16;continue n;case 1:s=I>3;switch(7&n){case 0:switch(s){case 0:b++,n=25;continue n;case 1:var o=e[61];o+=e[62];var r=new a[70](g,c[63])[o](m);n=r?33:17;continue n;case 2:n=d>2;switch(3&n){case 0:switch(s){case 0:var o=c[74],r=c[8],u=e[7];n=1;continue n;case 1:u++,n=1;continue n;case 2:var v=navigator[r],w=(v=v[e[67]]())[e[68]]();n=(v=new e[69](e[70])[c[76]](w))?9:5;continue n}continue n;case 1:switch(s){case 0:n=u>2;switch(3&n){case 0:switch(s){case 0:n=p>2;switch(3&n){case 0:switch(s){case 0:return e[76];case 1:n=h>2;switch(3&n){case 0:switch(s){case 0:return c[78];case 1:var o=e[7],r=a[82];r+=c[80],r+=c[81],r+=e[77];var u=navigator[r];n=u?6:8;continue n;case 2:n=(o=u)?0:2;continue n}continue n;case 1:switch(s){case 0:n=d>2;switch(3&s){case 0:switch(u){case 0:A[b]=m;var v=e[85];(A=t[e[86]](v))[e[87]](n,c[10],c[10],d,m);var w=c[89],h;return w=w[c[7]](e[4])[c[9]]()[e[9]](e[4]),x=m*S,z=d,j=m*T,(A=t[a[92]](w))[a[93]](e[7],x,z,j);case 1:l=m,s=1;continue n;case 2:s=y?3:11;continue n;case 3:s=y>1;switch(1&n){case 0:switch(t){case 0:var i=c[10],s=u();n=s?2:1;continue n;case 1:s=un,n=3;continue n}continue n;case 1:switch(t){case 0:s=ne,n=3;continue n;case 1:return i=s}continue n}}}function l(){var n=5;n:for(;void 0!==n;){var t,i,s=3&n>>2;switch(3&n){case 0:switch(s){case 0:var r=c[91],u=p[c[13]](l)-(parseInt(c[92],e[15])+r);d+=a[7][e[21]](u),n=9;continue n;case 1:g=e[4],n=8;continue n;case 2:h[e[90]]=g;var v=e[91];return v+=e[92],v+=a[95],h[v+=e[93]]=o(),w=h}continue n;case 1:switch(s){case 0:n=l>2;switch(3&n){case 0:switch(s){case 0:p++,n=9;continue n;case 1:n=p?2:8;continue n;case 2:var o=e[94];h=parseInt(c[95],c[27])+o,n=2;continue n}continue n;case 1:switch(s){case 0:var r=hn+w,u=e[7];return r+=u=pn,r+=e[95],r+=u=gn;case 1:var v=c[94],w=e[4],h=c[10],p=a[1];n=9;continue n;case 2:n=p>3;switch(7&S){case 0:switch(W){case 0:Xn++,S=41;continue n;case 1:sn,s(),e[14];var _=a[96];_+=a[97],_+=c[97],e0=l,S=void 0;continue n;case 2:ae++,S=27;continue n;case 3:S=Sn?5:44;continue n;case 4:ln++,S=11;continue n;case 5:S=Xn?9:4;continue n}continue n;case 1:switch(W){case 0:on++,S=12;continue n;case 1:var B=Jn[c[13]](Xn),q=~(~(B&~Vn)&~(~B&Vn));Vn=B,Qn+=a[7][c[14]](q),S=0;continue n;case 2:S=N?18:34;continue n;case 3:var P=~(~(tn[e[20]](on)&~parseInt(c[33],e[17]))&~(~(tn[a[33]](on)&tn[a[33]](on))&parseInt(a[34],c[12])));sn+=a[7][a[8]](P),S=1;continue n;case 4:var U=parseInt(Qn,a[6]),D=a[17],F=D=D[c[7]](e[4])[e[5]]()[a[18]](c[8]),M=c[24],K=M=M[a[14]](e[4])[e[5]]()[a[18]](c[8]),L=e[18],R=a[19],Y=a[3],H=e[7],N=e[7];S=10;continue n;case 5:S=Xn { + layer.open({ + type: 2, + shadeClose: false, + content, + success (e) { + layerIndex = $(e).attr('index') + } + }) +} +const hideLoading = (index) => { + layer.close(index) +} +const toastMsg = (content = '操作完成', time = 2) => { + layer.open({ + content, + time, + skin: 'msg' + }) +} $(function () { - var browser = checkVersion(); - var api = getUrlPrefix(); - var timer = null; - var env = EnvCheck(); - var urlObj = getQueryString(); - if (env == 'test') { - var vConsole = new VConsole(); - } - - getInfoFromClient && getInfoFromClient() - if (browser.app) { - if (browser.android) { - let channel = JSON.parse(pubInfo.deviceInfo).channel - if (channel.indexOf('toutiao') != -1 || channel.indexOf('kuaishou') != -1) { - $('.appName').html('音游') - } + getInfoFromClient() + var browser = checkVersion(); + var api = getUrlPrefix(); + var timer = null; + var env = EnvCheck(); + var urlObj = getQueryString(); + console.log(urlObj.uid); + if (urlObj.uid) { + sessionStorage.setItem("uid", urlObj.uid); + sessionStorage.setItem("ticket", urlObj.ticket); + } + if (env == 'test') { + var vConsole = new VConsole(); } - } - - var main = { - init: function () { - this.getDeviceMsg(); - this.eventRegister(); - var that = this; - setTimeout(function () { - that.getData(); - }, 200) - - }, - getDeviceMsg: function () { - if (browser.app) { + getInfoFromClient && getInfoFromClient() + if (browser.app) { if (browser.android) { - info.uid = parseInt(window.androidJsObj.getUid()); - info.deviceId = window.androidJsObj.getDeviceId(); - info.ticket = window.androidJsObj.getTicket(); - } else { - info.uid = tools.cookieUtils.get("uid"); - if (!info.uid) { - window.webkit.messageHandlers.getUid.postMessage(null); - } - window.webkit.messageHandlers.getDeviceId.postMessage(null); - window.webkit.messageHandlers.getTicket.postMessage(null); + let channel = JSON.parse(pubInfo.deviceInfo).channel + if (channel.indexOf('toutiao') != -1 || channel.indexOf('kuaishou') != -1) { + $('.appName').html('piko') + } } - } else { - info.uid = 922473; - info.deviceId = "204aa0c983384f1e84a3625b4f04bac1"; - } + } - // setTimeout(function () { - // $('.deviceId').val(info.deviceId); - // },200) - }, - getData: function () { - console.log(urlObj, 'urlObj') - if (urlObj) { - info.auth = urlObj.auth - } else { - info.auth = '' - } - console.log(info.auth, 'info.auth') - $.ajax({ - type: "get", - url: api + "/certification/hasCertify", - headers: { - "pub_ticket": info.ticket - }, - data: { - uid: info.uid, - auth: info.auth, - ticket: info.ticket, + + var main = { + init: function () { + this.getDeviceMsg(); + this.eventRegister(); + var that = this; + setTimeout(function () { + that.getData(); + }, 200) }, - success: function (res) { - if (res.code == 200) { - var checkBol = res.data; - var $mask = $('.status-mask'); - if (checkBol.authResult) { - console.log('已短信验证!') - } else if (checkBol.hasCertify && !checkBol.canCertify) { - console.log('已实名且没有机会了') - $mask.addClass("have-identity"); - $mask.find(".text").html("您已通过实名认证"); - $mask.find(".tips").html("系统已成功审核您的实名认证"); - $mask.show(); - } else if (checkBol.hasCertify && checkBol.canCertify) { - console.log('已实名还有一次机会') - // var $mask = $('.status-mask'); - $mask.addClass("have-identity"); - $mask.find(".text").html("您已通过实名认证"); - $mask.find(".tips").html("系统已成功审核您的实名认证"); - $mask.find(".goto-change").removeClass('hide'); - $mask.show(); - } - } - } - }) - }, - eventRegister: function () { - $('.button-submit').on('click', function () { + getDeviceMsg: function () { + // if (browser.app) { + // if (browser.android) { + // pubInfo.uid = parseInt(window.androidJsObj.getUid()); + // pubInfo.deviceId = window.androidJsObj.getDeviceId(); + // pubInfo.ticket = window.androidJsObj.getTicket(); + // } else { + // pubInfo.uid = tools.cookieUtils.get("uid"); + // if (!pubInfo.uid) { + // window.webkit.messageHandlers.getUid.postMessage(null); + // } + // window.webkit.messageHandlers.getDeviceId.postMessage(null); + // window.webkit.messageHandlers.getTicket.postMessage(null); + // } + // } else { + // pubInfo.uid = 922473; + // pubInfo.deviceId = "204aa0c983384f1e84a3625b4f04bac1"; + // } - var name = $('.name').val(); - var personId = $('.person-id').val(); - var phone = $('.phone').val(); - var identityCode = $('.identity-code').val(); - var agree = $('#agree').prop("checked"); - if (!agree) { - toastShow("请同意直播协议"); - return; - } - if (!name.trim()) { - toastShow("名字不能为空"); - return; - } - - if (!personId.trim()) { - toastShow("身份证号不能为空"); - return; - } - - if (!phone.trim()) { - toastShow("手机号不能为空"); - return; - } - - if (!identityCode.trim()) { - toastShow("验证码不能为空"); - return; - } - - if (!(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/).test(personId.trim())) { - toastShow("身份证号不符合规格"); - return; - } - - if (!(/^1[3|4|5|6|7|8|9][0-9]\d{8}$/).test(phone.trim())) { - toastShow("手机号不符合规格"); - return; - } - if (lockBol) { - return; - } - lockBol = true; - - var requestParam = { - uid: info.uid, - username: encryptDes(name, "1ea53d260ecf11e7b56e00163e046a26"), - identityNumber: encryptDes(personId, "1ea53d260ecf11e7b56e00163e046a26"), - phone: encryptDes(phone, "1ea53d260ecf11e7b56e00163e046a26"), - code: identityCode, - ticket: info.ticket - }; - if (browser.android) { - requestParam.deviceInfo = JSON.stringify({ - deviceId: info.deviceId - }); - } - $.ajax({ - type: "get", - url: api + "/certification/token", - data: requestParam, - headers: { - "pub_ticket": info.ticket - }, - success: function (res) { - if (res.code == 200) { - var token = res.data.token; - info.token = token; - // if(browser.app){ - if (browser.ios) { - window.webkit.messageHandlers.openFaceLiveness.postMessage(token); - } else { - window.androidJsObj.openFaceLiveness(token); - } - // } + // setTimeout(function () { + // $('.deviceId').val(pubInfo.deviceId); + // },200) + }, + getData: function () { + console.log(urlObj, 'urlObj') + if (urlObj) { + pubInfo.auth = urlObj.auth } else { - if (res.code == 10109) { - $mask.addClass("failed"); - $mask.find(".text").html("实名认证失败"); - $mask.find(".tips").html("实名次数已达限制"); - } else if (res.code == 10110) { - $mask.addClass("have-identity"); - $mask.find(".text").html("您已通过实名认证"); - $mask.find(".tips").html("系统已成功审核您的实名认证"); - } else if (res.code == 4003) { - $mask.addClass("failed"); - $mask.find(".text").html("实名认证失败"); - $mask.find(".tips").html("验证码错误"); - } else { - $mask.addClass("failed"); - $mask.find(".text").html("实名认证失败"); - $mask.find(".tips").html("请填写真实有效的身份证信息"); - } - $mask.show(); - lockBol = false; - setTimeout(function () { - $('.status-mask').hide(); - }, 4000); + pubInfo.auth = '' } - } - }); - // $.post(api + "/certification/doCheck",requestParam,function (res) { - // - // }) - }) + console.log(pubInfo.auth, 'pubInfo.auth') + networkRequest({ + type: 'get', + url: urlPrefix + '/certification/hasCertify', + data: { + uid: pubInfo.uid, + auth: pubInfo.auth, + ticket: pubInfo.ticket, + }, + success: function (res) { + if (res.code == 200) { + var checkBol = res.data; + var $mask = $('.status-mask'); + var bool = !(checkBol.authResult == null || checkBol.authResult == undefined); + function successFun () { + hideLoading(layerIndex) + goToPage = true; + $mask.addClass("have-identity"); + $mask.find(".text").html("您已通过实名认证"); + $mask.find(".tips").html("系统已成功审核您的实名认证"); + $mask.find(".goto-change").removeClass('hide'); + $mask.show(); + } + if (bool) { + if (checkBol.authResult == false && checkBol.canCertify == true && checkBol.hasCertify == false) { + //重复调用 + showLoading(); + main.getData(); + }else if (checkBol.authResult == false && checkBol.canCertify == false && checkBol.hasCertify == true) { + //成功 + successFun() + } else if (checkBol.authResult == true && checkBol.canCertify == false && checkBol.hasCertify == true) { + //成功 + successFun() + } else if (checkBol.authResult == true && checkBol.canCertify == true && checkBol.hasCertify == false) { + //失败 + goToPage = false; + $mask.addClass("failed"); + $mask.find(".text").html("您未通过实名认证"); + $mask.find(".tips").html("系统审核您的实名认证失败"); + $mask.find(".goto-change").removeClass('hide'); + $mask.show(); + hideLoading(layerIndex) + } + } else { + if (checkBol.canCertify == false && checkBol.hasCertify == true) { + //成功 + successFun() + } else {//(authResult == null || authResult == undefined) && canCertify == true && hasCertify == false; + //正在操作 + console.log('继续操作'); + } + hideLoading(layerIndex) + } + } + }, + error (err) { + console.log(err); + } + }) + }, + eventRegister: function () { + $('.button-submit').on('click', function () { + var name = $('.name').val(); + var personId = $('.person-id').val(); + var phone = `${$('.phone').val()}`; + var identityCode = $('.identity-code').val(); + var agree = $('#agree').prop("checked"); + if (!agree) { + toastShow("请同意直播协议"); + return; + } + if (!name.trim()) { + toastShow("名字不能为空"); + return; + } - $('.button-identity-code').on('click', function () { - var phone = $('.phone').val(); - if (!phone.trim()) { - toastShow("手机号不能为空"); - return; + if (!personId.trim()) { + toastShow("身份证号不能为空"); + return; + } + + if (!phone.trim()) { + toastShow("手机号不能为空"); + return; + } + + if (!identityCode.trim()) { + toastShow("验证码不能为空"); + return; + } + + if (!(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/).test(personId.trim())) { + toastShow("身份证号不符合规格"); + return; + } + + if (!(/^1[3|4|5|6|7|8|9][0-9]\d{8}$/).test(phone.trim())) { + toastShow("手机号不符合规格"); + return; + } + if (lockBol) { + return; + } + lockBol = true; + var metaInfo = window.getMetaInfo(); + var requestParam = { + certType: 0, + code: identityCode, + identityNumber: encryptDes(personId, "1ea53d260ecf11e7b56e00163e046a26"), + metaInfo: JSON.stringify(metaInfo), + phone: encryptDes( phone, "1ea53d260ecf11e7b56e00163e046a26"), + returnUrl: urlPrefix + `/yinmeng/modules/identity/new.html?uid=${sessionStorage.getItem("uid")}&ticket=${sessionStorage.getItem("ticket")}`, + uid: pubInfo.uid, + username: encryptDes(name, "1ea53d260ecf11e7b56e00163e046a26"), + }; + networkRequest({ + type: 'post', + url: urlPrefix + '/certification/initFace', + data: requestParam, + success: function (res) { + if (res.code == 200) { + window.location.href = res.data.certifyUrl; + } else { + $mask.addClass("failed"); + $mask.find(".text").html("实名认证失败"); + $mask.find(".tips").html(res.message); + $mask.show(); + lockBol = false; + setTimeout(function () { + $('.status-mask').hide(); + }, 4000); + lockBol = false; + } + }, + error (err) { + console.log(err); + } + }) + }) + + $('.button-identity-code').on('click', function () { + var phone = $('.phone').val(); + if (!phone.trim()) { + toastShow("手机号不能为空"); + return; + } + if (!(/^1[3|4|5|6|7|8|9][0-9]\d{8}$/).test(phone.trim())) { + toastShow("手机号不符合规格"); + return; + } + if ($(this).hasClass("disable")) { + return; + } + $(this).addClass('disable'); + var time = 60; + var $that = $(this); + $(this).html(time + 's后重新获取'); + timer = setInterval(function () { + time--; + $that.html(time + "s后重新获取"); + if (time < 0) { + clearInterval(timer); + $that.removeClass('disable'); + $that.html("获取验证码"); + } + }, 1000) + + var requestParam = { + phone: encryptDes( phone, "1ea53d260ecf11e7b56e00163e046a26"), + uid: pubInfo.uid, + ticket: pubInfo.ticket + }; + + if (browser.android) { + requestParam.deviceInfo = JSON.stringify({ + deviceId: pubInfo.deviceId + }); + } + + networkRequest({ + type: 'post', + url: urlPrefix + '/certification/send/code', + data: requestParam, + success: function (res) { + if (res.code == 200) { + toastShow('发送成功'); + } else { + toastShow(res.message); + } + }, + error (err) { + console.log(err); + } + }) + }) + + // 点击我要修改 + $('.goto-change').on('click', function () { + $mask.hide(); + $('.layer-box-2').show(); + }) + + // 点击关闭弹层 + $('.layer-2-close').on('click', function () { + $('.layer-box-2').hide(); + $mask.show(); + }) + + // 点击跳转手机验证 + $('.goto-change-layer').on('click', function () { + window.location.href = 'mobile.html'; + }) } - if (!(/^1[3|4|5|6|7|8|9][0-9]\d{8}$/).test(phone.trim())) { - toastShow("手机号不符合规格"); - return; - } - if ($(this).hasClass("disable")) { - return; - } - $(this).addClass('disable'); - var time = 60; - var $that = $(this); - $(this).html(time + 's后重新获取'); - timer = setInterval(function () { - time--; - $that.html(time + "s后重新获取"); - if (time < 0) { - clearInterval(timer); - $that.removeClass('disable'); - $that.html("获取验证码"); - } - }, 1000) - - var requestParam = { - phone: encryptDes(phone, "1ea53d260ecf11e7b56e00163e046a26"), - uid: info.uid, - ticket: info.ticket - }; - - if (browser.android) { - requestParam.deviceInfo = JSON.stringify({ - deviceId: info.deviceId - }); - } - - $.ajax({ - type: "post", - url: api + "/certification/send/code", - headers: { - "pub_ticket": info.ticket - }, - data: requestParam, - success: function (res) { - console.log(res, '请求成功'); - if (res.code == 200) { - toastShow('发送成功'); - } else { - toastShow(res.message); - console.log(res, '报错啦'); - } - }, - error: function (res) { - toastShow(res.message); - console.log(res, '报错啦'); - } - }); - }) - - // 点击我要修改 - $('.goto-change').on('click', function () { - $mask.hide(); - $('.layer-box-2').show(); - }) - - // 点击关闭弹层 - $('.layer-2-close').on('click', function () { - $('.layer-box-2').hide(); - $mask.show(); - }) - - // 点击跳转手机验证 - $('.goto-change-layer').on('click', function () { - window.location.href = 'mobile.html'; - }) - } - }; - main.init(); + }; + main.init(); }); -function toastShow(text) { - $toast.html(text); - $toast.show(); - setTimeout(function () { - $toast.hide(); - }, 2000); +function toastShow (text) { + $toast.html(text); + $toast.show(); + setTimeout(function () { + $toast.hide(); + }, 2000); } -function getMessage(key, value) { - info[key] = value; +function getMessage (key, value) { + pubInfo[key] = value; } -function renderByStatus(status) { - $mask.attr('class', 'status-mask'); - console.log("开始回调," + "状态为" + status); - $.ajax({ - type: 'post', - url: getUrlPrefix() + '/certification/notify', - headers: { - "pub_ticket": info.ticket - }, - data: { - uid: info.uid, - ticket: info.ticket, - token: info.token, - statusCode: status - }, - success: function (res) { - console.log(res); - lockBol = false; - if (res.code == 200) { - console.log("success"); - if (status == 2) { - $mask.addClass("success"); - $mask.find(".text").html("认证成功"); - $mask.find('.tips').html(''); - $mask.show(); - } else { - if (status == -2) { - $mask.addClass("failed"); - $mask.find(".text").html("认证失败"); - $mask.find(".tips").html("网络不通或者网络异常"); - } else if (status == 1) { - $mask.addClass("failed"); - $mask.find(".text").html("认证失败"); - $mask.find(".tips").html("审核失败"); - } else { - console.log('存在异常,status=' + status); - // window.location.reload(); - return; - } - $mask.show(); - setTimeout(function () { - $mask.hide(); - }, 4000); +function renderByStatus (status) { + $mask.attr('class', 'status-mask'); + console.log("开始回调," + "状态为" + status); + + networkRequest({ + type: 'post', + url: urlPrefix + '/certification/notify', + data: { + uid: pubInfo.uid, + ticket: pubInfo.ticket, + token: pubInfo.token, + statusCode: status + }, + success: function (res) { + console.log(res); + lockBol = false; + if (res.code == 200) { + console.log("success"); + if (status == 2) { + $mask.addClass("success"); + $mask.find(".text").html("认证成功"); + $mask.find('.tips').html(''); + $mask.show(); + } else { + if (status == -2) { + $mask.addClass("failed"); + $mask.find(".text").html("认证失败"); + $mask.find(".tips").html("网络不通或者网络异常"); + } else if (status == 1) { + $mask.addClass("failed"); + $mask.find(".text").html("认证失败"); + $mask.find(".tips").html("审核失败"); + } else { + console.log('存在异常,status=' + status); + // window.location.reload(); + return; + } + $mask.show(); + setTimeout(function () { + $mask.hide(); + }, 4000); + } + } + }, + error (err) { + console.log(err); } - } - } - }); - console.log('status', status); + }) + + console.log('status', status); } //DES加密 const encryptDes = (message, key) => { - var keyHex = CryptoJS.enc.Utf8.parse(key); - var encrypted = CryptoJS.DES.encrypt(message, keyHex, { - mode: CryptoJS.mode.ECB, - padding: CryptoJS.pad.Pkcs7 - }); - return encrypted.toString(); + var keyHex = CryptoJS.enc.Utf8.parse(key); + var encrypted = CryptoJS.DES.encrypt(message, keyHex, { + mode: CryptoJS.mode.ECB, + padding: CryptoJS.pad.Pkcs7 + }); + return encrypted.toString(); } + +$('.status-mask').click(function () { + if (goToPage) { + // window.location.href = urlPrefix + '/yinmeng/modules/identity/new.html' + } else { + $('.status-mask').hide(); + } +}) \ No newline at end of file diff --git a/view/yinmeng/modules/identity/new.html b/view/yinmeng/modules/identity/new.html index 56336b5..2adccab 100644 --- a/view/yinmeng/modules/identity/new.html +++ b/view/yinmeng/modules/identity/new.html @@ -7,7 +7,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> 实名认证 - + @@ -50,9 +50,9 @@
认证须知

1.该认证仅支持中国内地(不含港澳台地区)的用户。

2.请确保填写身份证信息真实并与本人一致。

-

3.根据国家相关的法律法规,您需要提供您的真实身份信息(真实姓名、身份证号)、身份证正反面照片、面部信息以完成实名验证。您所提供的身份信息仅用于身份验证,未经您本人的许可不会被用于其他用途。这些信息属于个人敏感信息,我们将会尽可能的保护您个人敏感信息的安全。如果您不提供这些信息,您将不能使用提现等相关功能,但不影响您继续使用"音萌"的其他服务。

+

3.根据国家相关的法律法规,您需要提供您的真实身份信息(真实姓名、身份证号)、身份证正反面照片、面部信息以完成实名验证。您所提供的身份信息仅用于身份验证,未经您本人的许可不会被用于其他用途。这些信息属于个人敏感信息,我们将会尽可能的保护您个人敏感信息的安全。如果您不提供这些信息,您将不能使用提现等相关功能,但不影响您继续使用本产品的其他服务。

4.为保护用户权益,开启实名认证后我们将不提供解除恢复的功能,请谅解。

-

5.一个身份证最多用于10个用户账号的实名认证。

+

5.一个身份证最多用于2个用户账号的实名认证。

6.若人脸认证遇到问题,请点击这里

开始认证
@@ -64,12 +64,12 @@ -
网络异常,请退出重进
+
-
fewf
-
fwefw
+
+
@@ -81,7 +81,7 @@ - + @@ -89,17 +89,9 @@ - - + + + \ No newline at end of file