点击图片,将图片列表与下标传递过来,将图片列表处理成数组形式,调用api即可
imgesClick(v, i) {
let urlList = v.map(item => {
return this.baseUrl + item
})
uni.previewImage({
urls: urlList,
current: i
});
},
uniapp图片预览
点击图片,将图片列表与下标传递过来,将图片列表处理成数组形式,调用api即可
imgesClick(v, i) {
let urlList = v.map(item => {
return this.baseUrl + item
})
uni.previewImage({
urls: urlList,
current: i
});
},