/** * ii. ;9abh, * sa391, .r9gg35&g * &#ii13gh; i3x31i;:,rb1 * ims,:,i5895, .5g91:,:;:s1:8a * 33::::,,;5g5, ,58si,,:::,shx;ih1 * sr.,:;rs13bbx35hh11511h5shhh5s3gaxs:.,,::,,1ag3i,gg * .g51s511sr;;iiiishs8g89shsrrsh59s;.,,,,,..5a85si,h8 * :sb9s:,............................,,,.,,,sash53h,1g. * .r18s;..,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....,,.1h315199,rx, * ;s89s,..,,,,,,,,,,,,,,,,,,,,,,,....,,.......,,,;r1shs8,;xi * i55s:.........,,,,,,,,,,,,,,,,.,,,......,.....,,....r9&5.:x1 * 59;.....,. .,,,,,,,,,,,... .............,..:1;.:&s * s8,..;53s5s3s. .,,,,,,,.,.. i15s5h1:.........,,,..,,:99 * 93.:39s:rsgb@a; ..,,,,..... .sg3hhh9g&bgi..,,,,,,,,,,,,.,83 * g5.g8 9#@@@@@x. .,,,,,,..... ia9,.s&b###@@mr...,,,,,,,,..,.;xh * gs.x8 s@@@@@@@b:..,,,,,,,,,,. ra1 ,a@@@@@@@@@h:........,,,,,,.ix: * ;9. ,8a#@@@@@@#5,.,,,,,,,,,... 9a. 8@@@@@@@@@@m; ....,,,,,,,,s8 * x3 is8xahh8s.,,,,,,,,,,...,..58hh@@@@@@@@@hs ...,,,,,,,:gs * r8, ,,,...,,,,,,,,,,..... ,h8xabmmhx3r. .,,,,,,,.rx: * :9, . .:,..,:;;;::,.,,,,,.. .,,. ..,,,,,,.59 * .si ,:.i8hbmmmmmb&5,.... . .,,,,,.smr * ss :: h@@@@@@@@@@#; . ... . ..,,,,im5 * 91 . ;:.,1&@@@@@@mxs. . .,,:,:&s * hs .... .:;,,,i3mms1;..,..... . . ... ..,:,.99 * ,8; ..... .,:,..,8ms:;,,,... .,::.83 * s&: .... .ss553b@@hx3s;,. .,;13h. .:::&1 * sxr . ...;s3g99xa&x88shss11155hi. ,;:h&, * ih8: . .. ,;iiii;,::,,,,,. .;irha * ,8x5; . ....... ,;iihs8gi * 1831, .,;irrrrrs&@ * ;5a8r. .:;iiiiirrss1h * :x@h3s....... .,:;iii;iiiiirsrh * r#h:;,...,,.. .,,:;;;;;:::,... .:;;;;;;iiiirrss1 * ,m8 ..,....,.....,,::::::,,... . .,;;;iiiiiirss11h * 8b;.,,,,,,,.,..... . .. .:;;;;iirrsss111h * i@5,:::,,,,,,,,.... . . .:::;;;;;irrrss111111 * 9bi,:,,,,...... ..r91;;;;;iirrsss1ss1111 */ /** * tabs * @author lzf */ function tabs(tabtitle,tab_content){ var index=$(tabtitle).children(".hover").index() $(tab_content).children().eq(index).show().siblings().hide(); $(tabtitle).children().click(function(){ var index=$(this).index(); $(this).addclass("hover").siblings().removeclass("hover"); $(tab_content).children().eq(index).show().siblings().hide(); return false; }); } /** * tabs2 * @author lzf */ function tabs2(tabtitle,tab_content){ var index=$(tabtitle).children(".hover").index() $(tab_content).children().eq(index).show().siblings().hide(); $(tabtitle).children().hover(function(){ var index=$(this).index(); $(this).addclass("hover").siblings().removeclass("hover"); $(tab_content).children().eq(index).show().siblings().hide(); return false; }); } /** * news_tabs * @author lzf */ function newstabs(tabtitle,tab_content){ var index=$(tabtitle).children(".hover").index(); var href = $(tabtitle).children(".hover").attr("date-url"); $(".news_cover_box1_more").attr("href",href); $(tab_content).children().eq(index).show().siblings().hide(); $(".news_cover_box1_more").attr("href",href); $(tabtitle).children().click(function(){ var index=$(this).index(); var href = $(this).attr("date-url"); $(".news_cover_box1_more").attr("href",href); $(this).addclass("hover").siblings().removeclass("hover"); $(tab_content).children().eq(index).show().siblings().hide(); return false; }); } /** * scrollfix * @author lzf */ function scrollfixed(obj1,obj2,obj3){ // obj1 为子集的标签 // obj2 为顶部外层的盒子 // obj3 为底部滑动到位置的盒子的class,不是包含所有盒子的外层 var arr1 = []; var i = 0; var md = $(obj1); //获取下面对应的每块内容距离顶部的距离,放在一个数组里面 $(window).load(function(){ $(obj3).each(function(){ var pos = $(this).offset().top; arr1.push(pos); }) }) var navoffsettop=$(obj2).offset().top; var navoffseth=$(obj2).innerheight(); //上边小按钮的点击事件 md.each(function(num,val){ $(md[num]).click(function(){ $("html,body").stop(true,true).animate({scrolltop:(arr1[num]-navoffseth+1)+"px"}, 600); //update(); }) }); function update(){ var scrollh = $(window).scrolltop(); //滚动顶部固定 if(scrollh>navoffsettop){ $(obj2).css({"position":"fixed","top":"0","background":"#fff"}) }else{ $(obj2).css({"position":"relative","top":"auto","background":"transparent"}) } //滚动导航高亮切换 for(var num =0; num 0){ $(this).find(".mobile_menu_tt_icon").show(); }else{ $(this).find(".mobile_menu_tt_icon").hide(); } }) $(".search_icon").click(function(){ $(".search_down").stop().slidetoggle(); }) $(".search_btn_close").click(function(){ $(".search_down").stop().slideup(); }) //手机站 $(".mobile_menu_btn").click(function(){ $(".mobile_menu_box").stop(true,true).slidetoggle(); $(".mobile_search_box,.mobile_lag_box").fadeout(); $(".mask").fadetoggle(); }) $(".mobile_search_icon").click(function(){ $(".mobile_search_box").stop(true,true).slidetoggle(); $(".mobile_lag_box,.mobile_menu_box").fadeout(); $(".mask").fadein(); }) $(".mobile_lag_icon").click(function(){ $(".mobile_lag_box").stop(true,true).slidetoggle(); $(".mobile_search_box,.mobile_menu_box").fadeout(); $(".mask").fadein(); }) $(".mobile_menu_tt_icon").click(function(){ $(this).toggleclass("hover"); $(this).parents("dd").find(".mobile_menu_down").stop(true,true).toggle(); }) $(".mask").click(function(){ $(this).fadeout(); $(".mobile_search_box,.mobile_lag_box,.mobile_menu_box").fadeout(); }) /* * banner */ $('.banner').slick({ autoplay:true, arrows:false, dots:true, infinite: true, speed: 600, fade: true, cssease: 'linear' }); $(".ind_box3_list dd").hover(function(){ $(".ind_box3_list dd.hover").addclass("active").removeclass('hover') $(this).addclass("hover").siblings().removeclass("hover"); },function(){ $(this).removeclass('hover'); $(".ind_box3_list dd.active").addclass("hover").removeclass('active') }) /* * ind——news */ $('.ind_box5_b_l_scroll').slick({ dots: false, // remove the points below the images infinite: true, speed: 300, slidestoshow: 1, slidestoscroll:1, prevarrow: $('.ind_box5_b_l_scroll_prev'), nextarrow: $('.ind_box5_b_l_scroll_next') }); $(".about_rw_box3_scroll").slick({ dots: true, // remove the points below the images infinite: false, speed: 300, arrows:false, slidestoshow: 4, slidestoscroll: 4, autoplay:true, responsive: [ { breakpoint: 1024, settings: { slidestoshow: 3, slidestoscroll: 3, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidestoshow: 2, slidestoscroll: 2, } }, { breakpoint: 480, settings: { slidestoshow: 1, slidestoscroll: 1, } } ] }); $(".about_sl_box1_more").click(function(){ $(".about_sl_box1_list").toggleclass("hide"); }) $(".about_his_more_btn").click(function(){ $(".about_his_list").toggleclass("hover"); }) //tabs tabs(".about_rw_bars",".about_rw_tabs"); //about_renli $(".about_renli_box2_item").eq(0).find(".about_renli_box2_title").addclass("hover"); $(".about_renli_box2_item").eq(0).find(".about_renli_box2_con").slidedown(); $(".about_renli_box2_title").click(function(){ $(this).stop(true,true).toggleclass("hover"); $(this).siblings(".about_renli_box2_con").stop(true,true).slidetoggle(); }) /* * case_list */ $('.case_t_pic').slick({ autoplay:true, arrows:false, dots:true, infinite: true, speed: 600 }); /* * case_list */ $('.case_box2_scroll').slick({ autoplay:false, dots:false, infinite: true, speed: 600, slidestoshow: 2, slidestoscroll: 1, prevarrow: $('.case_box2_list_prev'), nextarrow: $('.case_box2_list_next') }); /* * case_det_pic */ $('.case_det_pic').slick({ autoplay:true, arrows:false, dots:true, infinite: true, speed: 600 }); /* * contact */ tabs(".lflx_box_bars",".lflx_box_tabs"); /* * news xmt */ //tabs(".news_xmt_title1_bars",".news_xmt_tabs"); /* * news yingxiang */ videoopen(".news_cover_box2_con_r_video"); videoopen(".news_sp_list dd"); /* * news yingxiang */ $('.pro_cover_hot_sale').slick({ autoplay:true, dots:true, arrows:false, infinite: true, speed: 600 }); /* * pro_cover */ tabs2(".pro_cover_box2_bars",".pro_cover_box2_tabs"); //pro_det $('.wap_pro_scroll').slick({ autoplay:true, dots:true, arrows:false, infinite: true, speed: 600, }); $('.pro_det_mlk_list').slick({ autoplay:true, dots:false, speed: 600, vertical:true, slidestoshow: 3, slidestoscroll: 1, prevarrow: $('.pro_det_mlk_prev'), nextarrow: $('.pro_det_mlk_next') }); // $(".pro_list_box1_more").click(function(){ $(".pro_list_box1 .case_box2_list").toggleclass("hover"); }) //service_baike $('.service_bk_box3_scroll').slick({ autoplay:false, dots:false, speed: 600, slidestoshow: 3, slidestoscroll: 1, responsive: [ { breakpoint: 1024, settings: { slidestoshow: 3, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidestoshow: 2, } }, { breakpoint: 480, settings: { slidestoshow: 2, } } ], prevarrow: $('.service_bk_box3_prev'), nextarrow: $('.service_bk_box3_next') }); $(".back_top").click(function(){ $("body,html").animate({"scrolltop":"0"},400) }) }) $(window).scroll(function(){ var scrollt = $(window).scrolltop(); var h = $(window).height(); if(scrollt > h){ $(".back_top").fadein(); }else{ $(".back_top").fadeout(); } }) $(window).resize(function(){ menu(); })