问题模块 框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
API和组件 微信小程序 Bug swiper 工具 6.7.3 2.2.5
- 当前 Bug 的表现(可附上截图)
问题 : swiper 在切换高度还有图片路径的时候 出现空白如何处理?
在加载一张图片的时候有时候会变得空白;数据是在页面上面的 我们从页面元素里头可以看出来

按照开发通常 一定会检查这个URL; 我们检查一遍.

嗯 图片之间返回字节. 是这样;
有时候可以.但是大部分时间都不行!
一下是代码片段;

一下是Object 数据结构;

一开始初始化了swiper 然后形成首页; 后面点击类型的时候 改变了swiper 的高度 跟换了swiper的内容; 才会引发这个问题的;
- 预期表现


这样显示就是对的.
求各路大神指引 谢谢~
最后解决办法:
动态改变current = ‘{{index}}’ 中index 的值,使其初始化
this.setData({ index:0})
微信小程序开发问题解答
微信小程序开发者回答:
小豚鼠求救!!
微信小程序开发者回答:
你的swiper设置了动态current吗??
微信小程序开发者回答:
代码我已经贴在上面了
微信小程序开发者回答:
这bug我之前见过
微信小程序开发者回答:
嗯,是怎么解决的 大哥.
微信小程序开发者回答:
你看看,是不是这个问题https://developers.weixin.qq.com/community/develop/doc/000426898109909e03778579151404
本文网址:http://www.91bianli.com/kaifazhinan/77279.html