(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d224e94"],{e1c5: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("q-form",{staticClass:"reset",on:{submit:e.reset}},[r("q-input",{attrs:{rounded:"",filled:"",dense:"",autofocus:"",label:"新密码","lazy-rules":"",type:"password",hint:"6-20位字母和数字的组合",rules:[function(e){return null!==e&&""!==e||"请填写新密码"},e.checkPassword]},scopedSlots:e._u([{key:"prepend",fn:function(){return[r("q-icon",{staticStyle:{color:"#333","font-size":"18px"},attrs:{name:"iconfont icontubiao-0"}})]},proxy:!0}]),model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),r("q-input",{attrs:{rounded:"",filled:"",dense:"",label:"再次确认","lazy-rules":"",type:"password",rules:[function(e){return null!==e&&""!==e||"请填写确认密码"},e.checkSurePassword]},scopedSlots:e._u([{key:"prepend",fn:function(){return[r("q-icon",{staticStyle:{color:"#333","font-size":"18px"},attrs:{name:"iconfont icontubiao-0"}})]},proxy:!0}]),model:{value:e.passwordSure,callback:function(t){e.passwordSure=t},expression:"passwordSure"}}),r("div",[r("q-btn",{staticClass:"full-width login-btn",attrs:{dense:"",unelevated:"",label:"确定",type:"submit",color:"primary"}})],1),r("div",{staticClass:"link"},[r("router-link",{staticClass:"text-grey-10 link-txt",attrs:{to:"/login/sure-phone"}},[e._v("返回")])],1)],1)},s=[],o=(r("456d"),r("8a81"),r("d25f"),r("9986"),r("8e6e"),r("9523")),c=r.n(o),a=(r("3b2b"),r("4ac6")),u=r("2f62"),i=r("64f6"),l=r("223d");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f={name:"reset",data:function(){return{phone:null,password:null,passwordSure:null,code:null}},created:function(){this.phone=this.$route.query.phone},methods:d({checkPassword:function(e){if(e.length<6||e.length>20)return"密码必须为字母加数字且长度6-20位";var t=new RegExp(/^[0-9A-Za-z]+$/);if(!t.test(e))return"密码必须为字母加数字且长度6-20位";var r=new RegExp(/[A-Za-z].*[0-9]|[0-9].*[A-Za-z]/);return!!r.test(e)||"密码必须为字母加数字且长度6-20位"},checkSurePassword:function(e){return e===this.password||"确认密码与新密码不相同"},reset:function(){var e=this,t={phone:this.phone,newPassword:this.password};Object(i["e"])(t).then((function(t){Object(a["k"])(""),Object(a["j"])(""),e.setToken(""),e.setRefreshToken(""),Object(l["b"])()}))}},Object(u["d"])({setToken:"SET_TOKEN",setRefreshToken:"SET_REFRESHTOKEN"}))},b=f,w=r("2877"),h=Object(w["a"])(b,n,s,!1,null,"6785ef11",null);t["default"]=h.exports}}]);