chenjun

人民号冷启动推荐卡 头像描边 文字居中 间距 字号

@@ -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
49 - 54 + Row() {
50 Text(this.rmhInfo.introduction) 55 Text(this.rmhInfo.introduction)
51 .fontColor($r('app.color.color_B0B0B0')) 56 .fontColor($r('app.color.color_B0B0B0'))
52 - .fontSize($r('app.float.vp_11'))  
53 - .margin({ top: 6, bottom: 14 }) 57 + .fontSize(12)
  58 + .margin({ top: 4, bottom: 14 })
54 .textOverflow({overflow: TextOverflow.Ellipsis}) 59 .textOverflow({overflow: TextOverflow.Ellipsis})
55 .maxLines(2) 60 .maxLines(2)
56 .height(34) 61 .height(34)
  62 + .lineHeight(17)
  63 + .textAlign(TextAlign.Center)
  64 + }
  65 +
57 } 66 }
58 .width('100%') 67 .width('100%')
59 .height('110vp') 68 .height('110vp')