(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ae53135"],{1848:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"back-bar border-bottom"},[a("div",{staticClass:"arrow-icon"},[a("i",{staticClass:"el-icon-arrow-left",on:{click:function(e){t.$router.go(-1)}}})]),t._v("\n  "+t._s(t.title)+"\n  "),t._t("default")],2)},n=[],i=(a("cadf"),a("551c"),a("097d"),{name:"backBar",props:["title"]}),c=i,r=(a("1ef0"),a("2877")),o=Object(r["a"])(c,s,n,!1,null,"43578a1d",null);o.options.__file="index.vue";e["a"]=o.exports},"1ef0":function(t,e,a){"use strict";var s=a("a8b4"),n=a.n(s);n.a},"3cef":function(t,e,a){},"3d61":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"edit-me"},[a("back-bar",{attrs:{title:"编辑资料"}}),a("div",{staticClass:"edit-list"},[a("div",{staticClass:"item avatar-item"},[a("span",{staticClass:"title"},[t._v("头像")]),a("div",{staticClass:"cont"},[t.userInfo.cover_photo?a("img",{staticClass:"user-avatar",attrs:{src:t.userInfo.cover_photo,alt:""},on:{click:function(e){t.$editUserAvatar(t.userInfo.cover_photo)}}}):a("div",{staticClass:"user-avatar",class:"avatar_bg"+t.userInfo.user_id%9,attrs:{"data-name":t.userInfo.nick_name.slice(0,2).toUpperCase()},on:{click:t.$editUserAvatar}}),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"item",on:{click:t.editName}},[a("span",{staticClass:"title"},[t._v("昵称")]),a("span",{staticClass:"cont"},[t._v("\n        "+t._s(t.userInfo.nick_name)+" "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"item",on:{click:t.editUserId}},[a("span",{staticClass:"title"},[t._v("ID")]),a("span",{staticClass:"cont"},[t._v("\n        "+t._s(t.userInfo.user_name)),a("i",{staticClass:"el-icon-arrow-right"})])])])],1)},n=[],i=(a("9e1f"),a("450d"),a("6ed5")),c=a.n(i),r=a("be94"),o=(a("7f7f"),a("f225"),a("89a9")),u=a.n(o),l=a("2f62"),f=a("1848"),d=a("5975"),m=a("2b0e");m["default"].component(u.a.name,u.a);var v={name:"editMe",components:{backBar:f["a"]},data:function(){return{}},computed:Object(r["a"])({},Object(l["d"])({userInfo:function(t){return t.userInfo}})),methods:{editName:function(){var t=this;c.a.prompt("","修改昵称",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:this.userInfo.nick_name}).then(function(e){var a=e.value;a.length&&d["a"].user.changeNickName({nick_name:a}).then(function(e){e.data;t.$store.commit("setUserNickName",a),t.$store.commit("updateMemberNickName",{userId:t.$store.state.userId,nickName:a}),t.$showTips("修改成功")})}).catch(function(){})},editUserId:function(){var t=this;c.a.prompt("","修改ID",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:this.userInfo.user_name,inputPattern:/^[a-zA-Z_0-9-]{5,36}$/i,inputErrorMessage:"只能是5-36位数字字母下划线"}).then(function(e){var a=e.value;a.length&&d["a"].user.changeUserName({user_name:a}).then(function(e){e.data;t.$store.commit("setUserUserName",a),t.$store.commit("updateMemberNickName",{userId:t.$store.state.userId,userName:a}),t.$showTips("修改成功")})}).catch(function(){})}},created:function(){}},p=v,_=(a("4665"),a("2877")),h=Object(_["a"])(p,s,n,!1,null,"45373f91",null);h.options.__file="editMe.vue";e["default"]=h.exports},4665:function(t,e,a){"use strict";var s=a("3cef"),n=a.n(s);n.a},a8b4:function(t,e,a){}}]);