具体机型: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
});
}
}
});
}
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
*【尝试使用onReady】https://developers.weixin.qq.com/community/develop/doc/000aac36e10ad80e557e0d69351400?_at=1720766913484
补充调用结果图片: