(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/category/category"],{"467b":function(t,e,n){"use strict";n.r(e);var a=n("8a82"),i=n("80ff");for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("5b1a");var o=n("f0c5"),r=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports},"5a7e":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("3e39");a(n("66fd"));var i=a(n("467b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"5b1a":function(t,e,n){"use strict";var a=n("84c7"),i=n.n(a);i.a},"6e9c":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("2eee")),c=a(n("c973")),o=n("9918"),r={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(0,c.default)(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,o.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,i=t.createSelectorQuery().select(".content");i.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){a=t.height})).exec();var c=this.flist.filter((function(t){return t.top-10<=n})).reverse();c.length>0&&(a+n+10>=e.detail.scrollHeight?this.currentId=this.flist[this.flist.length-1].id:this.currentId=c[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=r}).call(this,n("543d")["default"])},"80ff":function(t,e,n){"use strict";n.r(e);var a=n("6e9c"),i=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=i.a},"84c7":function(t,e,n){},"8a82":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]}},[["5a7e","common/runtime","common/vendor"]]]);