订单倒计时
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -131,9 +131,8 @@ function getList() { | ... | @@ -131,9 +131,8 @@ function getList() { |
| 131 | b.messageObj = JSON.parse(b.message) || {} | 131 | b.messageObj = JSON.parse(b.message) || {} |
| 132 | b.extJsonObj = JSON.parse(b.extJson) || {} | 132 | b.extJsonObj = JSON.parse(b.extJson) || {} |
| 133 | if(b.surplus&&b.status == '0'&&(b.surplus!='0,0'&&b.surplus!='0')){ | 133 | if(b.surplus&&b.status == '0'&&(b.surplus!='0,0'&&b.surplus!='0')){ |
| 134 | const a=Number(b.surplus.split(',')[0]*60) | 134 | b.countdown = Date.now() + Number((b.surplus.split(',')[0]*60 + b.surplus.split(',')[1])*10) |
| 135 | const c=Number(b.surplus.split(',')[1]*10) | 135 | console.log(b.countdown) |
| 136 | b.countdown = Date.now() + a+c | ||
| 137 | } | 136 | } |
| 138 | } | 137 | } |
| 139 | console.log(list.value) | 138 | console.log(list.value) | ... | ... |
-
Please register or sign in to post a comment