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-09-29 17:51:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
46ec76bbf10798da577ba019acb4e02c380041a2
46ec76bb
1 parent
e12f6d22
feat:优化查看他人主页评论时间显示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
46ec76b
...
...
@@ -45,7 +45,7 @@ export struct ChildCommentComponent {
.fontColor($r('app.color.color_222222'))
.margin({ bottom: 1 })
.maxLines(1)
Text(
`${this.data.createTime}`
)
Text(
DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(this.data.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN))
)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize(12)
.lineHeight(16)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
46ec76b
...
...
@@ -179,10 +179,8 @@ export struct HomePageBottomCommentComponent {
if (this.curPageNum === 1) this.data_comment.clear()
data.forEach((item) => {
let publishTime =
DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(item.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN))
this.data_comment.push(new CommentListItem(item.fromUserHeader, item.fromUserName,item.fromUserType, item.targetTitle,
publish
Time, item.commentContent, item.likeNum, item.like_status, item.id, item.targetId, item.targetType,
item.create
Time, item.commentContent, item.likeNum, item.like_status, item.id, item.targetId, item.targetType,
item.targetRelId, item.targetRelObjectId, item.targetRelType, item.targetStatus, item.checkStatus,
item.parentCommentContent, item.parentCommentUserName))
})
...
...
@@ -215,10 +213,8 @@ export struct HomePageBottomCommentComponent {
})
data.forEach((item) => {
let publishTime =
DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(item.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN))
this.data_comment.push(new CommentListItem(item.fromUserHeader, item.fromUserName,item.fromUserType, item.targetTitle,
publish
Time, item.commentContent, item.likeNum, item.like_status, item.id, item.targetId, item.targetType,
item.create
Time, item.commentContent, item.likeNum, item.like_status, item.id, item.targetId, item.targetType,
item.targetRelId, item.targetRelObjectId, item.targetRelType, item.targetStatus, item.checkStatus,
item.parentCommentContent, item.parentCommentUserName))
})
...
...
Please
register
or
login
to post a comment