小程序
小游戏
企业微信
微信支付
扫描小程序码分享
我是这样写的,是哪里写错了吗?
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
抖动就是图切换不过来了,然后一张图就在那来回小浮动的左右滑动
<swiper autoplay="auto" interval="5000" duration="1000" current="{{swiperCurrent}}" bindchange="swiperChange" class="swiper" circular="false">
<block wx:for="{{slider}}" wx:key="unique">
<swiper-item data-id="{{item.id}}" data-url="{{item.linkUrl}}">
<image src="{{item.ImgUrl}}" class="img"></image>
</swiper-item>
</block>
</swiper>
<view class="dots">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}" bindtap="chuangEvent" id="{{index}}"></view>
</view>
机型的话安卓,ios上都出现过的,
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
你好,你的问题解决没,我的也出现了这个问题
让我看看你的代码
wxml
<
view
class
=
"wrap"
>
swiper
"swipers"
autoplay
"{{autoplay}}"
current
"{{currentSwiper}}"
bindchange
"swiperChange"
block
wx:for
"{{slideData}}"
wx:key
"*this"
swiper-item
"swiper-item {{item}}"
navigator
url
"../article/article?id={{item.url}}"
image
src
"{{ item.image }}"
style
'width:100%; height:420rpx'
></
</
text
>{{item.title}}</
<!--重置小圆点的样式 -->
"dots"
"dot{{index == currentSwiper ? ' active' : ''}}"
js
data: {
indicatorDots:
true
,
vertical:
false
currentSwiper: 0,
autoplay:
circular:
interval: 5000,
duration: 500,
previousMargin: 0,
nextMargin: 0
},
swiperChange:
function
(e) {
// console.log(e)
this
.setData({
currentSwiper: e.detail.current
})
currentPageNumber: 1,
方便加我微信吗,360858620 谢谢
current="{{currentSwiper}}"去掉
"{{currentSwiper}}"去掉
抖动是怎样表现,麻烦提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
抖动就是图切换不过来了,然后一张图就在那来回小浮动的左右滑动
<swiper autoplay="auto" interval="5000" duration="1000" current="{{swiperCurrent}}" bindchange="swiperChange" class="swiper" circular="false">
<block wx:for="{{slider}}" wx:key="unique">
<swiper-item data-id="{{item.id}}" data-url="{{item.linkUrl}}">
<image src="{{item.ImgUrl}}" class="img"></image>
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{slider}}" wx:key="unique">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}" bindtap="chuangEvent" id="{{index}}"></view>
</block>
</view>
机型的话安卓,ios上都出现过的,
你好,你的问题解决没,我的也出现了这个问题
让我看看你的代码
wxml
<
view
class
=
"wrap"
>
<
swiper
class
=
"swipers"
autoplay
=
"{{autoplay}}"
current
=
"{{currentSwiper}}"
bindchange
=
"swiperChange"
>
<
block
wx:for
=
"{{slideData}}"
wx:key
=
"*this"
>
<
swiper-item
class
=
"swiper-item {{item}}"
>
<
navigator
url
=
"../article/article?id={{item.url}}"
>
<
image
src
=
"{{ item.image }}"
style
=
'width:100%; height:420rpx'
></
image
>
</
navigator
>
<
text
>{{item.title}}</
text
>
</
swiper-item
>
</
block
>
</
swiper
>
<!--重置小圆点的样式 -->
<
view
class
=
"dots"
>
<
block
wx:for
=
"{{slideData}}"
>
<
view
class
=
"dot{{index == currentSwiper ? ' active' : ''}}"
></
view
>
</
block
>
</
view
>
</
view
>
js
data: {
indicatorDots:
true
,
vertical:
false
,
currentSwiper: 0,
autoplay:
true
,
circular:
false
,
interval: 5000,
duration: 500,
previousMargin: 0,
nextMargin: 0
},
swiperChange:
function
(e) {
// console.log(e)
this
.setData({
currentSwiper: e.detail.current
})
},
currentPageNumber: 1,
方便加我微信吗,360858620 谢谢
current
=
"{{currentSwiper}}"去掉
抖动是怎样表现,麻烦提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。