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 = type === 2 ? 'outlet/will-end' : 'outlet/will-start';  
60 - let page = type === 2 ? 'outlet-will-end' : 'outlet-will-start'; 59 + let template = parseInt(type) === 2 ? 'outlet/will-end' : 'outlet/will-start';
  60 + let page = parseInt(type) === 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!');
@@ -11,4 +11,9 @@ @@ -11,4 +11,9 @@
11 </div> 11 </div>
12 </a> 12 </a>
13 {{/ activity}} 13 {{/ activity}}
  14 +
  15 + <div class="empty hide">
  16 + <div class="bag"></div>
  17 + <p>活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货</p>
  18 + </div>
14 </div> 19 </div>
@@ -3,5 +3,10 @@ @@ -3,5 +3,10 @@
3 {{# activity}} 3 {{# activity}}
4 {{> resources/acivity-outlets}} 4 {{> resources/acivity-outlets}}
5 {{/ activity}} 5 {{/ activity}}
  6 +
  7 + <div class="empty hide">
  8 + <div class="bag"></div>
  9 + <p>活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货</p>
  10 + </div>
6 </div> 11 </div>
7 12
@@ -11,11 +11,11 @@ var $el = $('.cd-medium'); @@ -11,11 +11,11 @@ var $el = $('.cd-medium');
11 require('../common'); 11 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 Countdown.Countdown({
16 el: $(this) 16 el: $(this)
17 - })  
18 - }) 17 + });
  18 + });
19 } 19 }
20 20
21 // 导航滚动 21 // 导航滚动
@@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) { @@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
25 }).goto($('#index_nav').find('.active').index()); 25 }).goto($('#index_nav').find('.active').index());
26 } 26 }
27 27
28 -if ($('#list-nav').length > 0) {  
29 - iscroll({  
30 - el: '#list-nav'  
31 - }).goto(0); 28 +if ($('.will-end-back').length < 1) {
  29 + $('.empty').show();
32 } 30 }
33 31
34 $('.will-end-back').on('click', function() { 32 $('.will-end-back').on('click', function() {
@@ -11,11 +11,11 @@ var $el = $('.cd-lite'); @@ -11,11 +11,11 @@ var $el = $('.cd-lite');
11 require('../common'); 11 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 Countdown.Countdown({
16 el: $(this) 16 el: $(this)
17 - })  
18 - }) 17 + });
  18 + });
19 } 19 }
20 20
21 // 导航滚动 21 // 导航滚动
@@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) { @@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
25 }).goto($('#index_nav').find('.active').index()); 25 }).goto($('#index_nav').find('.active').index());
26 } 26 }
27 27
28 -if ($('#list-nav').length > 0) {  
29 - iscroll({  
30 - el: '#list-nav'  
31 - }).goto(0); 28 +if ($('.back-ground-white').length < 1) {
  29 + $('.empty').show();
32 } 30 }
33 31
34 $('.back-ground-white').on('click', function() { 32 $('.back-ground-white').on('click', function() {
@@ -153,7 +153,6 @@ @@ -153,7 +153,6 @@
153 .time { 153 .time {
154 font-size: 22px; 154 font-size: 22px;
155 } 155 }
156 -  
157 } 156 }
158 157
159 .outlet-discount { 158 .outlet-discount {
@@ -184,4 +183,26 @@ @@ -184,4 +183,26 @@
184 .hidden { 183 .hidden {
185 display: none; 184 display: none;
186 } 185 }
  186 +
  187 + .empty {
  188 + position: absolute;
  189 + width: 330px;
  190 + left: 50%;
  191 + top: 300px;
  192 + margin-left: -150px;
  193 + font-size: 24px;
  194 + color: #444;
  195 + font-family: STHeitiSC Mdedi;
  196 +
  197 + .bag {
  198 + display: block;
  199 + width: 200px;
  200 + height: 200px;
  201 + margin-left: 65px;
  202 + margin-bottom: 30px;
  203 + background-image: resolve("product/bag_moren.png");
  204 + background-repeat: no-repeat;
  205 + background-size: 100% 100%;
  206 + }
  207 + }
187 } 208 }