王士厅
... ... @@ -113,7 +113,7 @@ export default struct MinePageUserSimpleInfoUI {
.margin({ left: 0,top:8 })
.backgroundImage($r("app.media.mine_grade_bg"))
.backgroundImageSize(ImageSize.FILL)
.padding({left: 6,right: 6})
.padding({left: 9,right: 9})
.height(16)
}
}
... ...
... ... @@ -45,7 +45,7 @@ export struct ChildCommentComponent {
.fontColor($r('app.color.color_222222'))
.margin({ bottom: 1 })
.maxLines(1)
Text(DateTimeUtils.getCommentTime(DateTimeUtils.getDateTimestamp(this.data.createTime)))
Text(`${this.data.createTime}`)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize(12)
.lineHeight(16)
... ...
... ... @@ -10,6 +10,7 @@ export struct ChatItemComponent {
}
build() {
Row(){
Row() {
Text() {
if (this.item.role == LiveMessageRole.host) {
... ... @@ -59,5 +60,7 @@ export struct ChatItemComponent {
right: 8
})
.margin({ left: 16, bottom: 4 })
}.width("100%")
.backgroundColor(Color.Transparent)
}
}
\ No newline at end of file
... ...
... ... @@ -100,16 +100,22 @@ export struct PlayerCommentComponent {
ForEach(this.liveChatList, (item: LiveRoomItemBean) => {
ListItem() {
ChatItemComponent({ item: item })
}
}.blendMode(BlendMode.SRC_IN, BlendApplyType.OFFSCREEN)
})
}
.width('80%')
.width('100%')
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
}
.constraintSize({
maxHeight: 280
}).width("80%")
.linearGradient({ angle: 0,
colors: [[0xff000000, 0.85], [0x01000000, 1.0]]
})
.blendMode(BlendMode.SRC_OVER, BlendApplyType.OFFSCREEN)
// 收藏、分享、点赞是否需要根据字段显隐
LiveOperRowListView({
... ...