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
陈剑华
2024-06-04 09:29:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
300c284b0cc49d148f36a014988db7111b6de84c
300c284b
1 parent
da0c8f37
feat: 直播横划卡右滑展示更多逻辑
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
View file @
300c284
...
...
@@ -99,6 +99,10 @@ export struct LiveHorizontalCardComponent {
this.loadImg = await onlyWifiLoadImg();
}
showMore() {
return !!this.compDTO.dataSourceType || !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')
}
build() {
Column() {
...
...
@@ -114,7 +118,7 @@ export struct LiveHorizontalCardComponent {
.fontWeight(600)
}
if (this.
compDTO.dataSourceType === 'LIVE_HORIZONTAL_CARD' || this.compDTO.dataSourceType === 'LIVE_MONTHLY_RANKING' || this.compDTO.dataSourceType === 'OBJECT_POS'
) {
if (this.
showMore()
) {
Row() {
Text("更多")
.fontSize($r("app.float.font_size_14"))
...
...
@@ -175,7 +179,7 @@ export struct LiveHorizontalCardComponent {
})
})
}
if (this.compDTO.operDataList.length >= 2 &&
!(this.compDTO?.objectType === '0' || this.compDTO?.objectType === ''
)) {
if (this.compDTO.operDataList.length >= 2 &&
this.showMore(
)) {
Row() {
Ellipse()
.width(2* (this.moreWidth - this.initMoreWidth - 1))
...
...
Please
register
or
login
to post a comment