diff --git a/pagesInn/inn/innInfoDetail.vue b/pagesInn/inn/innInfoDetail.vue index 5ffa3f4..3a65270 100644 --- a/pagesInn/inn/innInfoDetail.vue +++ b/pagesInn/inn/innInfoDetail.vue @@ -73,7 +73,7 @@ - {{ item.replyCount || 0 }} + {{ item.replyCount || comments.length }} @@ -301,7 +301,7 @@ export default { addComment(params).then((res) => { console.log(res); uni.hideLoading(); - this.getComment() + this.init() this.reply = '' this.currentComment = {} this.item.replyCount === null ? this.item.replyCount = 1 : this.item.replyCount++ @@ -335,7 +335,7 @@ export default { getHotelNewsZan(this.id) .then((res) => { uni.hideLoading(); - this.item = res.data; + getHotelNewsDetail(this.id).then(({ data }) => (this.item = data)); }) .catch((err) => { uni.hideLoading();