//移动端导航 $(".selectBut").click(function() { $(".navm-box").toggleClass("act"); $("body").toggleClass("navShow"); if($(".selectBut").hasClass("hd1-aon1")) { $(this).removeClass("hd1-aon1"); } else { $(this).addClass("hd1-aon1"); } }) $(".nav-wrap .icon-jia").click(function(){ if($(this).parent().find("dl").is(":hidden")){ $(this).parent().find("dl").show(500); $(this).css("transform","rotate(180deg)") }else{ $(this).parent().find("dl").hide(500); $(this).css("transform","rotate(0deg)") } }); //banner var mySwiper1 = new Swiper('.banner .swiper-container', { speed:1200, loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: '.banner .swiper-pagination', clickable: true, } }); //新闻快讯 var mySwiper2 = new Swiper('.news-scroll .swiper-container', { speed:1200, loop:true, centeredSlides: true, spaceBetween: 20, autoplay: { delay: 5000, disableOnInteraction: false, } }); //学生天地 var mySwiper3 = new Swiper(".stu_box .swiper-container", { slidesPerView: 3, spaceBetween: 30, loop: true, autoplay: { delay: 5000, disableOnInteraction: false, }, breakpoints: { 1200:{ slidesPerView: 5, spaceBetween: 30, }, 1060:{ slidesPerView: 4, spaceBetween: 30, }, 820:{ slidesPerView: 3, spaceBetween: 30, }, 560:{ slidesPerView: 2, spaceBetween: 30, }, 400:{ slidesPerView: 1, spaceBetween: 30, } } });