(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-userinfo"],{"0477":function(t,n,a){"use strict";var e=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(a("5530")),o=a("26cb"),r=a("3a66"),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},"2d22":function(t,n,a){"use strict";a.r(n);var e=a("f213"),i=a("ffe5");for(var o in i)"default"!==o&&function(t){a.d(n,t,(function(){return i[t]}))}(o);a("b2cd");var r,u=a("f0c5"),s=Object(u["a"])(i["default"],e["b"],e["c"],!1,null,"68df3a59",null,!1,e["a"],r);n["default"]=s.exports},"3a66":function(t,n,a){"use strict";var e=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.userEdit=o,n.logout=r,n.registerReset=u,n.transaction=s,n.binding=c;var i=e(a("0e39"));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 s(t){return(0,i.default)({url:"/api/transaction",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})}},"733e":function(t,n,a){var e=a("b399");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var i=a("4f06").default;i("7a62822a",e,!0,{sourceMap:!1,shadowMode:!1})},b2cd:function(t,n,a){"use strict";var e=a("733e"),i=a.n(e);i.a},b399:function(t,n,a){var e=a("24fb");n=e(!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},f213:function(t,n,a){"use strict";var e;a.d(n,"b",(function(){return i})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){return e}));var i=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"row b-b"},[a("v-uni-text",{staticClass:"tit"},[t._v("昵称")]),a("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),a("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=[]},ffe5:function(t,n,a){"use strict";a.r(n);var e=a("0477"),i=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(n,t,(function(){return e[t]}))}(o);n["default"]=i.a}}]);