Showing
2 changed files
with
12 additions
and
2 deletions
| @@ -37,6 +37,7 @@ export struct MorningEveningPaperComponent { | @@ -37,6 +37,7 @@ export struct MorningEveningPaperComponent { | ||
| 37 | @Provide commentList: InteractDataDTO[] = [] | 37 | @Provide commentList: InteractDataDTO[] = [] |
| 38 | @State audioPlayUrl: string = "" | 38 | @State audioPlayUrl: string = "" |
| 39 | @State isNoListContent:boolean = false; | 39 | @State isNoListContent:boolean = false; |
| 40 | + @State isContentFailed:boolean = false; | ||
| 40 | @State executedStartTime:number = new Date().getTime() | 41 | @State executedStartTime:number = new Date().getTime() |
| 41 | // @Consume dailyPaperTopicPageId: number | 42 | // @Consume dailyPaperTopicPageId: number |
| 42 | // @Provide compListItem: CompList = {} as CompList | 43 | // @Provide compListItem: CompList = {} as CompList |
| @@ -177,6 +178,7 @@ export struct MorningEveningPaperComponent { | @@ -177,6 +178,7 @@ export struct MorningEveningPaperComponent { | ||
| 177 | } | 178 | } |
| 178 | this.isNoListContent = this.compListItem && this.compListItem?.operDataList?.length > 0 ?false:true | 179 | this.isNoListContent = this.compListItem && this.compListItem?.operDataList?.length > 0 ?false:true |
| 179 | } catch (exception) { | 180 | } catch (exception) { |
| 181 | + this.isContentFailed = true | ||
| 180 | 182 | ||
| 181 | } | 183 | } |
| 182 | 184 | ||
| @@ -264,6 +266,11 @@ export struct MorningEveningPaperComponent { | @@ -264,6 +266,11 @@ export struct MorningEveningPaperComponent { | ||
| 264 | } | 266 | } |
| 265 | 267 | ||
| 266 | build() { | 268 | build() { |
| 269 | + if (this.isContentFailed){ | ||
| 270 | + Column(){ | ||
| 271 | + EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_ContentFailed}) | ||
| 272 | + }.backgroundColor(this.mixedBgColor ?? Color.Black) | ||
| 273 | + }else { | ||
| 267 | Stack({ alignContent: Alignment.Top }) { | 274 | Stack({ alignContent: Alignment.Top }) { |
| 268 | List() { | 275 | List() { |
| 269 | if (this.pageInfoBean?.topicInfo?.frontLinkObject) { | 276 | if (this.pageInfoBean?.topicInfo?.frontLinkObject) { |
| @@ -316,6 +323,9 @@ export struct MorningEveningPaperComponent { | @@ -316,6 +323,9 @@ export struct MorningEveningPaperComponent { | ||
| 316 | .backgroundColor(this.mixedBgColor ?? Color.Black) | 323 | .backgroundColor(this.mixedBgColor ?? Color.Black) |
| 317 | } | 324 | } |
| 318 | 325 | ||
| 326 | + | ||
| 327 | + } | ||
| 328 | + | ||
| 319 | @Builder | 329 | @Builder |
| 320 | topPaperTitle(){ | 330 | topPaperTitle(){ |
| 321 | Column(){ | 331 | Column(){ |
| @@ -23,10 +23,10 @@ export struct PeopleShipRecommendComponent { | @@ -23,10 +23,10 @@ export struct PeopleShipRecommendComponent { | ||
| 23 | right: '4vp' | 23 | right: '4vp' |
| 24 | }) | 24 | }) |
| 25 | Text('为你推荐优质号主') | 25 | Text('为你推荐优质号主') |
| 26 | - .height('40vp') | 26 | + .height('30vp') |
| 27 | .fontColor($r('app.color.color_222222')) | 27 | .fontColor($r('app.color.color_222222')) |
| 28 | .fontWeight(600) | 28 | .fontWeight(600) |
| 29 | - .fontSize($r('app.float.vp_15_7')) | 29 | + .fontSize($r('app.float.vp_18')) |
| 30 | 30 | ||
| 31 | Blank() | 31 | Blank() |
| 32 | Button({ type: ButtonType.Normal, stateEffect: false }) { | 32 | Button({ type: ButtonType.Normal, stateEffect: false }) { |
-
Please register or login to post a comment