wuyanan

ref |> 调整直播详情直播状态标签UI走查问题

... ... @@ -189,21 +189,19 @@ export struct PlayUIComponent {
// 预约
if (this.contentDetailData.liveInfo?.liveState == 'wait') {
Row() {
Image($r('app.media.icon_live_status_wait'))
.width(22)
.height(18)
Text('预约')
.fontSize('11fp')
.fontSize('11vp')
.fontWeight(400)
.fontColor(Color.White)
}
.backgroundColor('#4D000000')
.padding({
top: 1,
right: 4,
bottom: 1
right: 4
})
.borderRadius(2)
}
// 直播中
else if (this.contentDetailData.liveInfo?.liveState == 'running') {
... ... @@ -224,7 +222,7 @@ export struct PlayUIComponent {
}
Text('直播中')
.fontSize('11fp')
.fontSize('11vp')
.fontWeight(400)
.fontColor(Color.White)
... ... @@ -233,7 +231,7 @@ export struct PlayUIComponent {
.width(12)
.height(12)
Text(`${NumberFormatterUtils.formatNumberWithWan(this.liveRoomDataBean.pv)}人参与`)
.fontSize('11fp')
.fontSize('11vp')
.fontWeight(400)
.fontColor(Color.White)
}
... ... @@ -241,9 +239,7 @@ export struct PlayUIComponent {
}
.backgroundColor('#4D000000')
.padding({
top: 1,
right: 4,
bottom: 1,
})
.margin(
{
... ... @@ -252,6 +248,7 @@ export struct PlayUIComponent {
: this.displayDirection === DisplayDirection.VIDEO_HORIZONTAL ? 34 : 0
}
)
.borderRadius(2)
}
//回看
else if (this.contentDetailData.liveInfo?.liveState == 'end') {
... ... @@ -272,15 +269,15 @@ export struct PlayUIComponent {
}
}
.height(18)
.backgroundColor('#4D000000')
.padding({
left: 4,
top: 1,
right: 4,
bottom: 1
}).margin({
left: this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? '34vp' : 0
})
.borderRadius(2)
}
}
... ...
... ... @@ -144,7 +144,7 @@ export struct PlayerTitleComponent {
.width(12)
.height(12)
Text(`${NumberFormatterUtils.formatNumberWithWan(this.liveRoomDataBean.pv)}人参与`)
.fontSize('11fp')
.fontSize('11vp')
.fontWeight(400)
.fontColor(Color.White)
}
... ...