$(function(){ var mySwiper3 = new Swiper('.banner .swiper-container',{ pagination: { el: '.swiper-pagination', clickable :true, }, autoplay: { delay: 5000, stopOnLastSlide: false, disableOnInteraction: true, }, loop: true, on: { slideChangeTransitionStart: function(){ var wow = new WOW({ boxClass: 'wow2', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); }, }, }) var mySwiper = new Swiper('.vSwiper',{ pagination: { el: '.vPagination', clickable :true, }, autoplay: false, loop: false, direction: 'vertical', observer: true, observeParents: true, mousewheel: { thresholdTime:500, releaseOnEdges: true, sensitivity : 0.1, }, }) var mySwiper1 = new Swiper('.sTool8d .swiper-container',{ pagination: { el: '.sTool8d .swiper-pagination', clickable :true, }, slidesPerView : 2, slidesPerColumn: 2, spaceBetween : 10, slidesPerGroup : 2, slidesPerColumnFill: 'row', direction: 'horizontal', autoplay: false, loop: false, observer: true, observeParents: true, autoplay: { delay: 5000, stopOnLastSlide: false, disableOnInteraction: true, }, breakpoints: { 768: { //当屏幕宽度大于等于768 slidesPerView : 5, slidesPerColumn: 3, spaceBetween: 20, slidesPerGroup : 5, }, } }) var _width = $(window).width() if(_width > 1200){ var _height = $(window).height() $(".sTool").height(_height) } var p=0,t=0; $(window).scroll(function(){ var _hieght = $(window).scrollTop() var _width = $(window).width() p = $(window).scrollTop(); if(_width > 1023){ if(_hieght > 60){ $(".pro_mess").css("top",0) }else{ $(".pro_mess").css("top","64px") } }else{ if(_hieght > 58){ $(".pro_mess").css("top",0) }else{ $(".pro_mess").css("top","58px") } } if(_hieght > 100){ $(".inheader2").removeClass("sHerder"); }else{ $(".inheader2").addClass("sHerder"); } if(t<=p){//下滚 $(".inheader2").css("top","-100%"); }else{//上滚 $(".inheader2").css("top","0"); } t = p; //更新上一次scrollTop的值 }) // $(".download4").click(function(){ // $(".download_tc").show() // }) $(".download_tc3 a").on('click',function(){ $(this).addClass("on").siblings().removeClass("on"); var _index=$(this).index(); $(".tab .download_tc6").eq(_index).addClass('show').siblings().removeClass('show'); }); $(".download_tc2").click(function(){ $(".download_tc").hide() }) $(".icon_m a").click(function(e){ $(".menu_m").toggle(500); e.stopPropagation(); }) $(".menu_m2>ul>li>a").click(function(){ $(this).siblings().toggle(500); }) $(document).click(function(e){ var popup = $(".menu_m"); if (!popup.is(e.target) && popup.has(e.target).length == 0) { popup.hide(500); } }); // $(".fixed").mouseover(function(){ // $(this).removeClass("sHerder") // }) // $(".fixed").mouseout(function(){ // $(this).addClass("sHerder") // }) $(".sTool8c span a").on('click',function(){ $(this).addClass("on").siblings().removeClass("on"); var _index=$(this).index(); $(".sTool8d .sTool9").eq(_index).addClass('show').siblings().removeClass('show'); }); var galleryThumbs = new Swiper('.gallery-thumbs', { spaceBetween: 10, slidesPerView: 2, loop: false, observer:true, observeParents:true, freeMode: true, loopedSlides: 20, //looped slides should be the same watchSlidesVisibility: true, watchSlidesProgress: true, breakpoints: { 768: { //当屏幕宽度大于等于768 slidesPerView: 6, spaceBetween: 20 }, } }); var galleryTop = new Swiper('.gallery-top', { spaceBetween: 10, loop: false, effect: 'fade', observer:true, observeParents:true, loopedSlides: 20, //looped slides should be the same thumbs: { swiper: galleryThumbs, }, }); // $(".honors3 .honors4").eq(0).show(1000); $(".honors3 .honors4").eq(0).addClass('show').siblings().removeClass('show'); $(".honors2 span a").on('click',function(){ $(this).addClass("on").siblings().removeClass("on"); var _index=$(this).index(); $(".honors3 .honors4").eq(_index).addClass('show').siblings().removeClass('show'); // $(".honors3 .honors4").hide(300) // $(".honors3 .honors4").eq(_index).show(800); }); var mySwiper2 = new Swiper('.honors4 .swiper-container',{ pagination: { el: '.honors4 .swiper-pagination', clickable: true, }, spaceBetween : 10, autoplay: false, loop: false, observer: true, observeParents: true, breakpoints: { 768: { //当屏幕宽度大于等于768 slidesPerView : 4, spaceBetween: 20 }, } }) $(".inPartner5 ul").eq(0).addClass('show').siblings().removeClass('show'); // $(".inPartner5 ul").eq(0).show(); $(".inPartner4 a").on('click',function(){ $(this).addClass("on").siblings().removeClass("on"); var _index=$(this).index(); // $(".inPartner5 ul").hide(300) // $(".inPartner5 ul").eq(_index).show(800); $(".inPartner5 ul").eq(_index).addClass('show').siblings().removeClass('show'); }); $(window).scroll(function(){ var _height = $(window).scrollTop() // console.log(_height) }) $(".newIndex5 a").on('click',function(){ $(this).addClass("on").siblings().removeClass("on"); var _index=$(this).index(); $(this).parent().siblings(".newIndex6").children(".newIndex7").eq(_index).addClass('show').siblings().removeClass('show'); }); $(".newIndex2 ul li").on('mouseover',function(){ $(this).addClass("on").siblings().removeClass("on"); }); $(".community5 ul li").on('mouseover',function(){ $(this).addClass("on").siblings().removeClass("on"); }); var mySwiper3_1 = new Swiper('.cpfw-swiper',{ effect : 'fade', speed:1000, spaceBetween : 10, autoplay: false, loop: true, observer: true, slideToClickedSlide: false, observeParents: true, }) var mySwiper3 = new Swiper('.jh_menu .swiper-container',{ slidesPerView : 2, spaceBetween : 10, autoplay: false, loop: true, observer: true, slideToClickedSlide: true, observeParents: true, speed:1000, breakpoints: { 768: { //当屏幕宽度大于等于768 slidesPerView : 4, spaceBetween: 10 }, }, on: { slideChangeTransitionStart: function(swiper){ var inde = $(".jh_menu .swiper-container .swiper-slide-active").attr("data-swiper-slide-index"); // var inde = swiper.activeIndex; console.log(parseInt(inde) + 1) mySwiper3_1.slideTo(parseInt(inde) + 1, 1000, false); }, }, }) function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i