Showing
1 changed file
with
18 additions
and
2 deletions
| @@ -44,10 +44,25 @@ export struct Card5Component { | @@ -44,10 +44,25 @@ export struct Card5Component { | ||
| 44 | Image(this.loadImg ? this.contentDTO.coverUrl : '') | 44 | Image(this.loadImg ? this.contentDTO.coverUrl : '') |
| 45 | .backgroundColor(0xf5f5f5) | 45 | .backgroundColor(0xf5f5f5) |
| 46 | .width(CommonConstants.FULL_WIDTH) | 46 | .width(CommonConstants.FULL_WIDTH) |
| 47 | - .borderRadius($r('app.float.image_border_radius')) | 47 | + .borderRadius( |
| 48 | + { | ||
| 49 | + topLeft: $r('app.float.image_border_radius'), | ||
| 50 | + topRight: $r('app.float.image_border_radius'), | ||
| 51 | + bottomLeft: $r('app.float.image_border_radius'), | ||
| 52 | + bottomRight: $r('app.float.image_border_radius') | ||
| 53 | + } | ||
| 54 | + ) | ||
| 48 | .aspectRatio(343 / 225) | 55 | .aspectRatio(343 / 225) |
| 49 | if (this.titleShowPolicy === 1 || this.titleShowPolicy === null || this.titleShowPolicy === '') { | 56 | if (this.titleShowPolicy === 1 || this.titleShowPolicy === null || this.titleShowPolicy === '') { |
| 50 | Row() | 57 | Row() |
| 58 | + .borderRadius( | ||
| 59 | + { | ||
| 60 | + topLeft: $r('app.float.image_border_radius'), | ||
| 61 | + topRight: $r('app.float.image_border_radius'), | ||
| 62 | + bottomLeft: $r('app.float.image_border_radius'), | ||
| 63 | + bottomRight: $r('app.float.image_border_radius') | ||
| 64 | + } | ||
| 65 | + ) | ||
| 51 | .width(CommonConstants.FULL_WIDTH) | 66 | .width(CommonConstants.FULL_WIDTH) |
| 52 | .height(59) | 67 | .height(59) |
| 53 | .linearGradient({ | 68 | .linearGradient({ |
| @@ -55,6 +70,7 @@ export struct Card5Component { | @@ -55,6 +70,7 @@ export struct Card5Component { | ||
| 55 | ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0] | 70 | ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0] |
| 56 | ] | 71 | ] |
| 57 | }) | 72 | }) |
| 73 | + | ||
| 58 | Row() { | 74 | Row() { |
| 59 | Stack() { | 75 | Stack() { |
| 60 | if(this.contentDTO.objectType == '5'){ | 76 | if(this.contentDTO.objectType == '5'){ |
| @@ -69,7 +85,7 @@ export struct Card5Component { | @@ -69,7 +85,7 @@ export struct Card5Component { | ||
| 69 | } | 85 | } |
| 70 | 86 | ||
| 71 | Text() { | 87 | Text() { |
| 72 | - if (this.titleMarked) { | 88 | + if (this.titleMarked) { |
| 73 | ForEach(this.textArr, (textItem: textItem) => { | 89 | ForEach(this.textArr, (textItem: textItem) => { |
| 74 | if (textItem.isRed) { | 90 | if (textItem.isRed) { |
| 75 | Span(textItem.content) | 91 | Span(textItem.content) |
-
Please register or login to post a comment