yumaochao

fix:somebug

@@ -173,19 +173,6 @@ export struct DetailVideoListPage { @@ -173,19 +173,6 @@ 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 - } else {  
188 -  
189 Column() { 176 Column() {
190 Swiper(this.swiperController) { 177 Swiper(this.swiperController) {
191 ForEach(this.data, (item: ContentDetailDTO, index: number) => { 178 ForEach(this.data, (item: ContentDetailDTO, index: number) => {
@@ -216,10 +203,21 @@ export struct DetailVideoListPage { @@ -216,10 +203,21 @@ export struct DetailVideoListPage {
216 .height('100%') 203 .height('100%')
217 .backgroundColor(Color.Black) 204 .backgroundColor(Color.Black)
218 .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) 205 .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
219 - 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 + }
220 // .padding({ 218 // .padding({
221 // bottom: this.bottomSafeHeight + 'px' 219 // bottom: this.bottomSafeHeight + 'px'
222 // }) 220 // })
223 - } 221 +
224 } 222 }
225 } 223 }