chunk-21568f78.1584585999803.js
26 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21568f78"],{"09eb":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPUAAAAoCAYAAAAmEbyUAAAIi0lEQVR4nO2de4xU9RXHP787j30NneWxLmUR2u5UMC0lGKBNViVQmzY1cXVBmzKhrSmGh1A0TeMLGqrWalsj8gi11oraMWllCZgqaLS0FjSAQhtsQJxq2W6FZRF2u7vD7NyZuf3jN3d3dpjdnd25M7Lb80luZu69v/s7d5P9zvk9z1GWZSEIwvBoDwZyLWoAc4H5wGzgCuDTgC91vwM4BZwA3gZeAw4DyYEq9YfCF11z5/pGgiAMiynAKiAITBqgXAkwAZgBLAR+BjQDzwKb0YLPCRG1IBSGy4AHgFsBT587SlnG2GpTTahRhq/SBZDsOJewzn5kJdvOeOltPU8G7gV+BDwJrAPODWZYRC0IzhMENgFj7QuqfIzpqav3eGYtwHXlHKW8Zd6MZwwAKxohcfwg5pG9mPt2xq1olxv9o7ASuAW4HfjDQMaV9KkFYfhk9Km9wK/Q3hkAY9xEs6Rhtcd7TQO4PZmPD4zZTeyNRqKNG+NW+9l0B7wVWA0ksvWpRdSCkAdpoi4HdgJfA0Apq6R+hSqpX4nyluZlw+q+QHfj43S//BRpTfOXgFv8oXAks7xqW1ybS71TgZuAeeiOfDV61K4T3YF/F/gL0Iju3A9Ktl8YQRhppETtRYvsOgBV4Y+X37nV7b5yrqO24kf3Edm4Om5FOmyv/RJQ7w+FE+nljEHqmQvsBj4EHgNuBGrRgrZSn59HC34D0ATsAuY49HcIwkjg16QEbYyfZPoe2OG4oAHcM67Gt367W/knxFOXrkf33fvQn6h96NG2A8A3+imj+rl2Q+q5LUDZUF5aEEYg300dqAq/WXHfcx6jemrBjBk1tfjuC7lV+Rhb2Cvag4Fv9SmT5bmpwCFgKdobQ3YBD4RCj9YdQA/LC8Kooz0YqAY2AqAMq/yHTxRU0DZGTS3lP9jkRvXIckt7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uKdIdgShYPhDYRMIAVidbd7Y/p05PWcL23tNA95rF+YtaADzrztIxQYHeNYfCidtUb8J/Dav2gfnKXSOIEEYDWwiNR3cvX2Didmd00OqfAxly39O2bJH8ha01X2BaONG20ub6PQ8fTZxrAGO52Wlf8Lo4OOCMCrwh8IfoPNckfz4lCe6a2vR36F7+2OkBfl/0h8Kn4K+ou5Eb8HMORFXjrSgN3FccLheQfikuQdoA+jeucWKHz9UNMPxo/vo3v20fdpKb0yEi7ZbNgFfAY45ZDuMTtspg2PCqMMfCrcAdwBgWSry6LJ4suVkwe0mmt8nsuH2eNo01kp/KNyTOC/bLpMmdNihJ8hv48VvgC8hghZGN88ATwNYkf+6O+//tpk8/a+CGUs0v0/XQ0viaYNjm/2h8Pb0Mv0FRuhCxxT7MvAyQxP3q+hN5LchTW7h/4Pl6P97rLYzns51DfH4sYOOG4kf3UfX+psTaf3oXdgthTQGi3ZyCB2CaApwJ/Ai2pPbYr2A9sS70QNhk9H98iP5/gGCMIKIoVNPvQLaY3f9NGhFf/9LrFj+fs2KdhENPUTXI7diXei0d1XuAhZn5tECck6Q5ziy9lsYDWRJZbsZ3UoFQFVeFi9tWOX2zrt5yKlsrVgU888vEN25JTOV7Wa0h5ZUtoLgNP2E5Qqi4+j3pMJRZb64p67e7Zk1H9f0uajS8qz1WZEOEu8dwjz8J8w3X0xY0Uh6vINWYAVpS61F1ILgMAPE2puAXqm5FB1ovxelMCqrYmpCjVK+sS6wlNXZlki2Niet3t1W6UTRmTXXA+fTb4ioBcFhcgigeTnauy5h6DnlTgK/Q2eQzbp+JJuo3VnKCYLgHP8G7gXWomeFrkt9TgMm0pvrvRMt3BPoAeq9wGGGMa38PwMD9S1opO2jAAAAAElFTkSuQmCC"},3735:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("modal-simple-comp",{attrs:{visible:e.modalSimpleVisiable,"show-confirm":!1,icon:e.modalIcon,content:e.modalContent,confirm:e.modalCallback,overlay:e.closeModal,close:e.closeModal}}),i("modal-comp",{attrs:{visible:e.modalVisiable,"show-confirm":!1,icon:e.modalIcon,content:e.modalContent,confirm:e.modalCallback,overlay:e.modalCallback}}),i("modal-protocol-comp",{attrs:{visible:e.modalProtocolVisiable,overlay:e.closeModal,close:e.closeModal}}),i("div",{staticClass:"ebg"}),e.oneAccountCenterOff?i("div",{staticClass:"content"},[i("div",{staticClass:"top-space"}),i("div",{staticClass:"box"},[i("div",{staticClass:"login"},[i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:s("b14b")}}),e._v(" "+e._s(e.mobileTip.name)+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("div",{staticClass:"region-tel ipt-wrap"},[i("img",{staticClass:"down-arrow",attrs:{src:s("e282"),alt:""}}),i("el-select",{staticClass:"ipt",model:{value:e.mobileNoType,callback:function(t){e.mobileNoType=t},expression:"mobileNoType"}},e._l(e.mobileOptions,(function(t,s){return i("el-option",{key:s,attrs:{value:t.type,label:t.areaCode}},[e._v(e._s(t.areaCode))])})),1)],1),i("div",{staticClass:"ipt ipt2",class:{err:e.errorTips.p1.length>0}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.registerForm.mobileNo,expression:"registerForm.mobileNo"}],staticClass:"ipt-tel",attrs:{placeholder:e.mobileTip.placeHolder,type:"text"},domProps:{value:e.registerForm.mobileNo},on:{input:function(t){t.target.composing||e.$set(e.registerForm,"mobileNo",t.target.value)}}})])]),e.errorTips.p1.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p1)+"\n\t\t\t\t\t\t")]):e._e()]),i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:s("7e1c")}}),e._v(" "+e._s(e.$t("register.newPassword"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.values.password,expression:"values.password"}],staticClass:"ipt",class:{err:e.errorTips.p4.length>0},attrs:{placeholder:e.$t("register.newPasswordPlaceholder"),type:"password"},domProps:{value:e.values.password},on:{input:function(t){t.target.composing||e.$set(e.values,"password",t.target.value)}}})]),e.errorTips.p4.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p4)+"\n\t\t\t\t\t\t")]):e._e()]),i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:s("7e1c")}}),e._v(" "+e._s(e.$t("register.newPasswordSure"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.values.passwordRepeat,expression:"values.passwordRepeat"}],staticClass:"ipt",class:{err:e.errorTips.p5.length>0},attrs:{placeholder:e.$t("register.newPasswordSurePlaceholder"),type:"password"},domProps:{value:e.values.passwordRepeat},on:{input:function(t){t.target.composing||e.$set(e.values,"passwordRepeat",t.target.value)}}})]),e.errorTips.p5.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p5)+"\n\t\t\t\t\t\t")]):e._e()])]),i("div",{staticClass:"login-protocol pointer",on:{click:function(t){e.registerCheck.agreeProtocol=!e.registerCheck.agreeProtocol}}},[e.registerCheck.agreeProtocol?e._e():i("img",{staticClass:"check",attrs:{src:s("7a73")}}),e.registerCheck.agreeProtocol?i("img",{staticClass:"check",attrs:{src:s("d202")}}):e._e(),e._v(" "+e._s(e.$t("login.agree"))+" \n\t\t\t\t\t"),i("span",{staticClass:"protocol pointer",on:{click:function(t){return e.onProtocolHandler()}}},[e._v(e._s(e.$t("login.protocol")))])]),i("div",{staticClass:"login-submit pointer flex-center",class:{disabled:e.registerDisabledV2},on:{click:function(t){return e.registerV2Handler()}}},[e.loading?i("van-loading"):e._e(),i("span",[e._v(e._s(e.$t("register.register")))])],1)])])]):i("div",{staticClass:"content"},[i("div",{staticClass:"top-space"}),i("div",{staticClass:"step"},[1==e.type?i("img",{attrs:{src:s("d50d")}}):e._e(),2==e.type?i("img",{attrs:{src:s("09eb")}}):e._e()]),i("div",{staticClass:"box"},[1==e.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit"},["zh"==e.locale?i("img",{attrs:{src:s("7437")}}):e._e(),"tc"==e.locale?i("img",{attrs:{src:s("7fba")}}):e._e(),"en"==e.locale?i("img",{staticClass:"img-en",attrs:{src:s("0b7c")}}):e._e()]),i("div",{staticClass:"login-tit2"},[e._v(e._s(e.$t("register.title")))]),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"ipt-wrap"},[i("div",{staticClass:"region-tel ipt-wrap"},[i("img",{staticClass:"down-arrow",attrs:{src:s("e282"),alt:""}}),i("el-select",{staticClass:"ipt",model:{value:e.mobileNoType,callback:function(t){e.mobileNoType=t},expression:"mobileNoType"}},e._l(e.mobileOptions,(function(t,s){return i("el-option",{key:s,attrs:{value:t.type,label:t.areaCode}},[e._v(e._s(t.areaCode))])})),1)],1),i("div",{staticClass:"ipt ipt2",class:{err:e.errorTips.p1.length>0}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.registerForm.mobileNo,expression:"registerForm.mobileNo"}],staticClass:"ipt-tel",attrs:{placeholder:e.mobileTip.placeHolder,type:"text"},domProps:{value:e.registerForm.mobileNo},on:{input:function(t){t.target.composing||e.$set(e.registerForm,"mobileNo",t.target.value)}}})])]),e.errorTips.p1.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p1)+"\n\t\t\t\t\t\t")]):e._e()]),e.registerCheck.showImageCode?i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.registerForm.imageValue,expression:"registerForm.imageValue"}],staticClass:"ipt ipt-verify",class:{err:e.errorTips.p3.length>0},attrs:{placeholder:e.$t("login.verifyPlaceholder"),type:"text"},domProps:{value:e.registerForm.imageValue},on:{input:function(t){t.target.composing||e.$set(e.registerForm,"imageValue",t.target.value)}}}),i("div",{staticClass:"ipt verify-btn pointer vcode",on:{click:e.handlerRefreshImageVcode}},[i("img",{attrs:{src:e.values.imageBase64}})])]),e.errorTips.p3.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p3)+"\n\t\t\t\t\t\t")]):e._e()]):e._e(),i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"ipt-wrap"},[i("div",{staticClass:"ipt ipt2",class:{err:e.errorTips.p2.length>0}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.registerForm.opt,expression:"registerForm.opt"}],staticClass:"ipt-code",attrs:{placeholder:e.$t("register.verifyCodePlaceholder"),type:"text"},domProps:{value:e.registerForm.opt},on:{input:function(t){t.target.composing||e.$set(e.registerForm,"opt",t.target.value)}}}),0==e.times.remain?i("div",{staticClass:"veri-btn pointer",on:{click:e.handlerStdSendOTP}},[e._v(e._s(e.$t("register.verifyCodeGet")))]):i("div",{staticClass:"veri-btn-default"},[e._v(e._s(e.times.tip))])])]),e.errorTips.p2.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p2)+"\n\t\t\t\t\t\t")]):e._e()])]),i("div",{staticClass:"login-protocol pointer",on:{click:function(t){e.registerCheck.agreeProtocol=!e.registerCheck.agreeProtocol}}},[e.registerCheck.agreeProtocol?e._e():i("img",{staticClass:"check",attrs:{src:s("7a73")}}),e.registerCheck.agreeProtocol?i("img",{staticClass:"check",attrs:{src:s("d202")}}):e._e(),e._v(" "+e._s(e.$t("login.agree"))+" \n\t\t\t\t\t"),i("span",{staticClass:"protocol pointer",on:{click:function(t){return e.onProtocolHandler()}}},[e._v(e._s(e.$t("login.protocol")))])]),i("div",{staticClass:"login-submit pointer flex-center",class:{disabled:e.registerDisabled},on:{click:function(t){return e.onSubmitHandler()}}},[e.loading?i("van-loading"):e._e(),i("span",[e._v(e._s(e.$t("register.register")))])],1)]):e._e(),2==e.type?i("div",{staticClass:"login"},[i("div",{staticClass:"login-tit2"},[e._v(e._s(e.$t("register.title2")))]),i("div",{staticClass:"gird-g form"},[i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:s("7e1c")}}),e._v(" "+e._s(e.$t("register.newPassword"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.values.password,expression:"values.password"}],staticClass:"ipt",class:{err:e.errorTips.p4.length>0},attrs:{placeholder:e.$t("register.newPasswordPlaceholder"),type:"password"},domProps:{value:e.values.password},on:{input:function(t){t.target.composing||e.$set(e.values,"password",t.target.value)}}})]),e.errorTips.p4.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p4)+"\n\t\t\t\t\t\t")]):e._e()]),i("div",{staticClass:"pure-u-1 form-item"},[i("div",{staticClass:"label"},[i("img",{attrs:{src:s("7e1c")}}),e._v(" "+e._s(e.$t("register.newPasswordSure"))+"\n\t\t\t\t\t\t")]),i("div",{staticClass:"ipt-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.values.passwordRepeat,expression:"values.passwordRepeat"}],staticClass:"ipt",class:{err:e.errorTips.p5.length>0},attrs:{placeholder:e.$t("register.newPasswordSurePlaceholder"),type:"password"},domProps:{value:e.values.passwordRepeat},on:{input:function(t){t.target.composing||e.$set(e.values,"passwordRepeat",t.target.value)}}})]),e.errorTips.p5.length>0?i("div",{staticClass:"validator"},[i("img",{attrs:{src:s("b98c"),alt:""}}),e._v(e._s(e.errorTips.p5)+"\n\t\t\t\t\t\t")]):e._e()])]),i("div",{staticClass:"login-submit pointer flex-center",class:{disabled:e.submitDisabled},on:{click:function(t){return e.onRegisterHandler()}}},[e.loading?i("van-loading"):e._e(),i("span",[e._v(e._s(e.$t("register.sure")))])],1)]):e._e()])])],1)},r=[],o=(s("5ab2"),s("e10e"),s("cc57"),s("f548"),s("6d57"),s("ac9f")),a=(s("1a6c"),s("f166")),n=s("8876"),l=s("4ec3"),c=s.n(l),p=s("ed0b"),d=s("fa7d"),u=s("79c3"),m=s("daf4"),h=s("36de"),g=s("7d92"),v=s("0261");function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function b(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){Object(o["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}v["default"].use(a["a"]);var w={data:function(){return{loading:!1,key:"value",type:1,mobileNoType:"hk",mobileTip:{},mobileOptions:[],registerCheck:{showImageCode:!1,agreeProtocol:!1},values:{vcodeuuid:"",token:"",deviceId:"",imageBase64:"",password:"",passwordRepeat:""},registerForm:{imageValue:"",mobileNo:"",otp:""},times:{interval:0,remain:0,tip:""},errorTips:{p1:"",p2:"",p3:"",p4:"",p5:""},modalSimpleVisiable:!1,modalVisiable:!1,modalProtocolVisiable:!1,targetPath:"",modalIcon:"succ",modalContent:""}},components:{modalComp:u["a"],modalSimpleComp:m["a"],modalProtocolComp:h["a"]},computed:b({},Object(n["c"])({userInfo:function(e){return e.userInfo}}),{locale:function(){return this.$i18n.locale||"tc"},i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}},registerDisabled:function(){var e=!this.registerCheck.agreeProtocol,t=!this.values.token,s=this.values.vcodeuuid&&!this.registerForm.imageValue,i=!Object(d["b"])(this.registerForm.opt);return e||t||s||i},registerDisabledV2:function(){var e=!(this.values.password&&!this.checkPassword(this.values.password)),t=this.values.passwordRepeat!=this.values.password,s=!this.registerCheck.agreeProtocol,i=!this.registerForm.mobileNo;return e||t||s||i},submitDisabled:function(){var e=!(this.values.password&&!this.checkPassword(this.values.password)),t=this.values.passwordRepeat!=this.values.password;return e||t},oneAccountCenterOff:function(){return window.global.oneAccountCenterOff}}),methods:{showModal:function(e,t){t=t&&"undefined"!==typeof t?t:"succ",this.modalIcon=t,this.modalContent=e,"succ"==t?this.modalVisiable=!0:this.modalSimpleVisiable=!0},closeModal:function(){this.modalVisiable=!1,this.modalSimpleVisiable=!1,this.modalProtocolVisiable=!1},onProtocolHandler:function(){this.modalProtocolVisiable=!0},handlerStdSendOTP:function(){var e=this;this._checkMobileLegal().then((function(){e.times.remain>0||(!e.values.vcodeuuid||e.registerForm.imageValue?e._handlerIsShowImageVcode().then((function(){e._startStdSendOTP()})):e._showImageValueTip())}))},_checkMobileLegal:function(){var e=this;return new Promise((function(t,s){var i=e.registerForm.mobileNo;if("hk"==e.mobileNoType){if(!Object(d["c"])("hkmobile",i))return void e._showMobileNoIllegalTip()}else if(!Object(d["c"])("mobile",i))return void e._showMobileNoIllegalTip();t(!0)}))},_handlerIsShowImageVcode:function(){var e=this;return new Promise((function(t,s){e.values.vcodeuuid?t():Object(p["c"])({url:c.a.stdIsShowImageVcode,data:{deviceId:e.values.deviceId,userId:e.registerForm.mobileNo}}).then((function(s){return"0"==s.returnCode&&(e.values.token=s.data.token,"N"==s.data.isShowVcode?(e.values.vcodeuuid=null,t(s)):(e.registerCheck.showImageCode=!0,e.values.vcodeuuid=s.data.vcodeuuid,e.values.imageBase64=s.data.image)),!1}))}))},_showMobileNoIllegalTip:function(){var e=this.i18n.register.tips.e1;this.errorTips.p1=e},_startStdSendOTP:function(){var e=this,t={mobileNo:this.registerForm.mobileNo,token:this.values.token,signFactor:(new Date).getTime(),scene:"register"};this.values.vcodeuuid&&(t["vcodeuuid"]=this.values.vcodeuuid,t["imageValue"]=this.registerForm.imageValue),Object(p["c"])({url:c.a.stdSendOTP,data:t}).then((function(t){switch(t.returnCode){case"0":e._startTimeClick(),e.errorTips.p2="";break;default:e.errorTips.p2=t.returnMsg;break}}))},_startTimeClick:function(){this.times.remain=120;var e=this,t=this.$i18n.messages[this.$i18n.locale]||{},s=t.register.coutTips;e.times.tip=s.replace("{second}",e.times.remain),this.times.interval=setInterval((function(){if(e.times.remain<=0)return clearInterval(e.times.interval),e.times.interval=0,void(e.times.remain=0);e.times.remain--,e.times.tip=s.replace("{second}",e.times.remain),e.$set(e,"times",e.times)}),1e3)},onSubmitHandler:function(){var e=this;this.registerDisabled||this._checkParams().then((function(){e.loading=!0,e._regCheck().then((function(){e._validateOTPandRepeat().then((function(){e.loading=!1,e.type=2})).catch((function(t){e.loading=!1}))})).catch((function(t){e.loading=!1}))}))},registerV2Handler:function(){var e=this;this.registerDisabledV2||this.loading||this._checkMobileLegal().then((function(){var t={account:e.registerForm.mobileNo,password:e.values.password};e.loading=!0,Object(p["c"])({url:c.a.doRegisterV2,data:t}).then((function(t){e.loading=!1,e.$store.commit("SET_USER_INFO",t),e._showSuccessMessage()})).catch((function(t){switch(e.loading=!1,t.code){case 1103:var s=e.i18n.register.tips.e5;e.errorTips.p1=s;break}}))}))},_validateOTPandRepeat:function(){var e=this;return new Promise((function(t,s){var i={mobileNo:e.registerForm.mobileNo,token:e.values.token,signFactor:(new Date).getTime(),otp:e.registerForm.opt};Object(p["c"])({url:c.a.stdValidateOTPandRepeat,data:i}).then((function(i){if("0"!=i.returnCode){switch(i.returnCode){case"SMS_ERROR_006":e._showOTPTip();break;default:e._showCheckOTPErrTip(i.returnMsg);break}s()}else t()})).catch((function(e){s()}))}))},_regCheck:function(){var e=this;return new Promise((function(t,s){var i={mobileNo:e.registerForm.mobileNo};Object(p["c"])({url:c.a.gsRegCheck,data:i}).then((function(i){"0"==i.returnCode?"N"==i.data.mobileStatus?t():(e._showDuplicateRegistrationTip(),s()):(e._showCheckOTPErrTip(i.returnMsg),s())})).catch((function(e){s()}))}))},_checkParams:function(){var e=this;return new Promise((function(t,s){e._checkMobileLegal().then((function(){e.registerCheck.agreeProtocol?e.values.token?!e.values.vcodeuuid||e.registerForm.imageValue?Object(d["b"])(e.registerForm.opt)?t():e._showOTPTip():e._showImageValueTip():e._showTokenTip():e._showAgreeProtocolTip()}))}))},_showAgreeProtocolTip:function(){this.i18n.register.tips.e2},_showOTPTip:function(){var e=this.i18n.register.tips.e3;this.errorTips.p2=e},_showTokenTip:function(){var e=this.i18n.register.tips.e4;this.errorTips.p2=e},_showDuplicateRegistrationTip:function(){var e=this.i18n.register.tips.e5;this.errorTips.p1=e},_showImageValueTip:function(){var e=this.i18n.register.tips.e5;this.errorTips.p3=e},_showCheckOTPErrTip:function(e){"非法操作"!=e?this.errorTips.p2=e:this._showOTPTip()},onRegisterHandler:function(){var e=this,t=this.checkPassword(this.values.password);if(t)this.errorTips.p4=t;else{this.errorTips.p4="";var s={token:this.values.token,mobileNo:this.registerForm.mobileNo,loginPwd:Object(g["passwordEncrypt"])(this.values.password)};this.loading=!0,Object(p["c"])({url:c.a.stdRegister,data:s}).then((function(t){e.loading=!1,0!=t.returnCode?(e._showRegisterFailure(t),e.type=1):(e.$store.commit("SET_USER_INFO",t.data),e._showSuccessMessage())})).catch((function(t){e.loading=!1}))}},checkPassword:function(e){if(e.length<8)return this.i18n.register.tips.e7;var t=/([a-z])+/.test(e),s=/([A-Z])+/.test(e),i=/([0-9])+/.test(e),r=/[^a-zA-Z0-9]+/.test(e);return(t|s)&i&r?"":this.i18n.register.tips.e8},_showPasswordLenthNotEnouth:function(){var e=this.i18n.register.tips.e7;this.errorTips.p4=e},_showPasswordComplexityTips:function(){var e=this.i18n.register.tips.e8;this.errorTips.p4=e},_showPasswordNotTheSameTips:function(){var e=this.i18n.register.tips.e9;this.errorTips.p5=e},_showRegisterFailure:function(e){if("COMMON_ERROR_052"==e.returnCode){this._resetRegisterParam(),this.handlerRefreshImageVcode();var t=this.i18n.register.tips.e10;this.errorTips.p2=t}else{this._resetAllParams();var s=this.i18n.register.tips.e11;this.errorTips.p5=s}},_resetAllParams:function(){this.values.vcodeuuid="",this.values.token="",this.values.imageBase64="",this.values.password="",this.values.passwordRepeat="",this.registerForm.imageValue="",this.registerForm.mobileNo="",this.registerForm.otp="",this.times.interval="",this.times.remain="",this.times.tip=""},_resetRegisterParam:function(){this.values.token="",this.registerForm.otp="",this.times.interval="",this.times.remain="",this.times.tip=""},handlerRefreshImageVcode:function(){var e=this;if(this.values.vcodeuuid){var t={vcodeuuid:this.values.vcodeuuid};Object(p["c"])({url:c.a.stdRefreshVcode,data:t}).then((function(t){e.$set(e.values,"imageBase64",t.data.image)}))}},_showSuccessMessage:function(){var e=this.i18n.register.tips.e12;this.targetPath="/infomation/improve",this.showModal(e,"succ")},onForgetHandler:function(){},onLoginTypeHandler:function(e){},initData:function(){if(this.userInfo&&(this.userInfo.sid||this.userInfo.name))this.$router.push({path:"/"});else{var e=this.$i18n.messages[this.$i18n.locale]||{},t=JSON.parse(JSON.stringify(e.register.mobileOptions));this.mobileOptions=t,this.mobileTip=this.mobileOptions[0]}},modalCallback:function(){this.modalVisiable=!1,this.targetPath&&this.$router.push({path:this.targetPath})}},mounted:function(){window.showSuccessMessage=this._showSuccessMessage},watch:{mobileNoType:function(){var e=this;this.mobileOptions.forEach((function(t){t.type==e.mobileNoType&&e.$set(e,"mobileTip",t),e.errorTips.p1=""}))},"registerForm.mobileNo":function(){this.errorTips.p1=""},"registerForm.opt":function(){this.errorTips.p2=""},"registerForm.imageValue":function(){this.errorTips.p3=""},"values.password":function(){this.$set(this.errorTips,"p4",this.checkPassword(this.values.password))},"values.passwordRepeat":function(){this.values.password!=this.values.passwordRepeat?this._showPasswordNotTheSameTips():this.errorTips.p5=""}},created:function(){var e=this;this.initData();try{this.$root.eventBus.$off("/register")}catch(t){}this.$root.eventBus.$on("/register",(function(){e.type=1}))}},C=w,T=(s("cf6f"),s("623f")),P=Object(T["a"])(C,i,r,!1,null,"3d974bc2",null);t["default"]=P.exports},b14b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAUCAYAAAC9BQwsAAAAzUlEQVQ4je3TsUrDcBTF4a9p9ryAItIMxcWhQ9cOIrg5N2AHwUdwUaRDpz5CNwt5B9/EDkF8hGYVazs0BUlT/c/ime498LvnLqe1HHYuMMOpML3htrUcdt4rY46vX6AII6xinGCS5MVTSFyZpREe4mo/LrN0EPjqEezALq4Dwe538CXJi3EIVWbpGP0oMGVP/+DfAOMms8zSNu6xxjTJi73WHEq8whnOcflTYrvmv6JXzYsmZlfkCM9YNRz9rHk3+IhtGz3D44G361rgbgMMKicPFmVI2AAAAABJRU5ErkJggg=="},b1ff:function(e,t,s){},cf6f:function(e,t,s){"use strict";var i=s("b1ff"),r=s.n(i);r.a},d50d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAAAoCAYAAADNJgeXAAAHRUlEQVR4nO3dfYxcVRnH8U+HtrxVR4H4RoF4ZwCx6B9KjLGIqHRNpIQYRUlHrERBKRggxviGhiCKMWJUSjRtopY4KgomRNuEVhTkRUTkH9QmOHMjBaNYggzy0qJt/eO505kuO7uzuzPTbnu+yWbvOffc89x/fnPOPec5zzPvyRUVM6CEN+HtOAUn4JVYVNz/D/6Bh3A/foUHsHN8R+V6Yyb2E4nEJMyfZvtjcQlqeNUk7Q7GUXgd3otr8ChuwGoh+kQiMST6FfbL8CWcjwXj7u3Ew9iCJ4u6I3AMjsO8om4xPodPYS2+gCdm+uKJRKI3/Qi7huvw0q66x3Ejfonf4tkezy7CaViOc4s+FmAV3o+L8dOZvHgikejNvEm+sRfiu2KUbvM3fAXr8Pw0bR2CD+MKHN1V/x18olxv7Jhmf4nEnKeZ57N6vpJlE9aXerQ/T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