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; })