Showing
5 changed files
with
6 additions
and
9 deletions
1 | var $ = require('yoho-jquery'), | 1 | var $ = require('yoho-jquery'), |
2 | Countdown = require('./outlet/countdown'); | 2 | Countdown = require('./outlet/countdown'); |
3 | 3 | ||
4 | -var $time = $('.outlet-activity-time'), | ||
5 | - endTime = $time.data('time-ms'); | ||
6 | - | ||
7 | var search = require('./sale/search'); | 4 | var search = require('./sale/search'); |
8 | 5 | ||
9 | var el = $('.cd-lite'); | 6 | var el = $('.cd-lite'); |
7 | + | ||
10 | search.start(); | 8 | search.start(); |
11 | 9 | ||
12 | -new Countdown.countdown({ | 10 | +new Countdown.Countdown({ |
13 | el: el | 11 | el: el |
14 | }); | 12 | }); |
@@ -3,7 +3,6 @@ | @@ -3,7 +3,6 @@ | ||
3 | */ | 3 | */ |
4 | var $ = require('yoho-jquery'), | 4 | var $ = require('yoho-jquery'), |
5 | Countdown = require('./outlet/countdown'), | 5 | Countdown = require('./outlet/countdown'), |
6 | - tip = require('../plugin/tip'), | ||
7 | iscroll = require('./outlet/nav'); | 6 | iscroll = require('./outlet/nav'); |
8 | 7 | ||
9 | var $el = $('.cd-medium'); | 8 | var $el = $('.cd-medium'); |
@@ -12,7 +11,7 @@ require('../common'); | @@ -12,7 +11,7 @@ require('../common'); | ||
12 | 11 | ||
13 | if ($el.length > 0) { | 12 | if ($el.length > 0) { |
14 | $el.each(function() { | 13 | $el.each(function() { |
15 | - new Countdown.countdown({ | 14 | + new Countdown.Countdown({ |
16 | el: $(this) | 15 | el: $(this) |
17 | }); | 16 | }); |
18 | }); | 17 | }); |
@@ -16,7 +16,7 @@ lazyLoad($('img.lazy')); | @@ -16,7 +16,7 @@ lazyLoad($('img.lazy')); | ||
16 | 16 | ||
17 | if ($el.length > 0) { | 17 | if ($el.length > 0) { |
18 | $el.each(function() { | 18 | $el.each(function() { |
19 | - Countdown.countdown({ | 19 | + new Countdown.Countdown({ |
20 | el: $(this) | 20 | el: $(this) |
21 | }); | 21 | }); |
22 | }); | 22 | }); |
-
Please register or login to post a comment