Commit 37b5c2db authored by youjie's avatar youjie

no message

parent 28078816
...@@ -143,7 +143,10 @@ ...@@ -143,7 +143,10 @@
const diff = x.orderTime + 5 * 60 * 1000 - now; // 5分钟倒计时 const diff = x.orderTime + 5 * 60 * 1000 - now; // 5分钟倒计时
let remainingSeconds = Math.max(diff, 0); // 确保不出现负数 let remainingSeconds = Math.max(diff, 0); // 确保不出现负数
x.remainingSeconds = Math.floor(remainingSeconds/1000) x.remainingSeconds = Math.floor(remainingSeconds/1000)
if(x.remainingSeconds<=0) x.orderStatus = 4 if(x.remainingSeconds<=0) {
x.orderStatus = 4
// x.orderStatusInfo.desc = '支付超时'
}
// console.log("支付倒计时",x.remainingSeconds) // console.log("支付倒计时",x.remainingSeconds)
// if(x.remainingSeconds) this.initCountdown(x) // if(x.remainingSeconds) this.initCountdown(x)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment