|
|
@ -169,10 +169,8 @@ |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.list = res; |
|
|
|
this.list = res; |
|
|
|
this.list.map(item => { |
|
|
|
this.list.map(item => { |
|
|
|
|
|
|
|
|
|
|
|
if (item.open_time > 0) { |
|
|
|
if (item.open_time > 0) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let openTime = moment(item.open_time * 1000).format("YYYY-MM-DD hh:mm:ss"); |
|
|
|
let openTime = moment(item.open_time * 1000).format("YYYY-MM-DD hh:mm:ss"); |
|
|
|
item.tr = this.getRemainderTime(openTime); |
|
|
|
item.tr = this.getRemainderTime(openTime); |
|
|
|
|
|
|
|
|
|
|
@ -244,7 +242,7 @@ |
|
|
|
second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); |
|
|
|
second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); |
|
|
|
month >= 1 && month <= 9 ? (month = "0" + month) : ""; |
|
|
|
month >= 1 && month <= 9 ? (month = "0" + month) : ""; |
|
|
|
day >= 0 && day <= 9 ? (day = "0" + day) : ""; |
|
|
|
day >= 0 && day <= 9 ? (day = "0" + day) : ""; |
|
|
|
var timer = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second; |
|
|
|
var timer = year + '-' + month + '-' + day + '' + hour + ':' + minute + ':' + second; |
|
|
|
console.log("当前时间", timer) |
|
|
|
console.log("当前时间", timer) |
|
|
|
return timer; |
|
|
|
return timer; |
|
|
|
|
|
|
|
|
|
|
@ -265,10 +263,10 @@ |
|
|
|
runTime = runTime % 60; |
|
|
|
runTime = runTime % 60; |
|
|
|
var second = runTime; |
|
|
|
var second = runTime; |
|
|
|
// console.log(year,month,day,hour,minute,second); |
|
|
|
// console.log(year,month,day,hour,minute,second); |
|
|
|
if (month > 0) { |
|
|
|
if (month > 0&&day>0) { |
|
|
|
return month + '月' + day + '天' + hour + '小时' + minute + '分' + second + "秒"; |
|
|
|
return month + '月' + day + '天' + hour + '小时' + minute + '分' + second + "秒"; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return day + '天' + hour + '小时' + minute + '分' + second + "秒"; |
|
|
|
return hour + '小时' + minute + '分' + second + "秒"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|