
注意不要放错位置,在swiper-item里面
top_banner是图片循环的数组
<view class='rLInedx'>{{index + 1}}/{{top_banner.length}}</view>
.rLInedx{
color: black;
position: fixed;
right: 20rpx;
bottom: 20rpx;
font-size: 30rpx;
}
本文介绍了一种在Swiper-item组件中实现图片循环轮播的方法,并详细阐述了如何创建底部指示器,包括指示器的位置、样式设置以及与轮播数据的联动。同时,讨论了如何确保指示器的正确显示和更新,以提升用户体验。

注意不要放错位置,在swiper-item里面
top_banner是图片循环的数组
<view class='rLInedx'>{{index + 1}}/{{top_banner.length}}</view>
.rLInedx{
color: black;
position: fixed;
right: 20rpx;
bottom: 20rpx;
font-size: 30rpx;
}
586

被折叠的 条评论
为什么被折叠?