小程序
小游戏
企业微信
微信支付
扫描小程序码分享
轮播图指示点的颜色怎么改变不了
5 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
应该这样子。。。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<view class="wrap">
<swiper indicator-color="{{color}}" indicator-active-color="{{active}}" indicator-dots="{{dots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="cover">
<block wx:for="{{img}}" wx:key="img">
<swiper-item>
<image src="{{item}}" class="cover"></image>
</swiper-item>
</block>
</swiper>
</view>
data:{
img:[
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000rVobR3xG73f.jpg',
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000j6Tax0WLWhD.jpg',
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000a4LLK2VXxvj.jpg',
],
dots: true,
color: 'rgba(0,0,0,.3)',
active: '#2caf6f',
autoplay: true,
interval: 3000,
duration: 1000,
},
设置了没起作用,是这么写么?
indicator-color
indicator-active-color
在swiper里面写就可以
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
应该这样子。。。
<view class="wrap">
<swiper indicator-color="{{color}}" indicator-active-color="{{active}}" indicator-dots="{{dots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="cover">
<block wx:for="{{img}}" wx:key="img">
<swiper-item>
<image src="{{item}}" class="cover"></image>
</swiper-item>
</block>
</swiper>
</view>
data:{
img:[
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000rVobR3xG73f.jpg',
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000j6Tax0WLWhD.jpg',
'http://y.gtimg.cn/music/photo_new/T003R720x288M000000a4LLK2VXxvj.jpg',
],
dots: true,
color: 'rgba(0,0,0,.3)',
active: '#2caf6f',
autoplay: true,
interval: 3000,
duration: 1000,
},
设置了没起作用,是这么写么?![]()
indicator-color
indicator-active-color
在swiper里面写就可以
swiper的indicator-color和indicator-active-color设置不起作用了吗