|
@@ -32,7 +32,11 @@
|
|
|
<view class="container-section tui-skeleton">
|
|
|
<view class="tab-title">主推商品</view>
|
|
|
<view class="section-product clearfix">
|
|
|
- <view v-if="recommendList" class="floor-item" v-for="(item, index) in recommendList" :key="index" @click.stop="navToDetailPage(item.id)">
|
|
|
+ <view class="floor-item-none" v-if="isHomeProduct">
|
|
|
+ <image class="none-image" :src="iconNoneData" mode=""></image>
|
|
|
+ <view class="none-text">暂无主推商品~</view>
|
|
|
+ </view>
|
|
|
+ <view v-else class="floor-item" v-for="(item, index) in recommendList" :key="index" @click.stop="navToDetailPage(item.id)">
|
|
|
<image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
|
|
|
<view class="floor-item-content">
|
|
|
<view class="title tui-skeleton-rect">
|
|
@@ -124,10 +128,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="floor-item-none" v-else>
|
|
|
- <image class="none-image" :src="iconNoneData" mode=""></image>
|
|
|
- <view class="none-text">暂无主推商品~</view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="container-section tui-skeleton">
|
|
@@ -264,6 +264,7 @@
|
|
|
pageNum: 1,
|
|
|
id:0
|
|
|
},
|
|
|
+ isHomeProduct:false,
|
|
|
total:0
|
|
|
}
|
|
|
},
|
|
@@ -316,7 +317,10 @@
|
|
|
this.ShopService.GetSupplierHomeProduct({supplierId:this.supplierId}).then(response =>{
|
|
|
let data = response.data
|
|
|
if(data.length>0){
|
|
|
+ this.isHomeProduct = false
|
|
|
this.QueryProductPrice(data)
|
|
|
+ }else{
|
|
|
+ this.isHomeProduct = true
|
|
|
}
|
|
|
}).catch(error =>{
|
|
|
this.$util.msg(error.msg,2000)
|