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
wangliang_wd
2024-05-23 15:55:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
322a15ce7b505081e3194545224a1d8033e340e3
322a15ce
1 parent
62a2bfdd
feat:优化早晚报展示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/topicInfoView.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/topicInfoView.ets
View file @
322a15c
...
...
@@ -56,7 +56,7 @@ export struct topicInfoView {
contentDTO.linkUrl = this.frontLinkObject?.linkUrl
ProcessUtils.processPage(contentDTO)
}
})
})
.width(80)
.alignRules({
left: { anchor: "__container__", align: HorizontalAlign.Start },
bottom: { anchor: "__container__", align: VerticalAlign.Bottom }
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
322a15c
...
...
@@ -411,7 +411,9 @@ export struct PaperSingleColumn999CardView {
result = `${minutes}分钟前`;
} else if (hours < 24) {
result = `${hours}小时前`;
} else {
} else if(hours > 24 && hours <48){
result = '1天前';
}else {
result = '';
}
...
...
@@ -483,10 +485,14 @@ export struct PaperSingleColumn999CardView {
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 16 })
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
///不显示时间或者不显示评论
if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) {
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
}
}
Text(this.getPublishTime())
...
...
@@ -497,7 +503,7 @@ export struct PaperSingleColumn999CardView {
Text(this.interactData.commentNum + "评")
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left:
6
})
.margin({ left:
this.getPublishTime().length >0? 6:0
})
}
}
.justifyContent(FlexAlign.Start)
...
...
Please
register
or
login
to post a comment