Authored by runner

no activity update

... ... @@ -56,8 +56,8 @@ exports.activityList = (req, res) => {
});
let categoryId = req.query.category_id;
let type = req.query.type || 2;
let template = type === 2 ? 'outlet/will-end' : 'outlet/will-start';
let page = type === 2 ? 'outlet-will-end' : 'outlet-will-start';
let template = parseInt(type) === 2 ? 'outlet/will-end' : 'outlet/will-start';
let page = parseInt(type) === 2 ? 'outlet-will-end' : 'outlet-will-start';
if (!categoryId) {
throw new Error('No parent_id for OUTLET channel page!');
... ...
... ... @@ -11,4 +11,9 @@
</div>
</a>
{{/ activity}}
<div class="empty hide">
<div class="bag"></div>
<p>活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货</p>
</div>
</div>
... ...
... ... @@ -3,5 +3,10 @@
{{# activity}}
{{> resources/acivity-outlets}}
{{/ activity}}
<div class="empty hide">
<div class="bag"></div>
<p>活动正在火热中进行,左滑切换频道,更多潮品,就在YOHO!BUY有货</p>
</div>
</div>
... ...
... ... @@ -11,11 +11,11 @@ var $el = $('.cd-medium');
require('../common');
if ($el.length > 0) {
$el.each(function(){
$el.each(function() {
Countdown.Countdown({
el: $(this)
})
})
});
});
}
// 导航滚动
... ... @@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
}).goto($('#index_nav').find('.active').index());
}
if ($('#list-nav').length > 0) {
iscroll({
el: '#list-nav'
}).goto(0);
if ($('.will-end-back').length < 1) {
$('.empty').show();
}
$('.will-end-back').on('click', function() {
... ...
... ... @@ -11,11 +11,11 @@ var $el = $('.cd-lite');
require('../common');
if ($el.length > 0) {
$el.each(function(){
$el.each(function() {
Countdown.Countdown({
el: $(this)
})
})
});
});
}
// 导航滚动
... ... @@ -25,10 +25,8 @@ if ($('#index_nav').length > 0) {
}).goto($('#index_nav').find('.active').index());
}
if ($('#list-nav').length > 0) {
iscroll({
el: '#list-nav'
}).goto(0);
if ($('.back-ground-white').length < 1) {
$('.empty').show();
}
$('.back-ground-white').on('click', function() {
... ...
... ... @@ -153,7 +153,6 @@
.time {
font-size: 22px;
}
}
.outlet-discount {
... ... @@ -184,4 +183,26 @@
.hidden {
display: none;
}
.empty {
position: absolute;
width: 330px;
left: 50%;
top: 300px;
margin-left: -150px;
font-size: 24px;
color: #444;
font-family: STHeitiSC Mdedi;
.bag {
display: block;
width: 200px;
height: 200px;
margin-left: 65px;
margin-bottom: 30px;
background-image: resolve("product/bag_moren.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
}
}
... ...