uniapp 预览图片 preview

<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("预览成功")
					}
				})
			},

猜你喜欢

转载自blog.csdn.net/qq_59175937/article/details/126700628
今日推荐