define("/common/logindialog/4.0.x/tmpl",null,function(i,e,a){"use strict";return new(i("tmpl/2.0.x/"))({DIALOG_BOX:'
',OVER_LAYER:'',LOGIN_BOX:'',REGISTER_BOX:'',FORCEPHONE_LOGIN_BOX:'',FAST_LOGIN_BOX:'快速登录
其他合作帐号登录56网已不支持其他合作账号快速登录,如你已绑定手机号,请使用手机号登录,详情请联系客服。
',REG_SUCCESS:'',SYSTEM_ALERT:''})});
define("/common/logindialog/4.0.x/popup",null,function(e,o,d){"use strict";var r=e("dom/1.0.x/"),c=e("uadetector/1.0.x/"),f=e("./tmpl");return{showDialog:function _(e,o){var d=r("#loginPopupBox"),a=r(".mod56_overlayer");if(0==d.length){var n=document.createElement("link"),t=document.getElementsByTagName("HEAD").item(0);n.rel="stylesheet",n.href="//s3.56img.com/style/login/v5/css/popupbox_v.1.css?v=20150204",n.id="loginPopupBox",t.appendChild(n)}r("body").append(f.render("DIALOG_BOX")),0==a.length&&r("body").append(f.render("OVER_LAYER"));var l=r("#mod56LoginRegDialog"),i=r(".mod56_overlayer"),s=l.find(".mod56_main_box"),m=l.find(".mod56_lr_close");l.addClass(o),c.isDevice("pc")&&l.addClass("mod56_dialog_pc"),setTimeout(function(){c.isDevice("mobile")?(l.addClass("mod56_effect_mobile"),i.addClass("mod56_overlayer_effect_mobile")):(l.addClass("mod56_effect"),i.addClass("mod56_overlayer_effect"))},200),s.append(e),s.append(f.render("FAST_LOGIN_BOX")),m.on("click",function(e){e.preventDefault(),l.removeClass("mod56_effect"),i.removeClass("mod56_overlayer_effect"),setTimeout(function(){l.remove(),i.remove()},200)})},closeDialog:function a(e){var o=r("."+e);o.removeClass("mod56_effect"),setTimeout(function(){o.remove()},200)}}});
define("/common/logindialog/4.0.x/passport-loader",null,function(t,e,n){"use strict";var c={},i=-1'}),e={};return t.create(function(){},{_init:function(){a("#logoff_audit_dialog").remove();var i=this._options;e.dialog=a(l.render("DIALOG",{data:{message:i.message}})),a("body").append(e.dialog),e.dialog.find(".sigout_cancel").on("click",function(){"function"==typeof i.onClose&&i.onClose(),e.dialog.hide()}),e.dialog.find(".sigout_sure").on("click",function(){s.toCancel({token:i.cancelToken,uid:i.uid},function(){e.dialog.hide(),"function"==typeof i.onConfirm&&i.onConfirm()})})},popup:function(){e.dialog.show()}})});
/*!
* qf.56.com - v1.1 (2017-04-10T14:40:32+0800)
* Copyright 2005-2017 56.com
*/
define("/common/logindialog/4.0.x/bind-phone",null,function(o,i,t){"use strict";var n=o("dom/1.0.x/"),s=o("tmpl/2.1.x/"),d=o("./passport-loader"),e=o("./logoff-audit-ui"),m=new s({DIALOG:''});return{init:function(){this.reObj={reMobile:/^\d{11}$/}},initDom:function(){this.domObj={closeBtn:this.dialogObj.find(".close"),rowTel:this.dialogObj.find(".row_1"),rowYzm:this.dialogObj.find(".row_2"),inputTel:this.dialogObj.find(".input_mobile"),inputYzm:this.dialogObj.find(".input_yzm"),yzmBtn:this.dialogObj.find(".bp_d_btn_yzm"),yzmCountdown:this.dialogObj.find(".bp_d_countdown"),yzmCdTime:this.dialogObj.find(".bp_d_cd_time"),voiceYzm:this.dialogObj.find(".bp_d_voice_yzm"),voiceYzmBtn:this.dialogObj.find(".bp_d_btn_voice_yzm"),submitBtn:this.dialogObj.find(".bp_d_submit"),prompt:this.dialogObj.find(".bp_d_prompt"),promptTxt:this.dialogObj.find(".bp_d_prompt_txt"),promptClose:this.dialogObj.find(".bp_d_prompt_close")}},initEvent:function(){var n=this;this.dialogObj&&(this.domObj.inputTel.on("focus",function(){n.domObj.rowTel.addClass("row_active")}).on("blur",function(){return n.domObj.rowTel.removeClass("row_active"),n.domObj.inputTel.val().trim()?n.reObj.reMobile.test(n.domObj.inputTel.val().trim())?void n.checkPhone({log:0,success:function(o,i){n.domObj.inputTel.val().trim()?n.domObj.yzmBtn.removeClass("disa"):n.domObj.yzmBtn.addClass("disa")},error:function(o){var i=o.status,t="";421===i?t="操作频繁,1小时只能校验5次":450===i?t="手机号为空":463===i&&(t="该手机号绑定帐号数量已达上限"),n.prompt(t),n.domObj.yzmBtn.addClass("disa")}}):(n.prompt("请输入正确的手机号"),n.domObj.yzmBtn.addClass("disa"),!1):(n.prompt("请输入手机号"),n.domObj.yzmBtn.addClass("disa"),!1)}),this.domObj.inputYzm.on("focus",function(){n.domObj.rowYzm.addClass("row_active")}).on("blur",function(){n.domObj.rowYzm.removeClass("row_active")}),this.domObj.yzmBtn.on("click",function(){n.domObj.yzmBtn.hasClass("disa")||n.getCaptcha(0)}),this.domObj.voiceYzmBtn.on("click",function(){n.getCaptcha(1)}),this.domObj.closeBtn.on("click",function(){n.closeDialog()}),this.domObj.promptClose.on("click",function(){n.hidePrompt()}),this.domObj.submitBtn.on("click",function(){n.submit()}))},checkPhone:function(t){var o=this.domObj.inputTel.val().trim(),i=t.log||0;d.checkMobile({params:{mobile:o,log:i},success:function(o,i){t.success&&t.success(o,i)},error:function(o){t.error&&t.error(o)}})},showDialog:function(o){this._options=o,this.dialogObj=n(m.render("DIALOG")),this.init(),this.initDom(),this.initEvent(),n("body").append(this.dialogObj)},closeDialog:function(){this.dialogObj&&this.dialogObj.remove()},getCaptcha:function(t){var n=this,o=this.domObj.inputTel.val();t=t||0;if(!this.reObj.reMobile.test(o))return this.prompt("手机号格式不正确"),!1;var i={params:{mobile:o,way:t},success:function(o,i){if(n.hideYzmBtn(),n.showYzmCountdown(),1===t){n.prompt("语音验证码 已发送,请注意接听电话")}n.countdown({wrap:n.domObj.yzmCdTime,time:60,fn:function(){n.hideYzmCountdown(),n.showYzmBtn()}})},error:function(o){var i=o.status,t="";if(474===i)return n.getCaptcha(1),!1;t=400===i?"非法请求":421===i?"验证码发送次数太多":450===i?"参数错误":461===i?"手机号格式不正确":500===i?"服务器繁忙":"异常错误",n.prompt(t)}};d.getBindPhoneCaptcha(i)},showYzmBtn:function(){this.domObj.yzmBtn.removeClass("hide")},hideYzmBtn:function(){this.domObj.yzmBtn.addClass("hide")},showYzmCountdown:function(){this.domObj.yzmCountdown.addClass("show")},hideYzmCountdown:function(){this.domObj.yzmCountdown.removeClass("show")},countdown:function(o){clearInterval(this.countdownTimer);var i=this,t=o.wrap,n=o.time;this.countdownTimer=setInterval(function(){-1<--n?t.html(n):(clearInterval(i.countdownTimer),o.fn&&"function"==typeof o.fn&&o.fn())},1e3)},submit:function(){var n=this,o=this.domObj.inputTel.val(),i=this.domObj.inputYzm.val();if(!o.trim())return this.prompt("请输入手机号"),!1;if(!i.trim())return this.prompt("请输入短信验证码"),!1;var t={params:{mobile:o,smcode:i,ru:n._options.ru},success:function(o,i){n._options.callback&&"function"==typeof n._options.callback&&n._options.callback()},error:function(o){var i=o.status,t="";401===i?(n.closeDialog(),new e({onClose:function(){},onConfirm:function(){location.reload()},cancelToken:o.body.token,uid:o.body.account,message:o.body.msg}).popup()):t=422===i?"请输入正确的手机验证码":42201===i?"验证码不存在或已过期":427===i?"安全手机绑定上限":450===i?"手机号或验证码为空":462===i?"当前帐号已绑定过登录手机":482===i?"操作超时":500===i?"服务器繁忙":"异常错误";n.prompt(t)}};d.bindPhone(t)},prompt:function(o){var i=this;this.showPrompt(o),this.promptTimer=setTimeout(function(){i.hidePrompt()},3e3)},showPrompt:function(o){clearTimeout(this.promptTimer),o&&this.domObj.promptTxt.html(o),this.domObj.prompt.addClass("show")},hidePrompt:function(){clearTimeout(this.promptTimer),this.domObj.prompt.removeClass("show")}}});
/*!
* qf.56.com - v1.1 (2021-12-20T11:40:32+0800)
* Copyright 2005-2021 56.com
*/
define("/common/logindialog/4.0.x/set-password",null,function(s,e,o){"use strict";var t=s("dom/1.0.x/"),a=s("ajax/1.2.x/"),d=s("crypto/md5/1.0.x/"),n=s("/common/logindialog/4.0.x/passport-loader"),c=s("/common/user/1.0.x/"),p=new(s("tmpl/2.1.x/"))({SET_PASSWORD:'您还没有设置密码,请为您的账户设置密码
<% if(forceSetPwd == 1) { %>
<% } %>
确定
',CODE:'<% if(countdown > 0) { %>重新发送<%- countdown %>s
<% } else { %>获取验证码
<% } %>'}),i={$setPassword:null,$code:null},r={data:{countdown:0,mobile:null,mobileShow:null,forceSetPwd:null},init:function(e){var s=Date.now(),o=c.userId();a.send({url:"https://sso.56.com/common/v1/info.do",data:{plat:"56_pc",ts:s,uid:o,signature:d.hex("plat=56_pc&ts="+s+"&uid="+o+"NOIANCAwqjnsdaufam(!#njA")},withCredentials:!0,nocache:!1,method:"POST",dataType:"json",onsuccess:function(s){l.forceSetPwd=s.data.forceSetPwd,0!=l.forceSetPwd&&(1==l.forceSetPwd&&"refresh"==e||(l.mobile=s.data.mobile,l.mobileShow=l.mobile.replace(/(?=\d{8}$)\d{4}/,"****"),i.$setPassword=t(p.render("SET_PASSWORD",l)),t("body").append(i.$setPassword),i.$captcha=i.$setPassword.find(".sp_captcha"),i.$newpwd=i.$setPassword.find(".sp_newpwd"),i.$newpwd2=i.$setPassword.find(".sp_newpwd2"),i.$code=i.$setPassword.find(".sp_code"),i.$code.html(p.render("CODE",l)),r.bindEvent()))}})},bindEvent:function(){i.$setPassword.on("click",function(s){n.getSecmobileCaptcha({params:{mobile:l.mobile,captchaType:1},success:function(s,e){i.$captcha.focus(),r.countLoop()}})},{delegator:".sp_code_btn"}),i.$setPassword.on("click",function(s){r.destory()},{delegator:".sp_close_btn"}),i.$setPassword.on("click",function(s){var e=i.$captcha.val(),o=i.$newpwd.val(),t=i.$newpwd2.val();i.$setPassword.find(".sp_info_error").removeClass("sp_info_error"),o!=t&&(i.$newpwd2.parent().addClass("sp_info_error"),i.$newpwd2.focus()),(o.length<8||16'+n+''):(o.find(".lr_err_txt").html(n),o.show())},warnMsg:function(e,n){e.parent().addClass("input_box_ipt_red");var o=e.parent().find(".lr_err_msg");e.parent().find(".lr_ok_msg").hide(),0==o.length?e.parent().append(''+n+'
'):(o.find(".lr_err_txt").html(n),o.show())},okMsg:function(e,n){e.parent().removeClass("input_box_ipt_red");var o=e.parent().find(".lr_err_msg"),i=e.parent().find(".lr_ok_msg");o.hide(),0==i.length?e.parent().append(''+n+'
'):i.show()},lockMsg:function(e,n){var o=e.parent().find(".lr_err_msg"),i=e.parent().find(".lr_ok_msg"),a=e.parent().find(".lr_lock_msg");i.hide(),o.hide(),0==a.length?e.parent().append(''+n+"
"):(a.find(".lr_lock_txt").html(n),a.show())},codeErrMsg:function(e){g("#regCodeRow").find(".check_code_error_span").html(e)},codeLoginErrMsg:function(e){v.errMsg(g("#loginCodeForcePhone"),e)},unLock:function(e){e.parent().find(".lr_lock_msg").hide()},initCodeImg:function(e,n){var o=n.val().trim();o=v.regexAdd56Com(o);var i=m.buildRegPicUrl();e.attr("src",i)},showPicCodePop:function(){var e=g("#regCodeRow"),n=g("#serialImgLogin");v.refreshRegCode(n),e.show(),this.regCodePopOverlayer||(this.regCodePopOverlayer=g('')),e.after(this.regCodePopOverlayer)},hidePicCodePop:function(){g("#regCodeRow").hide(),this.regCodePopOverlayer&&this.regCodePopOverlayer.remove(),M.hideVoiceYzm()},refreshRegCode:function(e){var n;if((n=e||g("#serialImgLogin"))&&0'),e.parent().removeClass("input_box_ipt_red"),e.parent().find(".lr_ok_msg").hide(),e.parent().find(".lr_err_msg").hide()},removeLoading:function(e){e.parent().find(".lr_loding_gif").remove()}},isPageLoad:function(e,n){"undefined"!=typeof _page_&&"undefined"!=typeof _page_.channel&&_page_.channel==n&&e()},changeDialog:function(n,o){g(".login_reg_mod").find(".link_txt,.go_login").on("click",function(e){e.preventDefault(),a.closeDialog("mod56_"+n+"_dialog"),setTimeout(function(){o()},200)})},loginSuccess:function(){window._page_&&window._page_.ourl&&(location.href=window._page_.ourl),v.closeDialog(),"function"==typeof onLoginSucces&&onLoginSucces(),"undefined"!=typeof f2e_fn&&(document.getElementById("sys_info").innerHTML=v.showHeader(),f2e_fn.loginSucCallbackInit()),v.checkUserIp(),l.init("login")},showHeader:function(){var e="";if("object"==typeof moduleHF)return e+=hf_option.loginInfoHTML(),e+=hf_option.msgPopupHTML();try{var n=''+(decodeURIComponent&&_.getCookie("user_nickname_js").length?decodeURIComponent(_.getCookie("user_nickname_js")):_.getUserid())+"",o=-1==_.getCookie("member_id").indexOf("@")?_.getCookie("member_id"):_.getCookie("member_id").substring(0,_.getCookie("member_id").indexOf("@"));""==usr.user_id()?e+='':(e+='',e+='","object"==typeof h_f_v3?e+=h_f_v3.msgPopupHTML():"undefined"!=typeof hf_option&&(e+=hf_option.msgPopupHTML()))}catch(i){e+=''}return e},closeDialog:function(e){var n=g("#mod56LoginRegDialog"),o=g(".mod56_overlayer");n.removeClass("mod56_effect"),n.removeClass("mod56_overlayer_effect"),setTimeout(function(){o.remove(),n.remove(),"function"==typeof e&&e()},200)},regLoading:function(){var e=g("#mod56LoginRegDialog,.mod56_register"),n=e.find(".lr_login_reg_btn");n.find("a").html(""),e.append(''),n.append('')},removeRegLoading:function(){var e=g("#mod56LoginRegDialog,.mod56_register"),n=e.find(".lr_login_reg_btn");n.find("a").html("注册"),e.find(".mod56_reg_overlayer").remove(),n.find(".reg_loding_gif").remove()},sendLoading:function(){var e=g(".mod56_account_bind"),n=g(".account_send_btn");n.html(""),e.append(''),n.append('')},onkeydown:function(e,n){g(".h_site_login").keydown(function(e){13==e.keyCode&&e.preventDefault()}),g("#"+e).keydown(function(e){13==e.keyCode&&n()})},changeDialogStyle:function(e,n){var o=g("#mod56LoginRegDialog");o.animate({"margin-top":n+"px",height:e+"px"}),o.find(".mod56_main_box").animate({height:e+"px"})},checkUserIp:function(){s.jsonp(d.CHECK_USER_IP,{onsuccess:function(e){if(1===e.isExpIp){g("body").append(r.render("SYSTEM_ALERT"));var n=g("#mod56DialogAlert"),o=n.find(".close_alert"),i=g(".mod56_overlayer");o.click(function(e){e.preventDefault(),n.remove(),i.remove()})}}})},submitRegForm:function(i,a,t){var e=h+"//sso.56.com/pc/login_v2.do",n={params:{mobile:i.val().trim(),password:a.val().trim(),smcode:t.val().trim(),ru:e+"?deviceId="},success:function(e){window.regMobileDone()},error:function(e){var n=e.status,o=e.msg;422===n?v.errMsg(t,o):438===n?v.errMsg(a,o):v.errMsg(i,o),v.removeRegLoading()}};m.register(n)},submitLoginForm:function(e,n,o){var i=g("#loginForm").find('input[name="autoLogin"]'),a=e.val().trim(),t=n.val().trim(),r=o.val().trim(),s=i.val()?1:0;(function d(e){if(f)try{console.log(e)}catch(n){}})(a=v.regexAdd56Com(a));var l=h+"//sso.56.com/pc/login_v2.do?deviceId=",c={params:{userid:a,password:t,captcha:r,persistentcookie:s,ru:l},success:function(e,n){window.login_box_success_v2()},error:function(e){var n=e.status;if(v.refreshCode("56_login"),465===n){var o=g(".lr_check_code"),i=g(".mod56_login_wrap");o.show(),0去登录?';else a="已被使用了";s.jsonp(d.CHECK_EMAIL,{data:{account:n.val()},onsuccess:function(e){v.loading.removeLoading(n),e.result?(v.okMsg(n,"记得去验证"),C.emailAccountFlag=!0,C.emailValFlag!=n.val()&&b.effect(!0)):(v.errMsg(n,a),C.emailAccountFlag=!1,1==o&&v.changeDialog("reg",show_login),b.effect(!1))}})},emailAccountCheck:function(e){var n=e.val().trim(),o=C.emailRegex(n);""==n?(v.errMsg(e,"请填写邮箱"),C.emailAccountFlag=!1,b.effect(!1)):o||(v.errMsg(e,"请填写邮箱地址"),C.emailAccountFlag=!1,b.effect(!1))},emailRegex:function(e){return/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}},k={passWordFlagA:"",bindPassWord:function(n,e){var o=n.parent().find(".tips_tit"),i=o.html();function a(e){k.AuthPasswd(e.trim()),k.passRegex(e)&&v.errMsg(n,"只能是数字和字母")}n.on("blur",function(){k.passWordCheckA(n),o.html(i),v.unLock(g(this))}),n.on("focus",function(){k.onKeyPress(n),o.html("6-20个数字或字母,区分大小写"),e.show()}),n.on(p,function(){a(g(this).val())}),t.isBrowser("ie")&&n.on("keyup",function(e){"8"==e.keyCode&&a(g(this).val())})},bindPassWordNormal:function(e){e.on("blur",function(){k.passWordCheckA(e)})},passWordCheckA:function(e){var n=e.val(),o=k.passRegex(n);""==n?(v.errMsg(e,"请填写密码"),k.passWordFlagA=!1):n.length<8?(v.errMsg(e,"不能少于8个字符哦"),k.passWordFlagA=!1):2060s)'),M.intervalidTimer(59,o,r,i),v.codeFlag=!1,v.hidePicCodePop()},error:function(e){var n=e.status,o="";400===n?o="非法请求":420===n?o="图片验证码错误":421===n?o="验证码发送次数太多":450===n?o="参数错误":461===n?o="手机号格式不正确":463===n?o="该手机号码已被绑定过":474===n?(o="只能发送语音验证码",t.showVoiceYzm()):500===n&&(o="服务器繁忙"),v.refreshRegCode(i),M.sendBtnFlag=!1,v.codeErrMsg(o)}})},sendLoginPhoneCode:function(e,n,o,i,a){var t=e,r=t.val(),s=n.val();a=a||0;m.getSignInCaptcha({params:{mobile:r,way:a,captcha:s},success:function(e,n){M.sendBtnFlag=!0,o.addClass("send_code_mobile_gray"),o.html('重新发送(60s)'),M.intervalidTimer(59,o,t,i),v.codeFlag=!1,v.hidePicCodePop()},error:function(e){var n=e.status,o="";400===n?o="非法请求":420===n?o="图片验证码错误":421===n?o="验证码发送次数太多":450===n?o="参数错误":461===n?o="手机号格式不正确":463===n?o="该手机号码已被绑定过":474===n?(g("#forcephone_voice_code").show(),o="只能发送语音验证码"):500===n&&(o="服务器繁忙"),v.refreshRegCode(i),M.sendBtnFlag=!1,v.codeLoginErrMsg(o)}})},showVoiceYzm:function(){this.voiceYzmRol||(this.voiceYzmRol=g("#regPopVoiceYzm")),this.voiceYzmRol.addClass("show")},hideVoiceYzm:function(){this.voiceYzmRol||(this.voiceYzmRol=g("#regPopVoiceYzm")),this.voiceYzmRol.removeClass("show")},intervalidTimer:function(e,n,o,i){var a,t=e;a=setInterval(function(){var e=n.find("#regMinNumBtn");0==t&&(clearInterval(a),n.removeClass("send_code_mobile_gray"),n.html("发送手机验证码"),v.refreshRegCode(i),M.sendBtnFlag=!1),e.html(t+"s"),t--},1e3)}};return window.checkUserSafeStatusResult=function(e){var n=g(".lr_check_code"),o=g(".mod56_login_wrap"),i=g("#loginUserName");e?(n.hide(),0请阅读并同意条款')}i.on("click",function(o){o.preventDefault(),u("#privacyCheckbox").hasClass("login_checkbox_selected")?d({tag:"qzone"}):e()}),t.on("click",function(o){o.preventDefault(),u("#privacyCheckbox").hasClass("login_checkbox_selected")?d({tag:"sina"}):e()}),a.on("click",function(o){o.preventDefault(),d({tag:"renren"})}),l.on("click",function(o){o.preventDefault(),d("qq",form)}),c.on("click",function(o){o.preventDefault(),d({tag:"wy"})}),r.on("click",function(o){o.preventDefault(),d({tag:"baidu"})})}()},closePopWindow:function(){s&&s.close()}}}();return window.login_success=function(o){var e=o.status;if(200===e)"popbox"==a.fromFlag||"undefined"!=typeof weibo?a.effect.loginSuccess():"page"==a.fromFlag&&"undefined"!=typeof _page_&&"undefined"!=typeof _page_.ourl&&(window.location.href=_page_.ourl);else if(461===e){a.effect.closeDialog();var n={ru:_+"?deviceId=",callback:function(){l.closeDialog(),a.effect.loginSuccess()}};l.showDialog(n)}else if(401===e){var i=new c({onClose:function(){},onConfirm:function(){location.reload()},cancelToken:o.body.token,uid:o.body.account,message:o.body.msg});a.effect.closeDialog(),i.popup()}else if(431===e)a.effect.closeDialog(function(){window.show_login_forcephone({passport:o.body.passport,mobile:o.body.mobile})});else{var t="";t=400===e?"缺少所需的cookie":404===e?"用户名或密码错误":420===e?"图片验证码不正确":422===e?"手机验证码不正确":423===e?"账户未设置密码":450===e?"用户名或密码为空":453===e?"账号登录失败超过5次":"登录授权失败,请重新尝试!",alert(t)}},window.set_user_info=function(o){var n='';if("page"==a.fromFlag)t.showDialog("","mod56_account_info"),setTimeout(function(){var o=u("#mod56LoginRegDialog"),e=o.find(".mod56_main_box");e.html(""),e.append(n),o.find(".mod56_lr_extra").hide()},300);else if("popbox"==a.fromFlag){var e=u("#mod56LoginRegDialog"),i=e.find(".mod56_main_box");e.find(".mod56_lr_extra").hide(),i.html(""),e.addClass("mod56_account_info"),i.append(n)}},{effect:i}});
define("/common/logindialog/4.0.x/register-module",["dom/1.0.x/","ajax/1.0.x/","tmpl/2.0.x/","uadetector/1.0.x/","tmpl/2.1.x/","widget/1.0.x/","ajax/1.2.x/"],function(e,o,n){"use strict";var v=e("dom/1.0.x/"),w=(e("ajax/1.0.x/"),e("./tmpl")),i=e("./popup"),r=e("./login-other"),c=e("uadetector/1.0.x/"),C=e("./base");try{document.domain="56.com"}catch(f){}var t=function(){var i,r,c,t,f,l,a,g,d,s,m,u,_;function b(){C.mobile.codeCheck(a),function n(){var e=g.find(".login_checkbox_ico"),o=v(".forgot_psw_link");s=e.hasClass("login_checkbox_selected")?(o.html(""),!0):(o.html('请阅读并同意条款'),!1)}(),C.mobile.accountCheck(c),C.passWord.passWordCheckA(t,m),C.mobile.accountFlag&&C.passWord.passWordFlagA&&C.mobile.phoneFlag&&s&&(c.val(),C.effect.submitRegForm(c,t,a),C.effect.regLoading())}return{init:function h(){C.effect.codeFlag=!1,function e(){i=v(".login_reg_mod"),r=i.find("#regUserName"),c=i.find("#regMobileAccount"),t=i.find("#regPassWordA"),i.find("#regPassWordB"),f=i.find("#loginCode"),l=i.find("#serialImgLogin"),a=i.find("#phoneCode"),u=i.find("#sendMobileCode"),d=i.find("#regSubmit"),g=i.find(".remember_btn"),m=i.find(".lr_pwd_check"),_=i.find(".voice_yzm_btn")}(),C.mobile.bindMobile(c),C.mobile.bindMobileCode(a,c),C.passWord.bindPassWord(t,m),function o(){t.on("focus",function(){t.attr("type","password")}),d.on("click",function(e){e.preventDefault(),b()})}(),function n(){u.on("click",function(e){e.preventDefault(),C.mobile.sendBtnFlag||(C.mobile.accountCheck(c),C.mobile.accountFlag?""==c.val()?C.effect.errMsg(r,"请填写手机号码"):(f.val(""),C.effect.showPicCodePop()):C.effect.errMsg(a,"手机号不可用"))})}(),C.effect.bindCode(f,l,c,u,"56_reg_mobile"),C.effect.bindVoiceYzm(_,f,l,c,u),C.effect.generateRegAuth(c,"56_reg_mobile"),C.effect.onkeydown("regForm",b)},regSuccessLayer:function p(){var e=v("#mod56LoginRegDialog"),o=e.find(".mod56_main_box"),n=e.find(".mod56_reg_overlayer"),i=e.find(".mod56_lr_close");n.remove(),e.css("height","240"),o.html(w.render("REG_SUCCESS")),i.on("click",function(){C.effect.loginSuccess()}),function r(e,o){var n,i=e;n=setInterval(function(){var e=v("#regMinNum");0==i&&(o(),clearInterval(n)),e.html(i),i--},1e3)}(2,C.effect.loginSuccess)},phoneCodeError:function n(e){var o=v(".mod56_login_reg").find(".lr_login_reg_btn");v(".mod56_reg_overlayer").remove(),o.find(".reg_loding_gif").remove(),o.find("#regSubmit").html("注册"),C.effect.errMsg(a,e)}}}();window.show_register=function(){0==v("#mod56LoginRegDialog").length&&(i.showDialog(w.render("REGISTER_BOX",{uadetector:c}),"mod56_reg_dialog"),C.effect.init(),t.init(),r.effect.init(),C.effect.changeDialog("reg",show_login),C.fromFlag="popbox")},window.regMobileDone=function(e){if("popbox"==C.fromFlag)t.regSuccessLayer();else if("page"==C.fromFlag){var o="//user.56.com/?action=reg&do=mobileDone"+(e?"&ourl="+e:"");location.replace(o)}},window.regShowMsg=function(e){"请输入正确的验证码"==e?t.phoneCodeError("验证码错误"):"验证码失效"==e&&t.phoneCodeError("验证码失效")},window.closeRegLayer=function(){C.effect.loginSuccess()},C.effect.isPageLoad(function l(){C.effect.init(),t.init(),r.effect.init(),C.fromFlag="page"},"reg")});