Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -27,6 +27,7 @@ export struct Card5Component { | @@ -27,6 +27,7 @@ export struct Card5Component { | ||
| 27 | @State str03: string = ''; | 27 | @State str03: string = ''; |
| 28 | 28 | ||
| 29 | async aboutToAppear(): Promise<void> { | 29 | async aboutToAppear(): Promise<void> { |
| 30 | + console.log('Card2Component', JSON.stringify(this.compDTO)) | ||
| 30 | this.clicked = hasClicked(this.contentDTO.objectId) | 31 | this.clicked = hasClicked(this.contentDTO.objectId) |
| 31 | this.loadImg = await onlyWifiLoadImg(); | 32 | this.loadImg = await onlyWifiLoadImg(); |
| 32 | 33 | ||
| @@ -47,9 +48,9 @@ export struct Card5Component { | @@ -47,9 +48,9 @@ export struct Card5Component { | ||
| 47 | Image(this.loadImg ? this.contentDTO.coverUrl : '') | 48 | Image(this.loadImg ? this.contentDTO.coverUrl : '') |
| 48 | .backgroundColor(0xf5f5f5) | 49 | .backgroundColor(0xf5f5f5) |
| 49 | .width(CommonConstants.FULL_WIDTH) | 50 | .width(CommonConstants.FULL_WIDTH) |
| 50 | - .autoResize(true) | ||
| 51 | .borderRadius($r('app.float.image_border_radius')) | 51 | .borderRadius($r('app.float.image_border_radius')) |
| 52 | - if (this.titleShowPolicy === 1 || this.titleShowPolicy === null) { | 52 | + .aspectRatio(343 / 225) |
| 53 | + if (this.titleShowPolicy === 1 || this.titleShowPolicy === null || this.titleShowPolicy === '') { | ||
| 53 | Row() | 54 | Row() |
| 54 | .width(CommonConstants.FULL_WIDTH) | 55 | .width(CommonConstants.FULL_WIDTH) |
| 55 | .height(59) | 56 | .height(59) |
-
Please register or login to post a comment