Showing
1 changed file
with
16 additions
and
7 deletions
| @@ -15,6 +15,11 @@ export struct PeopleShipRecommendHeadComponent { | @@ -15,6 +15,11 @@ export struct PeopleShipRecommendHeadComponent { | ||
| 15 | .height('44vp') | 15 | .height('44vp') |
| 16 | .borderRadius('22vp') | 16 | .borderRadius('22vp') |
| 17 | .objectFit(ImageFit.Cover) | 17 | .objectFit(ImageFit.Cover) |
| 18 | + .border({ | ||
| 19 | + width: 0.5, | ||
| 20 | + color: '#0D000000', // 5% 透明度的黑色 | ||
| 21 | + style: BorderStyle.Solid | ||
| 22 | + }) | ||
| 18 | 23 | ||
| 19 | Image( this.isSelectedRmhInfo() ? $r('app.media.rmh_selected') : $r('app.media.rmh_unselected') ) | 24 | Image( this.isSelectedRmhInfo() ? $r('app.media.rmh_selected') : $r('app.media.rmh_unselected') ) |
| 20 | .width('18vp') | 25 | .width('18vp') |
| @@ -46,14 +51,18 @@ export struct PeopleShipRecommendHeadComponent { | @@ -46,14 +51,18 @@ export struct PeopleShipRecommendHeadComponent { | ||
| 46 | .alignItems(VerticalAlign.Center) | 51 | .alignItems(VerticalAlign.Center) |
| 47 | .justifyContent(FlexAlign.Center) | 52 | .justifyContent(FlexAlign.Center) |
| 48 | 53 | ||
| 54 | + Row() { | ||
| 55 | + Text(this.rmhInfo.introduction) | ||
| 56 | + .fontColor($r('app.color.color_B0B0B0')) | ||
| 57 | + .fontSize(12) | ||
| 58 | + .margin({ top: 4, bottom: 14 }) | ||
| 59 | + .textOverflow({overflow: TextOverflow.Ellipsis}) | ||
| 60 | + .maxLines(2) | ||
| 61 | + .height(34) | ||
| 62 | + .lineHeight(17) | ||
| 63 | + .textAlign(TextAlign.Center) | ||
| 64 | + } | ||
| 49 | 65 | ||
| 50 | - Text(this.rmhInfo.introduction) | ||
| 51 | - .fontColor($r('app.color.color_B0B0B0')) | ||
| 52 | - .fontSize($r('app.float.vp_11')) | ||
| 53 | - .margin({ top: 6, bottom: 14 }) | ||
| 54 | - .textOverflow({overflow: TextOverflow.Ellipsis}) | ||
| 55 | - .maxLines(2) | ||
| 56 | - .height(34) | ||
| 57 | } | 66 | } |
| 58 | .width('100%') | 67 | .width('100%') |
| 59 | .height('110vp') | 68 | .height('110vp') |
-
Please register or login to post a comment