liyubing

fix:1)无网络进入直播预告和直播列表页,无网络缺省图未居中

@@ -12,7 +12,7 @@ struct LiveMorePage { @@ -12,7 +12,7 @@ struct LiveMorePage {
12 12
13 @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number; 13 @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number;
14 14
15 - @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 15 + @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
16 16
17 title: string = '直播列表' 17 title: string = '直播列表'
18 18
@@ -30,6 +30,8 @@ export default struct TemplatePageComponent { @@ -30,6 +30,8 @@ export default struct TemplatePageComponent {
30 @State pageData: LazyDataSource<ContentDTO> = new LazyDataSource(); 30 @State pageData: LazyDataSource<ContentDTO> = new LazyDataSource();
31 // 滚动 31 // 滚动
32 private templateScroller: Scroller = new Scroller() 32 private templateScroller: Scroller = new Scroller()
  33 +
  34 + @Consume bottomSafeHeight:number
33 //识别不同页面的业务类型 35 //识别不同页面的业务类型
34 pageDataSourceType: string = '' 36 pageDataSourceType: string = ''
35 37
@@ -107,6 +109,7 @@ export default struct TemplatePageComponent { @@ -107,6 +109,7 @@ export default struct TemplatePageComponent {
107 this.requestPageData() 109 this.requestPageData()
108 } 110 }
109 }) 111 })
  112 + // Column().backgroundColor(Color.Blue).width('100%').height('100%').margin({bottom:px2vp(this.bottomSafeHeight)})
110 } 113 }
111 } 114 }
112 115
@@ -172,9 +172,9 @@ export struct EmptyComponent { @@ -172,9 +172,9 @@ export struct EmptyComponent {
172 } 172 }
173 .justifyContent(FlexAlign.Center) 173 .justifyContent(FlexAlign.Center)
174 .width(this.emptyWidth) 174 .width(this.emptyWidth)
  175 + .layoutWeight(1)
175 .height(this.emptyHeight) 176 .height(this.emptyHeight)
176 177
177 - // .backgroundColor(Color.Black)  
178 } 178 }
179 179
180 buildNoDataTip(): string { 180 buildNoDataTip(): string {