wuyanan

fix |> 修复直播详情带人民号信息时,人民号信息UI走查展示问题

... ... @@ -29,24 +29,14 @@ export struct LiveFollowComponent {
@State followStatus: String = '0';
build() {
Stack() {
Stack()
.height(22)
.width(150)
.backgroundColor('#000000')
.opacity(0.3)
.borderRadius({
topLeft: 90,
bottomLeft: 90
})
Row() {
Stack({alignContent: Alignment.Bottom}){
Stack({ alignContent: Alignment.Bottom }) {
//号主头像
Image(this.rmhInfo.rmhHeadUrl)
.alt($r('app.media.icon_default_head_mater'))
.width(24)
.height(24)
.borderRadius(90)
.borderRadius(12)
.onClick(() => {
// 跳转到号主页
if (this.contentDetailData.rmhInfo?.cnMainControl === 1) {
... ... @@ -57,8 +47,8 @@ export struct LiveFollowComponent {
WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params)
}
})
if(this.contentDetailData.rmhInfo?.authIcon){
Row(){
if (this.contentDetailData.rmhInfo?.authIcon) {
Row() {
Image(this.contentDetailData.rmhInfo?.authIcon)
.width(10)
.height(10)
... ... @@ -67,20 +57,22 @@ export struct LiveFollowComponent {
.justifyContent(FlexAlign.End)
}
}.width(24).height(24)
.margin({
left: 0,
top: 0,
bottom: 0,
})
//号主名称
Text(this.rmhInfo.rmhName)
.fontColor(Color.White)
.textOverflow({overflow:TextOverflow.Ellipsis})
.textOverflow({ overflow: TextOverflow.Ellipsis })
.maxLines(1)
.fontWeight(500)
.fontSize('12fp')
.layoutWeight(1)
.margin({
left: 4,
right: 6
})
Blank()
//关注状态
Text(this.followStatus === '0' ? '关注' : '已关注')
.fontColor(Color.White)
... ... @@ -93,16 +85,21 @@ export struct LiveFollowComponent {
bottom: 3
})
.borderRadius(2)
.margin({ right: 2 })
.width(36)
.margin({right:2})
.backgroundColor(this.followStatus === '0' ? $r('app.color.color_ED2800') : $r('app.color.color_CCCCCC'))
.visibility(this.followStatus === '0' ? Visibility.Visible : Visibility.None)
.onClick(() => {
this.handleAccention()
})
}
.height(22)
.width(150)
}
.backgroundColor("#30000000")
.borderRadius({
topLeft: 12,
bottomLeft: 12,
topRight: 2,
bottomRight: 2
})
}
/**
... ...