我想问一下 怎么实现无缝轮播,照文档上的去做 每次图片轮播到最后一张时 页面会滚动到第一张 然后再轮播 这样效果实在太差 有么有好的解决办法
设置 swiper属性中的circular值为true就可以了
indicator-dots="{{indicatorDots}}" circular="{{circular}}"
Page({
data: {
imgUrls: [
'http://127.0.0.1:8080/starter-tomcat-1.0/templates/calmlog/img/logo.jpg',
'http://127.0.0.1:8080/starter-tomcat-1.0/templates/calmlog/img/list-right.jpg',
'http://127.0.0.1:8080/starter-tomcat-1.0/templates/calmlog/img/default-img.png'
],
indicatorDots: true,
circular: true,
autoplay: true,
interval: 3000,
duration: 500,
},