diff --git a/src/views/Index.vue b/src/views/Index.vue index 7ebfaae5..9a473d3a 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -2,19 +2,17 @@
-
- - +
+ 当轮播图等于一张时 +
- -
-
+
@@ -24,8 +22,8 @@
-
+
@@ -491,31 +489,17 @@ 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, //解决滑动后不能轮播的问题 + delay:2000, + disableOnInteraction:false, //解决滑动后不能轮播的问题 }, noSwiping: true, speed: 3000, //切换速度,即slider自动滑动开始到结束的时间(单位ms) loop: true, //循环切换 peed: 300, //循环速度 scrollbar: '.swiper-scrollbar', - pagination: { el: '.swiper-pagination', // type : 'progressbar', //分页器形状 @@ -712,7 +696,13 @@ let key = 'index'; apiPlace.detail(key).then(res => { let lmj = JSON.parse(res.result.content) + console.log(lmj.length,'测试') + + // if(lmj.length > 1){ this.resonimg = lmj; + // } + + }) }, jumUX() {