(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/category/category"],{"0006":function(t,e,n){},"29ed":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},c=[]},"4ea4":function(t,e,n){"use strict";n.r(e);var i=n("29ed"),a=n("8f48");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("9206");var r,o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=u.exports},"8f48":function(t,e,n){"use strict";n.r(e);var i=n("dace"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},9206:function(t,e,n){"use strict";var i=n("0006"),a=n.n(i);a.a},9599:function(t,e,n){"use strict";(function(t){n("b755");i(n("66fd"));var e=i(n("4ea4"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},dace:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(n("a34a")),a=n("7c3c");function c(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i,a,c,r){try{var o=t[c](r),u=o.value}catch(l){return void n(l)}o.done?e(u):Promise.resolve(u).then(i,a)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var c=t.apply(e,n);function o(t){r(c,i,a,o,u,"next",t)}function u(t){r(c,i,a,o,u,"throw",t)}o(void 0)}))}}var u={data:function(){return{sizeCalcState:!1,tabScrollTop:0,currentId:9,flist:[]}},onLoad:function(){this.loadData()},onNavigationBarSearchInputClicked:function(e){t.navigateTo({url:"/pages/product/search"})},methods:{loadData:function(){var t=this;return o(i.default.mark((function e(){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t,(0,a.getCategoryList)({}).then((function(t){var e=t.data;n.flist=e.map((function(t){return t}))})).catch((function(t){console.log(t)}));case 2:case"end":return e.stop()}}),e)})))()},tabtap:function(t){console.log(t),this.sizeCalcState||this.calcSize(),this.currentId=t.id,console.log(t.top),this.tabScrollTop=t.top,console.log(this.tabScrollTop)},asideScroll:function(e){this.sizeCalcState||this.calcSize();var n=e.detail.scrollTop,i=0,a=10,c=t.createSelectorQuery().select(".content");c.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){i=t.height})).exec();var r=this.flist.filter((function(t){return t.top-10<=n})).reverse();r.length>0&&(i+n+a>=e.detail.scrollHeight?this.currentId=this.flist[this.flist.length-1].id:this.currentId=r[0].id)},calcSize:function(){var e=0;this.flist.forEach((function(n){var i=t.createSelectorQuery().select("#main-"+n.id);i.fields({size:!0},(function(t){n.top=e,e+=t.height,n.bottom=e})).exec()})),this.sizeCalcState=!0},navToList:function(e,n){t.navigateTo({url:"/pages/product/list?fid="+this.currentId+"&sid="+e+"&tid="+n})}}};e.default=u}).call(this,n("543d")["default"])}},[["9599","common/runtime","common/vendor"]]]);