$(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