zhenghy

直播评论样式

... ... @@ -11,7 +11,7 @@ export struct ChartItemCompereComponent {
ListItem() {
Column() {
Row() {
Image($r('app.media.icon_live_status_running'))
Image($r('app.media.default_head'))
.borderRadius(10)
.width(20)
.height(20)
... ... @@ -24,13 +24,15 @@ export struct ChartItemCompereComponent {
Text(' 主持人 ')
.fontSize(11)
.backgroundColor('808562')
.backgroundColor('#FFFFC63F')
.fontColor('#FFFFFFFF')
.padding({ top: 2, bottom: 2, left: 4, right: 4 })
.borderRadius(4)
}.margin({ bottom: 8 })
}
.margin({ bottom: 8 })
.justifyContent(FlexAlign.Start)
Text(this.liveDetailsBean.newIntroduction).lineHeight(22)
Text(this.liveDetailsBean.newIntroduction).lineHeight(22).fontColor('#FFFFFFFF').fontSize(14)
}
.backgroundColor('#4D000000')
.borderRadius(3)
... ... @@ -41,6 +43,7 @@ export struct ChartItemCompereComponent {
right: 8
})
.margin({ left: 16, bottom: 4 })
.alignItems(HorizontalAlign.Start)
}
}
... ...