Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wuyanan
2024-09-02 16:21:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3e4626916a56bc7149411b064096e9050246314
b3e46269
1 parent
eddb637d
fix |> 修复直播详情带人民号信息时,人民号信息UI走查展示问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
b3e4626
...
...
@@ -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
})
}
/**
...
...
Please
register
or
login
to post a comment