Showing
3 changed files
with
11 additions
and
13 deletions
| @@ -46,11 +46,10 @@ export struct Card2Component { | @@ -46,11 +46,10 @@ export struct Card2Component { | ||
| 46 | 46 | ||
| 47 | getCover() { | 47 | getCover() { |
| 48 | if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { | 48 | if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { |
| 49 | - return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 50 | - } else if (this.contentDTO.appStyle === CompStyle.Card_02) { | ||
| 51 | - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl | 49 | + return this.contentDTO.coverUrl |
| 50 | + } else { | ||
| 51 | + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 52 | } | 52 | } |
| 53 | - return '' | ||
| 54 | } | 53 | } |
| 55 | 54 | ||
| 56 | build() { | 55 | build() { |
| @@ -44,11 +44,10 @@ export struct Card5Component { | @@ -44,11 +44,10 @@ export struct Card5Component { | ||
| 44 | 44 | ||
| 45 | getCover() { | 45 | getCover() { |
| 46 | if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { | 46 | if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { |
| 47 | - return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 48 | - } else if (this.contentDTO.appStyle === CompStyle.Card_05) { | ||
| 49 | - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl | 47 | + return this.contentDTO.coverUrl |
| 48 | + } else { | ||
| 49 | + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 50 | } | 50 | } |
| 51 | - return '' | ||
| 52 | } | 51 | } |
| 53 | 52 | ||
| 54 | build() { | 53 | build() { |
| @@ -30,6 +30,7 @@ export struct Card6Component { | @@ -30,6 +30,7 @@ export struct Card6Component { | ||
| 30 | @State contentDTO: ContentDTO = new ContentDTO(); | 30 | @State contentDTO: ContentDTO = new ContentDTO(); |
| 31 | 31 | ||
| 32 | async aboutToAppear(): Promise<void> { | 32 | async aboutToAppear(): Promise<void> { |
| 33 | + console.log('Card6Component', JSON.stringify(this.contentDTO)) | ||
| 33 | this.titleInit(); | 34 | this.titleInit(); |
| 34 | this.loadImg = await onlyWifiLoadImg(); | 35 | this.loadImg = await onlyWifiLoadImg(); |
| 35 | const curRouter = router.getState().name; | 36 | const curRouter = router.getState().name; |
| @@ -43,12 +44,11 @@ export struct Card6Component { | @@ -43,12 +44,11 @@ export struct Card6Component { | ||
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | getCover() { | 46 | getCover() { |
| 46 | - if (this.compDTO.compStyle === CompStyle.Card_13) { | ||
| 47 | - return this.contentDTO.coverUrl || this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 48 | - } else if (this.contentDTO.appStyle === CompStyle.Card_06) { | ||
| 49 | - return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl || this.contentDTO.coverUrl | 47 | + if (this.compDTO.compStyle) { |
| 48 | + return this.contentDTO.coverUrl | ||
| 49 | + } else { | ||
| 50 | + return this.contentDTO.fullColumnImgUrls?.[0]?.url || this.contentDTO.fullColumnImgUrls?.[0]?.fullUrl | ||
| 50 | } | 51 | } |
| 51 | - return '' | ||
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | build() { | 54 | build() { |
-
Please register or login to post a comment