Browse Source

Merge pull request 'test' (#15) from test into master

Reviewed-on: #15
master v1.6.0
朱志育 1 year ago
parent
commit
97d398bb68
  1. 24
      src/js/helpers/data-helper.js

24
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 }) =>

Loading…
Cancel
Save