liyubing

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

... ... @@ -12,7 +12,7 @@ struct LiveMorePage {
@State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number;
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
title: string = '直播列表'
... ...
... ... @@ -30,6 +30,8 @@ export default struct TemplatePageComponent {
@State pageData: LazyDataSource<ContentDTO> = new LazyDataSource();
// 滚动
private templateScroller: Scroller = new Scroller()
@Consume bottomSafeHeight:number
//识别不同页面的业务类型
pageDataSourceType: string = ''
... ... @@ -107,6 +109,7 @@ export default struct TemplatePageComponent {
this.requestPageData()
}
})
// Column().backgroundColor(Color.Blue).width('100%').height('100%').margin({bottom:px2vp(this.bottomSafeHeight)})
}
}
... ...
... ... @@ -172,9 +172,9 @@ export struct EmptyComponent {
}
.justifyContent(FlexAlign.Center)
.width(this.emptyWidth)
.layoutWeight(1)
.height(this.emptyHeight)
// .backgroundColor(Color.Black)
}
buildNoDataTip(): string {
... ...