Authored by zhangxiaoru

索引不灵敏

... ... @@ -65,6 +65,8 @@ function loadData(channel) {
$tabBox.removeClass('fastening');
$contentIndex.removeClass('distance');
});
reference();
}
});
}
... ... @@ -78,15 +80,19 @@ $brandCha.find('li').click(function() {
});
// 点击字母,页面滚动到相关区域
$intercept.click(function() {
function reference () {
$('.no-intercept').click(function() {
var name = $(this).attr('href').split('#')[1] === '0_9' ? '0~9' : $(this).attr('href').split('#')[1],
targetTop = $list.find('[name="' + name + '"]').offset().top - categoryHeight;
targetTop = $('.brand-list-box').find('[name="' + name + '"]').offset().top - categoryHeight;
$('html,body').animate({
scrollTop: targetTop
}, 200);
return false;
});
});
}
reference();
$('.brand-tab').find('li').click(function() {
... ...