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

2 lines
4.6 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 r=o(e(68));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e(1)["default"],e(2)["createPage"])},68:function(t,n,e){"use strict";e.r(n);var o=e(69),r=e(71);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e(73);var a,s=e(32),c=Object(s["default"])(r["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 r})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return i})),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,422))}}}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 r=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),r=t.$tools.oss(n.image);return{$orig:o,g0:r}})):null),o=t.promotionUnlocked?t.__map(t.types,(function(n,e){var o=t.__get_orig(n),r=t.$tools.oss(n.image);return{$orig:o,g1:r}})):null,r=t.promotionUnlocked?t.list.length:null,i=t.promotionUnlocked&&r>0?t.__map(t.list,(function(n,e){var o=t.__get_orig(n),r=t.$tools.oss(n.image);return{$orig:o,g3:r}})):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,r=o.eventParams||o["event-params"];e=r.item;return t.$tools.goReLaunch("/pages/tabbar/sort?id="+e.id)},t.e3=function(n,e){var o=arguments[arguments.length-1].currentTarget.dataset,r=o.eventParams||o["event-params"];e=r.item;return t.$tools.goNext("/pageOne/indexs/detail?id="+e.id)}),t.$mp.data=Object.assign({},{$root:{l0:e,l1:o,g2:r,l2:i}})},i=!1,a=[];r._withStripped=!0},71:function(t,n,e){"use strict";e.r(n);var o=e(72),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},72:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){e.e("components/taoke/tab-home").then(function(){return resolve(e(429))}.bind(null,e)).catch(e.oe)},r={components:{TaokeHome:o},data:function(){return{images:[],nots:[],types:[],list:[],promotionUnlocked:!1}},onLoad:function(){this.syncPromotionStatus(),this.promotionUnlocked&&this.loadPageData()},onShow:function(){this.syncPromotionStatus(),this.syncCustomTabBar(),this.promotionUnlocked&&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)}},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=r},73:function(t,n,e){"use strict";e.r(n);var o=e(74),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},74:function(t,n,e){}},[[67,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/tabbar/index.js.map