GA黄金甲环保征询热线
173-1134-2375

产品展示
_0) { video.currentTime = 0 video.play() } } else { video.pause() } } } }); // 滚动锚点 let thisScroll = $(window).scrollTop() function point() { if ($(window).scrollTop() > $('.chanpinDetailBlock2 .top').offset().top) { $('.chanpinDetailBlock2 .top .fixed').addClass('active') } else { $('.chanpinDetailBlock2 .top .fixed').removeClass('active') } } $(window).scroll(function () { point(); }); $(window).resize(function () { point(); }); $('.chanpinDetailBlock2 .top .fixed .w1280 a').click(function () { $(this).siblings().removeClass('on') $(this).addClass('on') let thisClickHtml = $(this).html() $('.chanpinDetailBlock2 .bottom .w1280 .left .contentNum').each(function () { let thisTitHtml = $(this).children('.tit').html() if (thisClickHtml == thisTitHtml) { $('body,html').stop().animate({ scrollTop: $(this).offset().top - 60 }) } return }) }) $(window).scroll(function () { // $('.contentNum').each(function(){ // if($(window).scrollTop() > $(this).children('.tit').offset().top){ // $('.chanpinDetailBlock2 .top .fixed .w1280 a').removeClass('on') // $('.chanpinDetailBlock2 .top .fixed .w1280 a').eq($(this).parent().index()).addClass('on') // } // }) thisScroll = $(window).scrollTop() let block1 = $('.contentNum').eq(0).offset().top - 70 let block2 = $('.contentNum').eq(1).offset().top - 70 if (thisScroll > block2) { $('.chanpinDetailBlock2 .top .fixed .w1280 a').removeClass('on') $('.chanpinDetailBlock2 .top .fixed .w1280 a').eq(1).addClass('on') } else { $('.chanpinDetailBlock2 .top .fixed .w1280 a').removeClass('on') $('.chanpinDetailBlock2 .top .fixed .w1280 a').eq(0).addClass('on') } })




