...
|
...
|
@@ -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() {
|
|
|
var name = $(this).attr('href').split('#')[1] === '0_9' ? '0~9' : $(this).attr('href').split('#')[1],
|
|
|
targetTop = $list.find('[name="' + name + '"]').offset().top - categoryHeight;
|
|
|
function reference () {
|
|
|
$('.no-intercept').click(function() {
|
|
|
var name = $(this).attr('href').split('#')[1] === '0_9' ? '0~9' : $(this).attr('href').split('#')[1],
|
|
|
targetTop = $('.brand-list-box').find('[name="' + name + '"]').offset().top - categoryHeight;
|
|
|
|
|
|
$('html,body').animate({
|
|
|
scrollTop: targetTop
|
|
|
}, 200);
|
|
|
return false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$('html,body').animate({
|
|
|
scrollTop: targetTop
|
|
|
}, 200);
|
|
|
return false;
|
|
|
});
|
|
|
reference();
|
|
|
|
|
|
$('.brand-tab').find('li').click(function() {
|
|
|
|
...
|
...
|
|