(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{442:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return c}));var n=function(e){return/^[\w.-]+@\w+([.-]\w+)*\.\w+$/.test(e)},o=function(e){return/^1[3-9]\d{9}$/.test(e)},c=function(e){return n(e)||o(e)}},689:function(e,t,r){"use strict";r.r(t);r(34),r(60),r(84);var n=r(8),o=r(38),c=r(442);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f={data:function(){return{username:"",password:"",confirm_password:"",verification_code:""}},methods:d(d({},Object(o.b)({getCode:"user/getCode",login:"user/login",forgetPwd:"user/forgetPwd"})),{},{handleGetCode:function(){var e=this;if(Object(c.b)(this.username)){var t=Object(c.c)(this.username)?"86-".concat(this.username):this.username;this.getCode(t).then((function(){e.getTime()})).catch((function(t){var r=t.msg;e.$toast(r)}))}else this.$toast(this.$t("pageSign.account_err"))},getTime:function(){var e=this;this.timer=setInterval((function(){e.times--,0===e.times&&(clearInterval(e.timer),e.times=60)}),1e3)},onSubmit:function(){var e=this;if(this.password!==this.confirm_password)return this.$toast(this.$t("pageSign.pwd_err")),!1;var t={username:Object(c.c)(this.username)?"86-".concat(this.username):this.username,password:this.password,verification_code:this.verification_code};this.forgetPwd(t).then((function(t){e.$toast(t.msg),e.$router.replace("/sign/login")}))}})},v=r(43),component=Object(v.a)(f,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("van-nav-bar",{attrs:{title:e.$t("forget_pwd"),"left-arrow":""},on:{"click-left":function(t){return e.$router.back()}}}),e._v(" "),r("van-form",{on:{submit:e.onSubmit}},[r("van-field",{attrs:{label:e.$t("pageSign.account"),placeholder:e.$t("pageSign.account"),rules:[{required:!0}]},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),e._v(" "),r("van-field",{attrs:{clearable:"",label:e.$t("pageSign.valid_code"),placeholder:e.$t("pageSign.valid_code"),rules:[{required:!0}]},scopedSlots:e._u([{key:"button",fn:function(){return[r("van-button",{attrs:{size:"small",type:"primary",block:""},on:{click:function(t){return t.preventDefault(),e.handleGetCode(t)}}},[e._v(e._s(e.$t("pageSign.send_code")))])]},proxy:!0}]),model:{value:e.verification_code,callback:function(t){e.verification_code=t},expression:"verification_code"}}),e._v(" "),r("van-field",{attrs:{type:"password",label:e.$t("pageSign.pwd"),placeholder:e.$t("pageSign.pwd"),rules:[{required:!0}]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),e._v(" "),r("van-field",{attrs:{type:"password",label:e.$t("pageSign.confirm_pwd"),placeholder:e.$t("pageSign.pwd"),rules:[{required:!0}]},model:{value:e.confirm_password,callback:function(t){e.confirm_password=t},expression:"confirm_password"}}),e._v(" "),r("div",{staticStyle:{margin:"15px"}},[r("van-button",{staticClass:"submit",attrs:{block:"",type:"info","native-type":"submit"}},[e._v(e._s(e.$t("actions.submit")))])],1)],1)],1)}),[],!1,null,"10c7ab6a",null);t.default=component.exports}}]);