This commit is contained in:
2026-04-14 17:38:46 +08:00
commit b71e6d6bae
2848 changed files with 237896 additions and 0 deletions

View File

@ -0,0 +1,6 @@
wx.createComponent({
generic:true,
props: {leftList:{type:null}},
render: function(){}
})

View File

@ -0,0 +1,12 @@
{
"component": true,
"usingComponents": {
"cate-home-u-waterfall-left": "/components/cate-home/cate-home-u-waterfall-left",
"cate-home-u-waterfall-right": "/components/cate-home/cate-home-u-waterfall-right",
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
"cate-nav": "/components/cate-nav/cate-nav",
"active-area": "/components/active-area/active-area",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view style="padding:0 9rpx 0 30rpx;"><goods-list vue-id="59846874-6" width="336rpx" type="waterfall" list="{{leftList}}" bind:__l="__l"></goods-list></view>

View File

@ -0,0 +1 @@
@import "./cate-home.wxss"

View File

@ -0,0 +1,6 @@
wx.createComponent({
generic:true,
props: {rightList:{type:null}},
render: function(){}
})

View File

@ -0,0 +1,12 @@
{
"component": true,
"usingComponents": {
"cate-home-u-waterfall-left": "/components/cate-home/cate-home-u-waterfall-left",
"cate-home-u-waterfall-right": "/components/cate-home/cate-home-u-waterfall-right",
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
"cate-nav": "/components/cate-nav/cate-nav",
"active-area": "/components/active-area/active-area",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view style="padding:0 30rpx 0 9rpx;"><goods-list vue-id="59846874-7" width="336rpx" type="waterfall" list="{{rightList}}" bind:__l="__l"></goods-list></view>

View File

@ -0,0 +1 @@
@import "./cate-home.wxss"

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/cate-home/cate-home"],{"05ca":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("7eb4")),r=o(n("ee10")),c=o(n("8462")),u=o(n("8628")),i=n("c2cb"),s=(getApp(),{mixins:[c.default,u.default],name:"cate-home",props:{top:{type:[Number,String]},cate:{type:Object,default:function(){return{}}}},data:function(){return{goodsList:[],navList:[],hotGoods:[],newGoods:[],downOption:{auto:!1},upOption:{auto:!1,noMoreSize:1,empty:{icon:"/static/images/goods_null.png",tip:"暂无商品~"}}}},created:function(){},computed:{positionTop:function(){return this.top}},methods:{downCallback:function(){var t=this;return(0,r.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getIndexCategory();case 2:t.$refs.uWaterfall.clear&&t.$refs.uWaterfall.clear(),t.mescroll.resetUpScroll();case 4:case"end":return e.stop()}}),e)})))()},upCallback:function(t){var e=this,n=t.num,o=t.size;(0,i.getGoodsList)({page_size:o,page_no:n,platform_cate_id:this.cate.id}).then((function(n){var o=n.data,a=o.lists,r=a.length,c=!!o.more;1==t.num&&(e.goodsList=[]),e.goodsList=e.goodsList.concat(a),e.mescroll.endSuccess(r,c)}))},getIndexCategory:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n,o,r,c,u,s,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.cate.id,e.next=3,(0,i.getIndexCategory)({platform_category_id:n});case 3:o=e.sent,r=o.code,c=o.data,1==r&&(u=c.level_two,s=c.category_hots,l=c.category_recommend,t.navList=u,t.hotGoods=s,t.newGoods=l);case 7:case"end":return e.stop()}}),e)})))()}}});e.default=s},1183:function(t,e,n){"use strict";n.r(e);var o=n("11d6"),a=n("3c70");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("4372");var c=n("828b"),u=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},"11d6":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={mescrollUni:function(){return Promise.all([n.e("common/vendor"),n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null,"8293"))},cateNav:function(){return n.e("components/cate-nav/cate-nav").then(n.bind(null,"fdc9"))},activeArea:function(){return n.e("components/active-area/active-area").then(n.bind(null,"c9d3"))},uWaterfall:function(){return n.e("components/uview-ui/components/u-waterfall/u-waterfall").then(n.bind(null,"b072"))},goodsList:function(){return n.e("components/goods-list/goods-list").then(n.bind(null,"877a"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.hotGoods.length),n=this.newGoods.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},r=[]},"3c70":function(t,e,n){"use strict";n.r(e);var o=n("05ca"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},4372:function(t,e,n){"use strict";var o=n("82cb"),a=n.n(o);a.a},"82cb":function(t,e,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/cate-home/cate-home-create-component',
{
'components/cate-home/cate-home-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("1183"))
})
},
[['components/cate-home/cate-home-create-component']]
]);

View File

@ -0,0 +1,12 @@
{
"component": true,
"usingComponents": {
"cate-home-u-waterfall-left": "/components/cate-home/cate-home-u-waterfall-left",
"cate-home-u-waterfall-right": "/components/cate-home/cate-home-u-waterfall-right",
"mescroll-uni": "/components/mescroll-uni/mescroll-uni",
"cate-nav": "/components/cate-nav/cate-nav",
"active-area": "/components/active-area/active-area",
"u-waterfall": "/components/uview-ui/components/u-waterfall/u-waterfall",
"goods-list": "/components/goods-list/goods-list"
}
}

View File

@ -0,0 +1 @@
<view class="cate-home"><mescroll-uni class="vue-ref" vue-id="59846874-1" bg-color="#f4f4f4" top="{{positionTop}}" bottom="50px" safearea="{{true}}" down="{{downOption}}" up="{{upOption}}" data-ref="{{'mescrollRef'+i}}" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="content"><view style="margin:0 30rpx;"><cate-nav vue-id="{{('59846874-2')+','+('59846874-1')}}" list="{{navList}}" bind:__l="__l"></cate-nav></view><block wx:if="{{$root.g0}}"><view class="contain"><active-area vue-id="{{('59846874-3')+','+('59846874-1')}}" list="{{hotGoods}}" type="hot" title="品类热销" bind:__l="__l"></active-area></view></block><block wx:if="{{$root.g1}}"><view class="contain"><active-area vue-id="{{('59846874-4')+','+('59846874-1')}}" list="{{newGoods}}" type="new" title="品类推荐" bind:__l="__l"></active-area></view></block><view class="goods"><image class="title-img" src="/static/images/category_title.png"></image><u-waterfall generic:scoped-slots-left="cate-home-u-waterfall-left" data-vue-generic="scoped" generic:scoped-slots-right="cate-home-u-waterfall-right" bind:input="__e" class="vue-ref" vue-id="{{('59846874-5')+','+('59846874-1')}}" add-time="{{20}}" data-ref="uWaterfall" value="{{goodsList}}" data-event-opts="{{[['^input',[['__set_model',['','goodsList','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['right','left']}}"></u-waterfall></view></view></mescroll-uni></view>

View File

@ -0,0 +1 @@
.cate-home{border-radius:20rpx 20rpx 0 0;overflow:hidden}.cate-home .contain{padding:20rpx 30rpx 0}.cate-home .title-img{width:100%;height:120rpx}