webpackJsonp([58],{"8cAi":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("4YfN"),s=n.n(i),o=n("9rMa"),a=n("LzJq"),r=n("I3h8"),l={components:{sailPage:a.a},computed:s()({},Object(o.b)({loginInfo:function(e){return e.loginModule.loginInfo}})),data:function(){return{registLoading:!1,user:{cardCode:"string",headImg:"string",nickname:"娄神",updateFlag:1,userName:"string"}}},methods:{handleNickName:function(){var e=this;this.registLoading=!0,this.user.cardCode=this.loginInfo.cardCode,this.user.headImg=this.loginInfo.headImg,this.user.nickname=this.loginInfo.nickname,this.user.userName=this.loginInfo.loginName,this.$store.dispatch("updateUserModule/updateUser",this.user).then(function(t){e.registLoading=!1,t&&(r.f.success({duration:1e3,message:"修改昵称成功"}),e.$store.commit("loginModule/CHANGE_NICK_NAME",e.user.nickname),setTimeout(function(){e.$router.push({path:"/MyPersonalInfor"})},1e3))})}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sail-page",{attrs:{type:"loading-view",title:"昵称",isHead:""}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("div",{staticClass:"NickName"},[n("div",{staticClass:"weui-cells zero-top"},[n("div",{staticClass:"weui-cell"},[n("div",{staticClass:"weui-cell__bd"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.loginInfo.nickname,expression:"loginInfo.nickname"}],staticClass:"weui-input",attrs:{type:"text",placeholder:"请输入昵称"},domProps:{value:e.loginInfo.nickname},on:{input:function(t){t.target.composing||e.$set(e.loginInfo,"nickname",t.target.value)}}})])])])]),e._v(" "),n("van-button",{staticClass:"submit-btn",attrs:{size:"large",loading:e.registLoading},on:{click:e.handleNickName}},[e._v("绑定")])],1)])},staticRenderFns:[]};var u=n("Z0/y")(l,c,!1,function(e){n("eqUt"),n("eI2z")},"data-v-10001b5a",null);t.default=u.exports},Y9Cg:function(e,t,n){(e.exports=n("UTlt")(!0)).push([e.i,'\n.NickName[data-v-10001b5a]{margin-top:4vw;content:"viewport-units-buggyfill; margin-top: 4vw"\n}',"",{version:3,sources:["/Users/gongyifeng/workcode/futureFed/sailClientApp/src/pages/personalCenter/personalMessageChildren/NickName.vue"],names:[],mappings:";AACA,2BAA2B,eAAe,mDAAmD;CAC5F",file:"NickName.vue",sourcesContent:['\n.NickName[data-v-10001b5a]{margin-top:4vw;content:"viewport-units-buggyfill; margin-top: 4vw"\n}'],sourceRoot:""}])},eI2z:function(e,t,n){var i=n("Y9Cg");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("FIqI")("66f37317",i,!0,{})},eqUt:function(e,t,n){var i=n("tpzg");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("FIqI")("58b6dd46",i,!0,{})},tpzg:function(e,t,n){(e.exports=n("UTlt")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"NickName.vue",sourceRoot:""}])}});
//# sourceMappingURL=58.1518647870f350cf315e.js.map