修改本地生活点评的回复列表的显示逻辑

This commit is contained in:
赵毅 2025-08-07 17:43:59 +08:00
parent 25bb15d144
commit 808661174e
2 changed files with 13 additions and 1 deletions

View File

@ -180,7 +180,9 @@ export default {
request(apiArr.userCommentInfo, "POST", {
id: that.id
}).then(res => {
console.log(res);
res.merchant_evaluation_reply_list = res.merchant_evaluation_reply_list.filter((item) => {
return item.status == 2;
});
that.info = res
if (res.user_id == uni.getStorageSync('userId')) {
that.isDelte = true
@ -236,6 +238,9 @@ export default {
that.flag = false
}
that.page_num++
res.rows = res.rows.filter((item) => {
return item.status == 2;
});
that.replyList = that.replyList.concat(res.rows)
})
},

View File

@ -172,6 +172,13 @@ export default {
const list = res.rows.filter((item) => {
return item.status == 2;
});
list.forEach(item => {
item.merchant_evaluation_reply_list =item.merchant_evaluation_reply_list.filter((item) => {
return item.status == 2;
})
})
this.commentList = this.commentList.concat(list);
})
},