// 预览图片单张
previewImg(logourl) {
let _this = this;
let imgsArray = [];
imgsArray[0] = logourl
uni.previewImage({
current: 0,
urls: imgsArray
});
},
// 预览图片多张
previewImg(index) {
let _this = this;
let imgsArray = [];
for (let i = 0; i < this.imgUrlList.length; i++) {
if (this.imgUrlList[i].videoUrl == "") {
imgsArray.push(this.imgUrlList[i].imgUrl);
}
}
// #ifdef MP
uni.previewImage({
current: index - 1,
urls: imgsArray,
indicator: \'number\',
loop: true
});
// #endif
// #ifndef MP
uni.previewImage({
current: index - 1,
urls: imgsArray,
indicator: \'number\',
loop: true
});
// #endif
},
————————————————
版权声明:本文为CSDN博主「一枚程序小哥哥」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_39882919/java/article/details/106466883