产品页功能介绍修改

master
Lee 2022-02-08 16:40:15 +08:00
parent 7e70e3c0b2
commit b7e083e841
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ jQuery(function($){
$('.product-nav-item>li').removeClass("active"); $('.product-nav-item>li').removeClass("active");
$(this).addClass("active"); $(this).addClass("active");
}); });
$('.onFunction').click(function(){
$('html,body').animate({scrollTop:$('.function-bg').offset().top - 122}, 600);
$('.product-nav-item>li').removeClass("active");
$(this).addClass("active");
});
$('.onAdvantage').click(function(){ $('.onAdvantage').click(function(){
$('html,body').animate({scrollTop:$('.advantage-bg').offset().top - 122}, 600); $('html,body').animate({scrollTop:$('.advantage-bg').offset().top - 122}, 600);
$('.product-nav-item>li').removeClass("active"); $('.product-nav-item>li').removeClass("active");