chunk-6d489f91.92ecdae0.js 3.9 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d489f91"],{"5e5b":function(t,s,a){},7803:function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"header-sub"},[s("div",{staticClass:"header-sub-middle"},[s("div",{staticClass:"header-top"},[s("img",{staticClass:"logo-img",attrs:{src:a("7eba")},on:{click:function(s){return t.$router.push("/")}}})])])]),s("div",{staticClass:"middle-container"},[s("div",{staticClass:"box"},[s("span",{staticClass:"box-title"},[t._v("注册会员")]),s("div",{staticClass:"form-row"},[s("span",{staticClass:"form-label"},[t._v("用户名")]),s("div",{staticClass:"form-input-box"},[s("el-input",{attrs:{placeholder:"请输入用户名"},model:{value:t.params.username,callback:function(s){t.$set(t.params,"username",s)},expression:"params.username"}})],1)]),s("div",{staticClass:"form-row"},[s("span",{staticClass:"form-label"},[t._v("手机号")]),s("div",{staticClass:"form-input-box"},[s("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:t.params.mobile,callback:function(s){t.$set(t.params,"mobile",s)},expression:"params.mobile"}})],1)]),s("div",{staticClass:"form-row"},[s("span",{staticClass:"form-label"},[t._v("验证码")]),s("div",{staticClass:"form-input-box"},[s("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.params.code,callback:function(s){t.$set(t.params,"code",s)},expression:"params.code"}})],1),t.countDown>0?s("button",{staticClass:"get-code",attrs:{type:"button"}},[t._v(t._s(t.countDown)+"秒后重发")]):s("button",{staticClass:"get-code",attrs:{type:"button"},on:{click:function(s){return t.sendSms()}}},[t._v("发送验证码")])]),s("div",{staticClass:"form-row"},[s("span",{staticClass:"form-label"},[t._v("设置密码")]),s("div",{staticClass:"form-input-box"},[s("el-input",{attrs:{type:"password",placeholder:"6-12位,区分大小写"},model:{value:t.params.password,callback:function(s){t.$set(t.params,"password",s)},expression:"params.password"}})],1)]),s("div",{staticClass:"btn-box"},[s("button",{staticClass:"border-btn",attrs:{type:"button"},on:{click:function(s){return t.$router.back()}}},[t._v("已有账号")]),0===t.validatorNullResult.length?s("button",{attrs:{type:"button"},on:{click:function(s){return t.submit()}}},[t._v("注册")]):s("button",{staticClass:"gray",attrs:{disabled:"",type:"button"}},[t._v("注册")])])])])])},o=[],n=a("325c"),i=a("5c96"),r=a("f523"),l={data:function(){var t={username:"",mobile:"",code:"",password:""},s=[["username",["notNull","请输入用户名"]],["mobile",["notNull","请输入手机号"]],["code",["notNull","请输入验证码"]],["password",["notNull","请输入密码"]]],a=[["mobile",["isMobile","请输入正确手机号"]],["password",["checkPassLevel","密码需6~12位"]]],e=Object(n["d"])(t,s);return{params:t,validatorNullList:s,validatorErrorList:a,validatorNullResult:e,countDown:0}},watch:{params:{deep:!0,handler:function(t){this.validatorNullResult=Object(n["d"])(t,this.validatorNullList)}}},mounted:function(){},methods:{submit:function(){var t=this,s=this.params,a=Object(n["d"])(s,this.validatorErrorList);if(a.length>0)return i["Message"].warning(a[0].errMsg);r["s"].username(s).then((function(){i["Message"].success("注册成功"),t.$router.push("/login")}))},sendSms:function(){var t=this,s=this.params,a=Object(n["d"])(s,[["mobile",["notNull","请输入手机号"]]]);if(a.length>0)return i["Message"].warning(a[0].errMsg);r["h"].mobileCode({mobile:s.mobile}).then((function(s){var a=s.message;t.countDownFn(),Object(i["Message"])(a)}))},countDownFn:function(){var t=this,s=60,a=function a(){0!==s&&(t.countDown=--s,setTimeout((function(){return a()}),1e3))};a()}}},c=l,u=(a("b641"),a("2877")),d=Object(u["a"])(c,e,o,!1,null,"0e0ea5c4",null);s["default"]=d.exports},b641:function(t,s,a){"use strict";a("5e5b")}}]);
  2. //# sourceMappingURL=chunk-6d489f91.92ecdae0.js.map