(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{706:function(e,t,r){"use strict";r.r(t);var o=r(8),n=r(38);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 c(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(o.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 d={i18n:{messages:{zh:{title:"修改密码",old:"旧密码",new:"新密码",confirm:"确认密码",please:"请填写"},en:{title:"Change password",old:"Old Password",new:"New Password",confirm:"Confirm Password",please:"Please fill in "}}},data:function(){return{old_password:"",password:"",confirm_password:""}},methods:c(c({},Object(n.b)({changePwd:"user/changePwd"})),{},{onSubmit:function(){var e=this;this.changePwd({old_password:this.old_password,password:this.password,confirm_password:this.confirm_password}).then((function(t){e.$toast(t.msg),e.$router.back()}))}})},w=r(43),component=Object(w.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("van-nav-bar",{attrs:{title:e.$t("title"),"left-arrow":""},on:{"click-left":function(t){return e.$router.back()}}}),e._v(" "),r("van-form",{attrs:{"label-width":"9em"},on:{submit:e.onSubmit}},[r("van-field",{attrs:{type:"password",label:e.$t("old"),placeholder:""+e.$t("please")+e.$t("old"),rules:[{required:!0,message:""+e.$t("please")+e.$t("old")}]},model:{value:e.old_password,callback:function(t){e.old_password=t},expression:"old_password"}}),e._v(" "),r("van-field",{attrs:{type:"password",label:e.$t("new"),placeholder:""+e.$t("please")+e.$t("new"),rules:[{required:!0,message:""+e.$t("please")+e.$t("new")}]},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),e._v(" "),r("van-field",{attrs:{type:"password",label:e.$t("confirm"),placeholder:""+e.$t("please")+e.$t("confirm"),rules:[{required:!0,message:""+e.$t("please")+e.$t("confirm")}]},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("\n        "+e._s(e.$t("actions.submit"))+"\n      ")])],1)],1)],1)}),[],!1,null,"23c6de87",null);t.default=component.exports}}]);