$(function(){ // 鐐瑰嚮鍒囨崲about $('.about-btnbox .about-li').each(function(i){ $(this).click(function(){ $('.about-btnbox .about-li').removeClass('active'); $(this).addClass('active'); $('.about-items').hide(); $('.about-items').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) //琛屼笟瑙e喅鏂规寮€濮 $(".p0-left li").each(function (j) { $(this).click(function () { $(".p0-left li").removeClass("programm-active").eq(j).addClass("programm-active"); $(".p0-ri").removeClass("p0-ri-active").eq(j).addClass("p0-ri-active"); }); }); //浜у搧tab鍒囨崲 $('.product-us').each(function(i){ $(this).click(function(){ if(!$(this).hasClass('active')){ $('.product-us').removeClass('active'); $(this).addClass('active'); $('.product-btn .product-btnbox').slideToggle(1000); $('.product-con-box').toggle(); } }) }) $('.product-btnbox1 li').each(function(i){ $(this).click(function(){ $('.product-btnbox1 li').removeClass('active'); $(this).addClass('active'); $('.product-con-box1 .product-changebox').hide(); $('.product-con-box1 .product-changebox').eq(i).show(); }) }) $('.product-btnbox2 li').each(function(i){ $(this).click(function(){ $('.product-btnbox2 li').removeClass('active'); $(this).addClass('active'); $('.product-con-box2 .product-changebox').hide(); $('.product-con-box2 .product-changebox').eq(i).show(); }) }) // 鏅鸿兘鑱旀帴tab鍒囨崲 $('.product-small-tab-btn1 div').each(function(i){ $(this).click(function(){ $('.product-small-tab-btn1 div').removeClass('active'); $(this).addClass('active'); $('.product-small-tab-box1').hide(); $('.product-small-tab-box1').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) $('.product-small-tab-btn2 div').each(function(i){ $(this).click(function(){ $('.product-small-tab-btn2 div').removeClass('active'); $(this).addClass('active'); $('.product-small-tab-box2').hide(); $('.product-small-tab-box2').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) $('.product-small-tab-btn4 div').each(function(i){ $(this).click(function(){ $('.product-small-tab-btn4 div').removeClass('active'); $(this).addClass('active'); $('.product-small-tab-box4').hide(); $('.product-small-tab-box4').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) // 鎶曡祫鑰呭垏鎹 $('.investor-btn .investor-li').each(function(i){ $(this).click(function(){ $('.investor-btn .investor-li').removeClass('active'); $('.investor-next-li div').removeClass('active'); $('.investor-btn .investor-li0').removeClass('active'); $(this).addClass('active'); $('.investor-items').hide(); $('.investor-items00').hide(); $('.investor-items').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) $('.investor-next-li div').each(function(i){ $(this).click(function(){ $('.investor-btn .investor-li').removeClass('active'); $('.investor-next-li div').removeClass('active'); $('.investor-btn .investor-li0').addClass('active'); $(this).addClass('active'); $('.investor-items').hide(); $('.investor-items00').show(); $('.investor-itdiv').hide(); $('.investor-itdiv').eq(i).show(); $("body,html").animate({ scrollTop: $('.allbanner').height() }, 500); // }) }) })