wx.getSystemInfo 获取系统版本 测试版和上线版返回的值不一样
wx.getSystemInfo({
success(res) {
console.log(res.model)
console.log(res.pixelRatio)
console.log(res.windowWidth)
console.log(res.windowHeight)
console.log(res.language)
console.log(res.version)
console.log(res.platform)
}
})
返回的windowHeight值
在测试版中为624 而实际正式上线版本为 672
导致算出的位置如下图所示,底部直接盖住,

这是错误的windowHeight为672

这是正确没有影响的windowHeight为624

别问我为什么测试版也是这样了
原因就是正式版有问题,打开一次,再打开测试版,
我的测试版就跟正式版一样了
打印出
两次的windowHeight 有快50的差距
这是为什么
这个没办法提供代码片段,这玩意正式版就出问题
求官方大佬们给个意见,客户嫌弃下面盖住了