...
|
...
|
@@ -65,8 +65,8 @@ $('.brand-cha').find('li').click(function() { |
|
|
|
|
|
// 点击字母,页面滚动到相关区域
|
|
|
$intercept.click(function() {
|
|
|
var name = $(this).attr('href').split('#')[1],
|
|
|
targetTop = $list.find('[name=' + name + ']').offset().top - categoryHeight;
|
|
|
var name = $(this).attr('href').split('#')[1] === '0_9' ? '0~9' : $(this).attr('href').split('#')[1],
|
|
|
targetTop = $list.find('[name="' + name + '"]').offset().top - categoryHeight;
|
|
|
|
|
|
$('html,body').animate({
|
|
|
scrollTop: targetTop
|
...
|
...
|
|