You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
6.6 KiB
JavaScript

2 years ago
eval(function(p, a, c, k, e, r) {
e = function(c) {
return (c < 62 ? '': e(parseInt(c / 62))) + ((c = c % 62) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if ('0'.replace(0, e) == 0) {
while (c--) r[e(c)] = k[c];
k = [function(e) {
return r[e] || e
}];
e = function() {
return '([a-cf-hj-oqstvwyzA-Z]|[12]\\w)'
};
c = 1
};
while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
return p
} ('$(g(){$(\'#yhm-I\').1F(g(){$(2b).1G(\'1e\').1f(\'li\').1H(\'1e\');$("#S").1g("q.T-S").2d(0);$("#S").1g("q#I-fs1").2e(2f)});$(\'#phone-I\').1F(g(){$(2b).1G(\'1e\').1f(\'li\').1H(\'1e\');$("#S").1g("q.T-S").2d(0);$("#S").1g("#I-fs12").2e(2f)});$(".U-2g-btn").1F(g(){$(".U-2g").toggleClass("on")})});g h(J,c,V,b){f(V==\'j\'){$(b).m(\'o\',\'j\').1H("2i");$(\'.2j:eq(\'+c+\')\').K(\'<q 1h="2l"></q>\')}k{$(b).m(\'o\',\'n\').1G("2i");$(\'.2j:eq(\'+c+\')\').K(\'<q 1h="2m">\'+J+\'</q>\')}}g 1i(b,c){a W=$(b).l();f(/^[0-9a-zA-Z_]+$/.1a(W)){f(W.D<6||W.D>22){h(\'账号长度不符合要求\',c,\'n\',b)}k{$.1j({V:"1k",v:\'A://L.w.B/X/1L.M?N=?\',s:{Y:\'1i\',u:W},1l:"1m",1n:g(s){f(s.O==\'1\'){h(\'\',c,\'j\',b)}k{h(s.J,c,\'n\',b)}}})}}k{h(\'输入账号格式不正确\',c,\'n\',b)}}g 1M(b,c){a E=$(b).l();f(/^[0-9a-zA-Z_]+$/.1a(E)){f(E.D<6||E.D>22){h(\'密码长度不符合要求\',c,\'n\',b)}k{h(\'\',c,\'j\',b)}}k{h(\'输入密码格式不正确\',c,\'n\',b)}}g 1N(b,c,2n){a E=$(2n).l();a P=$(b).l();f(/^[0-9a-zA-Z_]+$/.1a(P)){f(P.D<6||P.D>22){h(\'密码长度不符合要求\',c,\'n\',b)}k f(E!=P){h(\'两次密码输入不一致\',c,\'n\',b)}k{h(\'\',c,\'j\',b)}}k{h(\'输入密码格式不正确\',c,\'n\',b)}}g 1O(e){f($(e).1P().hasClass("on")){$(e).m(\'o\',\'j\');$(e).1P().1f(\'.2o\').K(\'<q 1h="2l"></q>\')}k{$(e).m(\'o\',\'n\');$(e).1P().1f(\'.2o\').K(\'<q 1h="2m">请阅读w用户协议并勾选同意</q>\')}}g 1Q(b,c){a C=$(b).l();f(C==1R||C==\'\'||C==\'2p\'){h(\'真实姓名不能为空\',c,\'n\',b);t y}k{$.1S(\'A://L.w.B/65api/register_forbitten_words.M?N=?\',{Y:"get_forbidden_word",C:C},g(s){f(s.O!=1){h(s.J,c,\'n\',b);t y}k{f(/^[\\u4E00-\\u9FA5\\uF900-\\uFA2D]*$/.1a(C)){h(\'真实姓名输入正确\',c,\'j\',b)}k{h(\'真实姓名输入不正确\',c,\'n\',b)}}})}}g 1T(b,c){a F=$(b).l();f(F.D==15){f(2q(F)==1b){h(\'身份证号码输入正确\',c,\'j\',b)}k{h(\'身份证号码输入错误\',c,\'n\',b)}}k f(F.D==18){a Q=F.split("");f(2r(F)&&2s(Q)){h(\'身份证号码输入正确\',c,\'j\',b)}k{h(\'身份证号码输入错误\',c,\'n\',b)}}k{h(\'身份证号码格式不正确\',c,\'n\',b)}}g 2s(Q){a 1U=0;a 2t=[1,0,10,9,8,7,6,5,4,3,2];a Wi=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1];f(Q[17].toLowerCase()==\'x\'){Q[17]=10}for(a i=0;i<17;i++){1U+=Wi[i]*Q[i]}2v=1U%11;f(Q[17]==2t[2v]){t 1b}t y}g 2r(1o){a Z=1o.13(6,10);a 16=1o.13(10,12);a 19=1o.13(12,14);a G=1p 2w(Z,z(16)-1,z(19));f(G.getFullYear()!=z(Z)||G.2x()!=z(16)-1||G.2y()!=z(19)){t y}t 1b}g 2q(1q){a Z=1q.13(6,8);a 16=1q.13(8,10);a 19=1q.13(10,12);a G=1p 2w(Z,z(16)-1,z(19));f(G.getYear()!=z(Z)||G.2x()!=z(16)-1||G.2y()!=z(19)){t y}t 1b}g getCookie(1r){a 1V,T=1p 2z("(^| )"+1r+"=([^;]*)(;|$)");t(1V=document.cookie.2A(T))?2B(1V[2]):\'\'}g check_genForm(){1i(\'#1W\',0);1M(\'#1s\',1);1N(\'#1X\',2,\'#1s\');1Q(\'#1Y\',3);1T(\'#1Z\',4);1O("#U-2C");a 1t=$(\'#1W\').m(\'o\');a 1u=$(\'#1s\').m(\'o\');a 1v=$(\'#1X\').m(\'o\');a 1w=$(\'#1Y\').m(\'o\');a 1x=$(\'#1Z\').m(\'o\');a 1y=$(\'#U-2C\').m(\'o\');f(1t==\'j\'&&1u==\'j\'&&1v==\'j\'&&1w==\'j\'&&1x==\'j\'&&1y==\'j\'){a 2D=$("#1W").l();a 1z=$("#1s").l();a 1A=$("#1X").l();a 1B=$("#1Y").l();a 1C=$("#1Z").l();$.1j({V:"1k",v:"A://L.w.B/X/I.M?N=?",1l:"1m",s:{Y:\'I\',W:2D,E:1z,P:1A,C:1B,F:1C},1n:g(H){f(H.O==\'1\'){a v=20("v");$(\'2E\').2F(\'<q 2G="2H:2I;">\'+H.2J+\'</q>\');21.23=(v==\'\')?\'A://2K.w.B/\':v}k{24(H.J)}}})}k{t y}}g 25(b,c){a 2L=/^[1]+[3,4,5,6,7,8,9]+\\d{9}$/;f($(b).l()==""||!2L.1a($(b).l())){h(\'请输入正确的手机号码\',c,\'n\',b)}k{$.1j({V:"1k",v:\'A://L.w.B/X/1L.M?N=?\',s:{Y:\'1i\',u:$(b).l()},1l:"1m",1n:g(s){f(s.O==\'1\'){h(\'\',c,\'j\',b)}k{h(\'该手机号码已经注册, 请进行登录。\',c,\'n\',b)}}})}}g send_msg(b){25(\'#R\',6);a 2M=$(\'#R\').m(\'o\');f(2M==\'n\')t y;a 1c=60;$(b).m(\'2O\',1b);$(b).K(\'请稍后\');a 2P=$("#R").l();$.1S(\'A://L.w.B/X/phone_code_send.M?N=?\',{p:2P},g(s){f(s.O!=1){24(s.J);t y}});a 2Q=setInterval(g(){$(b).K(1c+\'秒重发\');f(1c==0){$(b).K(\'发送验证码\');1c=60;$(b).m(\'2O\',y);clearInterval(2Q)}1c--},1000)}g 1D(b,c){a 1d=$(b).l();f(1d==\'\'||1d==1R||1d==\'2p\'){h(\'请输入验证码\',c,\'