...
|
...
|
@@ -1263,26 +1263,26 @@ bindEvent.fire(); |
|
|
|
|
|
}());
|
|
|
|
|
|
$(window).scroll(function(){
|
|
|
var scrollStart = $('.other-infos').offset().top;
|
|
|
var scrollEnd = $('#judge').offset().top;
|
|
|
if($(document).scrollTop() >= scrollStart && $(document).scrollTop() <= scrollEnd){
|
|
|
$(window).scroll(function() {
|
|
|
var scrollStart = $('.other-infos').offset().top;
|
|
|
var scrollEnd = $('#judge').offset().top;
|
|
|
if ($(document).scrollTop() >= scrollStart && $(document).scrollTop() <= scrollEnd) {
|
|
|
$('.redcar').addClass('fixednav');
|
|
|
}else {
|
|
|
} else {
|
|
|
$('.redcar').removeClass('fixednav');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.redcar').on('click', '.option', function(){
|
|
|
var $this = $(this);
|
|
|
$('.redcar').on('click', '.option', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
if($this.hasClass('fixed')){
|
|
|
return;
|
|
|
}
|
|
|
if ($this.hasClass('fixed')) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$this.closest('li').siblings().find('.option').removeClass('fixed');
|
|
|
$this.addClass('fixed');
|
|
|
});
|
|
|
$this.closest('li').siblings().find('.option').removeClass('fixed');
|
|
|
$this.addClass('fixed');
|
|
|
});
|
|
|
|
|
|
// 数据懒加载
|
|
|
dataLazyLoad.init({cls: '.datalazyload', threshold: 0}); |
...
|
...
|
|