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); } } })