Authored by lijing

秒杀详情页

... ... @@ -1072,7 +1072,11 @@ let getProductData = (data) => {
Object.assign(finalResult.feedbacks, info[2]);
Object.assign(finalResult, {// 判断秒杀假数据
is_secKil: {
isSecKil: {
notStart: true,
startIng: false,
end: false,
startTime: 111,
secKillTime: 5600
}
});
... ...
... ... @@ -38,7 +38,11 @@
<div class="price-date">
{{# goodsPrice}}
<div class="goods-price">
{{#if isSecKil}}
<h1 class="current-price">{{secKillPrice}}</h1>
{{else}}
<h1 class="current-price">{{currentPrice}}</h1>
{{/if}}
<h1 class="previous-price">{{previousPrice}}</h1>
</div>
{{/ goodsPrice}}
... ... @@ -63,11 +67,13 @@
<h1 >{{periodOfMarket}}</h1>
</div>
{{/if}}
{{# if is_secKil}}
{{#if isSecKil/notStart}}
<div class="seckill-time">
<span>距结束 </span>
<span>12:00:00</span>
<span>{{startTime}}</span>
</div>
{{/if}}
{{#if isSecKil}}
<div class="seckill-time">
<span class="seckill-time-pic">秒杀预告</span>
<span>8月27日 12:00</span>
... ...