Commit 8384317 1 parent 30d09df commit 8384317 Copy full SHA for 8384317
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 41
41
" dcloudio" ,
42
42
" qrcode" ,
43
43
" refresherrefresh" ,
44
+ " safeareainsets" ,
44
45
" scrolltolower" ,
45
46
" tabbar" ,
46
47
" unibest" ,
Original file line number Diff line number Diff line change 10
10
left-icon =" left"
11
11
@clickLeft =" goBack"
12
12
class =" fixed w-full"
13
+ :border =" false"
14
+ :status-bar =" true"
13
15
></uni-nav-bar >
14
- <view class =" h-11" ></view >
15
- <fly-content :line =" 20" />
16
+ <view class =" h-11" :style =" { paddingTop: safeAreaInsets?.top + 'px' }" ></view >
17
+ <view >
18
+ <fly-content :line =" 20" />
19
+ </view >
16
20
</template >
17
21
18
22
<script lang="ts" setup>
19
23
const goBack = () => {
20
24
uni .navigateBack ()
21
25
}
26
+ // 获取屏幕边界到安全区域距离
27
+ const { safeAreaInsets } = uni .getSystemInfoSync ()
22
28
</script >
You can’t perform that action at this time.
0 commit comments