王士厅

fix: 【UAT】【缺省图】视频稿件进入详情后,没有获取到播放数据时,没有展示缺省图

@@ -231,7 +231,18 @@ export struct DetailVideoListPage { @@ -231,7 +231,18 @@ export struct DetailVideoListPage {
231 231
232 build() { 232 build() {
233 Stack({ alignContent: Alignment.Center }) { 233 Stack({ alignContent: Alignment.Center }) {
234 - if (this.netStatus !== undefined || this.isOffLine) { 234 + if (this.netStatus !== undefined) {
  235 + EmptyComponent({
  236 + emptyType: 1, emptyButton: true, isBlack: true, retry: () => {
  237 + this.getContentDetail(this.contentId, this.relId, this.relType)
  238 + }
  239 + })
  240 + .id('e_empty_content')
  241 + .alignRules({
  242 + center: { anchor: "__container__", align: VerticalAlign.Center },
  243 + middle: { anchor: "__container__", align: HorizontalAlign.Center }
  244 + })
  245 + } else if (this.isOffLine) {
235 EmptyComponent({ 246 EmptyComponent({
236 emptyType: 15, emptyButton: true, retry: () => { 247 emptyType: 15, emptyButton: true, retry: () => {
237 this.getContentDetail(this.contentId, this.relId, this.relType) 248 this.getContentDetail(this.contentId, this.relId, this.relType)