(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/sort"],{89:function(t,n,e){"use strict";(function(t,n){var o=e(4);e(26);o(e(25));var r=o(e(90));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e(1)["default"],e(2)["createPage"])},90:function(t,n,e){"use strict";e.r(n);var o=e(91),r=e(93);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e(95);var s,a=e(32),c=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);c.options.__file="pages/tabbar/sort.vue",n["default"]=c.exports},91:function(t,n,e){"use strict";e.r(n);var o=e(92);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"]}))},92:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return s})),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,433))}}}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,e=(t._self._c,t.list.length),o=e>0?t.__map(t.list,(function(n,e){var o=t.__get_orig(n),r=t.$tools.oss(n.image);return{$orig:o,g1:r}})):null;t._isMounted||(t.e0=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:{g0:e,l0:o}})},i=!1,s=[];r._withStripped=!0},93:function(t,n,e){"use strict";e.r(n);var o=e(94),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},94:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{select:0,types:[],list:[],ids:"",promotionUnlocked:!1}},onLoad:function(t){this.ids=t.id,this.syncPromotionStatus(),this.category()},onShow:function(){this.syncPromotionStatus(),this.syncCustomTabBar(),0===this.types.length&&this.category()},computed:{tabTitle:function(){return this.promotionUnlocked?"分类":"商城"}},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)}},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=o},95:function(t,n,e){"use strict";e.r(n);var o=e(96),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},96:function(t,n,e){}},[[89,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/tabbar/sort.js.map