this.topHight = uni.getSystemInfoSync().statusBarHeight
动态设置:
<!-- 顶部的安全距离 -->
<view class="status_bar" :style="'height: ' + topHight + 'px;'">
<!-- 这里是状态栏 -->
</view>
this.topHight = uni.getSystemInfoSync().statusBarHeight
动态设置:
<!-- 顶部的安全距离 -->
<view class="status_bar" :style="'height: ' + topHight + 'px;'">
<!-- 这里是状态栏 -->
</view>