refresh schecule start time

This commit is contained in:
RainSun 2020-07-24 17:37:27 +08:00
parent 9872f2d0f8
commit 538c599336

View File

@ -210,6 +210,10 @@ export default {
]),
//
highlightWeek: function() {
let now = new Date().getTime()
if (now < 1598803200000) {
return -1;
}
if (this.show_week == this.current_week) {
//
return new Date().getDay();
@ -317,7 +321,7 @@ export default {
//
getCurrentWeek() {
// let start = new Date("2020-02-24 00:00").getTime();
let start = 1582473600000;
let start = 1598803200000;
let now = new Date().getTime();
//
let days = Math.abs(Math.floor((now - start) / (1000 * 60 * 60 * 24)));
@ -334,7 +338,7 @@ export default {
//
getDays() {
const day_time = 1000 * 60 * 60 * 24,
start = 1582473600000;
start = 1598803200000;
let week_start_time = (this.show_week - 1) * 7 * day_time + start;
this.date_arr = [];
for (let i = 1; i <= 7; i++) {