fix bugs
parent
4dea906e23
commit
557d7ef1d9
|
@ -149,7 +149,7 @@ export default {
|
||||||
return val.toFixed(2).split(".");
|
return val.toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
getCountDownTime(val) {
|
getCountDownTime(val) {
|
||||||
let date = new Date(val.replace(/-/g, "/"));
|
let date = new Date(val);
|
||||||
let timeSimple = new Date(date).getTime() / 1000;
|
let timeSimple = new Date(date).getTime() / 1000;
|
||||||
return timeSimple - new Date().getTime() / 1000;
|
return timeSimple - new Date().getTime() / 1000;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue