webpackJsonp([48],{"6RAa":function(s,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("LzJq"),t=a("I3h8"),i={components:{sailPage:o.a},data:function(){return{registLoading:!1,password:{newPassword:"",confirmPassword:"",oldPassword:""}}},methods:{updatePassword:function(){var s=this;this.password.oldPassword?this.password.newPassword?this.password.confirmPassword?(this.registLoading=!0,this.$store.dispatch("updatePasswordModule/updatePassword",this.password).then(function(e){s.registLoading=!1,e&&(t.f.success({duration:1e3,message:"修改密码成功"}),setTimeout(function(){s.$router.push({path:"/MyPersonalInfor"})},1e3))})):t.f.fail({duration:1e3,message:"请再次输入新密码"}):t.f.fail({duration:1e3,message:"请输入新密码"}):t.f.fail({duration:1e3,message:"请输入旧密码"})}}},r={render:function(){var s=this,e=s.$createElement,a=s._self._c||e;return a("sail-page",{attrs:{type:"loading-view",title:"修改密码",isHead:""}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",{staticClass:"ModifyPassword"},[a("div",{staticClass:"weui-cells zero-top"},[a("div",{staticClass:"weui-cell"},[a("div",{staticClass:"weui-cell__bd"},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.password.oldPassword,expression:"password.oldPassword"}],staticClass:"weui-input",attrs:{type:"Password",placeholder:"请输入旧密码"},domProps:{value:s.password.oldPassword},on:{input:function(e){e.target.composing||s.$set(s.password,"oldPassword",e.target.value)}}})])]),s._v(" "),a("div",{staticClass:"weui-cell"},[a("div",{staticClass:"weui-cell__bd"},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.password.newPassword,expression:"password.newPassword"}],staticClass:"weui-input",attrs:{type:"Password",placeholder:"请输入新密码"},domProps:{value:s.password.newPassword},on:{input:function(e){e.target.composing||s.$set(s.password,"newPassword",e.target.value)}}})])]),s._v(" "),a("div",{staticClass:"weui-cell"},[a("div",{staticClass:"weui-cell__bd"},[a("input",{directives:[{name:"model",rawName:"v-model",value:s.password.confirmPassword,expression:"password.confirmPassword"}],staticClass:"weui-input",attrs:{type:"Password",placeholder:"请确认新密码"},domProps:{value:s.password.confirmPassword},on:{input:function(e){e.target.composing||s.$set(s.password,"confirmPassword",e.target.value)}}})])])])]),s._v(" "),a("van-button",{staticClass:"submit-btn",attrs:{size:"large",loading:s.registLoading},on:{click:s.updatePassword}},[s._v("确认")])],1)])},staticRenderFns:[]};var n=a("Z0/y")(i,r,!1,function(s){a("rE6p"),a("VzGq")},"data-v-519216e0",null);e.default=n.exports},MUoE:function(s,e,a){(s.exports=a("UTlt")(!0)).push([s.i,'\n.ModifyPassword[data-v-519216e0]{margin-top:4vw;content:"viewport-units-buggyfill; margin-top: 4vw"\n}',"",{version:3,sources:["/Users/gongyifeng/workcode/futureFed/sailClientApp/src/pages/personalCenter/personalMessageChildren/ModifyPassword.vue"],names:[],mappings:";AACA,iCAAiC,eAAe,mDAAmD;CAClG",file:"ModifyPassword.vue",sourcesContent:['\n.ModifyPassword[data-v-519216e0]{margin-top:4vw;content:"viewport-units-buggyfill; margin-top: 4vw"\n}'],sourceRoot:""}])},VzGq:function(s,e,a){var o=a("MUoE");"string"==typeof o&&(o=[[s.i,o,""]]),o.locals&&(s.exports=o.locals);a("FIqI")("3f2617a4",o,!0,{})},rE6p:function(s,e,a){var o=a("wv4V");"string"==typeof o&&(o=[[s.i,o,""]]),o.locals&&(s.exports=o.locals);a("FIqI")("9bda29fc",o,!0,{})},wv4V:function(s,e,a){(s.exports=a("UTlt")(!0)).push([s.i,"","",{version:3,sources:[],names:[],mappings:"",file:"ModifyPassword.vue",sourceRoot:""}])}});
//# sourceMappingURL=48.394a2f35d2863dd78e61.js.map