(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{663:function(t,o,e){t.exports={}},760:function(t,o,e){"use strict";e(663)},821:function(t,o,e){"use strict";e.r(o);e(43),e(44),e(65),e(66),e(48),e(11),e(36);var r=e(24),n=e(45),l=e(221),c=e(230);function f(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function m(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?f(Object(e),!0).forEach((function(o){Object(r.a)(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var d={components:{"dialog-XX-success":l.default},middleware:"checkTimestamp",data:function(){return{xxContentVisible:!1,xxContent:"success",flag:!1,confirm_flag:!1,email:"",ruleForm:{password:"",confirm_password:""},rules:{password:[{required:!0,message:"Please enter your password",trigger:"blur"},{min:6,max:16,message:"Password length only allows 6-16 bits",trigger:"blur"}],confirm_password:[{required:!0,message:"Please confirm your password",trigger:"blur"}]}}},created:function(){var t=c.a.decrypt(this.$route.query.email).split("&t=");this.email=t[0]},methods:m(m({handleNotification:function(){this.$router.push("/"),this.$store.dispatch("logout"),this.openDialog()},submit:function(t){var o=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;o.ruleForm.password!==o.ruleForm.confirm_password?o.$message({message:"The second password is inconsistent",type:"error"}):o.$axios.post("/uk-api/uk/reset",{email:o.email,password:o.ruleForm.password,confirm_password:o.ruleForm.confirm_password}).then((function(t){o.xxContentVisible=!0,o.xxContent="Password Reset Successful"})).catch((function(){}))}))}},Object(n.c)(["openDialog"])),{},{showPassword:function(){this.flag=!this.flag,this.confirm_flag=!this.confirm_flag}})},w=(e(760),e(21)),component=Object(w.a)(d,(function(){var t=this,o=t._self._c;return o("div",{staticClass:"com-main com-width-1400 com-margin-auto"},[o("div",{staticClass:"resetPassword"},[o("div",[o("p",{staticClass:"title"},[t._v("Set New Password")]),t._v(" "),o("p",{staticClass:"tip"},[t._v("Fill in your new password")]),t._v(" "),o("div",{staticClass:"userInfo"},[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[o("el-form-item",{attrs:{prop:"password"}},[o("label",{attrs:{for:""}},[t._v("Password")]),t._v(" "),o("el-input",{attrs:{type:t.flag?"text":"password"},model:{value:t.ruleForm.password,callback:function(o){t.$set(t.ruleForm,"password",o)},expression:"ruleForm.password"}},[t.flag?o("i",{staticClass:"el-input__icon iconfont",staticStyle:{"font-size":"22px"},attrs:{slot:"suffix"},on:{click:t.showPassword},slot:"suffix"},[t._v("")]):o("i",{staticClass:"el-input__icon iconfont",staticStyle:{"font-size":"22px"},attrs:{slot:"suffix"},on:{click:t.showPassword},slot:"suffix"},[t._v("")])])],1),t._v(" "),o("el-form-item",{attrs:{prop:"confirm_password"}},[o("label",{attrs:{for:""}},[t._v(" Comfirm Password")]),t._v(" "),o("el-input",{attrs:{type:t.confirm_flag?"text":"password"},model:{value:t.ruleForm.confirm_password,callback:function(o){t.$set(t.ruleForm,"confirm_password",o)},expression:"ruleForm.confirm_password"}},[t.confirm_flag?o("i",{staticClass:"el-input__icon iconfont",staticStyle:{"font-size":"22px"},attrs:{slot:"suffix"},on:{click:t.showPassword},slot:"suffix"},[t._v("")]):o("i",{staticClass:"el-input__icon iconfont",staticStyle:{"font-size":"22px"},attrs:{slot:"suffix"},on:{click:t.showPassword},slot:"suffix"},[t._v("")])])],1)],1)],1),t._v(" "),o("div",{staticClass:"submitBtn"},[o("el-button",{on:{click:function(o){return t.submit("ruleForm")}}},[t._v("SUBMIT")])],1)])]),t._v(" "),o("dialog-XX-success",{attrs:{visible:t.xxContentVisible,content:t.xxContent},on:{"update:visible":function(o){t.xxContentVisible=o},"notify-parent":t.handleNotification}})],1)}),[],!1,null,"7d6b25ac",null);o.default=component.exports}}]);
//# sourceMappingURL=4a5e425.js.map