uni.getSystemInfo({
success: (res) => {
console.log('h5 getSystemInfo', res);
}
})
- 发布:2021-09-28 21:05
- 更新:2021-09-29 12:39
- 阅读:924
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win 10 专业版
HBuilderX类型: 正式
HBuilderX版本号: 3.1.18
浏览器平台: Chrome
浏览器版本: 94.0.4606.61
项目创建方式: HBuilderX
示例代码:
操作步骤:
statusBarHeight 和 safeArea.top
有时候都是0 有时候都是20
ipone se2 ios14.4
statusBarHeight 和 safeArea.top
有时候都是0 有时候都是20
ipone se2 ios14.4
预期结果:
感觉是有时候以小程序本身h5 打包 为依据返回的 有时候是以宿主app 云闪付 为判断 返回的结果?
statusBarHeight 在h5 固定为 0嘛
感觉是有时候以小程序本身h5 打包 为依据返回的 有时候是以宿主app 云闪付 为判断 返回的结果?
statusBarHeight 在h5 固定为 0嘛
实际结果:
statusBarHeight 和 safeArea.top
有时候都是0 有时候都是20
statusBarHeight 和 safeArea.top
有时候都是0 有时候都是20
bug描述:
小程序项目 以h5打包部署的方式 在云闪付app 上打开小程序
uni.getSystemInfo 同一部手机获取的数据多次不一样