1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65af7ca2"],{"14d9":function(t,e,r){"use strict";var s=r("23e7"),o=r("7b0b"),a=r("07fa"),n=r("3a34"),i=r("3511"),u=r("d039"),l=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},c=l||!d();s({target:"Array",proto:!0,arity:1,forced:c},{push:function(t){var e=o(this),r=a(e),s=arguments.length;i(r+s);for(var u=0;u<s;u++)e[r]=arguments[u],r++;return n(e,r),r}})},3511:function(t,e,r){"use strict";var s=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw s("Maximum allowed index exceeded");return t}},3860:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow",attrs:{title:"修改密码","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("van-form",{staticClass:"w-11/12 mx-auto mt-4",on:{submit:t.onSubmit}},[e("div",{staticClass:"bg-white shadow"},[e("van-field",{attrs:{name:"原密码",label:"原密码",type:"password",placeholder:"填写原密码",rules:[{required:!0}]},model:{value:t.passwordForm.old_password,callback:function(e){t.$set(t.passwordForm,"old_password",e)},expression:"passwordForm.old_password"}}),e("van-field",{attrs:{name:"新密码",label:"新密码",type:"password",placeholder:"填写新密码",rules:[{required:!0}]},model:{value:t.passwordForm.new_password,callback:function(e){t.$set(t.passwordForm,"new_password",e)},expression:"passwordForm.new_password"}}),e("van-field",{attrs:{name:"确认新密码",label:"确认新密码",type:"password",placeholder:"填写新密码",rules:[{required:!0}]},model:{value:t.passwordForm.new_password_repeat,callback:function(e){t.$set(t.passwordForm,"new_password_repeat",e)},expression:"passwordForm.new_password_repeat"}})],1),e("div",{staticClass:"mt-8"},[e("van-button",{attrs:{loading:t.submitLoading,block:"",type:"info","loading-text":"加载中...","native-type":"submit"}},[t._v("确认提交")])],1)])],1)},o=[],a=(r("14d9"),{data:function(){return{picList:[],passwordForm:{},submitLoading:!1}},created:function(){},methods:{onSubmit:function(){var t=this;this.submitLoading=!0,this.$store.dispatch("user/updatePassword",this.passwordForm).then((function(){t.$toast.success({message:"提交成功",duration:1e3,onClose:function(){t.$router.push({path:"/personal"})}})})).catch((function(){t.submitLoading=!1}))}}}),n=a,i=r("2877"),u=Object(i["a"])(n,s,o,!1,null,null,null);e["default"]=u.exports},"3a34":function(t,e,r){"use strict";var s=r("83ab"),o=r("e8b5"),a=TypeError,n=Object.getOwnPropertyDescriptor,i=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(o(t)&&!n(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}}]);
|