(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/set"],{"0cb9":function(t,n,e){"use strict";e.r(n);var o=e("a237"),r=e("6631");for(var u in r)"default"!==u&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("4548");var c,i=e("f0c5"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=a.exports},"226a":function(t,n,e){"use strict";(function(t){e("5935");o(e("66fd"));var n=o(e("0cb9"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},4548:function(t,n,e){"use strict";var o=e("adce"),r=e.n(o);r.a},"4b36":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("26cb"),r=e("9c66"),u=e("2681");function c(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 i(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){a(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function a(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s=function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e("bdc8"))}.bind(null,e)).catch(e.oe)},f=function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e("83de"))}.bind(null,e)).catch(e.oe)},l={components:{uniList:s,uniListItem:f},data:function(){return{userInfo:{},pics:[]}},onLoad:function(){this.userInfo=t.getStorageSync("userInfo")||"",console.log(this.userInfo)},methods:i(i({},(0,o.mapMutations)("user",["logout"])),{},{toLogout:function(){var n=this;t.showModal({content:"确定要退出登录么",success:function(e){e.confirm&&(0,r.logout)({}).then((function(e){n.logout(),t.switchTab({url:"/pages/index/index"})})).catch((function(t){console.log(t)}))}})},imgsub:function(){var t=this;(0,u.upload)({filename:""}).then((function(n){console.log(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/user"})}),1e3)})).catch((function(t){console.log(t),n.$api.msg("修改失败")}))}})};n.default=l}).call(this,e("543d")["default"])},6631:function(t,n,e){"use strict";e.r(n);var o=e("4b36"),r=e.n(o);for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},a237:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var r=function(){var t=this,n=t.$createElement;t._self._c},u=[]},adce:function(t,n,e){}},[["226a","common/runtime","common/vendor"]]]);