(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/userinfo"],{"0d5e":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("3e59");o(e("66fd"));var c=o(e("52f2"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"2c88":function(t,n,e){"use strict";e.r(n);var o=e("a457"),c=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=c.a},"31cc":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},c=[]},"52f2":function(t,n,e){"use strict";e.r(n);var o=e("31cc"),c=e("2c88");for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("6e66");var i=e("f0c5"),u=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},"6e66":function(t,n,e){"use strict";var o=e("e307"),c=e.n(o);c.a},a457:function(t,n,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(e("9523")),r=e("26cb"),i=e("133a"),u=e("c30e");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function s(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,c.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var f={components:{uniList:function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e("e9ac"))}.bind(null,e)).catch(e.oe)},uniListItem:function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e("12f9"))}.bind(null,e)).catch(e.oe)}},data:function(){return{userInfo:{},pics:[]}},onLoad:function(){this.userInfo=t.getStorageSync("userInfo")||"",console.log(this.userInfo)},methods:s(s({},(0,r.mapMutations)("user",["logout"])),{},{toLogout:function(){var n=this;t.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(0,i.logout)({}).then((function(e){n.logout(),t.switchTab({url:"/pages/user/my"})})).catch((function(t){console.log(t)}))}})},imgsub:function(){var t=this;(0,u.upload)({filename:""}).then((function(n){console.log(n[0].url),t.userInfo.avatar=n[0].url}))},edit:function(){var n=this;t.showLoading({title:"提交中...",mask:!0}),(0,u.edit)({avatar:this.userInfo.avatar,nickname:this.userInfo.nickname}).then((function(e){t.hideLoading(),n.$api.msg("修改成功"),setTimeout((function(){t.switchTab({url:"/pages/user/my"})}),1e3)})).catch((function(t){console.log(t),n.$api.msg("修改失败")}))}})};n.default=f}).call(this,e("543d")["default"])},e307:function(t,n,e){}},[["0d5e","common/runtime","common/vendor"]]]);