wuyanan

fix |> 修复直播结束页面,不存在人民号信息时,有人民号头像边框问题

@@ -136,16 +136,17 @@ export struct PlayerEndView { @@ -136,16 +136,17 @@ export struct PlayerEndView {
136 .height(254) 136 .height(254)
137 .backgroundColor('#999999') 137 .backgroundColor('#999999')
138 .borderRadius(4) 138 .borderRadius(4)
139 -  
140 - Image(this.contentDetailData.rmhInfo?.rmhHeadUrl)  
141 - .width(80)  
142 - .height(80)  
143 - .borderRadius(40)  
144 - .borderWidth(1)  
145 - .borderColor(Color.White)  
146 - .borderStyle(BorderStyle.Solid)  
147 - .position({ x: '50%', y: 0 })  
148 - .markAnchor({ x: '50%', y: '50%' }) 139 + if (this.contentDetailData.rmhInfo != null) {
  140 + Image(this.contentDetailData.rmhInfo?.rmhHeadUrl)
  141 + .width(80)
  142 + .height(80)
  143 + .borderRadius(40)
  144 + .borderWidth(1)
  145 + .borderColor(Color.White)
  146 + .borderStyle(BorderStyle.Solid)
  147 + .position({ x: '50%', y: 0 })
  148 + .markAnchor({ x: '50%', y: '50%' })
  149 + }
149 } 150 }
150 .width(307) 151 .width(307)
151 .padding({ top: 40 }) 152 .padding({ top: 40 })