(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/sort"],{89:function(t,n,o){"use strict";(function(t,n){var e=o(4);o(26);e(o(25));var r=e(o(90));t.__webpack_require_UNI_MP_PLUGIN__=o,n(r.default)}).call(this,o(1)["default"],o(2)["createPage"])},90:function(t,n,o){"use strict";o.r(n);var e=o(91),r=o(93);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return r[t]}))}(i);o(95);var s,a=o(32),c=Object(a["default"])(r["default"],e["render"],e["staticRenderFns"],!1,null,null,null,!1,e["components"],s);c.options.__file="pages/tabbar/sort.vue",n["default"]=c.exports},91:function(t,n,o){"use strict";o.r(n);var e=o(92);o.d(n,"render",(function(){return e["render"]})),o.d(n,"staticRenderFns",(function(){return e["staticRenderFns"]})),o.d(n,"recyclableRender",(function(){return e["recyclableRender"]})),o.d(n,"components",(function(){return e["components"]}))},92:function(t,n,o){"use strict";var e;o.r(n),o.d(n,"render",(function(){return r})),o.d(n,"staticRenderFns",(function(){return s})),o.d(n,"recyclableRender",(function(){return i})),o.d(n,"components",(function(){return e}));try{e={uniNavBar:function(){return o.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(o.bind(null,357))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.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,o=(t._self._c,t.list.length),e=o>0?t.__map(t.list,(function(n,o){var e=t.__get_orig(n),r=t.$tools.oss(n.image);return{$orig:e,g1:r}})):null;t._isMounted||(t.e0=function(n,o){var e=arguments[arguments.length-1].currentTarget.dataset,r=e.eventParams||e["event-params"];o=r.item;return t.$tools.goNext("/pageOne/indexs/detail?id="+o.id)}),t.$mp.data=Object.assign({},{$root:{g0:o,l0:e}})},i=!1,s=[];r._withStripped=!0},93:function(t,n,o){"use strict";o.r(n);var e=o(94),r=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(i);n["default"]=r.a},94:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{select:0,types:[],list:[],ids:"",promotionUnlocked:!0,promotionH5Url:"https://point.agrimedia.cn/affiliate-activity/pages/classify/classify"}},onLoad:function(t){this.ids=t.id,this.syncPromotionStatus(),this.promotionUnlocked&&this.category()},onShow:function(){this.syncPromotionStatus(),this.syncCustomTabBar(),this.openPromotionPageIfNeeded()||0===this.types.length&&this.category()},methods:{syncPromotionStatus:function(){this.promotionUnlocked=this.$tools.getPromotionUnlocked()},syncCustomTabBar:function(){if(this.$tools.setTabbarSelectedPath("/pages/tabbar/sort"),"function"===typeof this.getTabBar){var t=this.getTabBar();t&&"function"===typeof t.syncPromotionStatus&&setTimeout((function(){t.syncPromotionStatus("/pages/tabbar/sort")}),0)}},openPromotionPageIfNeeded:function(){return!this.promotionUnlocked&&(!this.$tools.consumePromotionBridgeSkip("/pages/tabbar/sort")&&(this.$tools.goNext("/pages/h5/bridge?url=".concat(encodeURIComponent(this.promotionH5Url),"&from=").concat(encodeURIComponent("/pages/tabbar/sort"))),!0))},onSel:function(t,n){this.ids=n.id,this.select=t,this.shop()},category:function(){var t=this;this.$tools.axios("POST","shop/category").then((function(n){t.types=n.data,t.ids||(t.ids=n.data[t.select].id),t.shop()}))},shop:function(){var t=this;this.$tools.axios("POST","shop/shop",{category_id:this.ids}).then((function(n){t.list=n.data}))}}};n.default=e},95:function(t,n,o){"use strict";o.r(n);var e=o(96),r=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(i);n["default"]=r.a},96:function(t,n,o){}},[[89,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/tabbar/sort.js.map