|
|
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e0609d2"],{"9fc9":function(e,s,t){"use strict";t("b327")},a4f8:function(e,s,t){"use strict";t.r(s);var a=function(){var e=this,s=e._self._c;return s("div",{staticClass:"page-my-info"},[s("div",{staticClass:"title"},[e._v("基本信息")]),s("el-form",{attrs:{size:"small","label-width":"100px",model:e.form,disabled:e.saving}},[s("el-form-item",{attrs:{label:"头像"}},[s("cl-upload",{model:{value:e.form.headImg,callback:function(s){e.$set(e.form,"headImg",s)},expression:"form.headImg"}})],1),s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickName,callback:function(s){e.$set(e.form,"nickName",s)},expression:"form.nickName"}})],1),s("el-form-item",{attrs:{label:"密码"}},[s("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(s){e.$set(e.form,"password",s)},expression:"form.password"}})],1),s("el-form-item",{attrs:{label:""}},[s("el-button",{attrs:{type:"primary",disabled:e.saving},on:{click:e.save}},[e._v("保存修改")])],1)],1)],1)},o=[],n=t("1ac7"),r=t("5880"),i={data:function(){return{form:{},saving:!1}},computed:Object(n["a"])({},Object(r["mapGetters"])(["userInfo"])),mounted:function(){this.form=this.userInfo},methods:{save:function(){var e=this;this.saving=!0;var s=this.form,t=s.headImg,a=s.nickName,o=s.password;this.$service.common.userUpdate({headImg:t,nickName:a,password:o}).then((function(){e.form.password="",e.$message.success("修改成功"),e.$store.dispatch("userInfo")})).catch((function(s){e.$message.error(s)})).done((function(){e.saving=!1}))}}},c=i,l=(t("9fc9"),t("1805")),m=Object(l["a"])(c,a,o,!1,null,null,null);s["default"]=m.exports},b327:function(e,s,t){}}]);
|
|
|
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e0609d2"],{"9fc9":function(e,s,t){"use strict";t("b327")},a4f8:function(e,s,t){"use strict";t.r(s);var a=function(){var e=this,s=e._self._c;return s("div",{staticClass:"page-my-info"},[s("div",{staticClass:"title"},[e._v("基本信息")]),s("el-form",{attrs:{size:"small","label-width":"100px",model:e.form,disabled:e.saving}},[s("el-form-item",{attrs:{label:"头像"}},[s("cl-upload",{model:{value:e.form.headImg,callback:function(s){e.$set(e.form,"headImg",s)},expression:"form.headImg"}})],1),s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickName,callback:function(s){e.$set(e.form,"nickName",s)},expression:"form.nickName"}})],1),s("el-form-item",{attrs:{label:"密码"}},[s("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(s){e.$set(e.form,"password",s)},expression:"form.password"}})],1),s("el-form-item",{attrs:{label:""}},[s("el-button",{attrs:{type:"primary",disabled:e.saving},on:{click:e.save}},[e._v("保存修改")])],1)],1)],1)},o=[],n=t("b71f"),r=t("5880"),i={data:function(){return{form:{},saving:!1}},computed:Object(n["a"])({},Object(r["mapGetters"])(["userInfo"])),mounted:function(){this.form=this.userInfo},methods:{save:function(){var e=this;this.saving=!0;var s=this.form,t=s.headImg,a=s.nickName,o=s.password;this.$service.common.userUpdate({headImg:t,nickName:a,password:o}).then((function(){e.form.password="",e.$message.success("修改成功"),e.$store.dispatch("userInfo")})).catch((function(s){e.$message.error(s)})).done((function(){e.saving=!1}))}}},l=i,c=(t("9fc9"),t("1805")),m=Object(c["a"])(l,a,o,!1,null,null,null);s["default"]=m.exports},b327:function(e,s,t){}}]);
|