Browse Source

feat: 过滤关闭状态的店铺

pull/14/head v1.0.0-pre-dev.45
jiannibang 1 year ago
parent
commit
f2398c7b4c
  1. 4
      src/js/helpers/data-helper.js

4
src/js/helpers/data-helper.js

@ -137,7 +137,9 @@ const getMallInfo = async (code) => {
); );
const shopInfo = serverShopInfo.map(({ floorOrd: floorOrder, shopList }) => ({ const shopInfo = serverShopInfo.map(({ floorOrd: floorOrder, shopList }) => ({
floorOrder, floorOrder,
shopList: shopList.map((iot) => ({
shopList: shopList
.filter(({ status }) => status === 0)
.map((iot) => ({
...iot, ...iot,
code: iot.shopCode, code: iot.shopCode,
houseNum: iot.houseNumber, houseNum: iot.houseNumber,

Loading…
Cancel
Save