修改本地生活点评的回复列表的显示逻辑
This commit is contained in:
parent
25bb15d144
commit
808661174e
@ -180,7 +180,9 @@ export default {
|
|||||||
request(apiArr.userCommentInfo, "POST", {
|
request(apiArr.userCommentInfo, "POST", {
|
||||||
id: that.id
|
id: that.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
res.merchant_evaluation_reply_list = res.merchant_evaluation_reply_list.filter((item) => {
|
||||||
|
return item.status == 2;
|
||||||
|
});
|
||||||
that.info = res
|
that.info = res
|
||||||
if (res.user_id == uni.getStorageSync('userId')) {
|
if (res.user_id == uni.getStorageSync('userId')) {
|
||||||
that.isDelte = true
|
that.isDelte = true
|
||||||
@ -236,6 +238,9 @@ export default {
|
|||||||
that.flag = false
|
that.flag = false
|
||||||
}
|
}
|
||||||
that.page_num++
|
that.page_num++
|
||||||
|
res.rows = res.rows.filter((item) => {
|
||||||
|
return item.status == 2;
|
||||||
|
});
|
||||||
that.replyList = that.replyList.concat(res.rows)
|
that.replyList = that.replyList.concat(res.rows)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -172,6 +172,13 @@ export default {
|
|||||||
const list = res.rows.filter((item) => {
|
const list = res.rows.filter((item) => {
|
||||||
return item.status == 2;
|
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);
|
this.commentList = this.commentList.concat(list);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user