//移动端导航 $(".selectBut").click(function() { $(".navm-box").toggleClass("act"); $("body").toggleClass("navShow"); if($(".selectBut").hasClass("hd1-aon1")) { $(this).removeClass("hd1-aon1"); $(".masklayer").hide() } else { $(this).addClass("hd1-aon1"); $(".masklayer").fadeIn("slow") } }) $(".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)") } }); //搜索 $('.btn').on('click',function(){ $('.search-dialog-box').toggleClass("on"); }) $('.search-dialog-box .pub-close').on('click',function(){ $('.search-dialog-box').removeClass("on"); }) //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, }, navigation: { prevEl: '.banner .swiper-button-prev', nextEl: '.banner .swiper-button-next', } }); //学院动态 var mySwiper1 = new Swiper('.pal .swiper-container', { speed:1200, loop:true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: '.pal .swiper-pagination', clickable: true, } }); //商科名师 var swiper2 = new Swiper('.pblist .swiper-container', { loop:true, slidesPerView: 2, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, navigation: { prevEl: '.pbl .title .swi-button .swiper-button-prev', nextEl: '.pbl .title .swi-button .swiper-button-next', }, breakpoints: { 1060:{ slidesPerView: 3, }, 680:{ slidesPerView: 2, }, 460:{ slidesPerView: 1, } } });