From a3980c4470d3eb60e232b7afac1a9c4d012ec50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Tue, 2 Sep 2025 11:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=98=93=E8=B4=AD=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE=E6=97=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shop/index/index.css | 22 ++++++++++++++++++++-- packages/shop/index/index.vue | 13 +++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/packages/shop/index/index.css b/packages/shop/index/index.css index d0ccd456..daeb484e 100644 --- a/packages/shop/index/index.css +++ b/packages/shop/index/index.css @@ -106,7 +106,7 @@ page { white-space: nowrap; } -.slide_item_active text{ +.slide_item_active text { color: #ff5f3c; } @@ -367,7 +367,7 @@ page { margin-left: 10rpx; } -.CateIte{ +.CateIte { margin-top: 80rpx; } @@ -602,4 +602,22 @@ page { /* 调整角标位置,使其在隐藏状态下也能看到 */ top: -10rpx; 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; } \ No newline at end of file diff --git a/packages/shop/index/index.vue b/packages/shop/index/index.vue index b0a56273..b842c480 100644 --- a/packages/shop/index/index.vue +++ b/packages/shop/index/index.vue @@ -74,7 +74,7 @@ {{ item.category_name }} - + + }} @@ -206,6 +206,13 @@ + + + + 暂无数据 + + @@ -292,6 +299,7 @@ export default { currentThirdId: "", tagList: [], + tagList1: [], carNum: "", goodsDetail: [], @@ -426,6 +434,7 @@ export default { }); // 保存原始数据 this.originalTagList = res.commodity_list; + this.tagList1 = res.commodity_list; // 添加"全部"选项并设置为默认选中 this.tagList = [{ id: 'all', tag_name: '全部' }, ...res.commodity_list]; // 默认选中"全部"选项