From 1e2635cff28e174ecb247d83298bc4e9020aeedf Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Mon, 18 Nov 2019 18:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=AE=98=E7=BD=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Public/Mobile/js/home.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Public/Mobile/js/home.js b/Public/Mobile/js/home.js index a879052e2..9c8a6ef15 100644 --- a/Public/Mobile/js/home.js +++ b/Public/Mobile/js/home.js @@ -1,16 +1,17 @@ $(function(){ - + var img = $(".swiper-container .swiper-slide").length; var swiper = new Swiper('.swiper-container', { loop: true, pagination: { el: '.swiper-pagination', clickable: true, }, - autoplay: { + /*autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: false, - }, + },*/ + autoplay: img > 1, }); }); \ No newline at end of file