...
|
...
|
@@ -32,8 +32,10 @@ $('.banner-top').css('padding-top', '90px'); |
|
|
if ($brandList.length > 0) {
|
|
|
$(window).scroll(function() {
|
|
|
var scrTop = $(window).scrollTop();
|
|
|
|
|
|
$('.brand-list').each(function() {
|
|
|
var offTop = $(this).offset().top - brandSwipe;
|
|
|
|
|
|
if (scrTop >= offTop) {
|
|
|
$brandList.find('.title-bar').css('position', 'static');
|
|
|
$(this).find('.title-bar').css({
|
...
|
...
|
@@ -47,10 +49,11 @@ if ($brandList.length > 0) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
$('#right-bar .con').find('b').unbind().on('tap',function(){
|
|
|
var index=$(this).index();
|
|
|
if($('.bar-'+index).size()>0){
|
|
|
document.body.scrollTop = parseInt($('.bar-'+index)[0].offsetTop) - parseInt(brandSwipe-1);
|
|
|
$('#right-bar .con').find('b').unbind().on('tap', function() {
|
|
|
var index = $(this).index();
|
|
|
|
|
|
if ($('.bar-' + index).size() > 0) {
|
|
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|