陈剑华

fix: 20533 人民号推荐频道,采集数据不应展示号主头像和关注按钮

... ... @@ -130,25 +130,34 @@ export struct RmhTitle {
build() {
Flex() {
Stack() {
Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
.alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
.width(36)
.height(36)
.borderRadius(18)
.border({
width: 0.5,
color: '#0D000000', // 5% 透明度的黑色
style: BorderStyle.Solid
})
Image(this.rmhInfo?.authIcon)
.width(14)
.height(14)
.borderRadius(50)
if (this.rmhInfo.userType != '5') {
Stack() {
Image(
this.loadImg
? this.rmhInfo?.rmhHeadUrl
: this.rmhInfo.userType == '1'
? $r('app.media.default_head_userPage')
: $r('app.media.AccountOwner_DefaultIcon'))
.alt(
this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):
$r('app.media.AccountOwner_DefaultIcon'))
.width(36)
.height(36)
.borderRadius(18)
.border({
width: 0.5,
color: '#0D000000', // 5% 透明度的黑色
style: BorderStyle.Solid
})
Image(this.rmhInfo?.authIcon)
.width(14)
.height(14)
.borderRadius(50)
}
.margin({ right: 8 })
.alignContent(Alignment.BottomEnd)
.flexShrink(0)
}
.margin({ right: 8 })
.alignContent(Alignment.BottomEnd)
.flexShrink(0)
Column() {
Text(this.rmhInfo?.rmhName)
... ...