From afd6b44644a6a94ae0320d20a7008aafa080a798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 8 Oct 2025 14:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=AB=E6=8D=B7=E4=B9=B0?= =?UTF-8?q?=E5=8D=95=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/localLife/detail/index.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index 2d3d4edb..223b9d5e 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -29,7 +29,8 @@ 营业地址 - {{ info.ad.ad_name ? info.ad.ad_name.replace(/,/g, "") : "" }}{{ info.address }} + {{ info.ad.ad_name ? info.ad.ad_name.replace(/,/g, "") : "" }}{{ + info.address }} 特色服务 @@ -109,10 +110,8 @@ mode="" /> 点评 - - + + 客服 @@ -149,19 +148,19 @@ export default { request(apiArr.getMerchantInfo, "POST", params).then(res => { this.info = res uni.setStorageSync('merchantInfo', res) - + // 确保onLoad执行完后再执行这两个方法 this.page_num = 1 this.flag = false this.commentList = [] this.getCommentList() - this.getMerchantInfo() }) }, onShow() { - if(this.info.id){ + if (this.info.id) { this.getCommentList() } + this.getMerchantInfo() }, onReachBottom() { if (this.flag) { @@ -193,7 +192,7 @@ export default { }); list.forEach(item => { - if(item.merchant_evaluation_reply_list){ + if (item.merchant_evaluation_reply_list) { item.merchant_evaluation_reply_list = item.merchant_evaluation_reply_list.filter((item) => { return item.status == 2; })