From e646266c0b1959e8d4ce567c00ee4dc099981e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 3 Nov 2025 14:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=AF=84=E5=9B=BE=E7=89=87=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=82=B9=E5=87=BB=E6=94=BE=E5=A4=A7=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/localLife/detail/index.vue | 69 ++++++++++++++++++----------- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index ccfcc681..20a25526 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -12,11 +12,11 @@ {{ info.merchant_name }} -
+ -
+ @@ -45,39 +45,39 @@ -
-
-
+ + + {{ item.user.nick_name }} -
-
+ + -
-
+ + -
+ {{ item.comment }} -
- + + -
-
+ + -
-
-
+ + + {{ item.merchant_evaluation_reply_list ? item.merchant_evaluation_reply_list.length : 0 }} -
+ -
+ @@ -85,13 +85,13 @@ src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_likeIcon2.png" mode="widthFix" @click="unlike(item)"> {{ item.merchant_evaluation_like_list ? item.merchant_evaluation_like_list.length : 0 }} -
-
-
- 详情
-
-
-
+
+ + + 详情 + + + @@ -283,6 +283,23 @@ export default { commentDesc(e) { NavgateTo(`../UserComment/index?id=${e.id}`) }, + + // 预览图片 + previewImage(imageList, currentIndex) { + // 将相对路径转换为完整URL + const urls = imageList.map(img => this.picUrl + img); + uni.previewImage({ + urls: urls, + current: urls[currentIndex], + success: function(res) { + console.log('预览成功', res); + }, + fail: function(err) { + console.log('预览失败', err); + } + }); + }, + }, };