From f2398c7b4c1e5aaf8624eed91fcf838b1c1f1eb7 Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Tue, 1 Apr 2025 13:08:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=87=E6=BB=A4=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=9A=84=E5=BA=97=E9=93=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/helpers/data-helper.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/js/helpers/data-helper.js b/src/js/helpers/data-helper.js index 9ab795f..e164e12 100644 --- a/src/js/helpers/data-helper.js +++ b/src/js/helpers/data-helper.js @@ -137,17 +137,19 @@ const getMallInfo = async (code) => { ); 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, - shopFormatName: iot.industryFatherName, - intro: true, - formatColor: iot.color, - floorOrder, - })), + shopList: shopList + .filter(({ status }) => status === 0) + .map((iot) => ({ + ...iot, + code: iot.shopCode, + houseNum: iot.houseNumber, + logoPath: cdnUrl + iot.logoUrl, + shopFormat: iot.industryFatherName, + shopFormatName: iot.industryFatherName, + intro: true, + formatColor: iot.color, + floorOrder, + })), })); shopInfo.forEach(({ shopList }) => -- 2.30.2