(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/userinfo"],{138:function(n,t,e){"use strict";(function(n,t){var r=e(4);e(26);r(e(25));var o=r(e(139));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},139:function(n,t,e){"use strict";e.r(t);var r=e(140),o=e(142);for(var u in o)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(u);e(144);var i,c=e(35),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);s.options.__file="pages/set/userinfo.vue",t["default"]=s.exports},140:function(n,t,e){"use strict";e.r(t);var r=e(141);e.d(t,"render",(function(){return r["render"]})),e.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(t,"components",(function(){return r["components"]}))},141:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return i})),e.d(t,"recyclableRender",(function(){return u})),e.d(t,"components",(function(){return r}));var o=function(){var n=this,t=n.$createElement;n._self._c},u=!1,i=[];o._withStripped=!0},142:function(n,t,e){"use strict";e.r(t);var r=e(143),o=e.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(u);t["default"]=o.a},143:function(n,t,e){"use strict";(function(n){var r=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(e(11)),u=e(28),i=e(135),c=e(58);function s(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function a(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?s(Object(e),!0).forEach((function(t){(0,o.default)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var f=function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e(360))}.bind(null,e)).catch(e.oe)},l=function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e(367))}.bind(null,e)).catch(e.oe)},d={components:{uniList:f,uniListItem:l},data:function(){return{userInfo:{},pics:[]}},onLoad:function(){this.userInfo=n.getStorageSync("userInfo")||"",console.log(this.userInfo)},methods:a(a({},(0,u.mapMutations)("user",["logout"])),{},{toLogout:function(){var t=this;n.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(0,i.logout)({}).then((function(e){t.logout(),n.switchTab({url:"/pages/user/my"})})).catch((function(n){console.log(n)}))}})},imgsub:function(){var n=this;(0,c.upload)({filename:""}).then((function(t){console.log(t[0].url),n.userInfo.avatar=t[0].url}))},edit:function(){var t=this;n.showLoading({title:"提交中...",mask:!0}),(0,c.edit)({avatar:this.userInfo.avatar,nickname:this.userInfo.nickname}).then((function(e){n.hideLoading(),t.$api.msg("修改成功"),setTimeout((function(){n.switchTab({url:"/pages/user/my"})}),1e3)})).catch((function(n){console.log(n),t.$api.msg("修改失败")}))}})};t.default=d}).call(this,e(2)["default"])},144:function(n,t,e){"use strict";e.r(t);var r=e(145),o=e.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(u);t["default"]=o.a},145:function(n,t,e){}},[[138,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/userinfo.js.map