王士厅

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,16 +116,25 @@ export struct EmptyComponent { @@ -114,16 +116,25 @@ 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) {
117 - Image($r("app.media.icon_arrow_left_white"))  
118 - .width(24)  
119 - .height(24)  
120 - .onClick(() => {  
121 - router.back();  
122 - })  
123 - .position({  
124 - bottom: 15,  
125 - left: 16  
126 - }) 119 + Column(){
  120 + Image($r("app.media.icon_arrow_left_white"))
  121 + .width(24)
  122 + .height(24)
  123 + .onClick(() => {
  124 + router.back();
  125 + })
  126 + .position({
  127 + bottom: 16,
  128 + left: 16
  129 + })
  130 + }
  131 + .height(56)
  132 + .width('100%')
  133 + .justifyContent(FlexAlign.Center)
  134 + .alignItems(HorizontalAlign.Start)
  135 + .margin({
  136 + bottom: px2vp(this.bottomSafeHeight)
  137 + })
127 } 138 }
128 } 139 }
129 } 140 }