当前位置:网站首页>Uniapp to preview pictures (single / multiple)
Uniapp to preview pictures (single / multiple)
2022-06-25 16:39:00 【Like angels】
uniapp Realize the picture ( Single sheet / Multiple sheets ) preview
One 、 Single preview
getImgIndex(index) {
let imgs = this.temperatureData.map(item => {
return item.img
})
uni.previewImage({
urls: imgs,
current: index
})
},
Two 、 Multiple previews
getImgIndex(index) {
this.imgArray = [];
this.imgArray = this.temperatureData[index].img
uni.previewImage({
current: 0, // Which page is it currently
urls: this.imgArray,
indicator: 'number',
loop: true
});
},
design sketch :
preview
We’re not put on this Earth to think of only ourselves
边栏推荐
- 【机器学习】基于多元时间序列对高考预测分析案例
- User login 2
- 千万级购物车系统缓存架构方案
- Ncnn source code learning collection
- mysql整体架构和语句的执行流程
- Vscode有什么好用的插件?
- 2021, committed to better development
- Uniapp converts graphic verification codes in the form of file streams into images
- Understanding of reflection part
- ES6 deconstruction assignment rename
猜你喜欢
Why does golang's modification of slice data affect the data of other slices?
【NLP】今年英语高考,CMU用重构预训练交出134高分,大幅超越GPT3
心樓:華為運動健康的七年築造之旅
cmd。。。。。。
iVX低代码平台系列详解 -- 概述篇(一)
20省市公布元宇宙路线图
【 apprentissage automatique】 cas de prévision et d'analyse de l'examen d'entrée à l'Université basé sur des séries chronologiques multiples
Go language - what is critical resource security?
Nsurlsession learning notes (III) download task
Bugly hot update usage
随机推荐
Mysql database multi table query
Flutter textfield setting can input multiple lines
Xinlou: un voyage de sept ans de Huawei Sports Health
Preliminary understanding of JVM
Xinlou: Huawei's seven-year building journey of sports health
Read AFN through - from the creation of manager to the completion of data parsing
Servlet详解
心樓:華為運動健康的七年築造之旅
Day_ seventeen
Reading mysql45 lecture - index continued
Catheon Gaming任命Activision Blizzard前亚太区负责人Mark Aubrey担任首席执行官
Day_ 18 hash table, generic
3.条件概率与独立性
論文筆記:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm
Message format of Modbus (PLC)
[Third Party framework] retrofit2 (1) of network request framework -- Getting Started Guide
What is backbone network
Function and implementation of closures
mysql整体架构和语句的执行流程
Day_ twelve