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