diff --git a/src/views/Index.vue b/src/views/Index.vue index 4a0d53e1..96dfc283 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -2,16 +2,29 @@
-
- +
+ +
-
+
+
+
+ + +
+
+ +
+
+ +
+
@@ -476,11 +489,28 @@ Popularity: [], scorelist: [], resonimg: [], - swiperOption: { - autoplay: { - disableOnInteraction: false, - delay: 2000, + swiperOptiontwo: { + autoplay: false, + noSwiping: true, + speed: 3000, //切换速度,即slider自动滑动开始到结束的时间(单位ms) + peed: 300, //循环速度 + scrollbar: '.swiper-scrollbar', + + pagination: { + el: '.swiper-pagination', + // type : 'progressbar', //分页器形状 + clickable: true, //点击分页器的指示点分页器会控制Swiper切换 }, + navigation: { + nextEl: '.swiper-button-next', + prevEl: '.swiper-button-prev', + }, + }, + swiperOption: { + autoplay:{ + delay:2000, + disableOnInteraction:false, //解决滑动后不能轮播的问题 + }, noSwiping: true, speed: 3000, //切换速度,即slider自动滑动开始到结束的时间(单位ms) loop: true, //循环切换 @@ -497,7 +527,7 @@ prevEl: '.swiper-button-prev', }, }, - + couname: '', isNext: true, pageIndex: 1, @@ -683,15 +713,7 @@ let key = 'index'; apiPlace.detail(key).then(res => { let lmj = JSON.parse(res.result.content) - if(this.resonimg.length < 1) { - this.swiperOption.autoplay = false; - this.swiperOption.loop = false; - this.swiperOption.speed = 0; - this.swiperOption.peed = 0; - this.swiperOption.freeMode = false; - } - this.resonimg = lmj - // console.log(this.resonimg) + this.resonimg = lmj; }) }, jumUX() {