Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
e3c43726
Commit
e3c43726
authored
Jul 11, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2020-717-formal' of gitlab.julyedu.com:baiguangyao/mr-julyedu into 2020-717-formal
parents
e96e40c9
8cc4d58a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/detail/group/index.js
+1
-1
src/components/detail/group/togroup.js
+1
-1
src/components/detail/index.js
+1
-1
No files found.
src/components/detail/group/index.js
View file @
e3c43726
...
...
@@ -116,7 +116,7 @@ class Group extends Component {
day
=
`
${
parseInt
(
date
/
(
3600000
*
24
))}
`
.
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
)
return
`
${
day
}
:
${
hours
}
:
${
minutes
}
`
;
return
`
${
day
}
天
${
hours
}
时
${
minutes
}
分
`
;
}
else
{
hours
=
`
${
parseInt
(
date
/
(
60
*
60
*
1000
))}
`
.
padStart
(
2
,
0
);
minutes
=
`
${
parseInt
((
date
-
hours
*
3600000
)
/
60000
)}
`
.
padStart
(
2
,
0
);
...
...
src/components/detail/group/togroup.js
View file @
e3c43726
...
...
@@ -76,7 +76,7 @@ class ToGroup extends Component {
hours
=
`
${
parseInt
((
date
-
day
*
3600000
*
24
)
/
3600000
)}
`
.
padStart
(
2
,
0
)
minutes
=
`
${
parseInt
((
date
-
day
*
3600000
*
24
-
hours
*
3600000
)
/
60000
)}
`
.
padStart
(
2
,
0
)
this
.
setState
({
countdown
:
`
${
day
}
:
${
hours
}
:
${
minutes
}
`
countdown
:
`
${
day
}
天
${
hours
}
时
${
minutes
}
分
`
})
}
else
{
hours
=
`
${
parseInt
(
date
/
(
60
*
60
*
1000
))}
`
.
padStart
(
2
,
0
)
...
...
src/components/detail/index.js
View file @
e3c43726
...
...
@@ -426,7 +426,7 @@ class Detail extends Component {
// seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);
this
.
setState
({
countdown
:
`
${
day
}
:
${
hours
}
:
${
minutes
}
`
countdown
:
`
${
day
}
天
${
hours
}
时
${
minutes
}
分
`
})
}
else
{
hours
=
`
${
parseInt
(
date
/
(
60
*
60
*
1000
))}
`
.
padStart
(
2
,
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment