Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

紧急bug,h5端uni.previewImage多图,打包后图片重叠在一起了 #1168

Closed
huanghaodong opened this issue Dec 24, 2019 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@huanghaodong
Copy link

huanghaodong commented Dec 24, 2019

紧急bug,h5端uni.previewImage多图,调试无问题,打包后图片重叠在一起了
image
http://chuantu.xyz/t6/708/1577158838x1033347913.png
上面这应该是两张图

代码

const tempArr = ["http://qiniu.lxlgo.vip/15771585597673520013","http://qiniu.lxlgo.vip/15771584240099870457"];
uni.previewImage({
	urls: tempArr
})

HBuilderX 2.4.6.20191210版本

@Wangyaqi
Copy link
Contributor

给个current属性试试

@zhetengbiji zhetengbiji self-assigned this Jan 9, 2020
@zhetengbiji zhetengbiji added the bug Something isn't working label Jan 9, 2020
@zhetengbiji
Copy link
Collaborator

zhetengbiji commented Jan 9, 2020

临时解决办法:关闭treeShaking或者在代码里增加<swiper style="display: none;"><swiper-item></swiper-item></swiper>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants