k94314517
2024-07-12 f911989f59778b11e9f60d400c3434f4dc6a18fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// app.js
App({
  globalData: {
    primary: '#B08771',
    bottomLift: ''
  },
  onLaunch: function () {
    //获取当前设备信息
    const WindowInfo = wx.getWindowInfo()
    if (WindowInfo.safeArea.top > 20) {
      this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
    }
  }
})