wuyanan

ref |> 修复单个视频播放页返回按钮不容易点击问题

... ... @@ -18,6 +18,8 @@ export struct VideoPlayPage {
@State currentTime: string = ''
@State totalTime: string = ''
@State progressVal: number = 0;
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
aboutToAppear(): void {
let par: Action = router.getParams() as Action
... ... @@ -65,26 +67,27 @@ export struct VideoPlayPage {
Row() {
Image($r('app.media.icon_arrow_left_white'))
.width(24)
.height(24)
.aspectRatio(1)
.interpolation(ImageInterpolation.High)
.margin({
right: 10
})
.onClick(() => {
router.back()
})
}
.width('100%')
.alignItems(VerticalAlign.Center)
.margin({
bottom: 10
})
.margin({ top: `${this.topSafeHeight}px` })
}.width('100%')
.padding({
top: 20,
bottom: 6,
left: 10,
right: 10
})
// .padding({
// top: 20,
// bottom: 6,
// left: 10,
// right: 10
// })
.alignItems(HorizontalAlign.Start)
}
... ...