diff --git a/src/views/device.vue b/src/views/device.vue index 9a161de..402d298 100644 --- a/src/views/device.vue +++ b/src/views/device.vue @@ -165,6 +165,11 @@ pagination: { el: '.swiper-pagination', }, + on:{ + slideChangeTransitionEnd: function () { + console.log(this.realIndex); + } + }, // allowSlidePrev: false, // allowSlideNext: false, // 改变swiper样式时,自动初始化swiper @@ -176,9 +181,6 @@ delay: T, disableOnInteraction: false }, - onSlideChangeEnd: function (swiper){ - alert(swiper.activeIndex); - }, }) }, },