getSystemInfoAsync在半屏模式返回的windowHeight为什么是全屏时的?
具体机型:iPhone12 pro 微信版本号:8.0.46 系统版本号:IOS 17.0.3 代码片段: // 通过判断当前windowHeight == screenHeight 给isFullScreen赋状态
onShow: async function (){
wx.getSystemInfoAsync({
success: (res) => {
const { windowHeight, screenHeight } = res;
if (windowHeight == screenHeight) {
this.setData({
isFullScreen: true
});
}
}
});
}