王士厅

fix: 点播视频返回按钮位置偏低,已上调

... ... @@ -65,6 +65,8 @@ export struct EmptyComponent {
@State timeNum: number = 10
///占位图上是否显示返回按钮
@State showBackButton: boolean = true
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
/**
* The empty image width percentage setting.
*/
... ... @@ -114,16 +116,25 @@ export struct EmptyComponent {
Stack({alignContent:Alignment.Bottom}) {
this.noProgrammeData();
if (this.showBackButton) {
Image($r("app.media.icon_arrow_left_white"))
.width(24)
.height(24)
.onClick(() => {
router.back();
})
.position({
bottom: 15,
left: 16
})
Column(){
Image($r("app.media.icon_arrow_left_white"))
.width(24)
.height(24)
.onClick(() => {
router.back();
})
.position({
bottom: 16,
left: 16
})
}
.height(56)
.width('100%')
.justifyContent(FlexAlign.Center)
.alignItems(HorizontalAlign.Start)
.margin({
bottom: px2vp(this.bottomSafeHeight)
})
}
}
}
... ...