(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/category/category"],{"0234":function(t,e,n){"use strict";var a=n("35c7"),c=n.n(a);c.a},"1f08":function(t,e,n){"use strict";n.r(e);var a=n("521a"),c=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=c.a},"35c7":function(t,e,n){},"521a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("a34a")),c=n("4d2c");function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,a,c,i,r){try{var o=t[i](r),u=o.value}catch(l){return void n(l)}o.done?e(u):Promise.resolve(u).then(a,c)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(a,c){var i=t.apply(e,n);function o(t){r(i,a,c,o,u,"next",t)}function u(t){r(i,a,c,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(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t,(0,c.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,a=0,c=10,i=t.createSelectorQuery().select(".content");i.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){a=t.height})).exec();var r=this.flist.filter((function(t){return t.top-10<=n})).reverse();r.length>0&&(a+n+c>=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 a=t.createSelectorQuery().select("#main-"+n.id);a.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"])},"61dc":function(t,e,n){"use strict";n.r(e);var a=n("9a33"),c=n("1f08");for(var i in c)"default"!==i&&function(t){n.d(e,t,(function(){return c[t]}))}(i);n("0234");var r,o=n("f0c5"),u=Object(o["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=u.exports},"9a33":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var c=function(){var t=this,e=t.$createElement;t._self._c},i=[]},ce0a:function(t,e,n){"use strict";(function(t){n("30ba");a(n("66fd"));var e=a(n("61dc"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["ce0a","common/runtime","common/vendor"]]]);