小程序 swiper 组件,在真机上有一个bug

小程序 文章 2021-03-05 17:01 447 0 全屏看文

AI助手支持GPT4.0

小程序 swiper 组件,在真机上有一个bugSmall program swiper component, there is a bug on the real machine

小程序 swiper 组件,在真机上有一个bug
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug swiper 微信iOS客户端 8.0.2 1.0.19

用swiper组件

我的需求是 吧duration设为0,然他瞬时变化。

小程序开发工具里面正常,

但是真机测试以及线上发布用手机查看的时候,图片切换就会出现一闪一闪的问题。

并且在轮播第二轮的时候 这个 一闪一闪就没有了。

Framework type problem type API / component name terminal type wechat version basic library version applet bug swiper wechat IOS client 8.0.2 1.0.19 my requirement with swiper component is right, duration is set to 0, but it changes instantaneously. Small program development tools inside normal, but the real machine test and online release with mobile phone view, picture switching will appear flash problem. And in the second round of the round, this flash is gone. Code fragments can be small program search Guangxi flood and drought disaster public query system, enter the home page, click the cloud to the cloud module, and then click the play button to view

回答:

维她命系:

这个需求换成用视频不是体验更好吗?

黑夜白昼:

swiper

duration设为0,用法好极端

编舟:因为 我每一张图片只有一小部分 变化。。所以就是让有一种渐变感而已。问题这个坑组件也没这个功能,只能这样。
黑夜白昼:自己搞一个轮播组件吧
Jhou旭:

这貌似是swiper组件默认开启了图片延时加载的缘故,轮播一遍之后就没有闪了

编舟:对,但是这样不行。用户体验非常差。我有时候一轮有几十个图片。
Jhou旭:请问以下有压缩过这些轮播的图片吗
编舟:没有诶,图片是从后台放回过来的一个链接。数目都不定的。
Jhou旭:了解,这样的话可以尝试延长下自动播放的间隔时长;如果你这边有详细的数据的话也可以尝试换成ECharts展示,这样更直观自主一些。
编舟:不管怎么延长都会闪,这个应该bug吧- -。。。还有echarts 那种类型 有这种效果?

-EOF-

AI助手支持GPT4.0