!function(a){"use strict";var b,c=a.Base64,d="2.1.8";"undefined"!=typeof module&&module.exports&&(b=require("buffer").Buffer);var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=function(a){for(var b={},c=0,d=a.length;c>>6)+g(128|63&b):g(224|b>>>12&15)+g(128|b>>>6&63)+g(128|63&b)}var b=65536+1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320);return g(240|b>>>18&7)+g(128|b>>>12&63)+g(128|b>>>6&63)+g(128|63&b)},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,j=function(a){return a.replace(i,h)},k=function(a){var b=[0,2,1][a.length%3],c=a.charCodeAt(0)<<16|(a.length>1?a.charCodeAt(1):0)<<8|(a.length>2?a.charCodeAt(2):0);return[e.charAt(c>>>18),e.charAt(c>>>12&63),b>=2?"=":e.charAt(c>>>6&63),b>=1?"=":e.charAt(63&c)].join("")},l=a.btoa?function(b){return a.btoa(b)}:function(a){return a.replace(/[\s\S]{1,3}/g,k)},m=b?function(a){return(a.constructor===b.constructor?a:new b(a)).toString("base64")}:function(a){return l(j(a))},n=function(a,b){return b?m(String(a)).replace(/[+\/]/g,function(a){return"+"==a?"-":"_"}).replace(/=/g,""):m(String(a))},o=function(a){return n(a,!0)},p=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),q=function(a){switch(a.length){case 4:var b=(7&a.charCodeAt(0))<<18|(63&a.charCodeAt(1))<<12|(63&a.charCodeAt(2))<<6|63&a.charCodeAt(3),c=b-65536;return g(55296+(c>>>10))+g(56320+(1023&c));case 3:return g((15&a.charCodeAt(0))<<12|(63&a.charCodeAt(1))<<6|63&a.charCodeAt(2));default:return g((31&a.charCodeAt(0))<<6|63&a.charCodeAt(1))}},r=function(a){return a.replace(p,q)},s=function(a){var b=a.length,c=b%4,d=(b>0?f[a.charAt(0)]<<18:0)|(b>1?f[a.charAt(1)]<<12:0)|(b>2?f[a.charAt(2)]<<6:0)|(b>3?f[a.charAt(3)]:0),e=[g(d>>>16),g(d>>>8&255),g(255&d)];return e.length-=[0,0,2,1][c],e.join("")},t=a.atob?function(b){return a.atob(b)}:function(a){return a.replace(/[\s\S]{1,4}/g,s)},u=b?function(a){return(a.constructor===b.constructor?a:new b(a,"base64")).toString()}:function(a){return r(t(a))},v=function(a){return u(String(a).replace(/[-_]/g,function(a){return"-"==a?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(){var b=a.Base64;return a.Base64=c,b};if(a.Base64={VERSION:d,atob:t,btoa:l,fromBase64:v,toBase64:n,utob:j,encode:n,encodeURI:o,btou:r,decode:v,noConflict:w},"function"==typeof Object.defineProperty){var x=function(a){return{value:a,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",x(function(){return v(this)})),Object.defineProperty(String.prototype,"toBase64",x(function(a){return n(this,a)})),Object.defineProperty(String.prototype,"toBase64URI",x(function(){return n(this,!0)}))}}a.Meteor&&(Base64=a.Base64)}(window),function(a,b,c){a[b]=c()}(this,"Util",function(){return{cookie:{get:function(a){var b=document.cookie,c=b.indexOf(a+"="),d=b.indexOf(";",c);return-1==d&&(d=b.length),c>-1?b.substring(c+a.length+1,d):null},set:function(a,b,c,d,e){var e=e||"/",f="";if(c){var g=new Date;g.setTime(g.getTime()+1e3*c),f="expires="+g.toGMTString()}document.cookie=a+"="+b+";"+f+";"+(d?"domain="+d:"")+";path="+e},remove:function(a,b,c){this.set(a,"",-1,b,c)}},parseURI:function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},absolutizeURI:function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=Util.parseURI(b||""),a=Util.parseURI(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},getDomain:function(a){var b=/\/\/([^\/]+)/.exec(a)[1],c=b.split(".").slice(-3);return/lenovouat\.cn/.test(a)?/tks\.lenovouat\.cn/.test(b)?"tks.lenovouat.cn":/tk\.lenovouat\.cn/.test(b)?"tk.lenovouat.cn":/vip\.lenovouat\.cn/.test(b)?"vip.lenovouat.cn":"lenovouat.cn":/lenovouat\.com/.test(a)?/tks\.lenovouat\.com/.test(b)?"tks.lenovouat.com":/tk\.lenovouat\.com/.test(b)?"lenovouat.com":/vip\.lenovouat\.com/.test(b)?"vip.lenovouat.com":/17\.lenovouat\.com/.test(b)?"17.lenovouat.com":"lenovouat.com":2==c.length?b:"com"==c[1]?c.join("."):c[1]+"."+c[2]},loadCSS:function(a,b){var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=a,document.getElementsByTagName("head")[0].appendChild(c),c.onload=c.onreadystatechange=function(){this.readyState&&!/loaded|complete/.test(this.readyState)||(b&&b(),c.onload=c.onreadystatechange=null)}},loadJS:function(a,b,c){var d=document.createElement("script");d.type="text/javascript",d.src=a,d.onload=d.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(b&&"function"==typeof b&&b(),this.onload=this.onreadystatechange=null,this.parentNode.removeChild(this))},d.onerror=function(){c&&"function"==typeof c&&c(),d.onerror=null},document.getElementsByTagName("head")[0].appendChild(d)},simulatePlaceholder:function(a,b,c){var c=c||$("body"),b=b||"placeholder",d=$(document.createElement("div")),e=a.position(),f=a.width(),g=a.outerHeight()+1;return d.addClass(b).css({lineHeight:g+"px",width:f+"px",height:g+"px",left:e.left+"px",top:e.top+"px"}).html(a.attr("data-placeholder")),c.append(d),a.val()&&d.hide(),a.on("keyup",function(){""!=a.val()?d.hide():d.show()}).on("blur",function(){""!=a.val()?d.hide():d.show()}).on("focus",function(){""!=a.val()?d.hide():d.show()}),d.on("click",function(){a.focus()}),d},simulateFormSubmit:function(a,b,c,d){var e=[],f=!1;$("body").append(''),e.push('"),$("body").append(e.join("")),$(".simulateForm").submit().remove(),$(".iframeBridge").removeAttr("name"),$(".iframeBridge").on("load",function(){var a=new Function("return "+this.contentWindow.name)();$(".iframeBridge").remove(),f=!0,clearTimeout(g),c&&c(a)});var g=setTimeout(function(){if(f)return void clearTimeout(g);$(".iframeBridge").remove(),d&&d()},2e4)},formPostSubmit:function(a,b,c){var d=[],e=!1;$("body").append(''),d.push('"),$("body").append(d.join("")),$(".postForm").submit().remove(),$(".iframepost").on("load",function(){try{var a=new Function("return "+this.contentWindow.name)();$(this).remove(),e=!0,clearTimeout(f),c&&c(a)}catch(b){c&&c({})}});var f=setTimeout(function(){if(e)return void clearTimeout(f);$(".iframepost").remove()},2e3)}}}),function(a,b,c){a[b]=c()}(this,"LenovoId",function(){return{lidlogin:function(a,b){var c={lpstgt:a,username:b,state:"login",realm:"shop.lenovo.com.cn"};window.Util.formPostSubmit(location.protocol+"//passport.lenovo.com/cnwebauthnv3/tgtAccess",c,function(){})},lidlogout:function(a){var b={lpstgt:"",username:a,state:"logout",realm:"shop.lenovo.com.cn"};window.Util.formPostSubmit(location.protocol+"//passport.lenovo.com/cnwebauthnv3/tgtAccess",b,function(){})}}}),function(a,b){this[a]=b()}("Class",function(){var a=function(a){return/\s(\w+)/.exec(Object.prototype.toString.call(a).toLowerCase())[1]},b=function(a){for(key in a)this[key]=a[key];return this},c=function(c,d){var e,f=a(c),g=a(d);c="function"==f?[c]:"object"==f?(e=c)&&[c.constructor||function(){}]:[function(){}],e&&delete e.constructor,d="function"==g?(c=c.concat(d.constructor||d))&&d.prototype:"object"==g?d:null,e&&!d?(d=e,e=null):d=d||{},d.extended||(d.extended=b);var h=function(){e&&b.call(this,e)};h.prototype=d;var i=function(){for(var a=c.length,b=a-1;b>=0;b--)c[b].apply(this,arguments)};return i.constructor=c[0],i.prototype=new h,i.extended=function(d){return d.extended=d.extended||b,c=[this.constructor],this.prototype=d,"function"==a(d)&&(c=c.concat(d.constructor||d),this.prototype=d.prototype),this},i.implemented=function(a){this.prototype=(new h).extended(a)},i},d={};return d.create=c,d});var getPosition=function(a,b){for(var c=y=0,b=b||document.body;a!=b;)c+=a.offsetLeft,y+=a.offsetTop,a=a.offsetParent;return{x:c,y:y}},AutoComplete=Class.create({constructor:function(a){var b;if(this.tip=a.tip||"Please input the keywords",this.input=a.input,this.input){if(this.form=a.form,!this.form&&(b=this.input.parents("form"))&&b.length&&(this.form=b,b=null),this.submit=a.submit||this.submit,this.getDatas=a.getDatas||this.getDatas,this.suggest=a.suggest&&a.suggest.length?a.suggest:null,!this.suggest){var c=this.input.parent(),d=document.createElement("div");c.css("position","relative");var e=getPosition(this.input[0],c[0]).x,f=this.input.width(),g=getPosition(this.input[0],c[0]).y+this.input.height();d.style.cssText="top:"+g+"px;left:"+e+"px;width:"+f+"px;",d.className="suggest",c.append(d),this.suggest=jQuery(d)}this.suggest.hide(),this.list=(a.list||"li").toLowerCase(),this.hover=a.hover||"hover",this.input.attr("data-placeholder")||(this.input.val(this.tip),this.input.focus(jQuery.proxy(this.focus,this))),this.input.blur(jQuery.proxy(this.blur,this)),this.input.keydown(jQuery.proxy(this.keydown,this)),this.input.bind("keyup",jQuery.proxy(this.textInput,this)),this.form&&this.form.bind("submit",jQuery.proxy(this.submit,this)),this.suggest.delegate(this.list,"mouseover",jQuery.proxy(this.mouseover,this)),this.suggest.delegate(this.list,"click",jQuery.proxy(this.click,this))}},focus:function(){this.input.val()==this.tip&&this.input.val("")},blur:function(){var a=this;this.input.attr("data-placeholder")||""!=this.input.val()||this.input.val(this.tip),setTimeout(function(){a.suggest.hide(),a.current=null},500)},setInputValue:function(a){var b,c=this.list;this.current||(this.current=this.suggest.find(c).first()),b=this.current.attr("title")||this.current.text(),this.input.val(b)},click:function(){this.setInputValue(),this.suggest.hide()},submit:function(a){this.form&&a.preventDefault()},keydown:function(a){var b=a.keyCode,c=this.list,d=this.hover;if(38==b||40==b){if(!this.suggest.find(c).length)return;a.preventDefault(),this.current&&this.current.removeClass(d),this.current=38==b?this.current&&this.current.prev().length?this.current.prev():this.suggest.find(c).last():this.current&&this.current.next().length?this.current.next():this.suggest.find(c).first(),this.current.addClass(d),this.setInputValue()}else 13==b&&(this.setInputValue(),this.form||this.submit())},getDatas:function(){throw new Error('Method ".getDatas()" is needed.')},textInput:function(a){var b=a.keyCode;(!b||b>=48&&b<=90||b>=96&&b<=105||8==b||32==b||45==b)&&this.getDatas()},mouseover:function(a){for(var b=a.target;b&&b.nodeName.toLowerCase()!=this.list;)b=b.parentNode;b.nodeName.toLowerCase()==this.list&&(this.current&&this.current.removeClass(this.hover),this.current=jQuery(b),this.current.addClass(this.hover))}});!function(a,b,c){a[b]=c()}(this,"passport",function(){var $=window.jQuery,util=window.Util,lid=window.LenovoId;if(window.sum=0,window.getMobileCode=function(a){"0"!=a.ret&&(tip.find("p").html(a.msg).end().show(),account.select())},window.doFastLogin=function(a){if("0"==a.ret){lid.lidlogin(a.tgt,$.trim(m_account.val()));var b=util.getDomain(passport.loginRedirect||document.URL),c=encodeURIComponent(a["cerpreg-passprt"]);/lenovo\.com\.cn|lenovouat\.cn/.test(b)?(util.cookie.set("ar","2"),loginAction(c)):$.getScript("//reg."+b+"/auth/set_cookie?cookie="+c+"&domain="+b+"&ar=2",function(){loginAction(c)})}else clicktag=!1,tip.find("p").html(a.msg).end().show()},window.lVETEbVhueFZZkIHgsuausYSIksjdUYSHYjslkOISUhsSKUFDIUASDsaiISUAYSDs=function(a,b,c,d,e){$.getScript("https://reg.lenovo.com.cn"+"/auth/v3/synlogin?tk="+passport.ticket+"&ts="+d+"&callback=fECS")},window.fECS=function(a){var b=a.ret,c=util.getDomain(document.URL);if("0"==b){var d=encodeURIComponent(a["cerpreg-passport"]),e="//reg."+c+"/auth/set_cookie?cookie="+d+"&domain="+c;"17.lenovouat.com"==c?e="https://bysso."+c+"/auth/set_cookie?cookie="+d+"&domain="+c:"youdemai.com"==c&&(e="//reglenovo."+c+"/auth/set_cookie?cookie="+d+"&domain="+c),$.getScript(e,function(){try{parseCookie(),passport.drawUserInfo()}catch(a){}pullCookie(d)})}},!$)throw new Error("未加载jQuery框架");var css1url="//m1.lefile.cn/lenovo_passport/1.5.0/css/pr2.min.css",regAccount=/^(?:1[3456789]\d{9}|[a-z0-9-_\\.]+@([a-z0-9-]+[\\.]{1})+[a-z0-9-]+)$/i,needCaptcha=!1,loginType=0,qrtoken=null,checkReady=!1,scanTimer=null,sliderFlag1=!1,slider_codeid1="",slider_value1="",sliderfFlag1=!1,slider_f_codeid1="",slider_f_value1="",clicktag=!1,pending=!1,slider_timer1=null,otherLoginType=0,sm_rid="",sm_f_rid="",smVarityInstance=null,smLoginType="",getUrlParams=function(a){return Object.keys(a).map(function(b,c){return 0==c?"?"+b+"="+a[b]:"&"+b+"="+a[b]}).join("")},isLoadSMSdk=function(){var a=[/techworld\.lenovo\.com\.cn/i,/techworld\.pangoo\.lenovouat\.com/i],b=window.location.host.toLocaleLowerCase();return!a.filter(function(a){return a.test(b)}).length||(sm_rid="",sm_f_rid="",!1)},initLenovoPassportSlider=function(a,b,c){return isLoadSMSdk()?void resetSMVarityPopup(smVarityInstance,a):c?void("slider_dialog"==a?slider_dialog_1=ucInit(a,b):slider_dialog_2=ucInit(a,b)):void $("#"+a).show()},error=function(a){switch(a){case 1:throw new Error("多次初始化,请避免");case 2:throw new Error("passport初始化少参数");case 3:throw new Error("WARNING:!!!shitJump,dangerous!!!");case 4:throw new Error("非法请求")}},drawMask=function(){$("#ppMask").length||$("body").append('
')},parseCookie=function(a){passport.cookie=null;var b;if(b=a?unescape(a):unescape(util.cookie.get("cerpreg-passport"))){var c=b.split("|"),d=c[4];if(c&&d){var e=decodeURIComponent(unescape(Base64.decode(d))),f=e.split("|");passport.cookie={};for(var g=0;g'),a.push(''),a.push('"),a.push('"),a.push('"),a.push(""),$("body").append(a.join("")),passport.rootElement=$("#ppWrapper")};window.getMobile=function(a){var b=$(".getMobileCode",passport.rootElement);if("0"==a.ret){var c=60;slider_timer1=setInterval(function(){0==c?(clearInterval(slider_timer1),pending=!1,b.html("获取验证码"),sliderfFlag1=!1):(b.html("已发送"+c),c--)},1e3)}else tip.find("p").html(a.msg).end().show(),pending=!1,sliderfFlag1=!1};var flRequest=function(a){var b=Math.random()+"",c=1e13*b;$("body").append('')},account,m_account,pwd,mcode,submit,tip,code_btn,persistent,slider_dialog_1,slider_dialog_2,reset=function(){account.removeClass("error_bg").val(""),m_account.removeClass("error_bg").val(""),mcode.removeClass("error_bg").val(""),pwd.removeClass("error_bg").val(""),sliderFlag1=!1,sliderfFlag1=!1,clearInterval(slider_timer1),code_btn.html("获取验证码"),pending=!1,clicktag=!1,$(".icon-clear").removeClass("icon-err-delete").hide(),$(".error-container").find("p").html("").end().hide()},bindLoginEvents=function(){account=passport.rootElement.find(".account"),m_account=passport.rootElement.find(".account_f"),pwd=passport.rootElement.find(".pwd"),mcode=passport.rootElement.find(".captcha"),code_btn=passport.rootElement.find(".getMobileCode"),tip=passport.rootElement.find(".error-container"),persistent=passport.rootElement.find(".login_fs"),submit=passport.rootElement.find(".submit"),window.attachEvent?$("input").on("keydown",function(){$("input").removeClass("error_bg").parent(".login_input").find("i").removeClass("icon-err-delete"),$(".error-container").find("p").html("").end().hide(),$(this).val()?($(this).parent(".login_input").find(".icon-clear").removeClass("icon-err-delete").show(),$(this).addClass("input")):($(this).parent(".login_input").find(".icon-clear").removeClass("icon-err-delete").hide(),$(this).removeClass("input"))}).on("focus",function(){$(this).addClass("focusIn")}).on("blur",function(){$(this).removeClass("focusIn")}):$("input").on("input",function(){$("input").removeClass("error_bg").parent(".login_input").find("i").removeClass("icon-err-delete"),$(".error-container").find("p").html("").end().hide(),$(this).val()?($(this).parent(".login_input").find(".icon-clear").removeClass("icon-err-delete").show(),$(this).addClass("input")):($(this).parent(".login_input").find(".icon-clear").removeClass("icon-err-delete").hide(),$(this).removeClass("input"))}).on("focus",function(){$(this).addClass("focusIn")}).on("blur",function(){$(this).removeClass("focusIn")}),$(".icon-clear").on("click",function(){$(this).parent().find("input").val("").removeClass("input error_bg").focus().end().end().hide()});var a=passport.ticket,b=encodeURIComponent(document.URL);passport.rootElement.delegate(".login_type","click",function(){var a=$(this).attr("type");loginType=a,"0"==a?($("#normal_login_box,.login_fast,.login_others").show(),$("#fast_login_box,.login_account,.login_companyRegister").hide(),reset(),$(".m_account_placeholder,.mcode_placeholder").hide(),$(".account_placeholder").length||(util.simulatePlaceholder(account,"account_placeholder",$(".login_inputa",passport.rootElement)),util.simulatePlaceholder(pwd,"pwd_placeholder",$(".login_inputb",passport.rootElement)),$(".account",passport.rootElement).on("input",function(){$(".account_placeholder").hide()}),$(".pwd",passport.rootElement).on("input",function(){$(".pwd_placeholder").hide()})),$(".account_placeholder,.pwd_placeholder").show()):"1"==a&&($("#fast_login_box,.login_account,.login_companyRegister").show(),$("#normal_login_box,.login_fast,.login_others").hide(),reset(),$(".account_placeholder,.pwd_placeholder").hide(),$(".m_account_placeholder,.mcode_placeholder").show())}).delegate(".login_scan_tip","click",function(){$(".qrcode_error").attr("isShow")&&$(".qrcode_error").hide(),$(".qrcode_success").attr("isShow")&&($(".qrcode_success").removeAttr("isShow").hide(),$(".qrcode_info,.qrcode_desc").show()),$(".login_pp,.login_scan_tip,.login_tip").hide(),$(".login_scan,.login_pp_tip").show(),qrcodeRefresh()}).delegate(".login_pp_tip","click",function(){$(".login_scan,.login_pp_tip").hide(),$(".login_pp,.login_scan_tip,.login_tip").show(),checkReady=!1,clearInterval(scanTimer)}).delegate(".qrcode_refresh","click",function(){$(".qrcode_error").removeAttr("isShow").hide(),qrcodeRefresh()}).delegate(".getMobileCode","click",function(){var a=$.trim(m_account.val());$(this);if(pending)return!1;if(/^\s*$/.test(a))return tip.find("p").html("手机号码不能为空").end().show(),m_account.addClass("error_bg").focus(),void(sliderfFlag1=!1);if(!/^1[3-9]\d{9}$/.test(a))return tip.find("p").html("手机号码格式不正确").end().show(),m_account.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete"),void(sliderfFlag1=!1);if(!sliderfFlag1)return initLenovoPassportSlider("slider_f_dialog","btnCancle_dialog2",!0),void(sliderfFlag1=!1);mcode.focus(),pending=!0,window.sensors2022_05_16&&window.sensors2022_05_16.track("GetCode",{service_type:"登录",get_type:"手机号"});var b=getUrlParams({slide:"v2",mobile:a,codeid:slider_f_codeid1,code:slider_f_value1,rid:sm_f_rid,ticket:"e40e7004-4c8a-4963-8564-31271a8337d8",platForm:1,shopId:1,deviceId:window.deviceId_shumei,t:(new Date).getTime(),callback:"getMobile",websiteCode:encodeURIComponent(window.websiteCode),websiteName:encodeURIComponent(window.websiteName),forwardPageUrl:encodeURIComponent(document.location.href)});$.getScript("//"+"reg.lenovo.com.cn"+"/captcha/cansend"+b)}).delegate(".m_account","blur",function(a){var b=(a.keyCode,$.trim($(this).val()));/^\s*$/.test(b)?tip.find("p").html("手机号码不能为空").end().show():/^1[3-9]\d{9}$/.test(b)||tip.find("p").html("手机号码格式不正确").end().show()}).delegate(".pwd,.captcha","keydown",function(a){13==a.keyCode&&(a.preventDefault(),passport.doLogin())}).delegate(".submit","click",function(a){a.preventDefault(),passport.doLogin()}).delegate(".close","click",function(a){passport.hide(),needCaptcha=!1,clearInterval(scanTimer)}).delegate(".regist_btn","click",function(){window.open("https://"+"reg.lenovo.com.cn"+"/auth/v1/regist?ru="+encodeURIComponent(location.href)+"&ticket="+passport.ticket)}).delegate(".reset_btn","click",function(){window.open("https://"+"reg.lenovo.com.cn"+"/pwd/findpwd?ru="+encodeURIComponent(location.href)+"&ticket="+passport.ticket)}).delegate(".companyRegist_btn","click",function(){window.open("https://"+"reg.lenovo.com.cn"+"/registpage/pc/enterprisereg.html?ru="+encodeURIComponent(location.href)+"&ticket=50690e2e-bf8e-4aeb-a8b1-7a03537d1927")}).delegate(".login_dialog_close","click",function(){$(".login_dialog_info").hide(),otherLoginType=0}).delegate(".login_dialog_agree","click",function(){if(persistent.addClass("checked"),$(".login_dialog_info").hide(),otherLoginType>0)switch(otherLoginType){case 1:window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/qqplat?ru="+b+"&tk="+a;break;case 2:window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/sinaplat?ru="+b+"&tk="+a;break;case 3:window.location.href="https://reg.lenovo.com.cn/auth/wechatcode?ru="+b+"&tk="+a;break;case 4:window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/alipayplat?ru="+b+"&tk="+a}else $(".submit").click()}).delegate(".login_fs","click",function(){persistent.toggleClass("checked")}).delegate(".qq","click",function(){if(!persistent.hasClass("checked"))return $(".login_dialog_info").show(),void(otherLoginType=1);window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/qqplat?ru="+b+"&tk="+a}).delegate(".wb","click",function(){if(!persistent.hasClass("checked"))return $(".login_dialog_info").show(),void(otherLoginType=2);window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/sinaplat?ru="+b+"&tk="+a}).delegate(".wx","click",function(){if(!persistent.hasClass("checked"))return $(".login_dialog_info").show(),void(otherLoginType=3);window.location.href="https://reg.lenovo.com.cn/auth/wechatcode?ru="+b+"&tk="+a}).delegate(".zfb","click",function(){if(!persistent.hasClass("checked"))return $(".login_dialog_info").show(),void(otherLoginType=4);window.location.href="https://"+"reg.lenovo.com.cn"+"/auth/alipayplat?ru="+b+"&tk="+a})},qrcodeRefresh=function(){-1!=location.host.indexOf("thinkpad.com")?$(".qrcode_img").attr("src","//reg.thinkpad.com/auth/qrcodelogin/show?"+(new Date).getTime()):$(".qrcode_img").attr("src","//"+"reg.lenovo.com.cn"+"/auth/qrcodelogin/show?"+(new Date).getTime()),$(".qrcode_img")[0].onload=function(){checkReady=!0,(qrtoken=util.cookie.get("qrtoken"))&&(scanTimer=setInterval(function(){checkReady&&queryScan()},3e3))}},queryScan=function(){var _domain=location.host,domain="";domain=-1!=_domain.indexOf("thinkpad.com")?"reg.thinkpad.com":"reg.lenovo.com.cn",$.ajax({url:"//"+domain+"/auth/qrcodelogin/qrcodeLoginCheck/"+qrtoken,type:"GET",dataType:"jsonp",jsonp:"callback",jsonpCallback:"jQuery"+(new Date).getTime(),success:function(o){if("string"==typeof o&&(o=eval("("+o+")")),"3"==o.status)clearInterval(scanTimer),checkReady=!1,$(".qrcode_info,.qrcode_desc").show(),$(".qrcode_success").hide(),$(".qrcode_error").find("h6").html("二维码已失效").end().attr("isShow","1").show();else if("2"==o.status)$(".qrcode_info,.qrcode_desc").hide(),$(".qrcode_success").attr("isShow","1").show();else if("4"==o.status){clearInterval(scanTimer);var cp=encodeURIComponent(o["cerpreg-passport"]),tgt=o.tgt;loginAction(cp,tgt)}else"5"==o.status&&(clearInterval(scanTimer),checkReady=!1,$(".qrcode_info,.qrcode_desc").show(),$(".qrcode_success").hide(),$(".qrcode_error").find("h6").html("登录失败").end().attr("isShow","1").show())}})},ucInit=function(a,b){var c=new worker2;return c.init({renderTo:"#"+a,success:function(b){"slider_dialog"==a?(sliderFlag1=!0,slider_codeid1=b.codeid,slider_value1=b.value,setTimeout(function(){$("#slider_dialog").hide()},800)):(sliderfFlag1=!0,slider_f_codeid1=b.codeid,slider_f_value1=b.value,setTimeout(function(){$("#slider_f_dialog").hide(),$(".getMobileCode").click()},800))},error:function(b){"slider_dialog"==a?(sliderFlag1=!1,slider_codeid1="",slider_value1=""):(sliderfFlag1=!1,slider_f_codeid1="",slider_f_value1="")},btnCancel:"."+b,wrapWidth:330,width:300,height:40},!0),c},resetSMVarityPopup=function(a,b){var c=a.getResult(),d=c.pass;smLoginType=b,d?(a.reset(),a.verify()):a.verify()},smVarityInit=function(a){smVarityInstance=a;var b=function(a){"slider_dialog"==smLoginType?(sliderFlag1=!0,sm_rid=a):(sliderfFlag1=!0,sm_f_rid=a,setTimeout(function(){$(".getMobileCode").click()},800))},c=function(){"slider_dialog"==el?(sliderFlag1=!1,sm_rid=""):(sliderfFlag1=!1,sm_f_rid="")};a.onReady(function(){}),a.onError(function(a,b){console.warn("失败errType--errMsg"+a+"--",b)}),a.onSuccess(function(a){if(a.pass)return void b(a.rid);c(a.rid)})},standardLogin=function(){var a,b=passport.rootElement.find(".persistent"),c=$.trim(account.val()),d=pwd.val();if(a=b.length?b[0].checked?"1":"0":1,/^\s+$/.test(c))return tip.find("p").html("账号不能为空").end().show(),clicktag=!1,sliderFlag1=!1,void account.addClass("error_bg").focus();if(!regAccount.test(c))return tip.find("p").html("用户名不正确").end().show(),clicktag=!1,sliderFlag1=!1,void account.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete");if(/^\s*$/.test(d))return tip.find("p").html("密码不能为空").end().show(),clicktag=!1,sliderFlag1=!1,void pwd.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete");if(d.length<4)return tip.find("p").html("用户名或者密码不正确").end().show(),clicktag=!1,sliderFlag1=!1,void pwd.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete");if(!persistent.hasClass("checked"))return $(".login_dialog_info").show(),"1"==loginType?$(".login_dialog_main").html('如果您输入的手机号未注册,将为您进行注册,注册即表示您同意《注册协议》《隐私政策》'):$(".login_dialog_main").html('登录即表示您同意《注册协议》《隐私政策》'),void(clicktag=!1);if(needCaptcha&&!sliderFlag1)return clicktag=!1,sliderFlag1=!1,void initLenovoPassportSlider("slider_dialog","",!1);var e={account:c,mobile:c,password:d,ps:a,ticket:passport.ticket,codeid:slider_codeid1,code:slider_value1,slide:"v2",rid:sm_rid,platForm:"1",applicationPlatform:"1",shopId:"1",os:"web",deviceId:window.deviceId_shumei,websiteCode:encodeURIComponent(window.websiteCode),websiteName:encodeURIComponent(window.websiteName),forwardPageUrl:encodeURIComponent(document.location.href)},f=passport.options||{};$.each(f,function(a,b){e[a]=b}),submit.html("正在登录,请稍候... ..."),window.sensors2022_05_16&&window.sensors2022_05_16.track("loginButtonClick",{forward_page_url:document.location.href, login_type:"密码登录"}),util.simulateFormSubmit("https://reg.lenovo.com.cn"+"/auth/v3/dologin",e,function(a){var b=a.ret,c=util.getDomain(passport.loginRedirect||document.URL);if(submit.html("登录"),clicktag=!1,"0"==b){lid.lidlogin(a.tgt,$.trim(account.val()));var d=encodeURIComponent(a["cerpreg-passport"]);/lenovo\.com\.cn|lenovouat\.cn/.test(c)?(util.cookie.set("ar","2",null,"."+c),loginAction(d)):$.getScript("//reg."+c+"/auth/set_cookie?cookie="+d+"&domain="+c+"&ar=2",function(){loginAction(d)})}else{if("1"==b&&a.errcode&&"201"==a.errcode||(tip.find("p").html(a.msg).end().show(),pwd.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete")),needCaptcha)return initLenovoPassportSlider("slider_dialog","btnCancle_dialog1",!0),void(sliderFlag1=!1);"false"==a.isshowpic&&(initLenovoPassportSlider("slider_dialog","btnCancle_dialog1",!0),needCaptcha=!0,sliderFlag1=!1)}},function(){clicktag=!1,account.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete"),submit.html("登录超时,请稍后重试"),sliderFlag1=!1})},quickLogin=function(){var a,b=passport.rootElement.find(".persistent"),c=$.trim(m_account.val()),d=$.trim(mcode.val());return a=b.length?b[0].checked?"1":"0":1,/^\s+$/.test(c)?(tip.find("p").html("手机号码不能为空").end().show(),m_account.addClass("error_bg").focus(),void(clicktag=!1)):/^1[3-9]\d{9}$/.test(c)?/^\s*$/.test(d)?(tip.find("p").html("验证码不能为空").end().show(),mcode.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete"),void(clicktag=!1)):persistent.hasClass("checked")?(window.sensors2022_05_16&&window.sensors2022_05_16.track("loginButtonClick",{forward_page_url:document.location.href,login_type:"快捷登录"}),void $.getScript("https://reg.lenovo.com.cn"+"/auth/v1/fastlogin?ticket="+passport.ticket+"&account="+c+"&captcha="+d+"&ps="+a+"&callback=doFastLogin&applicationPlatform=1&shopId=1&os=web&deviceId="+window.deviceId_shumei+"&websiteCode="+encodeURIComponent(window.websiteCode)+"&websiteName="+encodeURIComponent(window.websiteName)+"&forwardPageUrl="+encodeURIComponent(document.location.href),function(){})):($(".login_dialog_info").show(),void(clicktag=!1)):(tip.find("p").html("手机号码格式不正确").end().show(),m_account.addClass("error_bg").focus().parent().find(".icon-clear").addClass("icon-err-delete"),void(clicktag=!1))},loginAction=function(a,b){var c;(c=passport.loginRedirect)?location.href=util.absolutizeURI(location.href,c):($(".ppWrapper").remove(),$(".ppMask").hide(),loginType=0,parseCookie(),b&&lid.lidlogin(b,passport.cookie.loginName),flRequest(passport.cookie.lenovoId),window.sensors2022_05_16&&window.sensors2022_05_16.login(passport.cookie.lenovoId),passport.drawUserInfo&&passport.drawUserInfo(),passport.login&&passport.login(),passport.callbacks.fire(),pullCookie(a))},isShitJump=function(){var a=passport.login&&passport.login.toString(),b=passport.logout&&passport.logout.toString(),c=passport.drawUserInfo&&passport.drawUserInfo.toString(),d=/location\.href|reload\(/;return d.test(a)||d.test(b)||d.test(c)},pullCookie=function(a){var b="lenovo.com.cn,thinkpad.com,youdemai.com,lenovo.com".split(","),c=(location.protocol,""==a?"clear_cookie?":"set_cookie?cookie="+a+"&");$.each(b,function(a,b){b!=document.domain&&"baiying.cn"!=b&&((new Image).src="thinkworld.com.cn"==b?"http://reg."+b+"/auth/"+c+"domain="+b:"17.lenovouat.com"==b?"https://bysso."+b+"/auth/"+c+"domain="+b:"youdemai.com"==b?"//reglenovo."+b+"/auth/"+c+"domain="+b:"//reg."+b+"/auth/"+c+"domain="+b)})},createLeID=function(){var a=util.cookie.get("leid")||"",b="1.";if(0!=a.indexOf(b)){var c=document.createElement("iframe");c.style.cssText="display:none",c.src="//"+"reg.lenovo.com.cn"+"/auth/anonymous",$("body").append(c)}},loadStyle=function(a,b){var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=a,document.getElementsByTagName("head")[0].appendChild(c),c.onload=c.onreadystatechange=function(){this.readyState&&!/loaded|complete/.test(this.readyState)||(b&&b(),c.onload=c.onreadystatechange=null)}},DefaultTicket={toc_pc:"e40e7004-4c8a-4963-8564-31271a8337d8",toc_wap:"b044d754-bda2-4f56-9fea-dcf3aecfe782",tob_pc:"50690e2e-bf8e-4aeb-a8b1-7a03537d1927",tob_wap:"eeec5eed-c456-449b-887d-54526c44b557",biz_sol_pc:"fd99c0db-0720-4512-a570-5bfaae21557a",biz_sol_wap:"26a31199-0a90-4c1e-b59a-af17a7b84315"},getDefaultTicket=function(a,b){return a?"biz"===b||"sol"===b||"xcloud"===b?DefaultTicket.biz_sol_pc:DefaultTicket.tob_pc:DefaultTicket.toc_pc},getParamFromUrl=function(a){var b=location.hash||location.search;if(!b||-1==b.indexOf("?"))return"";var c=new Object;if(-1!=b.indexOf("?")){var d=b.split("?");d.shift();for(var e=d.join("?").split("&"),f=0;f20)return console.warn("未获取到数美SDK......"),void(n=0);if(1==window.mySmcpJs&&1==window.smcpJs)return void window.myInitSMCaptcha(smVarityInit);if(1==window.mySmcpJs&&!window.smcpJs||o)return void(m=setTimeout(function(){p()},500));var a="";if(h)a="https://m1.lefile.cn/shumei/my_smcp.js";else{if(!j)return;a="https://m1.lenovouat.com/shumei/my_smcp.js"}b(a,p),o=!0};isLoadSMSdk()&&p();var q=null,r=0,s=function(b){clearTimeout(q),++r;var c=r>20;if(window._la_lenovo_website||c){r=0;var d=window._la_lenovo_website||"10000001";window.websiteCode=d,window.websiteName=a(d),sensors2022_05_16.registerPage({plat_form:"联想官网pc",member_type:window.passport&&window.passport.cookie?window.passport.cookie.isLenovo&&"1"==window.passport.cookie.isLenovo?"B端会员":"C端会员":"",sdk_name:"JavaScript",website_cd:window.websiteCode,website_name:window.websiteName,itemid:window.passport&&window.passport.cookie&&window.passport.cookie.groupCode?window.passport.cookie.groupCode:"",sensors_cookie:b,lenovo_cookie:e("LA_C_C_Id")}),console.warn("sensors registerPage success......");if(["item.lenovo.com.cn/product/","tk.lenovo.com.cn/product/","b.lenovo.com.cn/product/","item.lenovouat.com/product/","b.lenovouat.com/product/","tk.lenovouat.com/product/","mitem.lenovo.com.cn/product/","bm.lenovo.com.cn/product/","mitem.lenovouat.com/product/","bm.lenovouat.com/product/"].some(function(a){return window.location.href.toLocaleLowerCase().indexOf(a)>-1})){var f=window.location.href.split("/").pop().split(".").shift();sensors2022_05_16.quick("autoTrack",{goods_id:f,anonymousID:b,passport:window.passport&&window.passport.cookie&&window.passport.cookie.lenovoId?window.passport.cookie.lenovoId:""})}else sensors2022_05_16.quick("autoTrack",{anonymousID:b,passport:window.passport&&window.passport.cookie&&window.passport.cookie.lenovoId?window.passport.cookie.lenovoId:""})}else q=setTimeout(function(){s(b)},500)}}),passport.loginAction=loginAction,passport.pullCookie=pullCookie,passport}),function(a){var b=Util,c=LenovoId;a(function(){var d=(document.body.scrollWidth,document.body.scrollHeight);0==d&&(d=document.documentElement.scrollHeight);var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="//"+"reg.lenovo.com.cn",t=/^(?:1[34578]\d{9}|[a-z0-9-_\\.]+@([a-z0-9-]+[\\.]{1})+[a-z0-9-]+)$/i,u=/(?!^(\d+|[a-zA-Z]+|[~!@#$%^&*?\.>\-\=\+<\(\),\[\];:\/]+)$)^[\w~!@#$%^&*?\.>\-\=\+<\(\),\[\];:\/]{8,20}$/,v=function(){h.hide(),g.hide(),a(".rr_account_placeholder").length&&(a(".rr_account_placeholder").remove(),a(".rr_pwd_placeholder").remove())},w='

欢迎注册联想会员

换一张

',x='

找回密码  >>第一步

账号:

验证码:

换一张
',y={error:function(b){switch(b){case"0":a(".errorAccount").html('

请输入正确格式的账号

');break;case"1":a(".errorPwd").html('

密码长度8-20位

');break;case"2":a(".errorPwd").html('

密码至少包含数字、字母、字符其中的2种

');break;case"3":a(".errorRepwd").html('

确认密码和密码不一致,请重新输入

');break;case"4":a(".errorCaptcha").html('

输入的验证码不对,请重新输入

');break;case"5":a(".errorCaptcha").html('

输入的验证码过期,请重新获取

');break;case"6":a(".errorAccount").html('

账号已存在

');break;case"7":a(".errorAccount").html('

账号不存在

');break;case"8":a(".errorAccount").html('

账号不能为空

');break;case"9":a(".errorCaptcha").html('

验证码不能为空

');break;case"10":a(".errorPwd").html('

密码不能为空

');break;case"11":a(".errorAccount").html('

正在校验账号...

');break;case"12":a(".errorCaptcha_code").html('

验证码格式错误

');break;case"13":a(".errorCaptcha_code").html('

验证码不能为空

');break;case"14":a(".errorCaptcha").html('

手机验证码不能为空

')}},account:function(b){var c=i.val();return i.cacheVal!=c&&(i.cacheVal=c,/^\s*$/.test(c)?y.error("8"):"recover"!=b||t.test(c)?b&&"recover"!=b&&!/^(?:1[34578]\d{9})$/i.test(c)?y.error("0"):("recover"==b?(a.getScript(s+"/auth/validateAccount?account="+c+"&callback=response.authAccountRecover"),/^(?:1[34578]\d{9})$/i.test(c)?(a(".password_inputc,.errorCaptcha").show(),a(".password_inputd,.errorPwd").show(),a(".password_inpute,.errorRepwd").show()):(a(".password_inputc,.errorCaptcha").hide(),a(".password_inputd,.errorPwd").hide(),a(".password_inpute,.errorRepwd").hide())):a.getScript(s+"/auth/validateAccount?account="+c+"&callback=response.authAccount"),void y.error("11")):y.error("0"))},pwd:function(){var b=j.val();return/^\s*$/.test(b)?void y.error("10"):b.length<8||b.length>20?void y.error("1"):u.test(b)?(a(".errorRepwd").html(""),void a(".errorPwd").html("")):void y.error("2")},repwd:function(){if(k.val()!=j.val())return void y.error("3");a(".errorRepwd").html("")},captcha_code:function(){var b=l.val();return/^\s*$/.test(b)?(y.error("13"),!1):/^[0-9a-zA-Z]{4,}$/.test(b)?(a(".errorCaptcha_code").html(""),!0):(y.error("12"),!1)},captcha:function(){return/^\s*$/.test(p.val())?(y.error("14"),!1):(a(".errorCaptcha").html(""),!0)},validate:function(){return!(a(".errorAccount .error").length>0)&&(this.account(),this.pwd(),this.repwd(),this.captcha_code(),this.captcha(),g.find(".chk")[0].checked?!g.find(".error").length:(a(".errorCaptcha").html("

请确认已阅读相关协议政策

"),!1))},validateRecover:function(b){return!(a(".errorAccount .error").length>0)&&(this.account("recover"),this.captcha_code(),b&&(this.captcha(),this.pwd(),this.repwd()),!g.find(".error").length)}},z={getPicCode:function(){var b=i.val();a.getScript(s+"/captcha/pic/show?mobile="+b+"&callback=response.getEmailCaptCode")},getPicCaptcha:function(){m.attr("src","//"+"captcha.lenovo.com.cn"+"/img?"+(new Date).getTime())},getMobileCodeForRegist:function(){f=0,clearInterval(e),o.removeAttr("disabled").html("获取手机验证码"),A()},getMobileCodeForRecover:function(){f=0,clearInterval(e),o.removeAttr("disabled").html("获取手机验证码"),A("c")}},A=function(b){if(!(a(".errorAccount .error").length>0||(y.captcha_code(),a(".errorCaptcha_code .error").length>0))){var c=i.val(),d=l.val();/^\s*$/.test(c)||C.isDefault&&a(".errorAccount .error").length||g.find(".tip .error").length||"disabled"!=o.attr("disabled")&&(b?a.getScript(s+"/captcha/ecssend?mobile="+c+"&piccode="+d+"&callback=response.getMobileCaptCode"):a.getScript(s+"/captcha/cansend?mobile="+c+"&piccode="+d+"&callback=response.getMobileCaptCode"))}},B={authAccount:function(b){"1"==b?y.error("6"):a(".errorAccount").html("")},authAccountRecover:function(b){"0"==b?y.error("7"):a(".errorAccount").html("")},getEmailCaptCode:function(a){var b="data:image/png;base64,"+a;m.attr("src",b)},getMobileCaptCode:function(b){"0"!=b.ret?(a(".errorCaptcha_code").html("

"+b.msg+"

"),z.getPicCaptcha()):(o.attr("disabled","disabled").html("60秒后重新获取"),e=setInterval(function(){60==f?(clearInterval(e),o.removeAttr("disabled").html("获取手机验证码")):(o.html(60-f+"秒后重新获取"),f++)},1e3))}},C={submit:function(){var d={account:i.val(),password:j.val(),captcha:p.val(),ticket:q};y.validate()&&(i.attr("disabled","disabled"),j.attr("disabled","disabled"),k.attr("disabled","disabled"),p.attr("disabled","disabled"),l.attr("disabled","disabled"),r.attr("disabled","disabled"),a(".errorCaptcha").html('

正在注册,请稍后...

'),b.simulateFormSubmit("https://reg.lenovo.com.cn"+"/auth/v3/doregist",d,function(d){var e=d.ret,f=b.getDomain(passport.loginRedirect||document.URL);if(i.removeAttr("disabled"),j.removeAttr("disabled"),k.removeAttr("disabled"),p.removeAttr("disabled"),r.removeAttr("disabled"),l.removeAttr("disabled","disabled"),"0"==e){c.lidlogin(d.tgt,i.val());var h=encodeURIComponent(d["cerpreg-passport"]);/lenovo\.com\.cn|lenovouat\.cn/.test(f)?(v(),passport.loginAction(h)):a.getScript("//reg."+f+"/auth/set_cookie?cookie="+h+"&domain="+f,function(){v(),passport.loginAction(h)})}else g.find(".errorCaptcha").html('

'+d.msg+"

")},function(){i.removeAttr("disabled"),j.removeAttr("disabled"),k.removeAttr("disabled"),p.removeAttr("disabled"),r.removeAttr("disabled"),a(".errorCaptcha").html('

注册超时,请稍后重试

')}))},init:function(c){if(!(q="string"==typeof c?c:c.ticket))throw new Error("缺少ticket");a("#ppInfo").length||a("body").append('
'),g=a("#ppInfo"),h=a("#ppMask"),g.css("width","429px"),g.css("marginLeft","-215px"),g.html(w),h.show(),g.show(),g.find(".close").on("click",v),i=g.find(".account"),j=g.find(".pwd"),k=g.find(".repwd"),p=g.find(".captcha"),l=g.find(".captcha_code"),m=g.find(".img_captcha"),n=g.find(".img_captcha_tip"),o=g.find(".mobile_captcha"),r=g.find(".submit"),f=0,clearInterval(e),o.removeAttr("disabled").html("获取手机验证码"),z.getPicCaptcha(),i.focus(),b.simulatePlaceholder(i,"rr_account_placeholder",g),b.simulatePlaceholder(j,"rr_pwd_placeholder",g),i.on("blur",y.account),j.on("blur",y.pwd),k.on("blur",y.repwd),l.on("blur",y.captcha_code),m.on("click",z.getPicCaptcha),n.on("click",z.getPicCaptcha),o.on("click",z.getMobileCodeForRegist),p.on("keyup",function(a){13==a.keyCode&&C.submit()}),r.on("click",C.submit)},hide:function(){v()}},D={submit:function(){var b=a("#ppInfo .account").val(),c=a("#ppInfo .captcha").val(),d=a("#ppInfo .captcha_code").val(),e=a("#ppInfo .pwd").val();/^(?:1[34578]\d{9})$/i.test(b)?y.validateRecover("phone")&&a.getScript(s+"/pwd/updatepass?account="+b+"&mcaptcha="+c+"&password="+e+"&callback=recover.submitResponse"):y.validateRecover()&&a.getScript(s+"/pwd/findPassword?account="+b+"&captcha="+d+"&callback=recover.submitResponse")},submitResponse:function(b){var c=b.ret,d=a("#ppInfo .account").val();if(0==c){if(a(".password_one").hide(),g.css("marginLeft","-465px"),/^1[34578]\d{9}$/.test(d))a(".password_cont h1").html("恭喜您,重置密码成功!"),a(".password_btn a").html("请登录").on("click",function(){g.hide(),a(".ppWrapper").show(),a(".ppWrapper .login_main").find(".tip").html(""),a(".ppWrapper .login_title").find("h3").eq(0).hasClass("now")?a(".pwd_placeholder,.account_placeholder").show():a(".mcode_placeholder").show()}),a(".password_main").hide();else{var e="http://mail."+d.split("@")[1];a(".password_cont h1").html("恭喜您,重置链接已经发送到您的"+d+"邮箱,点击邮箱中的链接进行密码重置"),a(".password_btn a").attr("href",e)}g.css("width","930"),a(".password_two").show()}else/^1[34578]\d{9}$/.test(d)?g.find(".errorRepwd").html('

'+b.msg+"

"):g.find(".errorCaptcha_code").html('

'+b.msg+"

")},init:function(){a("#ppInfo").length||a("body").append('
'),g=a("#ppInfo"),h=a("#ppMask"),g.css("width","460px"),g.css("marginLeft","-230px"),g.html(x),h.show(),g.show(),i=g.find(".account"),p=g.find(".captcha"),l=g.find(".captcha_code"),j=g.find(".pwd"),k=g.find(".repwd"),m=g.find(".img_captcha"),n=g.find(".img_captcha_tip"),o=g.find(".mobile_captcha").removeAttr("disabled").html("获取手机验证码"),f=0,clearInterval(e),z.getPicCaptcha(),b.simulatePlaceholder(i,"rr_account_placeholder",g),setTimeout(function(){i.focus()},500),i.on("blur",function(){y.account("recover")}),m.on("click",z.getPicCaptcha),n.on("click",z.getPicCaptcha),o.on("click",z.getMobileCodeForRecover),j.on("blur",y.pwd),k.on("blur",y.repwd),l.on("keyup",function(a){y.captcha_code(),13==a.keyCode&&D.submit()}),p.on("keyup",function(a){13==a.keyCode&&D.submit()}),g.find(".submit").on("click",D.submit),g.find(".close").on("click",v)},hide:function(){v()}};window.regist=C,window.recover=D,window.response=B})}(jQuery);