(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/userinfo"],{"0d83":function(e,t,n){"use strict";(function(e){n("5935");r(n("66fd"));var t=r(n("c33b"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"155b":function(e,t,n){},"2ec3":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("26cb"),c=n("9c66");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i={data:function(){return{name:""}},computed:o({},(0,r.mapState)("user",["userInfo"])),onShow:function(e){this.name=this.userInfo.nickname+""},methods:{switchChange:function(e){this.addressData.default=e.value},confirm:function(){var t=this;(0,c.userEdit)({nickname:this.name,avatar:this.userInfo.avatar}).then((function(n){t.$api.msg("修改成功"),setTimeout((function(){e.switchTab({url:"/pages/user/user"})}),1e3),console.log(n)})).catch((function(e){console.log(e)}))}}};t.default=i}).call(this,n("543d")["default"])},5265:function(e,t,n){"use strict";var r=n("155b"),c=n.n(r);c.a},a171:function(e,t,n){"use strict";n.r(t);var r=n("2ec3"),c=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=c.a},bd57:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},u=[]},c33b:function(e,t,n){"use strict";n.r(t);var r=n("bd57"),c=n("a171");for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);n("5265");var o,a=n("f0c5"),i=Object(a["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=i.exports}},[["0d83","common/runtime","common/vendor"]]]);