1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-category-category"],{"3cfa":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-f374cf6a],\n.content[data-v-f374cf6a]{height:100%;background-color:#f8f8f8}.content[data-v-f374cf6a]{display:flex}.left-aside[data-v-f374cf6a]{flex-shrink:0;width:%?200?%;height:100%;background-color:#fff}.f-item[data-v-f374cf6a]{display:flex;align-items:center;justify-content:center;width:100%;height:%?100?%;font-size:%?28?%;color:#606266;position:relative}.f-item.active[data-v-f374cf6a]{color:#5dbc7c;background:#f8f8f8}.f-item.active[data-v-f374cf6a]: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-f374cf6a]{flex:1;overflow:hidden;padding-left:%?20?%;padding-right:%?20?%}.s-item[data-v-f374cf6a]{display:flex;align-items:center;height:%?70?%;padding-top:%?8?%;font-size:%?28?%;color:#303133}.t-list[data-v-f374cf6a]{display:flex;flex-wrap:wrap;border-radius:%?15?%;width:100%;background:#fff;padding-top:%?12?%}.t-list[data-v-f374cf6a]:after{content:"";flex:99;height:0}.t-item[data-v-f374cf6a]{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-f374cf6a]{width:%?140?%;height:%?140?%}body.?%PAGE?%[data-v-f374cf6a]{background-color:#f8f8f8}',""]),t.exports=e},"50de":function(t,e,a){var i=a("3cfa");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("440c5e3e",i,!0,{sourceMap:!1,shadowMode:!1})},6884:function(t,e,a){"use strict";var i=a("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,e.getJfList=_,e.getJfDetail=S,e.getBl=z;var n=i(a("0e39"));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})}function _(t){return(0,n.default)({url:"/api/juniu/lst",method:"post",data:t})}function S(t){return(0,n.default)({url:"/api/juniu/info",method:"get",data:t})}function z(t){return(0,n.default)({url:"/api/index",method:"get",data:t})}},"88a4":function(t,e,a){"use strict";var i=a("50de"),n=a.n(i);n.a},"8d86":function(t,e,a){"use strict";a.r(e);var i=a("cefa"),n=a("a5ce");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("88a4");var r,c=a("f0c5"),l=Object(c["a"])(n["default"],i["b"],i["c"],!1,null,"f374cf6a",null,!1,i["a"],r);e["default"]=l.exports},a5ce:function(t,e,a){"use strict";a.r(e);var i=a("abb0"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},abb0:function(t,e,a){"use strict";var i=a("4ea4");a("4de4"),a("4160"),a("d81d"),a("26e9"),a("ac1f"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),o=a("6884"),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 a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,(0,o.getCategoryList)({}).then((function(t){var e=t.data;a.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,a=0,i=10,n=uni.createSelectorQuery().select(".content");n.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){a=t.height})).exec();var o=this.flist.filter((function(t){return t.top-10<=e})).reverse();o.length>0&&(a+e+i>=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 a=uni.createSelectorQuery().select("#main-"+e.id);a.fields({size:!0},(function(a){e.top=t,t+=a.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},cefa:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));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.cate_name))])})),1),a("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 a("v-uni-view",{key:e.id,staticClass:"s-list",attrs:{id:"main-"+e.id}},[a("v-uni-text",{staticClass:"s-item"},[t._v(t._s(e.cate_name))]),a("v-uni-view",{staticClass:"t-list "},t._l(e.children,(function(i){return a("v-uni-view",{key:i.id,staticClass:"t-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navToList(e.id,i.id)}}},[a("v-uni-image",{attrs:{src:i.pic}}),a("v-uni-text",[t._v(t._s(i.cate_name))])],1)})),1)],1)})),1)],1)},o=[]}}]);
|