zhenghy

0人参数不展示

@@ -155,6 +155,8 @@ export struct PlayUIComponent { @@ -155,6 +155,8 @@ export struct PlayUIComponent {
155 .fontSize('11fp') 155 .fontSize('11fp')
156 .fontWeight(400) 156 .fontWeight(400)
157 .fontColor(Color.White) 157 .fontColor(Color.White)
  158 +
  159 + if (this.liveRoomDataBean.pv > 0) {
158 Image($r('app.media.icon_live_player_status_end')) 160 Image($r('app.media.icon_live_player_status_end'))
159 .width(12) 161 .width(12)
160 .height(12) 162 .height(12)
@@ -163,6 +165,8 @@ export struct PlayUIComponent { @@ -163,6 +165,8 @@ export struct PlayUIComponent {
163 .fontWeight(400) 165 .fontWeight(400)
164 .fontColor(Color.White) 166 .fontColor(Color.White)
165 } 167 }
  168 +
  169 + }
166 .backgroundColor('#4D000000') 170 .backgroundColor('#4D000000')
167 .padding({ 171 .padding({
168 top: 1, 172 top: 1,
@@ -177,6 +181,8 @@ export struct PlayUIComponent { @@ -177,6 +181,8 @@ export struct PlayUIComponent {
177 .fontSize('11fp') 181 .fontSize('11fp')
178 .fontWeight(400) 182 .fontWeight(400)
179 .fontColor(Color.White) 183 .fontColor(Color.White)
  184 +
  185 + if (this.liveRoomDataBean.pv > 0) {
180 Image($r('app.media.icon_live_player_status_end')) 186 Image($r('app.media.icon_live_player_status_end'))
181 .width(12) 187 .width(12)
182 .height(12) 188 .height(12)
@@ -185,6 +191,8 @@ export struct PlayUIComponent { @@ -185,6 +191,8 @@ export struct PlayUIComponent {
185 .fontWeight(400) 191 .fontWeight(400)
186 .fontColor(Color.White) 192 .fontColor(Color.White)
187 } 193 }
  194 +
  195 + }
188 .backgroundColor('#4D000000') 196 .backgroundColor('#4D000000')
189 .padding({ 197 .padding({
190 left: 4, 198 left: 4,
@@ -57,6 +57,7 @@ export struct PlayerTitleComponent { @@ -57,6 +57,7 @@ export struct PlayerTitleComponent {
57 .fontSize(11) 57 .fontSize(11)
58 .fontWeight(400) 58 .fontWeight(400)
59 .fontColor(Color.White) 59 .fontColor(Color.White)
  60 + if (this.liveRoomDataBean.pv > 0) {
60 Image($r('app.media.icon_live_player_status_end')) 61 Image($r('app.media.icon_live_player_status_end'))
61 .width(12) 62 .width(12)
62 .height(12) 63 .height(12)
@@ -65,9 +66,16 @@ export struct PlayerTitleComponent { @@ -65,9 +66,16 @@ export struct PlayerTitleComponent {
65 .fontWeight(400) 66 .fontWeight(400)
66 .fontColor(Color.White) 67 .fontColor(Color.White)
67 } 68 }
  69 +
  70 + }
68 .backgroundColor('#4D000000') 71 .backgroundColor('#4D000000')
69 .borderRadius(2) 72 .borderRadius(2)
70 - .padding(this.liveState == 'running' ? { left: 0, right: 4, top: 0, bottom: 0 } : 4) 73 + .padding(this.liveState == 'running' ? {
  74 + left: 0,
  75 + right: 4,
  76 + top: 0,
  77 + bottom: 0
  78 + } : 4)
71 } 79 }
72 } 80 }
73 } 81 }