王士厅

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

@@ -65,6 +65,8 @@ export struct EmptyComponent { @@ -65,6 +65,8 @@ export struct EmptyComponent {
65 @State timeNum: number = 10 65 @State timeNum: number = 10
66 ///占位图上是否显示返回按钮 66 ///占位图上是否显示返回按钮
67 @State showBackButton: boolean = true 67 @State showBackButton: boolean = true
  68 +
  69 + @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
68 /** 70 /**
69 * The empty image width percentage setting. 71 * The empty image width percentage setting.
70 */ 72 */
@@ -114,6 +116,7 @@ export struct EmptyComponent { @@ -114,6 +116,7 @@ export struct EmptyComponent {
114 Stack({alignContent:Alignment.Bottom}) { 116 Stack({alignContent:Alignment.Bottom}) {
115 this.noProgrammeData(); 117 this.noProgrammeData();
116 if (this.showBackButton) { 118 if (this.showBackButton) {
  119 + Column(){
117 Image($r("app.media.icon_arrow_left_white")) 120 Image($r("app.media.icon_arrow_left_white"))
118 .width(24) 121 .width(24)
119 .height(24) 122 .height(24)
@@ -121,10 +124,18 @@ export struct EmptyComponent { @@ -121,10 +124,18 @@ export struct EmptyComponent {
121 router.back(); 124 router.back();
122 }) 125 })
123 .position({ 126 .position({
124 - bottom: 15, 127 + bottom: 16,
125 left: 16 128 left: 16
126 }) 129 })
127 } 130 }
  131 + .height(56)
  132 + .width('100%')
  133 + .justifyContent(FlexAlign.Center)
  134 + .alignItems(HorizontalAlign.Start)
  135 + .margin({
  136 + bottom: px2vp(this.bottomSafeHeight)
  137 + })
  138 + }
128 } 139 }
129 } 140 }
130 141