ios 15 ,安卓版本正常,navigationStyle设置为custom

jgj_app
- 发布:2025-03-08 16:06
- 更新:2025-03-10 14:13
- 阅读:73

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题
你可以这样试试
customBarH 为uni.getSystemInfo中的statusBarHeight
<view class="status_bar" :style="{height :customBarH +'px'}">
<view class="top_view" :style="{height :customBarH +'px'}"></view>
</view>
.status_bar {
height: var(--status-bar-height);
width: 100%;
background-color: $gst-tabBar-title-background-color;
}
.top_view {
height: var(--status-bar-height);
width: 100%;
position: fixed;
background-color: $gst-tabBar-title-background-color;
top: 0;
z-index: 999;
}
亚瑟
.publicBottom {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
2025-03-10 14:27