Showing
2 changed files
with
5 additions
and
3 deletions
@@ -76,7 +76,7 @@ function _productAddFlag(productList, remindList) { | @@ -76,7 +76,7 @@ function _productAddFlag(productList, remindList) { | ||
76 | */ | 76 | */ |
77 | function fetchProductList(activityInfo, uid) { | 77 | function fetchProductList(activityInfo, uid) { |
78 | let activityId = activityInfo.activityId; | 78 | let activityId = activityInfo.activityId; |
79 | - let hasRemindAttr = activityInfo.isApp && (Date.now() < activityInfo.startTime); | 79 | + let hasRemindAttr = activityInfo.isApp && uid && (Date.now() < activityInfo.startTime); |
80 | 80 | ||
81 | let productList = seckillModel.queryProductList(activityId); | 81 | let productList = seckillModel.queryProductList(activityId); |
82 | let remindList = hasRemindAttr ? seckillModel.queryRemindList(activityId, uid) : { | 82 | let remindList = hasRemindAttr ? seckillModel.queryRemindList(activityId, uid) : { |
@@ -27,8 +27,10 @@ | @@ -27,8 +27,10 @@ | ||
27 | <a href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}' class="btn btn-over">已抢光</a> | 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}} | 28 | {{else if wait}} |
29 | {{#if @root.isApp}} | 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> | 30 | + {{#unless hideRemind}} |
31 | + <button class="btn btn-remind-off" data-remind data-action="cancel" {{#unless remindFlag}}style="display: none;"{{/unless}}>取消提醒</button> | ||
32 | + <button class="btn btn-remind-on" data-remind data-action="add" {{#if remindFlag}}style="display: none;"{{/if}}>提醒我</button> | ||
33 | + {{/unless}} | ||
32 | {{else}} | 34 | {{else}} |
33 | <a href='/product/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a> | 35 | <a href='/product/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a> |
34 | {{/if}} | 36 | {{/if}} |
-
Please register or login to post a comment