(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/set"],{170:function(n,t,e){"use strict";(function(n){var t=e(3);e(25);t(e(24));var r=t(e(171));wx.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e(1)["createPage"])},171:function(n,t,e){"use strict";e.r(t);var r=e(172),o=e(174);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);e(177);var u,c=e(39),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);s.options.__file="pages/set/set.vue",t["default"]=s.exports},172:function(n,t,e){"use strict";e.r(t);var r=e(173);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"]}))},173:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return u})),e.d(t,"recyclableRender",(function(){return i})),e.d(t,"components",(function(){return r}));var o=function(){var n=this,t=n.$createElement;n._self._c},i=!1,u=[];o._withStripped=!0},174:function(n,t,e){"use strict";e.r(t);var r=e(175),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a},175:function(n,t,e){"use strict";(function(n){var r=e(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(e(10)),i=e(27),u=e(176),c=e(49);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(652))}.bind(null,e)).catch(e.oe)},l=function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e(659))}.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,i.mapMutations)("user",["logout"])),{},{toLogout:function(){var t=this;n.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(0,u.logout)({}).then((function(e){t.logout(),n.switchTab({url:"/pages/index/index"})})).catch((function(n){console.log(n)}))}})},imgsub:function(){var n=this;(0,c.upload)({filename:""}).then((function(t){console.log(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/user"})}),1e3)})).catch((function(n){console.log(n),t.$api.msg("修改失败")}))}})};t.default=d}).call(this,e(1)["default"])},177:function(n,t,e){"use strict";e.r(t);var r=e(178),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=o.a},178:function(n,t,e){}},[[170,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/set.js.map