Showing
2 changed files
with
10 additions
and
10 deletions
@@ -8,9 +8,10 @@ var $ = require('yoho-jquery'), | @@ -8,9 +8,10 @@ var $ = require('yoho-jquery'), | ||
8 | Swiper = require('yoho-swiper'), | 8 | Swiper = require('yoho-swiper'), |
9 | tip = require('../plugin/tip'), | 9 | tip = require('../plugin/tip'), |
10 | loading = require('../plugin/loading'), | 10 | loading = require('../plugin/loading'), |
11 | - banner = require('../../hbs/resources/banner-top.hbs'), | ||
12 | - tab = require('../../hbs/activity/single-day/tab.hbs'), | ||
13 | - product = require('../../hbs/activity/single-day/product-list.hbs'); | 11 | + banner = require('resources/banner-top.hbs'), |
12 | + tab = require('activity/single-day/tab.hbs'), | ||
13 | + product = require('activity/single-day/product-list.hbs'); | ||
14 | + | ||
14 | 15 | ||
15 | var singleDay = { | 16 | var singleDay = { |
16 | initParams: function() { | 17 | initParams: function() { |
@@ -23,7 +24,7 @@ var singleDay = { | @@ -23,7 +24,7 @@ var singleDay = { | ||
23 | winH: $(window).height(), | 24 | winH: $(window).height(), |
24 | noResult: '<p class="no-result">未找到相关商品</p>', | 25 | noResult: '<p class="no-result">未找到相关商品</p>', |
25 | page: 0, | 26 | page: 0, |
26 | - contCode: window.queryString.content_code || '', | 27 | + contCode: window.queryString.code || '', |
27 | channelId: window.queryString.channel_id | 28 | channelId: window.queryString.channel_id |
28 | }; | 29 | }; |
29 | 30 | ||
@@ -57,11 +58,11 @@ var singleDay = { | @@ -57,11 +58,11 @@ var singleDay = { | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | $(window).on('scroll', function() { | 60 | $(window).on('scroll', function() { |
60 | - if ($(window).scrollTop() > self.swiperOTop) { | ||
61 | - self.$swiper.addClass('fixer'); | ||
62 | - } else { | ||
63 | - self.$swiper.removeClass('fixer'); | ||
64 | - } | 61 | + //if ($(window).scrollTop() > self.swiperOTop) { |
62 | + // self.$swiper.addClass('fixer'); | ||
63 | + //} else { | ||
64 | + // self.$swiper.removeClass('fixer'); | ||
65 | + //} | ||
65 | 66 | ||
66 | window.requestAnimationFrame(_scrollHandler.bind(self)); | 67 | window.requestAnimationFrame(_scrollHandler.bind(self)); |
67 | }); | 68 | }); |
-
Please register or login to post a comment