uniapp 预览图片 preview

阎涵忍
2023-12-01
<image :src="item.image" mode="aspectFill"  @click="previewImg(index)"></image>

//图片预览
			previewImg(index) {
				let photoList = this.photo.map(item => {
					return item.image;
				});
				uni.previewImage({
					current:index,
					urls:photoList,
					success() {
						console.log("预览成功")
					}
				})
			},

 类似资料: