// 轮播图 var swiper = new swiper('.banner .swiper-container', { autoplay:true, loop: true, pagination: { el: '.banner .swiper-pagination', dynamicbullets: true, }, }); // 产品轮播 var swiper = new swiper('.cpzx_bottom .swiper-container', { slidesperview: 4, spacebetween: 30, slidespergroup: 4, loop: true, autoplay:true, loopfillgroupwithblank: true, pagination: { el: '.cpzx_bottom .swiper-pagination', clickable: true, }, navigation: { nextel: '.cpzx_bottom .swiper-button-next', prevel: '.cpzx_bottom .swiper-button-prev', }, }); var swiper = new swiper('.cpzx_bottom1 .swiper-container', { slidesperview: 1, spacebetween: 30, slidespergroup: 1, loop: true, autoplay:true, loopfillgroupwithblank: true, pagination: { el: '.cpzx_bottom1 .swiper-pagination', clickable: true, }, navigation: { nextel: '.cpzx_bottom1 .swiper-button-next', prevel: '.cpzx_bottom1 .swiper-button-prev', }, }); // 切换 $(".xw_t ul li").click(function () { $(this).addclass('ys').siblings().removeclass('ys'); var i=$(this).index(); console.log(i) $(".xw_b>div").eq(i).addclass('tab').siblings().removeclass('tab'); }) // 合作案例 var swiper = new swiper('.hzal_bottom .swiper-container', { slidesperview: 4, spacebetween: 30, loop: true, autoplay:true, pagination: { el: '.hzal_bottom .swiper-pagination', clickable: true, }, }); // 切换 $(".cpzx_lm_topbx ul li").click(function () { $(this).addclass('bs').siblings().removeclass('bs'); var i=$(this).index(); console.log(i) $(".cpzx_lm_bottom>div").eq(i).addclass('tab1').siblings().removeclass('tab1'); }) // 切换 $(".xwzx_bx ul li").click(function () { $(this).addclass('ys1').siblings().removeclass('ys1'); var i=$(this).index(); console.log(i) $(".xwzx_bottom>div").eq(i).addclass('tab2').siblings().removeclass('tab2'); }) // 头部 $(".fa-reorder").click(function(){ $('.header_right .ul2').toggle(); var a =this.classname console.log(a) if(a=='fa fa-reorder'){ $(this).removeclass('fa-reorder').addclass('fa-remove'); console.log(this); }else{ $(this).removeclass('fa-remove').addclass('fa-reorder'); } }) // 上移 $(window).scroll(function() { var jl=window.pageyoffset; var top =$(window).height(); console.log(top) // var a =$('.gsjj_bx').offset().top; // console.log(a) // if(jl>=a-top&&jl=b-top&&jl=c-top&&jl=d-top&&jl=e-top&&jl=f-top&&jl=g-top&&jl