|
|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<view class="detail-page">
|
|
|
+ <view class="status-bar-placeholder" :style="{height: statusBarHeight + 'px', backgroundColor: 'transparent'}"></view>
|
|
|
<!-- 自定义导航栏 -->
|
|
|
<view class="custom-navbar">
|
|
|
<view class="navbar-background">
|
|
|
@@ -230,6 +231,7 @@ import api from '@/utils/api.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ statusBarHeight: 0,
|
|
|
dynamicId: null,
|
|
|
dynamic: null,
|
|
|
commentList: [],
|
|
|
@@ -275,6 +277,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+ //获取状态栏高度
|
|
|
+ const systemInfo = uni.getSystemInfoSync()
|
|
|
+ this.statusBarHeight = systemInfo.statusBarHeight
|
|
|
},
|
|
|
|
|
|
methods: {
|