From a3fb2e5bcfd8ca59e79e1b73b33bcbef5b18ee79 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Thu, 3 Jul 2025 23:42:10 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3959=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E8=B5=84=E8=AE=AF=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=82=B9=E8=B5=9E=E6=88=96=E8=80=85=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E7=82=B9=E8=B5=9E=EF=BC=8C=E8=AF=84=E8=AE=BA=E6=95=B0?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innInfoDetail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();