...
|
...
|
@@ -8,9 +8,10 @@ var $ = require('yoho-jquery'), |
|
|
Swiper = require('yoho-swiper'),
|
|
|
tip = require('../plugin/tip'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
banner = require('../../hbs/resources/banner-top.hbs'),
|
|
|
tab = require('../../hbs/activity/single-day/tab.hbs'),
|
|
|
product = require('../../hbs/activity/single-day/product-list.hbs');
|
|
|
banner = require('resources/banner-top.hbs'),
|
|
|
tab = require('activity/single-day/tab.hbs'),
|
|
|
product = require('activity/single-day/product-list.hbs');
|
|
|
|
|
|
|
|
|
var singleDay = {
|
|
|
initParams: function() {
|
...
|
...
|
@@ -23,7 +24,7 @@ var singleDay = { |
|
|
winH: $(window).height(),
|
|
|
noResult: '<p class="no-result">未找到相关商品</p>',
|
|
|
page: 0,
|
|
|
contCode: window.queryString.content_code || '',
|
|
|
contCode: window.queryString.code || '',
|
|
|
channelId: window.queryString.channel_id
|
|
|
};
|
|
|
|
...
|
...
|
@@ -57,11 +58,11 @@ var singleDay = { |
|
|
};
|
|
|
|
|
|
$(window).on('scroll', function() {
|
|
|
if ($(window).scrollTop() > self.swiperOTop) {
|
|
|
self.$swiper.addClass('fixer');
|
|
|
} else {
|
|
|
self.$swiper.removeClass('fixer');
|
|
|
}
|
|
|
//if ($(window).scrollTop() > self.swiperOTop) {
|
|
|
// self.$swiper.addClass('fixer');
|
|
|
//} else {
|
|
|
// self.$swiper.removeClass('fixer');
|
|
|
//}
|
|
|
|
|
|
window.requestAnimationFrame(_scrollHandler.bind(self));
|
|
|
});
|
...
|
...
|
|