jiangping
2024-07-12 7e90b706ce34a759ea20de5e00896e66a8fca0aa
wechat_jiaxuan/app.js
@@ -7,10 +7,8 @@
  onLaunch: function () {
    //获取当前设备信息
    const WindowInfo = wx.getWindowInfo()
    console.log('WindowInfo', WindowInfo);
    if (WindowInfo.safeArea.top > 20) {
      this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
      console.log(this.globalData.bottomLift);
    }
  }
})