Authored by lijing

新增预售标签

... ... @@ -276,7 +276,7 @@ const searchKeyActivity = (params) => {
cache: true,
code: 200
}).then(result => {
if (result.data) {
if (result && result.data) {
return result.data;
} else {
return {};
... ...
... ... @@ -21,6 +21,9 @@
{{# is_soon_sold_out}}
<p class="good-tag soon-sold-out-tag">即将售罄</p>
{{/ is_soon_sold_out}}
{{# is_presell}}
<p class="good-tag is_presell">预售</p>
{{/ is_presell}}
{{/ tags}}
</div>
{{# bannerTop}}
... ...
... ... @@ -207,6 +207,9 @@ $(
newDay = newDate.getDate();
newHour = newDate.getHours();
newMinus = newDate.getMinutes();
if (newMinus === 0) {
newMinus = '00';
}
$('.notStart').find('.seckill-time-c').text(newMonth + '月' + newDay + '日' + newHour + ':' + newMinus);
seckillObj.startTick(timeObj, offsetTime);
}
... ...
... ... @@ -185,6 +185,11 @@ $basicBtnC: #eb0313;
background-color: #ffac5b;
color: #fff;
}
.is_presell {
background-color: #000;
color: #fff;
}
}
.banner-container {
... ...