Commit 94a2fb0ae9c4207c6ccf56c1059de581504aa539
1 parent
7c92f8ce
秒杀自定义模板修改
Showing
1 changed file
with
3 additions
and
1 deletions
components/diy_seckill/diy_seckill.js
| ... | ... | @@ -153,9 +153,11 @@ Component({ |
| 153 | 153 | for(let i in all_array){ |
| 154 | 154 | let item=all_array[i]; |
| 155 | 155 | if(item.user_price) item.price=item.user_price; |
| 156 | + | |
| 156 | 157 | if(item.start_time > newTime) { //活动即将开始 |
| 157 | 158 | item.status = 0; |
| 158 | - } else if(item.end_time >= newTime) { | |
| 159 | + }; | |
| 160 | + if(item.end_time <= newTime) { //活动结束 | |
| 159 | 161 | item.status = 3; |
| 160 | 162 | }; |
| 161 | 163 | ... | ... |