(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/category/index"],{"17d4":function(t,e,n){"use strict";var i=n("439a"),o=n.n(i);o.a},"439a":function(t,e,n){},"661a":function(t,e,n){"use strict";n.r(e);var i=n("9a50"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"74fd":function(t,e,n){"use strict";n.r(e);var i=n("a5fd"),o=n("661a");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("17d4");var r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"72a26d37",null,!1,i["a"],void 0);e["default"]=c.exports},"76de":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("2707");i(n("66fd"));var o=i(n("74fd"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"9a50":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("21d7")),a={data:function(){return{list1:[{name:"关注"},{name:"推荐"},{name:"电影"},{name:"科技"},{name:"音乐"},{name:"美食"},{name:"文化"},{name:"财经"},{name:"手工"}],name:"wkiwi",height:0,categoryActive:0,scrollTop:0,scrollLeftTop:0,classifyData:o.default,arr:[0,584,1168,1752,2336,2805,3274,3858,4442,4911,5380,5734,6203,6672,7017],leftItemHeight:51,navLeftHeight:0,diff:0,tabBarHeight:0}},created:function(){},onLoad:function(){this.height=t.getSystemInfoSync().windowHeight-this.tabBarHeight},onReady:function(){this.getHeightList()},methods:{getHeightList:function(){var e=this,n=t.createSelectorQuery();n.selectAll(".nav-left-item").boundingClientRect((function(t){e.leftItemHeight=t[0].height,e.navLeftHeight=e.leftItemHeight*o.default.length,e.diff=e.navLeftHeight-e.height})),n.selectAll(".box").boundingClientRect((function(t){var n=[0],i=0;t.forEach((function(t){i+=t.height,n.push(i)})),console.log(n),e.arr=n})).exec()},scroll:function(t){var e=this;this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e.scrollHeight=t.detail.scrollTop+1+e.height/2;for(var n=0;n<e.arr.length;n++){var i=e.arr[n],a=e.arr[n+1];if(!a||e.scrollHeight>=i&&e.scrollHeight<a)return e.categoryActive=n,e.diff>0&&(e.scrollLeftTop=Math.round(e.categoryActive*e.diff/(o.default.length-1))),!1}e.categoryActive=0,e.timeoutId=void 0}),10)},categoryClickMain:function(t){this.categoryActive=t,this.scrollTop==this.arr[t]?this.scrollTop=this.scrollTop+1:this.scrollTop=this.arr[t]},cart:function(e){t.showToast({title:e,icon:"none"})}},components:{}};e.default=a}).call(this,n("543d")["default"])},a5fd:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uSticky:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-sticky/u-sticky")]).then(n.bind(null,"57f4"))},uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"0069"))}},o=function(){var t=this.$createElement;this._self._c},a=[]}},[["76de","common/runtime","common/vendor"]]]);