Showing
1 changed file
with
12 additions
and
1 deletions
| @@ -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) |
-
Please register or login to post a comment