Commit e3c43726 by zhanghaozhe

Merge branch '2020-717-formal' of gitlab.julyedu.com:baiguangyao/mr-julyedu into 2020-717-formal

parents e96e40c9 8cc4d58a
...@@ -116,7 +116,7 @@ class Group extends Component { ...@@ -116,7 +116,7 @@ class Group extends Component {
day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0) day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0)
hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0) hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0)
minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0) minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0)
return `${day}:${hours}:${minutes}`; return `${day}${hours}${minutes}`;
} else { } else {
hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0); hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);
minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0); minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);
......
...@@ -76,7 +76,7 @@ class ToGroup extends Component { ...@@ -76,7 +76,7 @@ class ToGroup extends Component {
hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0) hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0)
minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0) minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0)
this.setState({ this.setState({
countdown: `${day}:${hours}:${minutes}` countdown: `${day}${hours}${minutes}`
}) })
} else { } else {
hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0) hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0)
......
...@@ -426,7 +426,7 @@ class Detail extends Component { ...@@ -426,7 +426,7 @@ class Detail extends Component {
// seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0); // seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);
this.setState({ this.setState({
countdown: `${day}:${hours}:${minutes}` countdown: `${day}${hours}${minutes}`
}) })
} else { } else {
hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0) hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0)
......
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