(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e66b588"],{"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("div",{staticClass:"user-detail-wraps"},[s("el-row",{attrs:{gutter:20}},[s("el-col",{staticClass:"user-detail-left",attrs:{span:8}},[s("el-avatar",{staticClass:"avatar",attrs:{size:150,src:e.user.avatar||"/user.png"}}),s("div",[s("h3",[e._v(e._s(e.user.username))])])],1),s("el-col",{staticClass:"user-detail-right",attrs:{span:16}},[s("h3",[e._v("我的资料")]),s("el-form",{attrs:{"label-position":"right","label-width":"80px"}},[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-date-picker",{staticClass:"w100",attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},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),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:e.doUpdate}},[e._v("保存")])],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}},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,u=(s("808d"),s("2877")),o=Object(u["a"])(i,a,r,!1,null,"b2ebfb7a",null);t["default"]=o.exports},"808d":function(e,t,s){"use strict";s("a518")},a518:function(e,t,s){}}]);
//# sourceMappingURL=chunk-3e66b588.681c81bf.js.map