(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{2608:function(t,n,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("9523")),u=e("26cb"),c=e("0c0e"),i=e("78b1"),a=e("5833");function s(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 f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?s(Object(e),!0).forEach((function(n){(0,r.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var l={components:{uniList:function(){e.e("components/uni-list/uni-list").then(function(){return resolve(e("179a"))}.bind(null,e)).catch(e.oe)},uniListItem:function(){e.e("components/uni-list-item/uni-list-item").then(function(){return resolve(e("9dfa"))}.bind(null,e)).catch(e.oe)}},data:function(){return{}},onShow:function(){console.log(this.hasLogin),this.hasLogin?this.loadBaseData():this.logout()},computed:f({},(0,u.mapState)(["hasLogin","userInfo"])),methods:f(f({},(0,u.mapMutations)(["setUserInfo","logout"])),{},{loadBaseData:function(){var t=this;(0,c.getUserInfo)({}).then((function(n){var e=n.data;t.setUserInfo(e.user),console.log(e.user,"dddd")})).catch((function(n){t.logout()}))},toLogout:function(){var n=this;t.showModal({content:"确定要退出登录么",success:function(t){t.confirm&&n.out()}})},out:function(){var t=this;(0,a.logout)({}).then((function(n){t.logout(),t.$api.msg(n.msg)})).catch((function(t){}))},navTo:function(n){this.hasLogin?t.navigateTo({url:n}):((0,i.saveUrl)(),(0,i.interceptor)())}})};n.default=l}).call(this,e("543d")["default"])},"398a":function(t,n,e){"use strict";e.r(n);var o=e("2608"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},"4daf":function(t,n,e){"use strict";e.r(n);var o=e("61ef"),r=e("398a");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("d3e8");var c=e("f0c5"),i=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=i.exports},6150:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("2e1c");o(e("66fd"));var r=o(e("4daf"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"61ef":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},r=[]},d3e8:function(t,n,e){"use strict";var o=e("ea69"),r=e.n(o);r.a},ea69:function(t,n,e){}},[["6150","common/runtime","common/vendor"]]]);