yurong/unpackage/dist/dev/mp-weixin/pages/tabbar/index.js

2 lines
4.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/index"],{67:function(t,n,e){"use strict";(function(t,n){var o=e(4);e(26);o(e(25));var i=o(e(68));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},68:function(t,n,e){"use strict";e.r(n);var o=e(69),i=e(71);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e(73);var a,s=e(32),c=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);c.options.__file="pages/tabbar/index.vue",n["default"]=c.exports},69:function(t,n,e){"use strict";e.r(n);var o=e(70);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},70:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));try{o={uniNavBar:function(){return e.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(e.bind(null,357))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.promotionUnlocked?t.__map(t.images,(function(n,e){var o=t.__get_orig(n),i=t.$tools.oss(n.image);return{$orig:o,g0:i}})):null),o=t.promotionUnlocked?t.__map(t.types,(function(n,e){var o=t.__get_orig(n),i=t.$tools.oss(n.image);return{$orig:o,g1:i}})):null,i=t.promotionUnlocked?t.list.length:null,r=t.promotionUnlocked&&i>0?t.__map(t.list,(function(n,e){var o=t.__get_orig(n),i=t.$tools.oss(n.image);return{$orig:o,g3:i}})):null;t._isMounted||(t.e0=function(n){return t.$tools.goNext("/pageOne/indexs/search")},t.e1=function(n){return t.$tools.goNext("/pageOne/indexs/notList")},t.e2=function(n,e){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];e=i.item;return t.$tools.goReLaunch("/pages/tabbar/sort?id="+e.id)},t.e3=function(n,e){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];e=i.item;return t.$tools.goNext("/pageOne/indexs/detail?id="+e.id)}),t.$mp.data=Object.assign({},{$root:{l0:e,l1:o,g2:i,l2:r}})},r=!1,a=[];i._withStripped=!0},71:function(t,n,e){"use strict";e.r(n);var o=e(72),i=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"]=i.a},72:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{images:[],nots:[],types:[],list:[],promotionUnlocked:!0,promotionH5Url:"https://point.agrimedia.cn/affiliate-activity/pages/index/index"}},onLoad:function(){this.syncPromotionStatus(),this.promotionUnlocked&&this.loadPageData()},onShow:function(){this.syncPromotionStatus(),this.syncCustomTabBar(),this.openPromotionPageIfNeeded()||0===this.list.length&&this.loadPageData()},methods:{syncPromotionStatus:function(){this.promotionUnlocked=this.$tools.getPromotionUnlocked()},syncCustomTabBar:function(){if(this.$tools.setTabbarSelectedPath("/pages/tabbar/index"),"function"===typeof this.getTabBar){var t=this.getTabBar();t&&"function"===typeof t.syncPromotionStatus&&setTimeout((function(){t.syncPromotionStatus("/pages/tabbar/index")}),0)}},openPromotionPageIfNeeded:function(){return!this.promotionUnlocked&&(!this.$tools.consumePromotionBridgeSkip("/pages/tabbar/index")&&(this.$tools.goNext("/pages/h5/bridge?url=".concat(encodeURIComponent(this.promotionH5Url),"&from=").concat(encodeURIComponent("/pages/tabbar/index"))),!0))},loadPageData:function(){this.banner(),this.notice(),this.category(),this.shop()},banner:function(){var t=this;this.$tools.axios("POST","index/banner").then((function(n){t.images=n.data}))},notice:function(){var t=this;this.$tools.axios("POST","index/notice").then((function(n){t.nots=n.data}))},category:function(){var t=this;this.$tools.axios("POST","shop/category").then((function(n){t.types=n.data}))},shop:function(){var t=this;this.$tools.axios("POST","shop/shop",{type:1}).then((function(n){t.list=n.data}))}}};n.default=o},73:function(t,n,e){"use strict";e.r(n);var o=e(74),i=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"]=i.a},74:function(t,n,e){}},[[67,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/tabbar/index.js.map