Browse Source

fix: 修复跨楼层无法导航的问题

dev
jiannibang 3 years ago
parent
commit
75102de338
  1. 7
      app.js
  2. 2
      pages/index/index.js

7
app.js

@ -29,6 +29,13 @@ const floors = [
floorId: "F1", floorId: "F1",
isPark: false, isPark: false,
}, },
{
name: "1MF",
floorOrder: 4,
url: null,
floorId: "1MF",
isPark: false,
},
{ {
name: "2F", name: "2F",
floorOrder: 5, floorOrder: 5,

2
pages/index/index.js

@ -96,7 +96,7 @@ Page({
} = getApp(); } = getApp();
const { windowHeight } = wx.getSystemInfoSync(); const { windowHeight } = wx.getSystemInfoSync();
this.setData({ this.setData({
floors,
floors: floors.filter(({ url }) => url !== null),
filteredMallFloors: floors.filter( filteredMallFloors: floors.filter(
({ url, isPark }) => url !== null && !isPark ({ url, isPark }) => url !== null && !isPark
), ),

Loading…
Cancel
Save