From eb9e1272e9066ecb70b85d99a8a77e97d21e686c Mon Sep 17 00:00:00 2001 From: fanfan Date: Thu, 7 Mar 2024 11:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/newsshop.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/activity/newsshop.vue b/pages/activity/newsshop.vue index 0d88061..1b998aa 100644 --- a/pages/activity/newsshop.vue +++ b/pages/activity/newsshop.vue @@ -31,7 +31,7 @@ - + @@ -89,13 +89,17 @@ } Api.detail(pamars) .then(result => { - result.data.col.forEach(item => { - item.sliceIndex = 6; - item.goods_list.forEach(item1 => { - item1.goods_price_min = Number(item1.goods_price_min); + if (active_id) { + result.data.col.forEach(item => { + item.sliceIndex = 6; + item.goods_list.forEach(item1 => { + item1.goods_price_min = Number(item1.goods_price_min); + }); }); - }); - this.shopList = result.data.col.length > 0 ? result.data.col : []; + this.shopList = result.data.col.length > 0 ? result.data.col : []; + } else { + this.shopList = [] + } }) .finally() }, @@ -121,7 +125,7 @@ &-bd { - background-color: #f34a40; + // background-color: #f34a40; padding-bottom: 30rpx; overflow: hidden;