(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05568127"],{"33c5":function(r,t,e){},5723:function(r,t,e){"use strict";e.d(t,"a",(function(){return o})),e.d(t,"d",(function(){return a})),e.d(t,"b",(function(){return n})),e.d(t,"c",(function(){return i}));var s=e("66df"),o=function(r){return s["a"].request({method:"post",url:"api/platform.php?s=Platform.User.Profile",data:r})},a=function(r){return s["a"].request({method:"post",url:"api/platform.php?s=Platform.User.UpdateProfile",data:r})},n=function(r){return s["a"].request({method:"post",url:"api/admin.php?s=Admin.User.GetLastestLoginRecord",data:r})},i=function(r){return s["a"].request({method:"post",url:"api/platform.php?s=Platform.User.AlterPass",data:r})}},"74c5":function(r,t,e){"use strict";e.r(t);var s=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"main"},[e("h3",[r._v(r._s(r.$t("pwd_alter")))]),e("div",{staticClass:"content"},[e("div",{staticClass:"form"},[e("Form",{ref:"form",attrs:{model:r.form,rules:r.ruleCustom,"label-width":80}},[e("FormItem",{attrs:{label:r.$t("origin_pwd")+":",prop:"password",placeholder:r.$t("origin_pwd_input_tips")+":"}},[e("Input",{attrs:{clearable:"",type:"password"},model:{value:r.form.password,callback:function(t){r.$set(r.form,"password",t)},expression:"form.password"}})],1),e("FormItem",{attrs:{label:r.$t("new_pwd")+":",prop:"new_password",placeholder:r.$t("new_pwd_input_tips")+":"}},[e("Input",{attrs:{clearable:"",type:"password"},model:{value:r.form.new_password,callback:function(t){r.$set(r.form,"new_password",t)},expression:"form.new_password"}})],1),e("FormItem",{attrs:{label:r.$t("new_pwd_confirm")+":",prop:"confirm_password",placeholder:r.$t("pwd_confirm_tips")+":"}},[e("Input",{attrs:{clearable:"",type:"password"},model:{value:r.form.confirm_password,callback:function(t){r.$set(r.form,"confirm_password",t)},expression:"form.confirm_password"}})],1),e("FormItem",[e("Button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(t){return r.handleSubmit("formCustom")}}},[r._v(r._s(r.$t("submit")))])],1)],1)],1)])])},o=[],a=e("c276"),n=e("5723"),i={name:"resetPwd",data:function(){var r=this,t=function(t,e,s){e?s():s(new Error(r.$t("origin_pwd_input_tips")))},e=function(t,e,s){r.form.confirm_password&&r.$refs.form.validateField("confirm_password"),s()},s=function(t,e,s){e?e!==r.form.new_password?s(new Error(r.$t("new_pwd_confirm_error_2"))):s():s(new Error(r.$t("new_pwd_confirm_error_1")))};return{token:Object(a["h"])(),form:{password:"",new_password:"",confirm_password:""},ruleCustom:{password:[{required:!0,message:this.$t("origin_pwd_input_tips"),trigger:"blur"},{pattern:/^[a-zA-Z0-9]{6,20}$/,message:this.$t("pwd_length_error"),trigger:"blur"},{validator:t,trigger:"blur"}],new_password:[{required:!0,message:this.$t("new_pwd_input_tips"),trigger:"blur"},{pattern:/^\S+$/,message:this.$t("new_pwd_format_error"),trigger:"blur"},{pattern:/^[a-zA-Z0-9]{6,20}$/,message:this.$t("pwd_length_error"),trigger:"blur"},{validator:e,trigger:"blur"}],confirm_password:[{required:!0,message:this.$t("pwd_confirm_tips"),trigger:"blur"},{validator:s,trigger:"blur"}]}}},methods:{handleSubmit:function(){var r=this;this.$refs.form.validate((function(t){if(!t)return!1;var e=new FormData;e.append("access_token",r.token),e.append("password",r.form.password),e.append("new_password",r.form.confirm_password),Object(n["c"])(e).then((function(t){t.data.is_alter?r.$Message.success(r.$t("pwd_alter_success")):r.$Message.error(r.$t("pwd_alter_fail"))}))}))}}},p=i,d=(e("8f98"),e("2877")),u=Object(d["a"])(p,s,o,!1,null,"0df2cf2e",null);t["default"]=u.exports},"8f98":function(r,t,e){"use strict";var s=e("33c5"),o=e.n(s);o.a}}]);