(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4809f76a"],{6157:function(e,t,s){},"6c65":function(e,t,s){"use strict";s("9d32")},"84dc":function(e,t,s){e.exports=s.p+"img/partner.7773946a.png"},9199:function(e,t,s){"use strict";s("6157")},"93e01":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container-page"},[a("div",{staticClass:"registerLayout"},[a("div",{staticClass:"logo"},[a("img",{attrs:{loading:"lazy",src:e.$config.pcLogo?e.$config.imgHost+e.$config.pcLogo:s("552b"),alt:""}})]),e._m(0),a("div",{staticClass:"regContainer"},[a("div",{staticClass:"regList"},[a("div",{staticClass:"top-tips-1"},[e._v(e._s(e.$t("keafec666")))]),a("div",{staticClass:"top-tips"},[e._v(e._s(e.$t("k5c0e34a0")))]),a("div",{staticClass:"regRow regAccountNumber"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k80a560a1")))]),(e.window.mergeAccount,a("input",{directives:[{name:"model",rawName:"v-model",value:e.accountNumber,expression:"accountNumber"}],staticClass:"logInput",attrs:{maxlength:"11",autofocus:"",autocomplete:"new-password"},domProps:{value:e.accountNumber},on:{blur:e.accountBlur,input:function(t){t.target.composing||(e.accountNumber=t.target.value)}}})),a("div",{staticClass:"rowkey"},[a("span",{staticClass:"required"},[e._v("*")]),a("span",[e._v(e._s(e.$t("kda492a7b")))])])]),a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.account))]),a("div",{staticClass:"regRow regPassword"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k551b0348")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"logInput",attrs:{type:"password",autocomplete:"new-password"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}}),a("div",{staticClass:"rowkey"},[a("span",{staticClass:"required"},[e._v("*")]),a("span",[e._v(e._s(e.$t("k235a26c5")))])])]),a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.password))]),a("div",{staticClass:"regRow regPassword"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k1cbe2507"))+e._s(e.$t("k551b0348")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.confirmPassword,expression:"confirmPassword"}],staticClass:"logInput",attrs:{type:"password",autocomplete:"new-password"},domProps:{value:e.confirmPassword},on:{input:function(t){t.target.composing||(e.confirmPassword=t.target.value)}}}),a("div",{staticClass:"rowkey"},[a("span",{staticClass:"required"},[e._v("*")]),a("span",[e._v(e._s(e.$t("k235a26c5")))])])]),a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.confirmPassword))]),e.regFlag&&e.regFlag.phone?a("div",{staticClass:"regRow regPhone"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k8953e0a6")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.phone,expression:"phone"}],staticClass:"logInput",attrs:{type:"text",maxlength:"11",autocomplete:"new-password"},domProps:{value:e.phone},on:{blur:function(t){e.phone=e.toCDB(e.phone)},input:function(t){t.target.composing||(e.phone=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.phone?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.phone?a("span",[e._v(e._s(e.$t("k89136b9b"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k89136b9b")))])])]):e._e(),e.regFlag&&e.regFlag.smsCode?a("div",{staticClass:"regRow regPhone",staticStyle:{"margin-top":"10px"}},[a("div",{staticClass:"input-label",staticStyle:{"font-size":"12px"}},[e._v(e._s(e.$t("k4142c682")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.smsCode,expression:"smsCode"}],staticClass:"logInput",attrs:{type:"text",maxlength:"8"},domProps:{value:e.smsCode},on:{input:function(t){t.target.composing||(e.smsCode=t.target.value)}}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"success",disabled:!!e.smsCoolDown},on:{click:e.getSmsCode}},[e._v(e._s(e.smsCoolDown?e.smsCoolDown+"s":e.$t("k59cf86cb")))])],1):e._e(),e.regFlag&&e.regFlag.phone?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.phone))]):e._e(),e.regFlag&&e.regFlag.inviteCode?a("div",{staticClass:"regRow regCode"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kf94465ba")))]),e.sessData?a("input",{directives:[{name:"model",rawName:"v-model",value:e.inviteCode,expression:"inviteCode"}],staticClass:"logInput",attrs:{type:"text",disabled:!!e.inviteCode,autocomplete:"new-password"},domProps:{value:e.inviteCode},on:{blur:e.inviteCodeBlur,input:function(t){t.target.composing||(e.inviteCode=t.target.value)}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.inviteCode,expression:"inviteCode"}],staticClass:"logInput",attrs:{type:"text",autocomplete:"new-password"},domProps:{value:e.inviteCode},on:{blur:e.inviteCodeBlur,input:function(t){t.target.composing||(e.inviteCode=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.inviteCode?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.inviteCode?a("span",[e._v(e._s(e.$t("k344ee09b"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k344ee09b")))])])]):e._e(),e.regFlag&&e.regFlag.inviteCode?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.inviteCode))]):e._e(),e.regFlag&&e.regFlag.realName?a("div",{staticClass:"regRow regRealName"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kd7d84192")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.realName,expression:"realName"}],staticClass:"logInput",attrs:{type:"text",autocomplete:"new-password"},domProps:{value:e.realName},on:{input:function(t){t.target.composing||(e.realName=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.realName?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.realName?a("span",[e._v(e._s(e.$t("ka70bd70f"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("ka70bd70f")))])])]):e._e(),e.regFlag&&e.regFlag.realName?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.realName))]):e._e(),e.regFlag&&e.regFlag.sex?a("div",{staticClass:"regRow regSex"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kdf2b27a")))]),a("div",{staticClass:"maleSex cursorPoint",staticStyle:{"margin-right":"0.5rem"},on:{click:function(t){e.sex=1}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:1==e.sex?s("588a"):s("bf3a"),expression:"sex == 1? require('../../static/image/pn/regChecked.png'): require('../../static/image/pn/regUnCheck.png') "}],staticClass:"sexImg",attrs:{loading:"lazy"}}),a("span",{staticClass:"btnTextColor"},[e._v(e._s(e.$t("k13c47606")))])]),a("div",{staticClass:"femaleSex cursorPoint",on:{click:function(t){e.sex=0}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:0==e.sex?s("588a"):s("bf3a"),expression:"\n                sex == 0\n                    ? require('../../static/image/pn/regChecked.png')\n                    : require('../../static/image/pn/regUnCheck.png')\n                "}],staticClass:"sexImg",attrs:{loading:"lazy"}}),a("span",{staticClass:"btnTextColor"},[e._v(e._s(e.$t("kd17061c3")))])])]):e._e(),e.regFlag&&e.regFlag.sex?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.phone))]):e._e(),e.regFlag&&e.regFlag.birthday?a("div",{staticClass:"regRow regBirthday"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k4ef51d13")))]),a("el-date-picker",{attrs:{type:"date"},model:{value:e.birthday,callback:function(t){e.birthday=t},expression:"birthday"}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.birthday?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.birthday?a("span",[e._v(e._s(e.$t("k3e268b8e"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k3e268b8e")))])])],1):e._e(),e.regFlag&&e.regFlag.birthday?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.birthday))]):e._e(),e.regFlag&&e.regFlag.wechat?a("div",{staticClass:"regRow regWechat"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k996faaa4")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.wechat,expression:"wechat"}],staticClass:"logInput",attrs:{autocomplete:"new-password",type:"text",maxlength:"20"},domProps:{value:e.wechat},on:{input:function(t){t.target.composing||(e.wechat=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.wechat?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.wechat?a("span",[e._v(e._s(e.$t("k6a7eaa67"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k6a7eaa67")))])])]):e._e(),e.regFlag&&e.regFlag.wechat?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.wechat))]):e._e(),e.regFlag&&e.regFlag.qq?a("div",{staticClass:"regRow regQQ"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kfe151f88")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.qq,expression:"qq"}],staticClass:"logInput",attrs:{autocomplete:"new-password",type:"text",maxlength:"15"},domProps:{value:e.qq},on:{input:function(t){t.target.composing||(e.qq=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.qq?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.qq?a("span",[e._v(e._s(e.$t("kc9006eec"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("kc9006eec")))])])]):e._e(),e.regFlag&&e.regFlag.qq?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.qq))]):e._e(),e.regFlag&&e.regFlag.email?a("div",{staticClass:"regRow regEmail"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kc654b275")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"logInput",attrs:{autocomplete:"new-password",type:"text"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.email?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.email?a("span",[e._v(e._s(e.$t("k7bad62e"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k7bad62e")))])])]):e._e(),e.regFlag&&e.regFlag.email?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.email))]):e._e(),e.regFlag&&e.regFlag.address?a("div",{staticClass:"regRow regAddress"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("k78b1ca25")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.address,expression:"address"}],staticClass:"logInput",attrs:{autocomplete:"new-password",type:"text"},domProps:{value:e.address},on:{input:function(t){t.target.composing||(e.address=t.target.value)}}}),a("div",{staticClass:"rowkey"},[2==e.regFlag.address?a("span",{staticClass:"required"},[e._v("*")]):e._e(),1==e.regFlag.address?a("span",[e._v(e._s(e.$t("k39e29505"))+e._s(e.$t("kd6b90db2")))]):a("span",[e._v(e._s(e.$t("k39e29505")))])])]):e._e(),e.regFlag&&e.regFlag.address?a("div",{staticClass:"logErrMsg u-flex-a"},[e._v(e._s(e.errors.address))]):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.type,expression:"type === 0"}],staticClass:"regRow logVerifyCode"},[a("div",{staticClass:"input-label"},[e._v(e._s(e.$t("kc137d150")))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.captchaCode,expression:"captchaCode"}],staticClass:"logInput",attrs:{autocomplete:"new-password",type:"text"},domProps:{value:e.captchaCode},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.register()},blur:function(t){e.captchaCode=e.toCDB(e.captchaCode)},input:function(t){t.target.composing||(e.captchaCode=t.target.value)}}}),e.verifyCodeImg?a("div",{staticClass:"verifyCodeImg cursorPoint",style:"background-image:url("+e.verifyCodeImg+")",on:{click:e.captchaData}}):e._e(),e.verifyCodeImg?e._e():a("div",{staticClass:"verifyCodeImg getCode u-flex-all cursorPoint",on:{click:e.captchaData}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s("7189"),expression:"require('../../assets/images/qiqi/refresh.png')"}],staticClass:"refimg",attrs:{loading:"lazy"}}),e._v(" "+e._s(e.$t("k1d44168d"))+" ")]),a("div",{staticClass:"rowkey updateColor"},[a("span",{staticClass:"required"},[e._v("*")]),a("span",[e._v(e._s(e.$t("k926770b7")))])])]),2===e.type?a("div",{staticClass:"loginBtn captchaStyle",staticStyle:{width:"220px","border-radius":"0",height:"34px","line-height":"34px",margin:"0 0 0 68px"},attrs:{id:"captcha"},on:{click:e.captchaClick}},[e._v(e._s(e.captchaText))]):e._e(),1===e.type?a("div",{attrs:{id:"captcha2"}}):e._e(),3===e.type?a("div",{attrs:{id:"gtbox"}},[a("div",{attrs:{id:"gt42"}})]):e._e(),e.errorCode?a("div",{staticClass:"getCode u-flex-all cursorPoint",staticStyle:{width:"2.7rem"},on:{click:e.getDefaultStatus}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s("7189"),expression:"require('../../assets/images/qiqi/refresh.png')"}],staticClass:"refimg",attrs:{loading:"lazy",alt:""}}),e._v(" "+e._s(e.$t("k1d44168d"))+" ")]):e._e(),a("div",{staticClass:"regAgreement",staticStyle:{overflow:"hidden","flex-direction":"column","align-items":"flex-start"}},[a("el-checkbox",{model:{value:e.agree.one,callback:function(t){e.$set(e.agree,"one",t)},expression:"agree.one"}},[e._v(e._s(e.$t("k51ec4d24")))]),a("el-checkbox",{model:{value:e.agree.two,callback:function(t){e.$set(e.agree,"two",t)},expression:"agree.two"}},[e._v(e._s(e.$t("k10d04d1b")))])],1),a("div",{staticClass:"submit-btn registerBtn u-flex-all cursorPoint buttonHover1",staticStyle:{color:"#fff"},on:{click:function(t){return e.register()}}},[e._v(e._s(e.$t("k1e987b31")))]),a("div",{staticClass:"submit-btn registerBtn u-flex-all cursorPoint buttonHover1",staticStyle:{"margin-left":"0.2rem","background-color":"#fff",color:"#333!important",border:"1px solid #ddd!important"},on:{click:function(t){return e.resetForm()}}},[e._v(e._s(e.$t("kb9f9f379")))])])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"logo"},[a("img",{attrs:{src:s("84dc"),alt:""}})])}],i=s("5530"),n=s("1da1"),o=(s("ac1f"),s("5319"),s("96cf"),s("1b19")),c=s("07a4"),l=s("9268"),u=(s("8e72"),s("bd18"),s("2a27"),{name:"register",data:function(){return{loading:!1,activityList:[],accountNumber:"",password:"",confirmPassword:"",phone:"",inviteCode:"",isSelect:!0,disabled:!0,errors:{},isClickRegister:!0,window:window,sessData:"",realName:"",sex:1,birthday:"",wechat:"",qq:"",email:"",address:"",regFlag:null,captchaCode:"",captchaKey:"",verifyCodeImg:"",type:1,captcha:null,captchaBox:null,captchaText:"",captchaMask:!1,errorCode:!1,agree:{one:!0,two:!0},smsCode:"",smsCoolDown:0,smsInterval:0,smData:{lang:"",mode:"",organization:"",product:"",appId:"",channel:""},fingerprintState:!1}},mounted:function(){this.initRequest()},methods:{getSmsCode:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.phone){t.next=2;break}return t.abrupt("return",e.$message.warning(e.$t("k6e83ed2f")));case 2:if(e.phoneIsValid()){t.next=4;break}return t.abrupt("return",e.$message.warning(e.$t("k92fa41b7")));case 4:if(!e.loading){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,e.$http.get(e.$api.sendSmsCode,"/"+e.phone+"?functionId=8");case 8:s=t.sent,e.loading=!1,0==s.code?(e.$message.success(e.$t("k8528db65")),e.smsCoolDown=59,e.smsInterval=setInterval((function(){e.smsCoolDown--,e.smsCoolDown<=0&&clearInterval(e.smsInterval)}),1e3)):e.$message.error(s.msg||e.$t("k5e0cc6d2"));case 11:case"end":return t.stop()}}),t)})))()},resetForm:function(){this.accountNumber="",this.password="",this.confirmPassword="",this.phone="",this.inviteCode="",this.isSelect=!0,this.sessData="",this.realName="",this.sex=1,this.birthday="",this.wechat="",this.qq="",this.email="",this.address="",this.captchaCode=""},openDis:function(e){3==e.type&&e.activityExtensionsVo.url?window.open(e.activityExtensionsVo.url):e.activityExtensionsVo&&4==e.activityExtensionsVo.type?this.$common.getUser()?this.getToken(e.activityExtensionsVo.activityGame,1):Object(o["b"])({show:!0}):this.$router.push({path:"/discount",query:{id:e.id}})},getToken:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$utils.getToken(t,s);case 1:case"end":return e.stop()}}),e,this)})));function t(t,s){return e.apply(this,arguments)}return t}(),initRequest:function(){this.accountNumber="",this.password="",this.confirmPassword="",this.phone="",this.sessData=JSON.parse(sessionStorage.getItem("inviteCode")),this.inviteCode=this.sessData||"",this.realName="",this.sex=1,this.birthday="",this.wechat="",this.qq="",this.email="",this.address="",this.captchaCode="",this.isSelect=!0,this.disabled=!0,this.isClickRegister=!0,this.getRegisterSet(),this.getDefaultStatus();this.$nextTick((function(){var e=document.querySelector(".regList");e.offsetHeight>300&&(e.style.height="3rem")}))},getDefaultStatus:function(){var e=this,t=this;this.$http.get(this.$api.getDefaultStatus,!1).then((function(s){0==s.code?(t.type=s.data.type,0===t.type?e.captchaData():1===t.type||3===t.type?(t.disabled=!1,t.reset()):2===t.type&&(Object.assign(t.smData,s.data),t.reset()),e.fingerprintState=s.data.fingerprintState,localStorage.getItem("fingerprint")||Object(l["a"])(s.data.fingerprintId).then((function(e){t.$config.fingerprint=e,localStorage.setItem("fingerprint",e)}))):(e.errorCode=!0,e.type=null,e.moneyModeListReqSuccess=!1,e.$http.showMesasge(e.$t("k2629ed06")))}))},reset:function(){this.check(),this.getCaptcha()},check:function(){if(this.captcha?this.captchaText="":this.captchaText=this.$t("kfabcf892"),3===this.type){var e=document.querySelector("#gt42");e&&(e.innerHTML="")}},getCaptcha:function(){var e=this,t="zh";if("en_US"==this.$config.local?t="en":"zh_CN"==this.$config.local?t="zh-cn":"zh_HK"==this.$config.local&&(t="zh-hk"),1===this.type){var s=this;this.$http.get(this.$api.geetFirstRegister,"?t="+window.childCode,!1).then((function(a){0==a.code?window.initGeetest({gt:a.data.gt,challenge:a.data.challenge,new_captcha:a.data.newCaptcha,offline:1!==a.data.success,product:"float",width:"100%",lang:t},s.onCaptcha):e.$http.showMesasge(e.$t("k17d1d787"))}))}else if(2==this.type){var a=Object(i["a"])(Object(i["a"])({},this.smData),{},{width:300,https:"https:"==location.protocol});initSMCaptcha(a,this.onCaptcha)}else 3===this.type&&initBotion({captchaId:this.$config.getGtid(),product:"popup",language:t,nativeButton:{width:"100%"}},this.onCaptcha)},onCaptcha:function(e){var t=this;this.captcha=e,1==t.type?setTimeout((function(){var s=document.querySelector("#captcha2");s&&(s.innerHTML=""),e.appendTo("#captcha2"),e.onReady(t.check)}),1e3):3===this.type?e.appendTo("#gt42"):2==this.type&&(this.captchaText=t.$t("kdc847696"),this.captcha.onSuccess((function(e){e.pass?(t.disabled=!1,t.captcha.rid=e.rid,t.captchaText=t.$t("k6fdecdf7"),t.captchaMask=!1):(t.captcha.rid=null,t.captchaText=t.$t("k7ae4e49b"))})),this.captcha.onError((function(e,s){t.captcha.rid=null,t.captchaText=t.$t("k7ae4e49b"),t.captchaMask=!1})),this.captcha.onClose((function(){t.captchaMask=!1})))},captchaClick:function(){if(2==this.type){var e=this.captcha.getResult(),t=e.pass;t||(this.captcha.verify(),this.captchaMask=!0)}},captchaData:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=this,e.next=3,this.$http.get(s.$api.captcha);case 3:a=e.sent,0==a.code&&(s.verifyCodeImg=a.data.captcha_image_content,s.captchaKey=a.data.captchaKey);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getRegisterSet:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var s,a,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s=e.$store.state.token,a=e,!s){t.next=10;break}return r="member_register",t.next=6,e.$http.get(e.$api.getRegisterSet,r);case 6:i=t.sent,0==i.code&&(a.regFlag=i.data.svalue),t.next=11;break;case 10:e.$ApiIntegration.register(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getDataByStorage("registerSettings");case 2:s=e.sent,a.regFlag=s.svalue;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 11:case"end":return t.stop()}}),t)})))()},switchSelect:function(){this.isSelect=!this.isSelect},registerIsDisabled:function(){var e=!0;0===this.type&&(e=this.accountNumber&&this.password&&this.confirmPassword&&this.isSelect&&this.captchaCode);var t=[],s=!1;if(this.regFlag)for(var a in this.regFlag)s=!0,2==this.regFlag[a]&&t.push(a);if(s)for(var r=!0,i=0;i<t.length;i++)"sex"!=t[i]&&(r*=Boolean(this[t[i]]));var n=r;this.disabled=!e||!n},accountFocus:function(){this.errors={},window.mergeAccount?this.$set(this.errors,"account",this.$t("k80271c74")):this.$set(this.errors,"account",this.$t("kebfc70d2"))},passwordFocus:function(){this.errors={},this.$set(this.errors,"password",this.$t("kd36b4c2"))},inviteCodeFocus:function(){this.errors={}},accountBlur:function(){this.accountNumber=this.accountNumber.toLowerCase(),this.accountNumber=this.toCDB(this.accountNumber),this.accountNumber=this.accountNumber.replace(/\ /g,""),this.errors.account=""},passwordBlur:function(){this.password=this.toCDB(this.password),this.password=this.password.replace(/\ /g,""),this.errors.password=""},confirmPasswordBlur:function(){this.confirmPassword=this.toCDB(this.confirmPassword),this.confirmPassword=this.confirmPassword.replace(/\ /g,"")},inviteCodeBlur:function(){this.inviteCode=this.toCDB(this.inviteCode),this.errors.inviteCode=""},inviteCodeValid:function(){return!this.inviteCode||/^([a-zA-Z0-9])|([0-9]|[a-zA-Z])*$/.test(this.inviteCode)},accountIsValid:function(){return/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{4,11}$/.test(this.accountNumber)},passwordIsValid:function(){return/^[a-zA-Z0-9]{6,15}$/.test(this.password)},passwordIsconfirmPassword:function(){return this.password==this.confirmPassword},phoneIsValid:function(){return!this.phone||/^1[3456789]\d{9}$/.test(this.phone)},WeChatIsValid:function(){return!this.wechat||/^[a-zA-Z0-9][a-zA-Z0-9_-]{5,19}$/.test(this.wechat)},qqIsValid:function(){return!this.qq||/^[1-9][0-9]{4,14}$/.test(this.qq)},emailIsValid:function(){return!this.email||/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(this.email)},toCDB:function(e){for(var t="",s=0;s<e.length;s++)12288==e.charCodeAt(s)&&(t+=String.fromCharCode(e.charCodeAt(s)-12256)),e.charCodeAt(s)>65280&&e.charCodeAt(s)<65375?t+=String.fromCharCode(e.charCodeAt(s)-65248):t+=String.fromCharCode(e.charCodeAt(s));return t},timeSwitch:function(e){if(e){var t=new Date(e),s=t.getFullYear()+"-",a=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",r=t.getDate()<10?"0"+t.getDate():t.getDate(),i=s+a+r;return i}},getSubmitValue:function(e){var t=this;return 0==this.regFlag[e]||""==t[e]?null:"birthday"==e?t.timeSwitch(t.birthday):t[e]},register:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var s,a,r,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s=document.querySelector("#captcha2"),a=e,e.agree.one&&e.agree.two){t.next=5;break}return e.$http.showMesasge(e.$t("k35edc30f")),t.abrupt("return");case 5:if(!a.disabled){t.next=70;break}if(2!=e.regFlag.inviteCode||e.inviteCode){t.next=11;break}return e.$http.showMesasge(e.$t("kad7b57f3")),t.abrupt("return");case 11:if(a.accountNumber){t.next=16;break}return e.$http.showMesasge(e.$t("k66dfec18")),t.abrupt("return");case 16:if(a.password){t.next=21;break}return e.$http.showMesasge(e.$t("kb47a9aa4")),t.abrupt("return");case 21:if(a.confirmPassword){t.next=26;break}return e.$http.showMesasge(e.$t("k3b5eb3b1")),t.abrupt("return");case 26:if(2!=e.regFlag.phone||e.phone){t.next=31;break}return e.$http.showMesasge(e.$t("k4602c1a1")),t.abrupt("return");case 31:if(2!=e.regFlag.realName||e.realName){t.next=36;break}return e.$http.showMesasge(e.$t("kb5488e5a")),t.abrupt("return");case 36:if(2!=e.regFlag.birthday||e.birthday){t.next=41;break}return e.$http.showMesasge(e.$t("kbe8e821c")),t.abrupt("return");case 41:if(2!=e.regFlag.wechat||e.wechat){t.next=46;break}return e.$http.showMesasge(e.$t("k4000a36a")),t.abrupt("return");case 46:if(2!=e.regFlag.qq||e.qq){t.next=51;break}return e.$http.showMesasge(e.$t("k8485ad7f")),t.abrupt("return");case 51:if(2!=e.regFlag.email||e.email){t.next=56;break}return e.$http.showMesasge(e.$t("k6e809eb8")),t.abrupt("return");case 56:if(2!=e.regFlag.address||e.address){t.next=61;break}return e.$http.showMesasge(e.$t("k17461159")),t.abrupt("return");case 61:if(0!=e.type||e.captchaCode){t.next=66;break}return e.$http.showMesasge(e.$t("k2b45a0b0")),t.abrupt("return");case 66:if(e.isSelect){t.next=69;break}return e.$http.showMesasge(e.$t("k87cd65ca")),t.abrupt("return");case 69:return t.abrupt("return");case 70:if(a.accountIsValid()){t.next=76;break}return e.errors={},window.mergeAccount,e.$http.showMesasge(e.$t("kda492a7b")),t.abrupt("return");case 76:if(a.passwordIsconfirmPassword()){t.next=82;break}return e.errors={},e.$http.showMesasge(e.$t("ke76972f7")),t.abrupt("return");case 82:if(a.phoneIsValid()){t.next=88;break}return e.errors={},e.$http.showMesasge(e.$t("k1ab06a5d")),t.abrupt("return");case 88:if(a.inviteCodeValid()){t.next=94;break}return e.errors={},e.$http.showMesasge(e.$t("k6fe662fd")),t.abrupt("return");case 94:if(e.WeChatIsValid()){t.next=100;break}return e.errors={},e.$http.showMesasge(e.$t("k5d855b03")),t.abrupt("return");case 100:if(e.qqIsValid()){t.next=106;break}return e.errors={},e.$http.showMesasge(e.$t("k99005516")),t.abrupt("return");case 106:if(e.emailIsValid()){t.next=110;break}return e.errors={},e.$http.showMesasge(e.$t("kd80fde7e")),t.abrupt("return");case 110:if(0==e.type){t.next=115;break}if(r=e.captcha.getValidate(),r){t.next=115;break}return e.$http.showMesasge(e.$t("k666311d1")),t.abrupt("return");case 115:if(e.isClickRegister){t.next=117;break}return t.abrupt("return");case 117:return e.isClickRegister=!1,e.errors={},i={phone:a.getSubmitValue("phone"),smsCode:e.smsCode,username:a.accountNumber,password:a.password,inviteCode:a.inviteCode,lastLoginVersion:a.$config.loginVersion,realName:a.getSubmitValue("realName"),sex:a.getSubmitValue("sex"),birthday:a.getSubmitValue("birthday"),wechat:a.getSubmitValue("wechat"),qq:a.getSubmitValue("qq"),email:a.getSubmitValue("email"),address:a.getSubmitValue("address"),validateType:e.type,deviceId:localStorage.getItem("fingerprint")},e.fingerprintState&&(i.fingerprint=e.$config.fingerprint,i.phoneModel=e.$config.phoneModel),window.mergeAccount&&(i.username=e.accountNumber+window.mergeAccount),e.$set(i,"clientItem",window.childCode),e.$set(i,"appId",window.theme),1===e.type?i.geeTestQueryVO={challenge:r.geetest_challenge,seccode:r.geetest_seccode,validate:r.geetest_validate}:3===e.type?i.geeTestQueryVO=r:2===e.type?i.shuMeiQueryVO={rid:r.rid}:0===e.type&&(i.captchaKey=e.captchaKey,i.captchaCode=e.captchaCode),t.next=127,a.$http.post(a.$api.register,i);case 127:n=t.sent,0==n.code?(e.$common.setToken(n.data),e.$common.setUser(n.data),e.$message({message:a.$t("k6b1866eb"),type:"success"}),sessionStorage.setItem("firstLogin",!0),c["a"].commit("firstLogin",!0),e.$nkhttp.getUserInfo(),e.$router.push("/"),c["a"].commit("advertisingShow",1)):(e.isClickRegister=!0,e.$common.clearToken(),e.$http.showMesasge(n.msg),1===a.type&&(s.innerHTML=""),e.getDefaultStatus());case 129:case"end":return t.stop()}}),t)})))()}},watch:{accountNumber:function(){this.registerIsDisabled()},password:function(){this.registerIsDisabled()},confirmPassword:function(){this.registerIsDisabled()},phone:function(){this.registerIsDisabled()},isSelect:function(){this.registerIsDisabled()},realName:function(){this.registerIsDisabled()},sex:function(){this.registerIsDisabled()},birthday:function(){this.registerIsDisabled()},wechat:function(){this.registerIsDisabled()},qq:function(){this.registerIsDisabled()},email:function(){this.registerIsDisabled()},address:function(){this.registerIsDisabled()},captchaCode:function(){this.registerIsDisabled()}},beforeDestroy:function(){this.smsInterval&&clearInterval(this.smsInterval)}}),g=u,d=(s("9199"),s("6c65"),s("2877")),p=Object(d["a"])(g,a,r,!1,null,"2b30ff6f",null);t["default"]=p.exports},"9d32":function(e,t,s){}}]);