(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0fa4693d"],{"10c2":function(e,t,s){"use strict";s("2040")},2040:function(e,t,s){},"7c6b":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-menu",{attrs:{mode:"horizontal","default-active":"1"}},[s("el-menu-item",{attrs:{index:"1"}},[e._v("我的资料")])],1),s("div",[s("el-row",{attrs:{type:"flex",align:"middle",justify:"space-start"}},[s("el-col",{attrs:{span:6}},[s("el-row",{staticClass:"daitel",attrs:{type:"flex",justify:"center"}},[s("el-avatar",{staticClass:"avatar",attrs:{size:150,src:e.user.avatar||"/user.png"}})],1)],1),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"daitel"},[s("el-form",{attrs:{"label-width":"80px",inline:!0}},[s("el-form-item",{attrs:{label:"姓名"}},[s("el-input",{model:{value:e.user.username,callback:function(t){e.$set(e.user,"username",t)},expression:"user.username"}})],1),s("el-form-item",{attrs:{label:"性别"}},[s("el-radio-group",{model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[s("el-radio",{attrs:{label:1}},[e._v("男")]),s("el-radio",{attrs:{label:2}},[e._v("女")]),s("el-radio",{attrs:{label:9}},[e._v("未知")])],1)],1),s("el-form-item",{attrs:{label:"出生年月"}},[s("el-input",{model:{value:e.user.birthday,callback:function(t){e.$set(e.user,"birthday",t)},expression:"user.birthday"}})],1),s("el-form-item",{attrs:{label:"联系电话"}},[s("el-input",{attrs:{disabled:""},model:{value:e.user.phoneNumber,callback:function(t){e.$set(e.user,"phoneNumber",t)},expression:"user.phoneNumber"}})],1),s("el-form-item",{attrs:{label:"电子邮箱"}},[s("el-input",{model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1)],1),s("el-form",{attrs:{"label-width":"80px"}},[s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:e.doUpdate}},[e._v("保存")])],1)],1)],1)])],1)],1)],1)},r=[],l={components:{},data:function(){return{editUserInfo:{},sex:[{text:"男",value:1},{text:"女",value:2},{text:"未知",value:9}]}},computed:{user:function(){return this.$store.state.login.userInfo}},watch:{userInfo:function(e){this.user=e}},methods:{doUpdate:function(){var e=this;this.loadingShow("更新中..."),this.$store.dispatch("login/updateUserInfo",this.user).then((function(t){1==t?(e.$message.success("操作完成"),e.$store.dispatch("user/getInfo")):e.$message.error(t.message),e.loadingHide()}))["catch"]((function(t){e.$message.success("操作失败，请重试！"),e.loadingHide()}))}}},i=l,n=(s("10c2"),s("2877")),u=Object(n["a"])(i,a,r,!1,null,"13f5bc25",null);t["default"]=u.exports}}]);
//# sourceMappingURL=chunk-0fa4693d.2cfc2b93.js.map