Showing
1 changed file
with
11 additions
and
8 deletions
| @@ -38,14 +38,17 @@ export struct Card5Component { | @@ -38,14 +38,17 @@ export struct Card5Component { | ||
| 38 | ] | 38 | ] |
| 39 | }) | 39 | }) |
| 40 | Row() { | 40 | Row() { |
| 41 | - Text(this.contentDTO.newsTitle) | ||
| 42 | - .width(CommonConstants.FULL_WIDTH) | ||
| 43 | - .height(CommonConstants.FULL_HEIGHT) | ||
| 44 | - .fontColor(Color.White) | ||
| 45 | - .fontSize($r('app.float.normal_text_size')) | ||
| 46 | - .fontWeight(FontWeight.Bold) | ||
| 47 | - .maxLines(2) | ||
| 48 | - .align(Alignment.Bottom) | 41 | + if (this.titleShowPolicy === 1) { |
| 42 | + Text(this.contentDTO.newsTitle) | ||
| 43 | + .width(CommonConstants.FULL_WIDTH) | ||
| 44 | + .height(CommonConstants.FULL_HEIGHT) | ||
| 45 | + .fontColor(Color.White) | ||
| 46 | + .fontSize($r('app.float.normal_text_size')) | ||
| 47 | + .fontWeight(FontWeight.Bold) | ||
| 48 | + .maxLines(2) | ||
| 49 | + .align(Alignment.Bottom) | ||
| 50 | + } | ||
| 51 | + | ||
| 49 | } | 52 | } |
| 50 | .justifyContent(FlexAlign.Start) | 53 | .justifyContent(FlexAlign.Start) |
| 51 | .height(40) | 54 | .height(40) |
-
Please register or login to post a comment