Showing
5 changed files
with
6 additions
and
6 deletions
@@ -56,8 +56,8 @@ exports.activityList = (req, res) => { | @@ -56,8 +56,8 @@ exports.activityList = (req, res) => { | ||
56 | }); | 56 | }); |
57 | let categoryId = req.query.category_id; | 57 | let categoryId = req.query.category_id; |
58 | let type = req.query.type || 2; | 58 | let type = req.query.type || 2; |
59 | - let template = parseInt(type) === 2 ? 'outlet/will-end' : 'outlet/will-start'; | ||
60 | - let page = parseInt(type) === 2 ? 'outlet-will-end' : 'outlet-will-start'; | 59 | + let template = parseInt(type, 10) === 2 ? 'outlet/will-end' : 'outlet/will-start'; |
60 | + let page = parseInt(type, 10) === 2 ? 'outlet-will-end' : 'outlet-will-start'; | ||
61 | 61 | ||
62 | if (!categoryId) { | 62 | if (!categoryId) { |
63 | throw new Error('No parent_id for OUTLET channel page!'); | 63 | throw new Error('No parent_id for OUTLET channel page!'); |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <img class="back-image" src="{{image coverUrl 640 300}}"> | 3 | <img class="back-image" src="{{image coverUrl 640 300}}"> |
4 | <div class="center-square"> | 4 | <div class="center-square"> |
5 | <div class="title">{{title}}</div> | 5 | <div class="title">{{title}}</div> |
6 | - <div class="num"><span class="discountNum">{{discountNum}}</span> {{discountText}}</div> | 6 | + <div class="num"><span class="discount-num">{{discountNum}}</span> {{discountText}}</div> |
7 | {{>product/outlet/countdown}} | 7 | {{>product/outlet/countdown}} |
8 | </div> | 8 | </div> |
9 | </a> | 9 | </a> |
@@ -12,7 +12,7 @@ require('../common'); | @@ -12,7 +12,7 @@ require('../common'); | ||
12 | 12 | ||
13 | if ($el.length > 0) { | 13 | if ($el.length > 0) { |
14 | $el.each(function() { | 14 | $el.each(function() { |
15 | - Countdown.Countdown({ | 15 | + new Countdown.Countdown({ |
16 | el: $(this) | 16 | el: $(this) |
17 | }); | 17 | }); |
18 | }); | 18 | }); |
@@ -12,7 +12,7 @@ require('../common'); | @@ -12,7 +12,7 @@ require('../common'); | ||
12 | 12 | ||
13 | if ($el.length > 0) { | 13 | if ($el.length > 0) { |
14 | $el.each(function() { | 14 | $el.each(function() { |
15 | - Countdown.Countdown({ | 15 | + new Countdown.Countdown({ |
16 | el: $(this) | 16 | el: $(this) |
17 | }); | 17 | }); |
18 | }); | 18 | }); |
-
Please register or login to post a comment