Showing
1 changed file
with
3 additions
and
15 deletions
| @@ -44,16 +44,6 @@ export struct Card6Component { | @@ -44,16 +44,6 @@ export struct Card6Component { | ||
| 44 | Row() { | 44 | Row() { |
| 45 | Column() { | 45 | Column() { |
| 46 | Column() { | 46 | Column() { |
| 47 | - // TODO 这个tag涉及样式问题。待优化。 | ||
| 48 | - // if (this.contentDTO.newTags) { | ||
| 49 | - // Text(this.contentDTO.newTags) | ||
| 50 | - // .backgroundColor($r('app.color.color_ED2800')) | ||
| 51 | - // .borderRadius($r('app.float.button_border_radius')) | ||
| 52 | - // .fontColor($r('app.color.color_fff')) | ||
| 53 | - // .fontSize($r('app.float.font_size_12')) | ||
| 54 | - // .padding(2) | ||
| 55 | - // .margin({ right: 2 }) | ||
| 56 | - // } | ||
| 57 | Stack() { | 47 | Stack() { |
| 58 | if(this.contentDTO.objectType == '5'){ | 48 | if(this.contentDTO.objectType == '5'){ |
| 59 | Notes({ objectType: this.contentDTO.objectType }).height(28).align(Alignment.Center) | 49 | Notes({ objectType: this.contentDTO.objectType }).height(28).align(Alignment.Center) |
| @@ -71,7 +61,6 @@ export struct Card6Component { | @@ -71,7 +61,6 @@ export struct Card6Component { | ||
| 71 | 61 | ||
| 72 | Text() | 62 | Text() |
| 73 | { | 63 | { |
| 74 | - | ||
| 75 | if (this.titleMarked) { | 64 | if (this.titleMarked) { |
| 76 | ForEach(this.textArr, (textItem: textItem) => { | 65 | ForEach(this.textArr, (textItem: textItem) => { |
| 77 | if (textItem.isRed) { | 66 | if (textItem.isRed) { |
| @@ -85,7 +74,6 @@ export struct Card6Component { | @@ -85,7 +74,6 @@ export struct Card6Component { | ||
| 85 | Span(this.contentDTO.newsTitle) | 74 | Span(this.contentDTO.newsTitle) |
| 86 | } | 75 | } |
| 87 | } | 76 | } |
| 88 | - | ||
| 89 | .fontColor(this.clicked ? 0x848484 : 0x222222) | 77 | .fontColor(this.clicked ? 0x848484 : 0x222222) |
| 90 | .fontSize(18) | 78 | .fontSize(18) |
| 91 | .lineHeight(27) | 79 | .lineHeight(27) |
| @@ -97,9 +85,9 @@ export struct Card6Component { | @@ -97,9 +85,9 @@ export struct Card6Component { | ||
| 97 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? (12 + (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) * 11) : | 85 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? (12 + (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) * 11) : |
| 98 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : | 86 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : |
| 99 | 0 ) | 87 | 0 ) |
| 100 | - }.alignContent(Alignment.TopStart) | ||
| 101 | - | ||
| 102 | - | 88 | + .width('100%') |
| 89 | + } | ||
| 90 | + .alignContent(Alignment.TopStart) | ||
| 103 | } | 91 | } |
| 104 | .justifyContent(FlexAlign.Start) | 92 | .justifyContent(FlexAlign.Start) |
| 105 | Blank() | 93 | Blank() |
-
Please register or login to post a comment