(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/taoke/source/classify-source"],{503:function(t,e,n){"use strict";n.r(e);var a=n(504),o=n(506);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n(508);var r,c=n(32),s=Object(c["default"])(o["default"],a["render"],a["staticRenderFns"],!1,null,"b8cec084",null,!1,a["components"],r);s.options.__file="components/taoke/source/classify-source.vue",e["default"]=s.exports},504:function(t,e,n){"use strict";n.r(e);var a=n(505);n.d(e,"render",(function(){return a["render"]})),n.d(e,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(e,"components",(function(){return a["components"]}))},505:function(t,e,n){"use strict";var a;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return i})),n.d(e,"components",(function(){return a}));try{a={bottomNav:function(){return n.e("components/bottom-nav/bottom-nav").then(n.bind(null,532))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var o=function(){var t=this,e=t.$createElement;t._self._c},i=!1,r=[];o._withStripped=!0},506:function(t,e,n){"use strict";n.r(e);var a=n(507),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},507:function(t,e,n){"use strict";(function(t){var a=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n(127)),i=function(){n.e("components/bottom-nav/bottom-nav").then(function(){return resolve(n(532))}.bind(null,n)).catch(n.oe)},r={components:{BottomNav:i},data:function(){return{statusBarHeight:44,activeIndex:0,categoryData:[],navActiveIndex:-1}},computed:{navBarHeight:function(){return this.statusBarHeight+44},currentSubCategories:function(){return this.categoryData.length>0&&this.categoryData[this.activeIndex]&&this.categoryData[this.activeIndex].second||[]}},onLoad:function(){this.initializePage()},mounted:function(){this.__taokeInitialized||(this.__taokeInitialized=!0,this.initializePage())},methods:{initializePage:function(){if(!this.__pageInitialized){this.__pageInitialized=!0;var e=t.getSystemInfoSync();this.statusBarHeight=e.statusBarHeight||44,this.getSuperCategory()}},getSuperCategory:function(){var t=this;o.default.get("https://api.cmspro.haodanku.com/index/superCategory?cid=YsWZ21tx",void 0,{header:{accept:"application/json, text/plain, */*","accept-language":"zh-CN,zh;q=0.9"}}).then((function(e){t.categoryData=e.data,t.matchNavActive()}))},matchNavActive:function(){var t=this;o.default.get("https://api.cmspro.haodanku.com/bottomBar/lists?cid=YsWZ21tx").then((function(e){if(e.data&&e.data.bottom_bar){var n=["首页","榜单","分类"],a=e.data.bottom_bar.filter((function(t){return n.includes(t.title)})).sort((function(t,e){return e.sort-t.sort})),o=a.findIndex((function(t){return"分类"===t.title}));-1!==o&&(t.navActiveIndex=o)}}))},switchMainCategory:function(t){this.activeIndex=t},goToSearch:function(){t.navigateTo({url:"/pages/search/search"})},goToDetail:function(e){var n=encodeURIComponent(e.cate_name.trim()),a=this.categoryData[this.activeIndex].cat_id,o=e.second_category;t.navigateTo({url:"/pages/category/category_detail?cate_name=".concat(n,"&id=").concat(a,"&second_category=").concat(o)})}}};e.default=r}).call(this,n(2)["default"])},508:function(t,e,n){"use strict";n.r(e);var a=n(509),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},509:function(t,e,n){}}]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/components/taoke/source/classify-source.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/taoke/source/classify-source-create-component',
    {
        'components/taoke/source/classify-source-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(503))
        })
    },
    [['components/taoke/source/classify-source-create-component']]
]);
