Showing
1 changed file
with
13 additions
and
12 deletions
| @@ -173,6 +173,18 @@ export struct DetailVideoListPage { | @@ -173,6 +173,18 @@ export struct DetailVideoListPage { | ||
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | build() { | 175 | build() { |
| 176 | + if (this.netStatus !== undefined) { | ||
| 177 | + EmptyComponent({ | ||
| 178 | + emptyType: this.netStatus, emptyButton: true, retry: () => { | ||
| 179 | + this.getContentDetail(this.contentId, this.relId, this.relType) | ||
| 180 | + } | ||
| 181 | + }) | ||
| 182 | + .id('e_empty_content') | ||
| 183 | + .alignRules({ | ||
| 184 | + center: { anchor: "__container__", align: VerticalAlign.Center }, | ||
| 185 | + middle: { anchor: "__container__", align: HorizontalAlign.Center } | ||
| 186 | + }) | ||
| 187 | + } | ||
| 176 | Column() { | 188 | Column() { |
| 177 | Swiper(this.swiperController) { | 189 | Swiper(this.swiperController) { |
| 178 | ForEach(this.data, (item: ContentDetailDTO, index: number) => { | 190 | ForEach(this.data, (item: ContentDetailDTO, index: number) => { |
| @@ -203,18 +215,7 @@ export struct DetailVideoListPage { | @@ -203,18 +215,7 @@ export struct DetailVideoListPage { | ||
| 203 | .height('100%') | 215 | .height('100%') |
| 204 | .backgroundColor(Color.Black) | 216 | .backgroundColor(Color.Black) |
| 205 | .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) | 217 | .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) |
| 206 | - if (this.netStatus !== undefined) { | ||
| 207 | - EmptyComponent({ | ||
| 208 | - emptyType: this.netStatus, emptyButton: true, retry: () => { | ||
| 209 | - this.getContentDetail(this.contentId, this.relId, this.relType) | ||
| 210 | - } | ||
| 211 | - }) | ||
| 212 | - .id('e_empty_content') | ||
| 213 | - .alignRules({ | ||
| 214 | - center: { anchor: "__container__", align: VerticalAlign.Center }, | ||
| 215 | - middle: { anchor: "__container__", align: HorizontalAlign.Center } | ||
| 216 | - }) | ||
| 217 | - } | 218 | + |
| 218 | // .padding({ | 219 | // .padding({ |
| 219 | // bottom: this.bottomSafeHeight + 'px' | 220 | // bottom: this.bottomSafeHeight + 'px' |
| 220 | // }) | 221 | // }) |
-
Please register or login to post a comment