user-center.js 4.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user-center/user-center"],{"7a6b":function(e,t,n){},"84fa":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,1==e.userCenter.is_foot_bar_status?e.__map(e.foot_bar,(function(t,n){var r=e.__get_orig(t),o=e._f("showNum")(t.name,e.userInfo);return{$orig:r,f0:o}})):null);e.$mp.data=Object.assign({},{$root:{l0:n}})},c=[]},8658:function(e,t,n){"use strict";var r=n("7a6b"),o=n.n(r);o.a},"8b67":function(e,t,n){"use strict";(function(e){n("2d0a");r(n("66fd"));var t=r(n("ae9a"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},ae9a:function(e,t,n){"use strict";n.r(t);var r=n("84fa"),o=n("e4af");for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);n("8658");var a,u=n("f0c5"),i=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"041af6db",null,!1,r["a"],a);t["default"]=i.exports},ced6:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){Promise.all([n.e("common/vendor"),n.e("components/page-component/app-user-center-top/app-user-center-top")]).then(function(){return resolve(n("b3c8"))}.bind(null,n)).catch(n.oe)},i=function(){n.e("components/page-component/app-account-balance/app-account-balance").then(function(){return resolve(n("2b36"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/page-component/app-my-order/app-my-order").then(function(){return resolve(n("77b9"))}.bind(null,n)).catch(n.oe)},p=function(){n.e("components/page-component/app-copyright/app-copyright").then(function(){return resolve(n("253a"))}.bind(null,n)).catch(n.oe)},f=function(){Promise.all([n.e("common/vendor"),n.e("components/page-component/app-vip-card/app-vip-card")]).then(function(){return resolve(n("7a92"))}.bind(null,n)).catch(n.oe)},l={name:"user-center",components:{AppCopyright:p,AppUserCenterTop:u,AppAccountBalance:i,AppMyOrder:s,AppVipCard:f},computed:c(c(c(c({},(0,r.mapState)({copyright:function(e){return e.mallConfig.copyright},userInfo:function(e){return e.user.info},is_icon_super_vip:function(e){return e.mallConfig.mall.setting.is_icon_super_vip},foot_bar:function(e){return e.userCenter.data.foot_bar},account_bar_status:function(){return this.userCenter.account_bar?this.userCenter.account_bar.status:0}})),{},{copyrightLink:function(){if(!this.copyright)return{};var e=this.copyright.link,t=e.open_type,n=e.new_link_url,r=e.params;return{openType:t,url:n,params:r||[]}}},(0,r.mapGetters)("mallConfig",{getTheme:"getTheme"})),(0,r.mapGetters)("userCenter",{userCenter:"userCenter"})),{},{listStyle:function(){return 1==this.userCenter.menu_style?"row":2==this.userCenter.menu_style?"grid dir-left-wrap":""}}),onLoad:function(){this.$commonLoad.onload()},onShow:function(){var t=this;this.$event.on(this.$const.EVENT_USER_LOGIN).then((function(){e.redirectTo({url:"/pages/user-center/user-center"})})),this.$user.isLogin()&&this.$store.dispatch("user/refresh"),this.$nextTick().then((function(){t.$store.dispatch("userCenter/data")}))},methods:{router:function(t){var n="";n="我的收藏"===t?"/pages/favorite/favorite":"/pages/foot/index/index",e.navigateTo({url:n})}},filters:{showNum:function(e,t){return"我的收藏"===e?t&&t.favorite?t.favorite:0:t&&t.footprint?t.footprint:0}}};t.default=l}).call(this,n("543d")["default"])},e4af:function(e,t,n){"use strict";n.r(t);var r=n("ced6"),o=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a}},[["8b67","common/runtime","common/vendor"]]]);