12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f64c2d48"],{"0536":function(t,s,a){},"1cb8":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.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.new_password,callback:function(s){t.$set(t.params,"new_password",s)},expression:"params.new_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:{type:"button",disabled:""}},[t._v("找回密码")])])])])])},o=[],n=a("325c"),i=a("5c96"),r=a("f523"),l={data:function(){var t={mobile:"",code:"",new_password:""},s=[["mobile",["notNull","请输入手机号"]],["code",["notNull","请输入验证码"]],["new_password",["notNull","请输入新密码"]]],a=[["mobile",["isMobile","请输入正确手机号"]],["new_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["h"].editpassword(s).then((function(){i["Message"].success("修改成功"),t.$router.push("/login")}))},getCode:function(){var t=this.params,s=Object(n["d"])(t,[["code",["notNull","请输入验证码"]]]);if(s.length>0)return i["Message"].warning(s[0].errMsg)},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("b0ba"),a("2877")),d=Object(u["a"])(c,e,o,!1,null,"f0ed235c",null);s["default"]=d.exports},b0ba:function(t,s,a){"use strict";a("0536")}}]);
- //# sourceMappingURL=chunk-f64c2d48.38fc8fcb.js.map
|