锘?(function () { banner(); ind04(); $(".counter").countUp(); //ScollText(".index-part01 .rr .con"); $(document).on("click",".pc_menu",function () { $(".nav").toggleClass("on") }) }) function banner(){ $(document).ready(function() { var swiperFlag = false; if($(".banner .swiper-slide").length>1){ var mySwiper = new Swiper('.banner .swiper-container', { // loop: true, // effect: 'fade', pagination: '.banner .swiper-pagination', paginationClickable :true, autoplayDisableOnInteraction : false, onInit: function(swiper){ swiperAnimateCache(swiper); swiperAnimate(swiper); }, onTransitionStart: function(swiper){ }, onSlideChangeEnd: function(swiper) { swiperAnimate(swiper); $(".banner_tab li").eq(swiper.realIndex).addClass("on").siblings().removeClass("on") }, breakpoints: { 767:{ autoplay: 5000, speed:1000, } } }) if($(window).width()>1024){ $(".banner_tab li").hover(function () { var index=$(this).index() $(this).addClass("on").siblings().removeClass("on") mySwiper.slideTo(index) }) }else{ $(".banner_tab li").click(function () { var index=$(this).index() $(this).addClass("on").siblings().removeClass("on") mySwiper.slideTo(index) }) } } }) } function ind04(){ var ind04Swiper = new Swiper('.in_logoList .swiper-container',{ autoplay:5000, slidesPerView:5, spaceBetween:20, loop:true, pagination : '.in_logoList .swiper-pagination', paginationClickable :true, prevButton:'.in_logoList .swiper-button-prev', nextButton:'.in_logoList .swiper-button-next', onInit: function(swiper){ }, onTransitionStart: function(swiper){ }, onSlideChangeEnd: function(swiper) { }, breakpoints: { 1024:{ slidesPerView:3, }, 767:{ slidesPerView:1, } } }) }