<image src='' @click="previewImg(item.img_url)"/>
methods{
previewImg (current) {
const urls = this.secondData.map(item=>{
return item.img_url
})
uni.previewImage({
current,
urls
})
}
}
<image src='' @click="previewImg(item.img_url)"/>
methods{
previewImg (current) {
const urls = this.secondData.map(item=>{
return item.img_url
})
uni.previewImage({
current,
urls
})
}
}