diff --git a/packages/localLife/UserComment/index.vue b/packages/localLife/UserComment/index.vue index f5552ff0..ce03f632 100644 --- a/packages/localLife/UserComment/index.vue +++ b/packages/localLife/UserComment/index.vue @@ -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) }) }, diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index 8739ff34..3a7944b8 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -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); }) },