(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-category-category"],{"08bc":function(t,e,i){var a=i("16d6");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("1ebccfb1",a,!0,{sourceMap:!1,shadowMode:!1})},"12c5":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getProducts=o,e.goodsDetail=r,e.getBargainList=c,e.cartAdd=l,e.collectAdd=d,e.collectDel=u,e.searchKeyword=s,e.groomList=f,e.seckillGoods=p,e.groupGoods=h,e.getCategoryList=g,e.getCombinationList=v,e.getCombinationLisRemove=m,e.getCombinationLisPink=b,e.getCombinationPoster=y,e.getSeckillClass=w,e.getSeckillList=k,e.reply_config=x,e.reply_list=C;var n=a(i("4c3b"));function o(t){return(0,n.default)({url:"/api/products",method:"get",data:t})}function r(t,e){return(0,n.default)({url:"/api/product/detail/"+e,method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/bargain/list",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/cart/add",method:"post",data:t})}function d(t){return(0,n.default)({url:"/api/collect/add",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/search/keyword",method:"get",data:t})}function f(t,e){return(0,n.default)({url:"/api/groom/list/"+e,method:"get",data:t})}function p(t,e){return(0,n.default)({url:"/api/seckill/detail/"+e,method:"get",data:t})}function h(t,e){return(0,n.default)({url:"/api/combination/detail/"+e,method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/category",method:"get",data:t})}function v(t){return(0,n.default)({url:"/api/combination/list",method:"get",data:t})}function m(t,e){return(0,n.default)({url:"/api/combination/remove"+e,method:"get",data:t})}function b(t,e){return(0,n.default)({url:"/api/combination/pink/"+e,method:"get",data:t})}function y(t){return(0,n.default)({url:"/api/combination/poster",method:"post",data:t})}function w(t){return(0,n.default)({url:"/api/seckill/index",method:"get",data:t})}function k(t,e){return(0,n.default)({url:"/api/seckill/list/"+e,method:"get",data:t})}function x(t,e){return(0,n.default)({url:"/api/reply/config/"+e,method:"get",data:t})}function C(t,e){return(0,n.default)({url:"/api/reply/list/"+e,method:"get",data:t})}},"16d6":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-29694056],\n.content[data-v-29694056]{height:100%;background-color:#f8f8f8}.content[data-v-29694056]{display:flex}.left-aside[data-v-29694056]{flex-shrink:0;width:%?200?%;height:100%;background-color:#fff}.f-item[data-v-29694056]{display:flex;align-items:center;justify-content:center;width:100%;height:%?100?%;font-size:%?28?%;color:#606266;position:relative}.f-item.active[data-v-29694056]{color:#5dbc7c;background:#f8f8f8}.f-item.active[data-v-29694056]:before{content:"";position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?36?%;width:%?8?%;background-color:#5dbc7c;border-radius:0 4px 4px 0;opacity:.8}.right-aside[data-v-29694056]{flex:1;overflow:hidden;padding-left:%?20?%;padding-right:%?20?%}.s-item[data-v-29694056]{display:flex;align-items:center;height:%?70?%;padding-top:%?8?%;font-size:%?28?%;color:#303133}.t-list[data-v-29694056]{display:flex;flex-wrap:wrap;border-radius:%?15?%;width:100%;background:#fff;padding-top:%?12?%}.t-list[data-v-29694056]:after{content:"";flex:99;height:0}.t-item[data-v-29694056]{flex-shrink:0;display:flex;justify-content:center;align-items:center;flex-direction:column;width:%?171?%;font-size:%?26?%;color:#666;padding-bottom:%?20?%}.t-item uni-image[data-v-29694056]{width:%?140?%;height:%?140?%}body.?%PAGE?%[data-v-29694056]{background-color:#f8f8f8}',""]),t.exports=e},"2e13":function(t,e,i){"use strict";i.r(e);var a=i("67d4"),n=i("db6c");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("c2a1");var r,c=i("f0c5"),l=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"29694056",null,!1,a["a"],r);e["default"]=l.exports},"67d4":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-scroll-view",{staticClass:"left-aside",attrs:{"scroll-y":!0}},t._l(t.flist,(function(e){return i("v-uni-view",{key:e.id,staticClass:"f-item b-b",class:{active:e.id===t.currentId},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.tabtap(e)}}},[t._v(t._s(e.cate_name))])})),1),i("v-uni-scroll-view",{staticClass:"right-aside",attrs:{"scroll-with-animation":!0,"scroll-y":!0,"scroll-top":t.tabScrollTop},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.asideScroll.apply(void 0,arguments)}}},t._l(t.flist,(function(e){return i("v-uni-view",{key:e.id,staticClass:"s-list",attrs:{id:"main-"+e.id}},[i("v-uni-text",{staticClass:"s-item"},[t._v(t._s(e.cate_name))]),i("v-uni-view",{staticClass:"t-list "},t._l(e.children,(function(a){return i("v-uni-view",{key:a.id,staticClass:"t-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navToList(e.id,a.id)}}},[i("v-uni-image",{attrs:{src:a.pic}}),i("v-uni-text",[t._v(t._s(a.cate_name))])],1)})),1)],1)})),1)],1)},o=[]},"7bc1":function(t,e,i){"use strict";var a=i("4ea4");i("4de4"),i("4160"),i("d81d"),i("26e9"),i("ac1f"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var n=a(i("1da1")),o=i("12c5"),r={data:function(){return{sizeCalcState:!1,tabScrollTop:0,currentId:9,flist:[]}},onLoad:function(){this.loadData()},onNavigationBarSearchInputClicked:function(t){uni.navigateTo({url:"/pages/product/search"})},methods:{loadData:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t,(0,o.getCategoryList)({}).then((function(t){var e=t.data;i.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(t){this.sizeCalcState||this.calcSize();var e=t.detail.scrollTop,i=0,a=10,n=uni.createSelectorQuery().select(".content");n.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){i=t.height})).exec();var o=this.flist.filter((function(t){return t.top-10<=e})).reverse();o.length>0&&(i+e+a>=t.detail.scrollHeight?this.currentId=this.flist[this.flist.length-1].id:this.currentId=o[0].id)},calcSize:function(){var t=0;this.flist.forEach((function(e){var i=uni.createSelectorQuery().select("#main-"+e.id);i.fields({size:!0},(function(i){e.top=t,t+=i.height,e.bottom=t})).exec()})),this.sizeCalcState=!0},navToList:function(t,e){uni.navigateTo({url:"/pages/product/list?fid="+this.currentId+"&sid="+t+"&tid="+e})}}};e.default=r},c2a1:function(t,e,i){"use strict";var a=i("08bc"),n=i.n(a);n.a},db6c:function(t,e,i){"use strict";i.r(e);var a=i("7bc1"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]);