Authored by runner

no activity update

@@ -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 });
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 font-size: 25px; 58 font-size: 25px;
59 color: #ff0705; 59 color: #ff0705;
60 60
61 - .discountNum { 61 + .discount-num {
62 font-size: 40px; 62 font-size: 40px;
63 } 63 }
64 } 64 }