26315
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<div class="hint-con" v-if="data.description">{{ data.description }}</div>
|
||||
|
||||
<div class="imgs">
|
||||
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" />
|
||||
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" @click.stop="previewImage(data.images, item.url)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,6 +69,13 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map((v) => v.url),
|
||||
current: img,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user