From da24f3cc4e8d1164459e00259f84b6011bfcb262 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Fri, 15 Dec 2023 00:24:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E7=B1=BB=E5=9E=8B=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E5=88=A4=E6=96=AD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/goods-comments/goods-comments.vue | 12 +++++++++++- components/realstore-cart/realstore-cart.vue | 12 ++++++------ pages/goods-detail/goods-detail.vue | 10 ---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/components/goods-comments/goods-comments.vue b/components/goods-comments/goods-comments.vue index b3371282..3029aaa0 100644 --- a/components/goods-comments/goods-comments.vue +++ b/components/goods-comments/goods-comments.vue @@ -72,7 +72,17 @@ created: function () {}, - methods: {}, + methods: { + // 评价图片预览 + comment_images_show_event(e) { + var index = e.currentTarget.dataset.index; + var ix = e.currentTarget.dataset.ix; + uni.previewImage({ + current: this.goods.comments_data[index]['images'][ix], + urls: this.goods.comments_data[index]['images'], + }); + }, + }, };