...
|
...
|
@@ -57,16 +57,6 @@ let singleDay = { |
|
|
self.previousScrollTop = curScrollTop;
|
|
|
};
|
|
|
|
|
|
$(window).on('scroll touchmove touchstart touchend', function() {
|
|
|
if ($(window).scrollTop() > self.swiperOTop) {
|
|
|
self.$swiper.addClass('fixer');
|
|
|
} else {
|
|
|
self.$swiper.removeClass('fixer');
|
|
|
}
|
|
|
|
|
|
window.requestAnimationFrame(_scrollHandler.bind(self));
|
|
|
});
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/activity/single-day/getSingleData',
|
...
|
...
|
@@ -78,7 +68,7 @@ let singleDay = { |
|
|
let i = 0, $swiperTab;
|
|
|
let tabNum = window.queryString.tabNum ? window.queryString.tabNum - 1 : 0;
|
|
|
|
|
|
if (data[0]) {
|
|
|
if (data[0] && data[0].length !== 0) {
|
|
|
$('.banner').append(banner(data[0][0]));
|
|
|
|
|
|
if ($('.banner-swiper').find('li').size() > 1) {
|
...
|
...
|
@@ -145,6 +135,16 @@ let singleDay = { |
|
|
});
|
|
|
}
|
|
|
|
|
|
$(window).on('scroll touchmove touchstart touchend', function() {
|
|
|
if ($(window).scrollTop() > $('.tab-area').offset().top) {
|
|
|
self.$swiper.addClass('fixer');
|
|
|
} else {
|
|
|
self.$swiper.removeClass('fixer');
|
|
|
}
|
|
|
|
|
|
window.requestAnimationFrame(_scrollHandler.bind(self));
|
|
|
});
|
|
|
|
|
|
loading.hideLoadingMask();
|
|
|
},
|
|
|
error: function() {
|
...
|
...
|
|