(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["signup"],{5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,r){var a=r("1d80"),n=r("5899"),i="["+n+"]",s=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),u=function(e){return function(t){var r=String(a(t));return 1&e&&(r=r.replace(s,"")),2&e&&(r=r.replace(o,"")),r}};e.exports={start:u(1),end:u(2),trim:u(3)}},7156:function(e,t,r){var a=r("861d"),n=r("d2bb");e.exports=function(e,t,r){var i,s;return n&&"function"==typeof(i=t.constructor)&&i!==r&&a(s=i.prototype)&&s!==r.prototype&&n(e,s),e}},a2be:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"signup"}},[r("div",{staticClass:"logo"},[r("img",{attrs:{width:"160px",src:e.img_logo}})]),r("div",{staticClass:"title"},[r("i",{staticClass:"el-icon-lock"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"signup.title",expression:"'signup.title'"}]})]),r("el-form",{ref:"params",staticClass:"form",attrs:{model:e.params,rules:e.rules,"label-width":"0"}},[r("el-form-item",{staticStyle:{position:"relative"},attrs:{prop:"country"}},[r("el-select",{staticClass:"country",attrs:{placeholder:e.$t("signup.form.country")},model:{value:e.params.country,callback:function(t){e.$set(e.params,"country",t)},expression:"params.country"}},e._l(e.mock_options,(function(t){return r("el-option",{key:t.id,attrs:{label:"cn"==e.Session.Get("lang")?t.name:t.enName,value:t.code}})})),1),r("i",{staticClass:"iconfont icondingwei"})],1),r("el-form-item",{attrs:{prop:"phone"}},[r("el-input",{staticClass:"m-input",attrs:{"prefix-icon":"iconfont iconshouji",placeholder:e.$t("signup.form.phone")},model:{value:e.params.phone,callback:function(t){e.$set(e.params,"phone","string"===typeof t?t.trim():t)},expression:"params.phone"}})],1),r("el-form-item",{attrs:{prop:"email"}},[r("el-input",{staticClass:"m-input",attrs:{"prefix-icon":"iconfont iconyouxiang1",placeholder:e.$t("signup.form.email")},model:{value:e.params.email,callback:function(t){e.$set(e.params,"email","string"===typeof t?t.trim():t)},expression:"params.email"}})],1),r("el-form-item",{attrs:{prop:"code"}},[r("el-row",[r("el-col",{attrs:{span:14}},[r("el-input",{staticClass:"code",attrs:{"prefix-icon":"iconfont iconyanzhengma",placeholder:e.$t("signup.form.code")},model:{value:e.params.emailCode,callback:function(t){e.$set(e.params,"emailCode","string"===typeof t?t.trim():t)},expression:"params.emailCode"}})],1),r("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:9,push:1}},[r("span",{staticClass:"getCode",domProps:{textContent:e._s(e.getCodeString)},on:{click:function(t){return e.getCode(1)}}})])],1)],1),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{staticClass:"m-input",attrs:{"show-password":"",autocomplete:"off","prefix-icon":"iconfont iconmima",placeholder:e.$t("signup.form.password")},model:{value:e.params.password,callback:function(t){e.$set(e.params,"password","string"===typeof t?t.trim():t)},expression:"params.password"}})],1),r("el-form-item",[r("ul",{staticClass:"pwd"},[r("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.1st",expression:"'signup.form.rules.1st'"}],class:{fit:e.rule1}}),r("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.2nd",expression:"'signup.form.rules.2nd'"}],class:{fit:e.rule2}}),r("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.3rd",expression:"'signup.form.rules.3rd'"}],class:{fit:e.rule3}})])]),r("el-form-item",{staticClass:"agree",attrs:{prop:"agree"}},[r("el-checkbox",{model:{value:e.params.agree,callback:function(t){e.$set(e.params,"agree",t)},expression:"params.agree"}}),r("p",{directives:[{name:"t",rawName:"v-t",value:"signup.agree",expression:"'signup.agree'"}]})],1),r("el-form-item",[r("el-button",{directives:[{name:"t",rawName:"v-t",value:"signup.button",expression:"'signup.button'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:e.register}})],1),r("el-form-item",[r("div",{staticClass:"signin words"},[r("span",[e._v("Or ")]),r("a",{directives:[{name:"t",rawName:"v-t",value:"signin.title",expression:"'signin.title'"}],attrs:{href:"#/signin"}})])]),r("el-form-item",[r("div",{staticClass:"words"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet1",expression:"'signup.agreemnet1'"}]}),r("a",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet2",expression:"'signup.agreemnet2'"}],attrs:{href:"pdf/Client_Agreement.pdf",target:"_blank"}}),r("span",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet3",expression:"'signup.agreemnet3'"}]}),r("a",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet4",expression:"'signup.agreemnet4'"}],attrs:{href:"pdf/Terms&Conditions.pdf",target:"_blank"}}),r("span",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet5",expression:"'signup.agreemnet5'"}]}),r("a",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet6",expression:"'signup.agreemnet6'"}],attrs:{href:"pdf/Privacy_Policy.pdf",target:"_blank"}}),r("span",{directives:[{name:"t",rawName:"v-t",value:"signup.agreemnet7",expression:"'signup.agreemnet7'"}]})])])],1)],1)},n=[],i=(r("a9e3"),r("5530")),s=(r("96cf"),r("1da1")),o=r("f04e"),u=r.n(o),c=r("7884"),p=r("d4ec"),l=r("bee2"),m=r("262e"),g=r("2caf"),f=r("ff2d"),d=r("bc3a"),v=r.n(d),h=r("f121"),w=r.n(h),b=function(e){Object(m["a"])(r,e);var t=Object(g["a"])(r);function r(){var e;return Object(p["a"])(this,r),e=t.call(this),v.a.defaults.baseURL=w.a.Host80,e}return Object(l["a"])(r,[{key:"Country",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},v.a.defaults.baseURL=w.a.Host80,e.next=4,this.post("/country/get",t);case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(f["a"]),C=new b,x=w.a.Code,y={computed:{rule1:function(){return!!this.params.password&&/^.{8,16}$/.test(this.params.password)},rule2:function(){return/^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(this.params.password)},rule3:function(){return/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*([~!@&%$^\\(\\)#_]).*\\1.*\\1)[A-Za-z0-9~!@&%$^\\(\\)#_]{8,16}$/.test(this.params.password)},getLang:function(){return this.Session.Get("lang")}},data:function(){var e=this;return{flag:!1,loading:!1,mock_options:[{label:"china",value:"cn"},{label:"england",value:"en"}],img_logo:u.a,timer:59,interval:null,getCodeString:"",params:{agentId:null,comPoint:null,email:"",password:"",country:"",emailCode:"",agree:!1},rules:{country:[{validator:function(t,r,a){""!=e.params.country&&null!=e.params.country?a():a(new Error(e.$i18n.t("vaildate.country.empty")))},trigger:"blur"}],email:[{validator:function(t,r,a){e.Config.Pattern.Email.test(r)?a():a(new Error(e.$i18n.t("vaildate.email.format")))},trigger:"blur"}],code:[{validator:function(t,r,a){""!=e.params.emailCode&&null!=e.params.emailCode?a():a(new Error(e.$i18n.t("vaildate.code.empty")))},trigger:"blur"}],password:[{validator:function(t,r,a){e.Config.Pattern.Password.test(r)?a():a(new Error(e.$i18n.t("vaildate.password.format")))},trigger:"blur"}],agree:[{validator:function(t,r,a){r?a():a(new Error(e.$i18n.t("vaildate.agree.empty")))},trigger:"change"}],phone:[{validator:function(t,r,a){r?a():a(new Error(e.$i18n.t("vaildate.input.empty")))},trigger:"blur"}]}}},methods:{getCountry:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,C.Country({});case 2:r=t.sent,r.code==x.StatusOK?e.mock_options=r.data:e.$pigeon.MessageError(r.msg);case 4:case"end":return t.stop()}}),t)})))()},getCountryCode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,a,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].CodeById({});case 2:r=t.sent,r.code==x.StatusOK&&(e.params.country=r.msg,e.Session.Get("timer")?(n=e.Session.Get("timer"),i=e.Session.Get("lang")?e.Session.Get("lang"):"CN"==e.params.country?"cn":"en",sessionStorage.clear(),e.Session.Set("lang",i),e.Session.Set("timer",n)):(a=e.Session.Get("lang")?e.Session.Get("lang"):"CN"==e.params.country?"cn":"en",sessionStorage.clear(),e.Session.Set("lang",a)));case 4:case"end":return t.stop()}}),t)})))()},register:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["params"].validate(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=12;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:return e.next=8,c["a"].Register(Object(i["a"])({},t.params));case 8:a=e.sent,a.code==x.StatusOK?(t.loading=!0,t.$pigeon.MessageOK(t.$i18n.t("Msg.registerSuc")),t.login(),t.flag=!1):(t.$pigeon.MessageError(a.msg),t.flag=!1),e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),login:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].Login({loginName:this.params.email,password:this.params.password});case 2:t=e.sent,t.code==x.StatusOK?(sessionStorage.setItem("access_token",t.data),v.a.defaults.headers.common["Access-Token"]=t.data,this.getLoginInfo()):this.$pigeon.MessageError(t.msg);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLoginInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].CustomLoginInfo();case 2:r=t.sent,r.code==x.StatusOK?(e.loading=!0,e.$store.commit("InitInfo",r.data),e.$pigeon.MessageOK(e.$i18n.t("Msg.LoginSuccess")),setTimeout((function(){e.loading=!1,e.$router.push({path:"/"}).catch((function(e){return e})),e.$store.commit("isActiveTab","0")}),1e3)):e.$pigeon.MessageError(e.$i18n.t("Msg.SystemError"));case 4:case"end":return t.stop()}}),t)})))()},switchLanguage:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$i18n.locale||"en",t.next=3,c["a"].switchLanguage({lang:r});case 3:case"end":return t.stop()}}),t)})))()},getCode:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}if(this.params.country){e.next=4;break}return this.$pigeon.MessageWarning(this.$i18n.t("vaildate.country.empty")),e.abrupt("return");case 4:if(this.params.email){e.next=7;break}return this.$pigeon.MessageWarning(this.$i18n.t("vaildate.email.empty")),e.abrupt("return");case 7:if(this.Config.Pattern.Email.test(this.params.email)){e.next=10;break}return this.$pigeon.MessageWarning(this.$i18n.t("vaildate.email.format")),e.abrupt("return");case 10:this.getCodeString=this.$i18n.t("signup.form.waitCode1")+this.timer+this.$i18n.t("signup.form.waitCode2"),r=this,this.interval||(this.getCode1(t),this.interval=setInterval((function(){r.timer--,r.Session.Set("timer",r.timer),r.getCodeString=r.$i18n.t("signup.form.waitCode1")+r.timer+r.$i18n.t("signup.form.waitCode2"),0==r.timer&&(a.getCodeString=a.$i18n.t("signup.form.getCode"),clearInterval(r.interval),r.interval=null,r.timer=59,r.Session.Set("timer",r.timer))}),1e3));case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getCode1:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=5;break}return r.next=3,c["a"].Code(Object(i["a"])({},t.params));case 3:a=r.sent,a.code==x.StatusOK?t.$pigeon.MessageOK(t.$i18n.t("Msg.CodeSuccess")):t.$pigeon.MessageError(a.msg);case 5:case"end":return r.stop()}}),r)})))()},initTimer:function(){var e=this.Session.Get("timer")||this.timer;59==e?this.getCodeString=this.$i18n.t("signup.form.getCode"):(this.timer=this.Session.Get("timer"),this.getCode(0))}},mounted:function(){if(this.getCountryCode(),this.getCountry(),this.$route.params.id){switch(this.params.agentId=Number(this.$route.params.id),this.$route.params.commission){case"F0":this.params.comPoint=0;break;case"F1":this.params.comPoint=10;break;case"F2":this.params.comPoint=20;break;case"F3":this.params.comPoint=30;break}switch(this.$route.params.ibInvalid){case"B0":this.params.ibInvalid=0;break;case"B1":this.params.ibInvalid=1;break}}this.initTimer()},destroyed:function(){clearInterval(this.interval)}},$=y,k=(r("bff7"),r("e0a2"),r("2877")),S=Object(k["a"])($,a,n,!1,null,"5343505a",null);t["default"]=S.exports},a9e3:function(e,t,r){"use strict";var a=r("83ab"),n=r("da84"),i=r("94ca"),s=r("6eeb"),o=r("5135"),u=r("c6b6"),c=r("7156"),p=r("c04e"),l=r("d039"),m=r("7c73"),g=r("241c").f,f=r("06cf").f,d=r("9bf2").f,v=r("58a8").trim,h="Number",w=n[h],b=w.prototype,C=u(m(b))==h,x=function(e){var t,r,a,n,i,s,o,u,c=p(e,!1);if("string"==typeof c&&c.length>2)if(c=v(c),t=c.charCodeAt(0),43===t||45===t){if(r=c.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+c}for(i=c.slice(2),s=i.length,o=0;on)return NaN;return parseInt(i,a)}return+c};if(i(h,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var y,$=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof $&&(C?l((function(){b.valueOf.call(r)})):u(r)!=h)?c(new w(x(t)),r,$):x(t)},k=a?g(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;k.length>S;S++)o(w,y=k[S])&&!o($,y)&&d($,y,f(w,y));$.prototype=b,b.constructor=$,s(n,h,$)}},b36c:function(e,t,r){},bff7:function(e,t,r){"use strict";var a=r("b36c"),n=r.n(a);n.a},e0a2:function(e,t,r){"use strict";var a=r("f081"),n=r.n(a);n.a},f04e:function(e,t,r){e.exports=r.p+"img/acc_logo.2f8459ae.png"},f081:function(e,t,r){}}]);