//移动端导航 $(".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)") } }); //搜索 $('.search').click(function(){ $('.search_wrap').fadeIn(); }); $('.search_wrap .bck').click(function(){ $('.search_wrap').fadeOut("slow"); }); //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:800, loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: '.news-scroll .swiper-pagination', clickable: true, } }); //风采展示 var mySwiper3 = new Swiper('.pd-list .swiper-container', { slidesPerView: 5, spaceBetween: 30, loop:true, autoplay: { delay: 3000, disableOnInteraction: false, }, breakpoints: { 980:{ slidesPerView: 4, spaceBetween: 20, }, 780:{ slidesPerView: 3, spaceBetween: 20, }, 580:{ slidesPerView: 2, spaceBetween: 20, } }, pagination: { el: '.pd-list .swiper-pagination', clickable: true, } }); //党建工作 var mySwiper4 = new Swiper('.tx-list .swiper-container', { slidesPerView: 2, spaceBetween: 30, loop:true, autoplay: { delay: 5000, disableOnInteraction: false, }, breakpoints: { 1060:{ slidesPerView: 4, spaceBetween: 20, }, 880:{ slidesPerView: 3, spaceBetween: 20, }, 680:{ slidesPerView: 2, spaceBetween: 20, }, 460:{ slidesPerView: 1, spaceBetween: 20, } } });