Commit aee1997d authored by xd's avatar xd

Merge branch 'master' of http://114.67.93.201/xulili/ybf

parents 7a594803 e5ee63bb
export function CoutDown(Endtime) { export function CoutDown(Endtime) {
let leftTime = (new Date(Endtime)) - new Date(); //计算剩余的毫秒数 let leftTime = (new Date(Endtime.replace(/-/g, '/'))) - new Date(); //计算剩余的毫秒数
let days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数 let days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数
let hours = parseInt(leftTime / 1000 / 60 / 60 % 24, 10); //计算剩余的小时 let hours = parseInt(leftTime / 1000 / 60 / 60 % 24, 10); //计算剩余的小时
let minutes = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟 let minutes = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟
......
...@@ -277,7 +277,8 @@ export default { ...@@ -277,7 +277,8 @@ export default {
} }
if (this.active_type === "wheel") { if (this.active_type === "wheel") {
let cur_date = new Date(); let cur_date = new Date();
let end_time = new Date(this.timeLine)|| Date.parse(this.timeLine.replace(/-/g, '/')); let end_time = new Date(this.timeLine.replace(/-/g, '/'));
console.log('ios date', this.timeLine.replace(/-/g, '/'));
if (end_time > cur_date) { if (end_time > cur_date) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
CoutDown(this.timeLine); CoutDown(this.timeLine);
......
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