wangliang_wd

feat:优化我的评论

... ... @@ -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) {
... ...