给易购页面没有数据时添加提示

This commit is contained in:
赵毅 2025-09-02 11:31:10 +08:00
parent 37a93d7286
commit a3980c4470
2 changed files with 31 additions and 4 deletions

View File

@ -106,7 +106,7 @@ page {
white-space: nowrap; white-space: nowrap;
} }
.slide_item_active text{ .slide_item_active text {
color: #ff5f3c; color: #ff5f3c;
} }
@ -367,7 +367,7 @@ page {
margin-left: 10rpx; margin-left: 10rpx;
} }
.CateIte{ .CateIte {
margin-top: 80rpx; margin-top: 80rpx;
} }
@ -602,4 +602,22 @@ page {
/* 调整角标位置,使其在隐藏状态下也能看到 */ /* 调整角标位置,使其在隐藏状态下也能看到 */
top: -10rpx; top: -10rpx;
z-index: 11; z-index: 11;
}
.empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-weight: normal;
font-size: 28rpx;
color: #999999;
margin-top: 350rpx;
width: 100%;
}
.empty image {
width: 366rpx;
height: 226rpx;
margin-bottom: 27rpx;
} }

View File

@ -74,7 +74,7 @@
{{ item.category_name }} {{ item.category_name }}
</view> </view>
</view> </view>
<view class="Con_right"> <view class="Con_right" v-if="tagList1.length > 0">
<view class="CateList_Box" :class="cateListShow ? 'bgf' : ''"> <view class="CateList_Box" :class="cateListShow ? 'bgf' : ''">
<view class="CateList" ref="cateListRef"> <view class="CateList" ref="cateListRef">
<view class="CateList_Item" v-for="(item, index) in tagList" :key="item.id" <view class="CateList_Item" v-for="(item, index) in tagList" :key="item.id"
@ -138,7 +138,7 @@
items.commodity_goods_info_list[0].quantity items.commodity_goods_info_list[0].quantity
? items.commodity_goods_info_list[0].quantity ? items.commodity_goods_info_list[0].quantity
: 0 : 0
}}</text> }}</text>
<view slot="plus" class="plus"> <view slot="plus" class="plus">
<u-icon name="plus" color="#FFFFFF" size="20"></u-icon> <u-icon name="plus" color="#FFFFFF" size="20"></u-icon>
</view> </view>
@ -206,6 +206,13 @@
</view> </view>
</view> </view>
</view> </view>
<view class="Con_right" v-else>
<view class="empty">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_nearbyList_empty.png"
mode="aspectFill"></image>
暂无数据
</view>
</view>
</view> </view>
<!-- <nav-footer :current="3" /> --> <!-- <nav-footer :current="3" /> -->
@ -292,6 +299,7 @@ export default {
currentThirdId: "", currentThirdId: "",
tagList: [], tagList: [],
tagList1: [],
carNum: "", carNum: "",
goodsDetail: [], goodsDetail: [],
@ -426,6 +434,7 @@ export default {
}); });
// //
this.originalTagList = res.commodity_list; this.originalTagList = res.commodity_list;
this.tagList1 = res.commodity_list;
// "" // ""
this.tagList = [{ id: 'all', tag_name: '全部' }, ...res.commodity_list]; this.tagList = [{ id: 'all', tag_name: '全部' }, ...res.commodity_list];
// "" // ""