(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-category-category"],{"0c73":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-scroll-view",{staticClass:"left-aside",attrs:{"scroll-y":!0}},t._l(t.flist,(function(e){return a("v-uni-view",{key:e.id,staticClass:"f-item b-b",class:{active:e.id===t.currentId},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tabtap(e)}}},[t._v(t._s(e.name))])})),1),a("v-uni-scroll-view",{staticClass:"right-aside",attrs:{"scroll-with-animation":!0,"scroll-y":!0}},[a("v-uni-view",{staticClass:"s-list"},t._l(t.slist,(function(e){return a("v-uni-view",{key:e.id,staticClass:"s-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navToList(e.id)}}},[a("v-uni-image",{attrs:{src:e.icon||"http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20190519/default.png"}}),a("v-uni-text",[t._v(t._s(e.name))])],1)})),1)],1)],1)},i=[]},"10b5":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */uni-page-body[data-v-395baa00],\n.content[data-v-395baa00]{height:100%;background-color:#f8f8f8}body.?%PAGE?%[data-v-395baa00]{background-color:#f8f8f8}.content[data-v-395baa00]{display:flex}.left-aside[data-v-395baa00]{flex-shrink:0;width:%?200?%;height:100%;background-color:#fff}.f-item[data-v-395baa00]{display:flex;align-items:center;justify-content:center;width:100%;height:%?100?%;font-size:%?28?%;color:#606266;position:relative}.f-item.active[data-v-395baa00]{color:#fa436a;background:#f8f8f8}.f-item.active[data-v-395baa00]:before{content:"";position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:%?36?%;width:%?8?%;background-color:#fa436a;border-radius:0 4px 4px 0;opacity:.8}.right-aside[data-v-395baa00]{flex:1;overflow:hidden;padding-left:%?20?%}.s-list[data-v-395baa00]{margin-top:%?20?%;display:flex;flex-wrap:wrap;width:100%;background:#fff;padding-top:%?12?%}.s-list[data-v-395baa00]:after{content:"";flex:99;height:0}.s-item[data-v-395baa00]{flex-shrink:0;display:flex;justify-content:center;align-items:center;flex-direction:column;width:%?176?%;font-size:%?26?%;color:#666;padding-bottom:%?20?%}.s-item uni-image[data-v-395baa00]{width:%?140?%;height:%?140?%}',""]),t.exports=e},"2f62":function(t,e,a){"use strict";a.r(e);var n=a("efed"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"46bf":function(t,e,a){"use strict";a.r(e);var n=a("0c73"),i=a("2f62");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("8639");var o=a("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"395baa00",null,!1,n["a"],void 0);e["default"]=c.exports},"79d3":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.fetchContent=function(){return(0,i.default)({method:"GET",url:"/home/content"})},e.fetchHotProductList=function(t){return(0,i.default)({method:"GET",url:"/home/hotProductList",params:t})},e.fetchNewProductList=function(t){return(0,i.default)({method:"GET",url:"/home/newProductList",params:t})},e.fetchProductCateList=function(t){return(0,i.default)({method:"GET",url:"/home/productCateList/"+t})},e.fetchRecommendProductList=function(t){return(0,i.default)({method:"GET",url:"/home/recommendProductList",params:t})},e.setEventSite=function(t){return(0,i.default)({method:"GET",url:"/api/lab/v1/experiment/member/event-create-by-shop",params:t})};var i=n(a("a4cd"))},8639:function(t,e,a){"use strict";var n=a("c326"),i=a.n(n);i.a},c326:function(t,e,a){var n=a("10b5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("0a649ca1",n,!0,{sourceMap:!1,shadowMode:!1})},efed:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("c223");var i=n(a("2634")),r=n(a("2fdc")),o=a("79d3"),c={data:function(){return{currentId:0,flist:[],slist:[]}},onLoad:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,o.fetchProductCateList)(0).then((function(e){t.flist=e.data,t.flist.length>0&&(t.currentId=t.flist[0].id,(0,o.fetchProductCateList)(t.currentId).then((function(e){t.slist=e.data})))}));case 1:case"end":return e.stop()}}),e)})))()},tabtap:function(t){var e=this;this.currentId=t.id,(0,o.fetchProductCateList)(this.currentId).then((function(t){e.slist=t.data}))},navToList:function(t){uni.navigateTo({url:"/pages/product/list?fid=".concat(this.currentId,"&sid=").concat(t)})}}};e.default=c}}]);