liukangdong
2024-07-10 bdcefd7a9d54a48308ecce327011775db6a92ed6
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);
    }
  }
})