(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e926050"],{"1c03":function(e,t,r){"use strict";r("3084"),r("31d1");var n=r("c1f0"),o=r.n(n),s=r("2ca7"),i=r("4360"),a=r("d2de"),u=o.a.create({headers:{}});u.interceptors.request.use((function(e){var t=Object(a["a"])("token"),r=Object(a["a"])("userpin");return t&&(e.headers["token"]=t),r?e.headers["userpin"]=r:"/api/web/action/tmOrder/springBoard"!=e.url&&e.url,e}),(function(e){console.log(e),Promise.reject(e)})),u.interceptors.response.use((function(e){var t=e.data,r=/^20\d+/;return r.test(e.status)?e.data:(Object(s["Message"])({message:t.message,type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||s["MessageBox"].confirm("你已被登出，可以取消继续留在该页面，或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].dispatch("FedLogOut").then((function(){location.reload()}))})),Promise.reject("error"))}),(function(e){return console.log("err"+e),Object(s["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=u},"1ddd":function(e,t,r){},"9c77":function(e,t,r){"use strict";var n=r("1ddd"),o=r.n(n);o.a},a0f0:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"registerCode"},[r("h1",[e._v("欢迎注册启服通账号")]),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入账号"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),r("el-form-item",{attrs:{prop:"verificationCode"}},[r("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.verificationCode,callback:function(t){e.$set(e.ruleForm,"verificationCode",t)},expression:"ruleForm.verificationCode"}}),r("el-button",{on:{click:e.getVerificationCode}},[e._v(e._s(e.btnInnerText))])],1),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{placeholder:"请输入密码","show-password":""},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm()}}},[e._v("确定")]),r("p",[e._v("已有账号，"),r("span",{on:{click:function(t){return e.$router.push("/user/login")}}},[e._v("去登陆")])])],1)],1)},o=[],s=(r("d0f0"),r("c24f")),i=r("d2de"),a={data:function(){return{ruleForm:{name:"",verificationCode:"",password:""},btnInnerText:"获取验证码",flag:!0,timeNum:60,timer:null,rules:{name:[{required:!0,message:"请输入账号",trigger:"blur"}],verificationCode:[{required:!0,message:"请输验证码",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},methods:{getVerificationCode:function(){var e=this;this.flag&&/^1[3|4|5|7|8][0-9]{9}$/.test(this.ruleForm.name)&&(this.flag=!1,Object(s["a"])(this.ruleForm.name).then((function(t){console.log(t),0==t.status?e.$message({message:"获取验证码成功！",type:"success"}):(e.$message.error("获取验证码失败！"),e.btnInnerText="重新获取验证码",clearInterval(e.timer),e.timeNum=60,e.flag=!0)})),this.btnInnerText=this.timeNum+"秒之后重新获取",this.timer=setInterval((function(){e.timeNum--,e.btnInnerText=e.timeNum+"秒之后重新获取",e.timeNum<=0&&(clearInterval(e.timer),e.btnInnerText="重新获取验证码",e.timeNum=60,e.flag=!0)}),1e3))},submitForm:function(){var e=this,t={mobile:this.ruleForm.name,vcode:this.ruleForm.verificationCode,password:this.ruleForm.password};this.ruleForm.name&&this.ruleForm.verificationCode&&this.ruleForm.password&&Object(s["d"])(t).then((function(t){0==t.status?(Object(i["b"])("userpin",t.data.userpin),e.$message({message:"注册成功！",type:"success"})):2030==t.status?e.$message.error("验证码错误！"):2060==t.status?e.$message({message:"请不要重新登录！",type:"warning"}):e.$message.error("注册失败！")}))}}},u=a,c=(r("9c77"),r("5511")),l=Object(c["a"])(u,n,o,!1,null,null,null);t["default"]=l.exports},c24f:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return u}));var n=r("1c03"),o="/api/web/auth/accessAuth/springBoard";function s(e){return n["a"].post(o,{actionType:"getVerifyCode",actionBody:{mobile:e}})}function i(e){return n["a"].post(o,{actionType:"userPinByLgoinVcode",actionBody:e})}function a(e){return n["a"].post(o,{actionType:"userPinByLgoin",actionBody:e})}function u(e){return n["a"].post(o,{actionType:"userPinByRegister",actionBody:e})}},d0f0:function(e,t,r){var n=r("b8d5"),o=r("8fee").f,s=Function.prototype,i=s.toString,a=/^\s*function ([^ (]*)/,u="name";!n||u in s||o(s,u,{configurable:!0,get:function(){try{return i.call(this).match(a)[1]}catch(e){return""}}})}}]);
//# sourceMappingURL=chunk-3e926050.4cbd0cc9.js.map