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