Showing
5 changed files
with
9 additions
and
93 deletions
@@ -49,6 +49,7 @@ function _productAddFlag(productList, remindList) { | @@ -49,6 +49,7 @@ function _productAddFlag(productList, remindList) { | ||
49 | 49 | ||
50 | if (now < startTime) { // 未开抢 | 50 | if (now < startTime) { // 未开抢 |
51 | product.wait = true; | 51 | product.wait = true; |
52 | + product.isSeckill = true; | ||
52 | 53 | ||
53 | if (!remindList) { | 54 | if (!remindList) { |
54 | product.hideRemind = true; | 55 | product.hideRemind = true; |
@@ -63,6 +64,7 @@ function _productAddFlag(productList, remindList) { | @@ -63,6 +64,7 @@ function _productAddFlag(productList, remindList) { | ||
63 | } | 64 | } |
64 | } else if (product.secKillStatus === 0 || (now > endTime)) { // 确实已抢光, 过了秒杀时间 | 65 | } else if (product.secKillStatus === 0 || (now > endTime)) { // 确实已抢光, 过了秒杀时间 |
65 | product.over = true; | 66 | product.over = true; |
67 | + product.isSeckill = false; | ||
66 | } else { | 68 | } else { |
67 | product.isSeckill = true; | 69 | product.isSeckill = true; |
68 | } | 70 | } |
1 | -<nav class="nav-list"> | ||
2 | - <ul class="nav-ul hide"> | ||
3 | - {{# activitys}} | ||
4 | - <li class="time-item {{# if @last}}last{{/if}} {{# if focus}}focus{{/if}} {{statusClass this}}"> | ||
5 | - <input type="hidden" name="" class="date" value="{{startTime}}"> | ||
6 | - <input type="hidden" name="" class="activityId" value="{{activityId}}"> | ||
7 | - <div class="normal"> | ||
8 | - <p class="time">{{time}}</p> | ||
9 | - <p class="status tip-over">已开抢</p> | ||
10 | - <p class="status tip-now">抢购中</p> | ||
11 | - <p class="status tip-wait">即将开抢</p> | ||
12 | - </div> | ||
13 | - <div class="selected"> | ||
14 | - <p class="time"> | ||
15 | - <span>{{time}}</span> | ||
16 | - <span class="status tip-over">已开抢</span> | ||
17 | - <span class="status tip-now">抢购中</span> | ||
18 | - <span class="status tip-wait">即将开抢</span> | ||
19 | - </p> | ||
20 | - <div class="status info-over"> | ||
21 | - <p>还有商品可以继续抢购</p> | ||
22 | - </div> | ||
23 | - <div class="status info-now"> | ||
24 | - <div class="last-info"> | ||
25 | - <p class="status tip-over">已开抢</p> | ||
26 | - <p class="status tip-now">抢购中</p> | ||
27 | - <p class="status tip-wait">即将开抢</p> | ||
28 | - </div> | ||
29 | - <div class="last-count-down"> | ||
30 | - <p class="countdown">剩余:<i class="tick hour">00</i><i class="tick minute">00</i><i class="tick second">00</i></p> | ||
31 | - </div> | ||
32 | - </div> | ||
33 | - <div class="status info-wait"> | ||
34 | - <p class="countdown">距开抢:<i class="tick hour">00</i><i class="tick minute">00</i><i class="tick second">00</i></p> | ||
35 | - </div> | ||
36 | - </div> | ||
37 | - </li> | ||
38 | - {{/activitys}} | ||
39 | - </ul> | ||
40 | -</nav> |
1 | -<div class="item" data-activity="{{activityId}}" data-skn="{{productSkn}}"> | ||
2 | - <div class="item-img"> | ||
3 | - <img class="lazy" data-original="{{image defaultImages 235 314}}" alt=""> | ||
4 | - </div> | ||
5 | - <div class="item-info"> | ||
6 | - <div class="item-title"> | ||
7 | - {{productName}} | ||
8 | - </div> | ||
9 | - {{# if wait}} | ||
10 | - <div class="item-price"> | ||
11 | - <ins>¥{{secKillPrice}}</ins><del>¥{{marketPrice}}</del> | ||
12 | - </div> | ||
13 | - {{/if}} | ||
14 | - | ||
15 | - <div class="item-foot"> | ||
16 | - {{# if wait}} | ||
17 | - <div class="item-time" data-start="{{startTime}}"><span><i class="iconfont"></i><time>{{readaleTime}}</time>开始</span></div> | ||
18 | - {{else}} | ||
19 | - <div class="item-price"> | ||
20 | - <ins>¥{{secKillPrice}}</ins><del>¥{{marketPrice}}</del> | ||
21 | - </div> | ||
22 | - {{/if}} | ||
23 | - | ||
24 | - <div class="item-button"> | ||
25 | - {{#if over}} | ||
26 | - <span class="old-price">还可以原价购买</span> | ||
27 | - <a href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}' class="btn btn-over">已抢光</a> | ||
28 | - {{else if wait}} | ||
29 | - {{#if @root.isApp}} | ||
30 | - <button class="btn btn-remind-off" data-remind data-action="cancel" {{#unless remindFlag}}style="display: none;"{{/unless}}>取消提醒</button> | ||
31 | - <button class="btn btn-remind-on" data-remind data-action="add" {{#if remindFlag}}style="display: none;"{{/if}}>提醒我</button> | ||
32 | - {{else}} | ||
33 | - <a href='/product/seckill/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a> | ||
34 | - {{/if}} | ||
35 | - {{else}} | ||
36 | - <a href='/product/seckill/show_{{productSkn}}.html{{#if @root.isApp}}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill":"Y"}}{{/if}}' class="btn btn-buy">去抢购</a> | ||
37 | - {{/if}} | ||
38 | - </div> | ||
39 | - </div> | ||
40 | - </div> | ||
41 | - | ||
42 | - {{#if isSeckill}} | ||
43 | - <a class="item-link" href='/product/seckill/show_{{{productSkn}}}{{#if @root.isApp}}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill": "Y"}}{{/if}}'></a> | ||
44 | - {{else}} | ||
45 | - <a class="item-link" href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}'></a> | ||
46 | - {{/if}} | ||
47 | -</div> |
@@ -32,14 +32,18 @@ | @@ -32,14 +32,18 @@ | ||
32 | <button class="btn btn-remind-on" data-remind data-action="add" {{#if remindFlag}}style="display: none;"{{/if}}>提醒我</button> | 32 | <button class="btn btn-remind-on" data-remind data-action="add" {{#if remindFlag}}style="display: none;"{{/if}}>提醒我</button> |
33 | {{/unless}} | 33 | {{/unless}} |
34 | {{else}} | 34 | {{else}} |
35 | - <a href='/product/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a> | 35 | + <a href='/product/seckill/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a> |
36 | {{/if}} | 36 | {{/if}} |
37 | {{else}} | 37 | {{else}} |
38 | - <a href='/product/show_{{productSkn}}.html{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}' class="btn btn-buy">去抢购</a> | 38 | + <a href='/product/seckill/show_{{productSkn}}.html{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill": "Y"}}{{/if}}' class="btn btn-buy">去抢购</a> |
39 | {{/if}} | 39 | {{/if}} |
40 | </div> | 40 | </div> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | 43 | ||
44 | - <a class="item-link" href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}'></a> | 44 | + {{#if isSeckill}} |
45 | + <a class="item-link" href='/product/seckill/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill": "Y"}}{{/if}}'></a> | ||
46 | + {{else}} | ||
47 | + <a class="item-link" href='/product/seckill/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}'></a> | ||
48 | + {{/if}} | ||
45 | </div> | 49 | </div> |
-
Please register or login to post a comment