zhenghy

0人参数不展示

... ... @@ -155,6 +155,8 @@ export struct PlayUIComponent {
.fontSize('11fp')
.fontWeight(400)
.fontColor(Color.White)
if (this.liveRoomDataBean.pv > 0) {
Image($r('app.media.icon_live_player_status_end'))
.width(12)
.height(12)
... ... @@ -163,6 +165,8 @@ export struct PlayUIComponent {
.fontWeight(400)
.fontColor(Color.White)
}
}
.backgroundColor('#4D000000')
.padding({
top: 1,
... ... @@ -177,6 +181,8 @@ export struct PlayUIComponent {
.fontSize('11fp')
.fontWeight(400)
.fontColor(Color.White)
if (this.liveRoomDataBean.pv > 0) {
Image($r('app.media.icon_live_player_status_end'))
.width(12)
.height(12)
... ... @@ -185,6 +191,8 @@ export struct PlayUIComponent {
.fontWeight(400)
.fontColor(Color.White)
}
}
.backgroundColor('#4D000000')
.padding({
left: 4,
... ...
... ... @@ -57,6 +57,7 @@ export struct PlayerTitleComponent {
.fontSize(11)
.fontWeight(400)
.fontColor(Color.White)
if (this.liveRoomDataBean.pv > 0) {
Image($r('app.media.icon_live_player_status_end'))
.width(12)
.height(12)
... ... @@ -65,9 +66,16 @@ export struct PlayerTitleComponent {
.fontWeight(400)
.fontColor(Color.White)
}
}
.backgroundColor('#4D000000')
.borderRadius(2)
.padding(this.liveState == 'running' ? { left: 0, right: 4, top: 0, bottom: 0 } : 4)
.padding(this.liveState == 'running' ? {
left: 0,
right: 4,
top: 0,
bottom: 0
} : 4)
}
}
}
... ...