(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ac226"],{"17f0":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"open-sphere-log"},[e._v("XX")]),e._v(" "),r("el-form",{ref:"resetPwdForm",staticClass:"center-form",attrs:{model:e.resetPwdData,rules:e.resetRules}},[r("h3",[e._v("重置密码")]),e._v(" "),r("el-form-item",[r("el-input",{attrs:{placeholder:"邮箱","prefix-icon":"el-icon-ext-email",disabled:!0},model:{value:e.resetPwdData.email,callback:function(t){e.$set(e.resetPwdData,"email",t)},expression:"resetPwdData.email"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{type:"password",placeholder:"新密码","prefix-icon":"el-icon-lock"},model:{value:e.resetPwdData.password,callback:function(t){e.$set(e.resetPwdData,"password",t)},expression:"resetPwdData.password"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"password2"}},[r("el-input",{attrs:{type:"password",placeholder:"确认新密码","prefix-icon":"el-icon-lock"},model:{value:e.resetPwdData.password2,callback:function(t){e.$set(e.resetPwdData,"password2",t)},expression:"resetPwdData.password2"}})],1),e._v(" "),r("el-form-item",[r("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.onReset(t)}}},[e._v("确定")])],1)],1)],1)},a=[],o=r("8237"),i=r.n(o),n={data:function(){var e=this,t=function(t,r,s){r!==e.resetPwdData.password?s(new Error("两次密码不一致")):s()};return{resetPwdData:{email:"",password:"",password2:""},resetRules:{password:[{required:!0,message:"请输入新密码",trigger:"blur"},{min:6,message:"密码长度不能小于6位",trigger:"blur"}],password2:[{required:!0,trigger:"blur",validator:t}]}}},created:function(){var e=this.$route.query;Object.assign(this.resetPwdData,e)},methods:{onReset:function(){var e=this;this.$refs.resetPwdForm.validate((function(t){if(t){var r={};Object.assign(r,e.resetPwdData),r.password=i()(r.password),e.get("nologin.user.password.reset",r,(function(e){alert("密码重置成功"),this.logout()}),(function(t){return e.tipError(t.msg)}))}}))}}},l=n,d=r("2877"),p=Object(d["a"])(l,s,a,!1,null,null,null);t["default"]=p.exports}}]);