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