zhenghy

修改模块引入

@@ -5,10 +5,10 @@ import { ResponseDTO } from 'wdNetwork/Index'; @@ -5,10 +5,10 @@ import { ResponseDTO } from 'wdNetwork/Index';
5 import { DetailPlayShortVideoPage } from './DetailPlayShortVideoPage' 5 import { DetailPlayShortVideoPage } from './DetailPlayShortVideoPage'
6 import router from '@ohos.router'; 6 import router from '@ohos.router';
7 import { contentListParams } from 'wdDetailPlayApi/src/main/ets/request/ContentDetailRequest'; 7 import { contentListParams } from 'wdDetailPlayApi/src/main/ets/request/ContentDetailRequest';
8 -import { WindowModel } from 'wdKit';  
9 import { DisplayDirection } from 'wdConstant/Index'; 8 import { DisplayDirection } from 'wdConstant/Index';
10 import { window } from '@kit.ArkUI'; 9 import { window } from '@kit.ArkUI';
11 -import { EmptyComponent } from 'wdComponent/Index'; 10 +import { EmptyComponent } from '../../../../../wdComponent/src/main/ets/components/view/EmptyComponent';
  11 +
12 const storage = LocalStorage.getShared(); 12 const storage = LocalStorage.getShared();
13 const TAG = 'DetailVideoListPage' 13 const TAG = 'DetailVideoListPage'
14 14
@@ -177,7 +177,7 @@ export struct DetailVideoListPage { @@ -177,7 +177,7 @@ export struct DetailVideoListPage {
177 if (this.netStatus !== undefined) { 177 if (this.netStatus !== undefined) {
178 EmptyComponent({ 178 EmptyComponent({
179 emptyType: this.netStatus, emptyButton: true, retry: () => { 179 emptyType: this.netStatus, emptyButton: true, retry: () => {
180 - this.getContentDetail() 180 + this.getContentDetail(this.contentId, this.relId, this.relType)
181 } 181 }
182 }) 182 })
183 .id('e_empty_content') 183 .id('e_empty_content')
@@ -185,7 +185,8 @@ export struct DetailVideoListPage { @@ -185,7 +185,8 @@ export struct DetailVideoListPage {
185 center: { anchor: "__container__", align: VerticalAlign.Center }, 185 center: { anchor: "__container__", align: VerticalAlign.Center },
186 middle: { anchor: "__container__", align: HorizontalAlign.Center } 186 middle: { anchor: "__container__", align: HorizontalAlign.Center }
187 }) 187 })
188 - } 188 + } else {
  189 +
189 Column() { 190 Column() {
190 Swiper(this.swiperController) { 191 Swiper(this.swiperController) {
191 ForEach(this.data, (item: ContentDetailDTO, index: number) => { 192 ForEach(this.data, (item: ContentDetailDTO, index: number) => {
@@ -221,4 +222,5 @@ export struct DetailVideoListPage { @@ -221,4 +222,5 @@ export struct DetailVideoListPage {
221 // bottom: this.bottomSafeHeight + 'px' 222 // bottom: this.bottomSafeHeight + 'px'
222 // }) 223 // })
223 } 224 }
  225 + }
224 } 226 }