12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/pageFooter/index"],{"0014":function(t,e,n){"use strict";n.r(e);var a=n("051d"),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},"051d":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,r=a(n("9523")),i=n("26cb"),u=n("4e39"),c=n("39ed");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}var s=(o={name:"pageFooter",props:{status:{type:Number|String,default:1},countNum:{type:Number|String,default:0}},data:function(){return{newData:void 0,footHeight:0,isShow:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,i.mapState)({configData:function(t){return t.app.pageFooter}}))},(0,r.default)(o,"computed",(0,i.mapGetters)(["isLogin","cartNum","activityTab"])),(0,r.default)(o,"watch",{activityTab:{handler:function(t,e){},deep:!0},configData:{handler:function(e,n){var a=this,o=t.createSelectorQuery().in(this);this.newData=e,this.$nextTick((function(){o.select("#target").boundingClientRect((function(e){t.$emit("footHeight",e.height),e&&(a.footHeight=e.height+50)})).exec()}))},deep:!0}}),(0,r.default)(o,"created",(function(){var e=this,n=getCurrentPages(),a=n[n.length-1].route;this.$store.commit("ACTIVITYTAB","/"+a),t.$on("uploadFooter",(function(){var t=getCurrentPages(),n=t[t.length-1].route;e.$store.commit("ACTIVITYTAB","/"+n)}))})),(0,r.default)(o,"onShow",(function(){})),(0,r.default)(o,"mounted",(function(){var e=this;(0,u.getNavigation)().then((function(n){t.setStorageSync("pageFoot",n.data),e.$store.commit("FOOT_UPLOAD",n.data),e.newData=n.data}));t.hideTabBar(),this.newData=this.$store.state.app.pageFooter,this.isLogin&&this.getCartNum()})),(0,r.default)(o,"onHide",(function(){t.$off(["uploadFooter"])})),(0,r.default)(o,"methods",{goRouter:function(e){var n=getCurrentPages(),a=n[n.length-1].route;this.$store.commit("ACTIVITYTAB",e.link),e.link!="/"+a&&t.switchTab({url:e.link,fail:function(n){t.redirectTo({url:e.link})}})},getCartNum:function(){var t=this,e=this;(0,c.getCartCounts)().then((function(n){e.cartCount=n.data.count,t.$store.commit("indexData/setCartNum",n.data.count>99?"...":n.data.count)}))}}),o);e.default=s}).call(this,n("543d")["default"])},"0926":function(t,e,n){},"605d":function(t,e,n){"use strict";n.r(e);var a=n("a517"),o=n("0014");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("7775");var i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,"70846ef5",null,!1,a["a"],void 0);e["default"]=u.exports},7775:function(t,e,n){"use strict";var a=n("0926"),o=n.n(a);o.a},a517:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.newData?t.__map(t.newData.menuList,(function(e,n){var a=t.__get_orig(e),o=e.link==t.activityTab?t.$t(e.name):null,r=e.link!=t.activityTab?t.$t(e.name):null;return{$orig:a,m0:o,m1:r}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/pageFooter/index-create-component',
- {
- 'components/pageFooter/index-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("605d"))
- })
- },
- [['components/pageFooter/index-create-component']]
- ]);
|