获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
我今天也发现了一个问题,iOS在游戏开始的时候获取胶囊信息的时候返的数据是错的! 在一段时间后再获取就没问题了
wx.getMenuButtonBoundingClientRect 部分机型无- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 [图片] - 复现路径 使用的是自定义导航,部分机型会出现这种情况,没有渠道system或者胶囊的值(真机表现) - 提供一个最简复现 Demo onLaunch: function(options) { // 获取系统状态栏信息 wx.getSystemInfo({ success: e => { this.globalData.StatusBar = e.statusBarHeight; let custom = wx.getMenuButtonBoundingClientRect(); this.globalData.Custom = custom; this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight; this.globalData.ScreenHeight = e.screenHeight; this.globalData.ScreenWidth = e.screenWidth } }); })
2019-07-05