修改本地生活点评的回复列表的显示逻辑
This commit is contained in:
parent
25bb15d144
commit
808661174e
@ -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)
|
||||
})
|
||||
},
|
||||
|
||||
@ -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);
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user