提交 65303c80 编写于 作者: 杜庆泉's avatar 杜庆泉

swiper 日志增加开关

上级 3309edd9
...@@ -55,6 +55,15 @@ ...@@ -55,6 +55,15 @@
<view class="uni-list-cell-db">swiperTransition 是否打印</view> <view class="uni-list-cell-db">swiperTransition 是否打印</view>
<switch :checked="swiperTransitionSelect" @change="swiperTransitionChange"/> <switch :checked="swiperTransitionSelect" @change="swiperTransitionChange"/>
</view> </view>
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell-db">swiperAnimationfinish 是否打印</view>
<switch :checked="swiperAnimationfinishSelect" @change="swiperAnimationfinishChange"/>
</view>
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell-db">swiperChange 是否打印</view>
<switch :checked="swiperChangeSelect" @change="swiperChangeChange"/>
</view>
</view> </view>
...@@ -79,14 +88,18 @@ ...@@ -79,14 +88,18 @@
currentVal:0, currentVal:0,
currentItemIdVal:"", currentItemIdVal:"",
disableTouchSelect:false, disableTouchSelect:false,
swiperTransitionSelect:false swiperTransitionSelect:false,
swiperAnimationfinishSelect:false,
swiperChangeSelect:false
} }
}, },
methods: { methods: {
swiperChange: function (e : SwiperChangeEvent) { swiperChange: function (e : SwiperChangeEvent) {
console.log("swiperChange") if(this.swiperChangeSelect){
console.log(e) console.log("swiperChange")
console.log(e)
}
}, },
swiperTransition: function (e : SwiperTransitionEvent) { swiperTransition: function (e : SwiperTransitionEvent) {
if(this.swiperTransitionSelect){ if(this.swiperTransitionSelect){
...@@ -95,8 +108,10 @@ ...@@ -95,8 +108,10 @@
} }
}, },
swiperAnimationfinish: function (e : SwiperAnimationFinishEvent) { swiperAnimationfinish: function (e : SwiperAnimationFinishEvent) {
console.log("swiperAnimationfinish") if(this.swiperAnimationfinishSelect){
console.log(e) console.log("swiperAnimationfinish")
console.log(e)
}
}, },
dotsChange: function (e : SwitchChangeEvent) { dotsChange: function (e : SwitchChangeEvent) {
...@@ -105,6 +120,12 @@ ...@@ -105,6 +120,12 @@
swiperTransitionChange: function (e : SwitchChangeEvent) { swiperTransitionChange: function (e : SwitchChangeEvent) {
this.swiperTransitionSelect = e.detail.value this.swiperTransitionSelect = e.detail.value
}, },
swiperChangeChange: function (e : SwitchChangeEvent) {
this.swiperChangeSelect = e.detail.value
},
swiperAnimationfinishChange: function (e : SwitchChangeEvent) {
this.swiperAnimationfinishSelect = e.detail.value
},
autoplayChange: function (e : SwitchChangeEvent) { autoplayChange: function (e : SwitchChangeEvent) {
this.autoplaySelect = e.detail.value this.autoplaySelect = e.detail.value
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册