|
|
|
|
@ -76,27 +76,28 @@
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
var testimonialsSwiper = new Swiper('#reviews', {
|
|
|
|
|
pagination: {
|
|
|
|
|
el: ".swiper-pagination",
|
|
|
|
|
type: "fraction",
|
|
|
|
|
},
|
|
|
|
|
navigation: {
|
|
|
|
|
nextEl: ".swiper-button-next",
|
|
|
|
|
prevEl: ".swiper-button-prev",
|
|
|
|
|
},
|
|
|
|
|
loop: true,
|
|
|
|
|
slidesPerView: 3,
|
|
|
|
|
slidesPerGroup: 3,
|
|
|
|
|
spaceBetween: 30,
|
|
|
|
|
});
|
|
|
|
|
var testimonialsSwiper = new Swiper('#reviews', {
|
|
|
|
|
pagination: {
|
|
|
|
|
el: ".swiper-pagination",
|
|
|
|
|
type: "fraction",
|
|
|
|
|
},
|
|
|
|
|
navigation: {
|
|
|
|
|
nextEl: ".swiper-button-next",
|
|
|
|
|
prevEl: ".swiper-button-prev",
|
|
|
|
|
},
|
|
|
|
|
loop: true,
|
|
|
|
|
slidesPerView: 3,
|
|
|
|
|
slidesPerGroup: 3,
|
|
|
|
|
spaceBetween: 30,
|
|
|
|
|
autoplay: false//修改关闭自动轮播
|
|
|
|
|
});
|
|
|
|
|
var citiesSwiper = new Swiper('#citiesSlider', {
|
|
|
|
|
autoplay: {
|
|
|
|
|
delay: 3000,
|
|
|
|
|
disableOnInteraction: false,
|
|
|
|
|
},
|
|
|
|
|
},//修改(添加自动轮播)
|
|
|
|
|
pagination: {
|
|
|
|
|
el: ".swiper-pagination",
|
|
|
|
|
type: "fraction",
|
|
|
|
|
@ -105,7 +106,9 @@
|
|
|
|
|
nextEl: ".swiper-button-next",
|
|
|
|
|
prevEl: ".swiper-button-prev",
|
|
|
|
|
},
|
|
|
|
|
loop: true // 添加循环播放功能
|
|
|
|
|
loop: true,// 添加循环播放功能
|
|
|
|
|
slidesPerView: 1,
|
|
|
|
|
centeredSlides: true
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|