From 75102de338b9762092d2d8749a508787242014b8 Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Mon, 31 Jul 2023 17:08:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=A8=E6=A5=BC?= =?UTF-8?q?=E5=B1=82=E6=97=A0=E6=B3=95=E5=AF=BC=E8=88=AA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 7 +++++++ pages/index/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 6803358..243303e 100644 --- a/app.js +++ b/app.js @@ -29,6 +29,13 @@ const floors = [ floorId: "F1", isPark: false, }, + { + name: "1MF", + floorOrder: 4, + url: null, + floorId: "1MF", + isPark: false, + }, { name: "2F", floorOrder: 5, diff --git a/pages/index/index.js b/pages/index/index.js index ee0df33..0553e24 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -96,7 +96,7 @@ Page({ } = getApp(); const { windowHeight } = wx.getSystemInfoSync(); this.setData({ - floors, + floors: floors.filter(({ url }) => url !== null), filteredMallFloors: floors.filter( ({ url, isPark }) => url !== null && !isPark ),