2d4afb86 by zhangmeng

订单倒计时

1 parent 5967e434
......@@ -131,9 +131,8 @@ function getList() {
b.messageObj = JSON.parse(b.message) || {}
b.extJsonObj = JSON.parse(b.extJson) || {}
if(b.surplus&&b.status == '0'&&(b.surplus!='0,0'&&b.surplus!='0')){
const a=Number(b.surplus.split(',')[0]*60)
const c=Number(b.surplus.split(',')[1]*10)
b.countdown = Date.now() + a+c
b.countdown = Date.now() + Number((b.surplus.split(',')[0]*60 + b.surplus.split(',')[1])*10)
console.log(b.countdown)
}
}
console.log(list.value)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!