<view @click="showView(item.customerPicture)">
<image style="width: 100%;height: 200px;":src="item.customerPicture"></image>
</view>
showView(img) {
let imgArr = [];
imgArr.push(img);
uni.previewImage({
urls: imgArr,
current: imgArr[0]
})
}
定义一个数组给urls做参数,current表示展示的图片在数组中的下标位置