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-08-29 09:32:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e6f38479fae5ad148cfc42c2f6fa1c76289e6a6b
e6f38479
1 parent
8659da11
feat:优化我的评论
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
e6f3847
...
...
@@ -128,7 +128,6 @@ export struct HomePageBottomCommentComponent {
let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum)
MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => {
if (this.curPageNum === 1) this.data_comment.clear()
if (!this.data_comment || value.list.length == 0) {
this.hasMore = false
this.isLoading = false
...
...
@@ -174,6 +173,9 @@ export struct HomePageBottomCommentComponent {
})
if (status.commentIdList.length === 0) {
if (this.curPageNum === 1) this.data_comment.clear()
data.forEach((item) => {
let publishTime =
DateTimeUtils.getCommentTime(DateTimeUtils.parseDate(item.createTime, DateTimeUtils.PATTERN_DATE_TIME_HYPHEN))
...
...
@@ -199,6 +201,9 @@ export struct HomePageBottomCommentComponent {
}
MinePageDatasModel.getOtherUserCommentLikeStatusData(status, getContext(this)).then((newValue) => {
if (this.curPageNum === 1) this.data_comment.clear()
newValue.forEach((item) => {
data.forEach((list) => {
if (item.commentId == list.id) {
...
...
Please
register
or
login
to post a comment