(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-userinfo"],{"2f50":function(t,n,e){var a=e("91f7");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("4f06").default;i("ec06ebc2",a,!0,{sourceMap:!1,shadowMode:!1})},"3c8c":function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.userEdit=o,n.logout=r,n.registerReset=u,n.binding=c;var i=a(e("0dcb"));function o(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}function r(t){return(0,i.default)({url:"/api/logout",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/register/reset",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})}},"4a56":function(t,n,e){"use strict";e.r(n);var a=e("c8b6"),i=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"91f7":function(t,n,e){var a=e("24fb");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-68df3a59]{background:#f8f8f8;padding-top:%?16?%}.row[data-v-68df3a59]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-68df3a59]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-68df3a59]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-68df3a59]{font-size:%?36?%;color:#909399}.add-btn[data-v-68df3a59]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#5dbc7c;border-radius:%?10?%}body.?%PAGE?%[data-v-68df3a59]{background:#f8f8f8}',""]),t.exports=n},"9bee":function(t,n,e){"use strict";var a=e("2f50"),i=e.n(a);i.a},a0f0:function(t,n,e){"use strict";e.r(n);var a=e("ab64"),i=e("4a56");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("9bee");var r,u=e("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"68df3a59",null,!1,a["a"],r);n["default"]=c.exports},ab64:function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("昵称")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"修改昵称","placeholder-class":"placeholder"},model:{value:t.name,callback:function(n){t.name=n},expression:"name"}})],1),e("v-uni-button",{staticClass:"add-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.confirm.apply(void 0,arguments)}}},[t._v("提交")])],1)},o=[]},c8b6:function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("5530")),o=e("26cb"),r=e("3c8c"),u={data:function(){return{name:""}},computed:(0,i.default)({},(0,o.mapState)("user",["userInfo"])),onShow:function(t){this.name=this.userInfo.nickname+""},methods:{switchChange:function(t){this.addressData.default=t.value},confirm:function(){var t=this;(0,r.userEdit)({nickname:this.name,avatar:this.userInfo.avatar}).then((function(n){t.$api.msg("修改成功"),setTimeout((function(){uni.switchTab({url:"/pages/user/user"})}),1e3),console.log(n)})).catch((function(t){console.log(t)}))}}};n.default=u}}]);