jquery(document).ready(function($) { // ibanner $(".ibanner").slick({ dots:true, autoplay:true, arrows:true, autoplayspeed:4500, }); //nav横向下拉菜单栏 $("ul.one>li").hover(function(){ $(this).addclass("cu") $(this).find(".two_box").stop(true,false).slidedown("500") $(this).find(".two_area").stop(true,false).slidedown("500") },function(){ $(this).removeclass("cu") $(this).find(".two_box").stop(true,false).slideup("400") $(this).find(".two_area").stop(true,false).slideup("400") }); // $(window).scroll(function () { // var st = $(window).scrolltop(); // if (st > 50) { // $(".two_area").stop(true,false).slideup("400") // } // }); //隐藏导航跟wrap的切换 $(".nav_button").click(function(){ $(".class").removeclass("page-prev").addclass("page-in on"); pageslideover(); }) $(".nav_close,.opacity").on('click touchstart',function(){ $(".class").addclass("page-prev page-out").removeclass('on') pageslideover(); }) function pageslideover(){ $('.page-out').on('transitionend', function(){ $(this).removeclass('page-out'); }); $('.page-in').on('transitionend', function(){ $(this).removeclass('page-in'); }); } //手机隐藏导航 $(".m_two").siblings('a').append('') $(".m_list .m_one>li>a").click(function() { $(this).toggleclass('cu1') $(this).parent().siblings().find('a').removeclass('cu1') $(this).parent().siblings().find('.m_two a').removeclass('cu2') $(this).parent().siblings().find('.m_three a').removeclass('cu3') $(this).find('span').toggleclass('close_one') $(this).parent().siblings().find('span').removeclass('close_one'); $(this).parent().siblings().find('.m_two,.m_three,.m_four').slideup(); $(this).siblings('.m_two').slidetoggle(); }); $(".m_list .m_two>li>a").click(function() { $(this).addclass('cu2') $(this).parent().siblings().find('a').removeclass('cu2') $(this).parent().siblings().find('.m_three a').removeclass('cu3') // $(this).find('span').toggleclass('close_one') // $(this).parent().siblings().find('span').removeclass('close_one'); $(this).parent().siblings().find('.m_three,.m_four').slideup(); $(this).siblings('.m_three').slidetoggle(); }); $(".m_list .m_three>li>a").click(function() { $(this).addclass('cu3') $(this).parent().siblings().find('a').removeclass('cu3') // $(this).find('span').toggleclass('close_one') // $(this).parent().siblings().find('span').removeclass('close_one'); $(this).parent().siblings().find('.m_four').slideup(); $(this).siblings('.m_four').slidetoggle(); }); //内页产品分类 $(".pmenu").hover(function() { $(".pmenu_area").addclass('on') }, function() { $(".pmenu_area").removeclass('on') }); $(".second").siblings('a').append('') $(".pmenu_list .first>li>a").click(function() { $(this).toggleclass('cu1') $(this).parent().siblings().find('a').removeclass('cu1') $(this).parent().siblings().find('.second a').removeclass('cu2') $(this).parent().siblings().find('.third a').removeclass('cu3') $(this).find('span').toggleclass('close_one') $(this).parent().siblings().find('span').removeclass('close_one'); $(this).parent().siblings().find('.second,.third').slideup(); $(this).siblings('.second').slidetoggle(); }); $(".pmenu_list .second>li>a").click(function() { $(this).addclass('cu2') $(this).parent().siblings().find('a').removeclass('cu2') $(this).parent().siblings().find('.third a').removeclass('cu3') $(this).find('span').toggleclass('close_one') $(this).parent().siblings().find('span').removeclass('close_one'); $(this).parent().siblings().find('.third').slideup(); $(this).siblings('.third').slidetoggle(); }); $(".side_top").click(function(){ $("html,body").animate({scrolltop:'0px'},800); }); $(".bottom_sr").click(function(event) { $(".bottom_search").toggleclass('showup'); }); $(".bottom_zx").click(function(event) { $(this).find('.bottom_zx_img').slidetoggle(400) }); // subnav $(".subnav").slick({ dots:false, autoplay:false, arrows:false, infinite:false, slidestoshow: 4, responsive: [ { breakpoint:767, settings: { slidestoshow:3, } } ] }); // xsolutwo $(".xsolutwo_more").click(function(event) { $(this).toggleclass('open'); $(".xsolutwo_tab_list").slidetoggle(400) }); // xsolutwo $(".xsolutwo .xsolutwo_tab .xsolutwo_tab_item").click(function(event) { $(this).addclass("on").siblings().removeclass("on"); var index=$(this).index(); $(".xsolutwo .xsolutwo_data > .xsolutwo_data_item").eq(index).addclass("cur").siblings().removeclass("cur"); var text=$(this).text(); $(".xsolutwo_show").text(text) $(".xsolutwo_more").removeclass('open') if ( $(window).width() < 992 ) { $(".xsolutwo_tab_list").slideup(400) } }); $(".xjoin_gd").click(function(event) { $(this).parent().siblings('.xjoin_intro').slidetoggle(400) $(this).parents(".xjoin_item").toggleclass('open'); $(this).parents(".xjoin_item").siblings().find('.xjoin_intro').slideup(400) $(this).parents(".xjoin_item").siblings().removeclass('open') }); // 彭晓婷部分内页 $(".dec_chance .hd .cli").click(function(){ $(this).addclass("on").siblings(".cli").removeclass("on"); var index=$(this).index(); $(".dec_chance .bd > .detil").eq(index).show().siblings().hide(); }); $('.slider-for').slick({ slidestoshow:1, // slidestoscroll:1, draggable:false, infinite:false, arrows:true, fade:true, dots:false, autoplay:false, autoplayspeed:5000,//自动播放间隔 asnavfor:'.slider-nav' }); $('.slider-nav').slick({ slidestoshow:6, // slidetoscroll:1, infinite:false, asnavfor:'.slider-for', dots:false, focusonselect:true }); // 证书 $(".zl-slider").slick({ dots:true, autoplay:false, arrows:false, infinite:false, slidestoshow: 6, slidestoscroll:6, responsive: [ { breakpoint:1024, settings: { slidestoshow: 5, slidestoscroll: 5 } }, { breakpoint:768, settings: { slidestoshow: 4, slidestoscroll: 4 } }] }); $(".ab-slider").slick({ dots:true, autoplay:false, arrows:false, infinite:false }); $(".yj-slider").slick({ dots:true, autoplay:false, arrows:false, infinite:false, // fade:true }); $(".subnav .a1,.about_menu .la1").click(function () { $(".about_menu .la1").addclass("on").siblings("a").removeclass("on"); $("html,body").stop(false,true).animate({scrolltop:$("#btnone").offset().top - 60},1000) }); $(".subnav .a2,.about_menu .la2").click(function () { $(".about_menu .la2").addclass("on").siblings("a").removeclass("on"); $("html,body").stop(false,true).animate({scrolltop:$("#btntwo").offset().top - 60},1000) }); $(".subnav .a3,.about_menu .la3").click(function () { $(".about_menu .la3").addclass("on").siblings("a").removeclass("on"); $("html,body").stop(false,true).animate({scrolltop:$("#btnthr").offset().top - 60},1000) }); // 彭晓婷部分内页 //首页 $(".isafe_item").hover(function() { var idx = $(this).index(); if ( idx%2 == 0 ) { $(this).siblings('.isafe_dot').find('em:even').addclass('on') } else{ $(this).siblings('.isafe_dot').find('em:odd').addclass('on') }; }, function() { $(this).siblings('.isafe_dot').find('em').removeclass('on') }); // // icity_slide $(".icity_slide").slick({ dots:true, autoplay:false, arrows:false, infinite:false, slidestoshow: 4, responsive: [ { breakpoint:1199, settings: { slidestoshow:3, } }] }); // imedic_slide $(".imedic_slide").slick({ dots:true, autoplay:false, arrows:false, infinite:false, slidestoshow: 3 }); //itraffic_slide $(".itraffic_slide").slick({ dots:true, autoplay:true, arrows:false, autoplayspeed:4500, fade: true, }); //iedu_slide $(".iedu_slide").slick({ dots:true, autoplay:true, arrows:false, autoplayspeed:4500, fade: true, }); $(".xsuptwo_item").each(function(index, el) { var itime = index/8 + 0.5+ 's'; $(this).attr('data-wow-delay', itime); }); $(".xconone_item").each(function(index, el) { var itime = index/8 + 0.5+ 's'; $(this).attr('data-wow-delay', itime); }); $(".isafe_item").each(function(index, el) { var itime = index/8 + 0.2+ 's'; $(this).attr('data-wow-delay', itime); }); $(".xinves_data,.xsoluone_bt,.xsolutwo_tab,.xjoin_top_area,.xjoin_slogan,.xjoin_list>div,.xsup_bt,.xsupthree_item,.xsupfour_item,.xconone,.xcontwo_head,.xcontwo_form,.ihead_nr,.islide").addclass('fadeinupm wow') $(".xsoluone_nr,.xjoin_search,.xsupone_nr,.ihead_cn,.ihead_en").addclass('fadeindownm wow') $(".xsupone_img,.xsuptwo_item,.xsoluone_left").addclass('fadeinleftm wow') $(".xconone_item,.isafe_img,.isafe_item").addclass('fadeinrightm wow') // animate鼠标滚动渐入 if (!(/msie [6|7|8|9]/i.test(navigator.useragent))){ new wow().init(); }; $(".nypro_data").slick({ dots:true, autoplay:false, infinite:false, slidestoshow: 4, slidestoscroll:4, responsive: [ { breakpoint:991, settings: { slidestoshow: 3, slidestoscroll: 3 } }, { breakpoint:768, settings: { rows: 2, arrows: false, slidestoshow: 2, slidestoscroll: 2 } } ] }); });