|
@@ -6,13 +6,13 @@
|
|
|
</view>
|
|
|
<!-- 商品 -->
|
|
|
<view class="goods">
|
|
|
- <view v-for="(item,index) in goodsList" :key="item.type.id" v-if="item.list.length">
|
|
|
+ <view v-for="(item,index) in goodsList" :key="item.type.id" v-if="goodsList.length&&item.list.length">
|
|
|
<u-section :title="item.type.name" line-color="#01c9b2" sub-title="更多" @click="toGoods(item.type)"></u-section>
|
|
|
<view class="goods-list">
|
|
|
<uni-coods :list="item.list"></uni-coods>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
+ <view v-if="goodsList.length==0">
|
|
|
<u-empty text="暂无商品" mode="list"></u-empty>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -39,6 +39,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.getbannerList()
|
|
|
+ this.goodsList = []
|
|
|
getGoodsClass({}).then(res => {
|
|
|
console.log(res)
|
|
|
if(res.status == 200){
|