29 lines
990 B
Plaintext
29 lines
990 B
Plaintext
<view class="wrap">
|
|
<goods-category
|
|
level="{{2}}"
|
|
custom-class="goods-category-class"
|
|
category="{{list}}"
|
|
initActive="{{[0,0]}}"
|
|
bind:changeCategory="onChange"
|
|
bind:reachbottom="onReachBottom"
|
|
>
|
|
<!-- 当前分类商品列表:插入到二级分类组件下方 -->
|
|
<view slot="goodsList" class="category-goods-container">
|
|
<view class="empty-wrap" wx:if="{{goodsList.length === 0 && hasLoaded}}">
|
|
<t-empty t-class="empty-tips" size="240rpx" description="暂无相关商品" />
|
|
</view>
|
|
|
|
<view class="category-goods-list" wx:if="{{goodsList.length}}">
|
|
<goods-list
|
|
wr-class="wr-goods-list"
|
|
goodsList="{{goodsList}}"
|
|
show-cart="{{false}}"
|
|
bind:click="handleClickGoods"
|
|
bind:addcart="handleAddCart"
|
|
/>
|
|
</view>
|
|
<load-more wx:if="{{goodsList.length > 0}}" status="{{loadMoreStatus}}" no-more-text="没有更多了" />
|
|
</view>
|
|
</goods-category>
|
|
</view>
|