From 545316d3b034e5bbb3ec18171b4a5ecf83c28baa Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Thu, 16 Oct 2025 13:51:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(data-helper):=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89=E7=8A=B6=E6=80=81=E4=B8=BA1=E7=9A=84=E5=95=86?= =?UTF-8?q?=E9=93=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在处理商场信息时,新增过滤条件,排除状态为1的商铺, 确保返回的商铺列表只包含有效状态的商铺数据。 --- src/js/helpers/data-helper.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/js/helpers/data-helper.js b/src/js/helpers/data-helper.js index 02395e1..0825182 100644 --- a/src/js/helpers/data-helper.js +++ b/src/js/helpers/data-helper.js @@ -168,16 +168,18 @@ const getMallInfo = async ({ memberID }) => { const shopInfo = serverShopInfo.map(({ floorOrd: floorOrder, shopList }) => ({ floorOrder, - shopList: shopList.map((iot) => ({ - ...iot, - code: iot.shopCode, - houseNum: iot.houseNumber, - logoPath: cdnUrl + iot.logoUrl, - shopFormat: iot.industryFatherName, - intro: true, - formatColor: iot.color, - floorOrder, - })), + shopList: shopList + .filter(({ status }) => status !== 1) + .map((iot) => ({ + ...iot, + code: iot.shopCode, + houseNum: iot.houseNumber, + logoPath: cdnUrl + iot.logoUrl, + shopFormat: iot.industryFatherName, + intro: true, + formatColor: iot.color, + floorOrder, + })), })); shopInfo.forEach(({ shopList }) =>