Commit 8234ec4f by yancanhua

fix: 轮询出价前端开发

1 parent 16644dfc
......@@ -69,9 +69,10 @@ export default class RoundBidPopup extends Vue {
}
setTimeoutSecond() {
if (this.nextAucVehData.remainSecond) {
if (this.nextAucVehData.remainSecond && Number(this.nextAucVehData.remainSecond) > 0) {
setTimeout(() => {
this.nextAucVehData.remainSecond = Number(this.nextAucVehData.remainSecond) - 1;
//取整数部分
this.nextAucVehData.remainSecond = Math.floor(Number(this.nextAucVehData.remainSecond)) - 1;
this.setTimeoutSecond();
}, 1000);
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!