当前位置:网站首页>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
边栏推荐
- What is backbone network
- File operation, serialization, recursive copy
- Bypass technology to talk about 'cross end'
- GO语言-锁操作
- The problem of missing precision of kettle table input components
- [problem solving] dialogfragment can not be attached to a container view
- ES6 deconstruction assignment rename
- Helsinki traffic safety improvement project deploys velodyne lidar Intelligent Infrastructure Solution
- Bombard the headquarters. Don't let a UI framework destroy you
- Read mysql45 lecture - index
猜你喜欢

数字经济时代文化消费新特征

解析数仓lazyagg查询重写优化

Coredata data persistence

赫尔辛基交通安全改善项目部署Velodyne Lidar智能基础设施解决方案

【機器學習】基於多元時間序列對高考預測分析案例

mac php多版本管理以及安装swoole扩展

Xinlou: Huawei's seven-year building journey of sports health

How to view the change trend of cloud database from the behind of the launch of tidb to Alibaba cloud

Reading mysql45 lecture - index continued

What can one line of code do?
随机推荐
Summary of 2022 spring moves of ordinary people (Alibaba and Tencent offer)
Problems caused by using ApplicationContext to render layout
Overall MySQL architecture and statement execution process
[100 questions of Blue Bridge Cup intensive training] scratch command mobile Blue Bridge Cup scratch competition special prediction programming question intensive training simulation exercise question
Multiple decorators decorate a function
About the use of Aidl, complex data transmission
Dart syntax
APIJSON简单使用
Servlet details
What is backbone network
心樓:華為運動健康的七年築造之旅
Message format of Modbus (PLC)
What exactly is a handler
First knowledge of database
flutter
Rxjs TakeUntil 操作符的学习笔记
千万级购物车系统缓存架构方案
Record learning of hystrix knowledge --20210929
Bombard the headquarters. Don't let a UI framework destroy you
Coredata data persistence