uniapp自带图片预览功能
·
uni.previewImage({
current: index,//为当前显示图片的链接/索引值
urls: this.goodsAppletInfo.imgPaths
indicator:'default',//可取值1.number 2.none 3.default
loop:true, //是否可循环播放 默认falsa
})
官方文档:uni.chooseImage(OBJECT) | uni-app官网
效果图
更多推荐


所有评论(0)