Commit 6ac4e5e7 authored by Mac's avatar Mac

1

parent bbe89753
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
:key="zi" :key="zi"
:style="{ 'max-width': yi == 0 ? 'unset' : '31.9%' }" :style="{ 'max-width': yi == 0 ? 'unset' : '31.9%' }"
> >
<view class="scal" @click="previewImage(zi,y)"> <view class="scal" @click="previewImage(zi,yi,x.CommentImgList)">
<image :src="z" mode="aspectFill" class="image" /> <image :src="z" mode="aspectFill" class="image" />
<view <view
class="more" class="more"
...@@ -117,10 +117,11 @@ export default { ...@@ -117,10 +117,11 @@ export default {
this.getCommentStatistics() this.getCommentStatistics()
}, },
methods: { methods: {
previewImage(i,images) { previewImage(i,i2,images) {
let current = (i2)*3 + i
uni.previewImage({ uni.previewImage({
urls: images, urls: images,
current: i, current: current,
longPressActions: { longPressActions: {
itemList: ["发送给朋友", "保存图片", "收藏"], itemList: ["发送给朋友", "保存图片", "收藏"],
success: function (data) { success: function (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment