Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
52cca50c
Commit
52cca50c
authored
Dec 27, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 代码优化
parent
d3dfc84f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/views/consign/components/NormalCountdown.vue
src/views/consign/components/NormalCountdown.vue
+2
-2
No files found.
src/views/consign/components/NormalCountdown.vue
View file @
52cca50c
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
},
},
formatDuring
(
mss
)
{
formatDuring
(
mss
)
{
console
.
log
(
'
======mss=
'
,
mss
)
//
console.log('======mss=', mss)
if
(
mss
>
0
)
{
if
(
mss
>
0
)
{
const
hours
=
parseInt
((
mss
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
))
// 得到小时
const
hours
=
parseInt
((
mss
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
))
// 得到小时
const
minutes
=
parseInt
((
mss
%
(
1000
*
60
*
60
))
/
(
1000
*
60
))
// 得到分钟数
const
minutes
=
parseInt
((
mss
%
(
1000
*
60
*
60
))
/
(
1000
*
60
))
// 得到分钟数
...
@@ -97,7 +97,7 @@ export default {
...
@@ -97,7 +97,7 @@ export default {
// 得到秒数
// 得到秒数
const
seconds
=
parseInt
((
mss
%
(
1000
*
60
))
/
1000
)
const
seconds
=
parseInt
((
mss
%
(
1000
*
60
))
/
1000
)
const
str2
=
seconds
<
10
?
(
'
0
'
+
seconds
)
:
seconds
const
str2
=
seconds
<
10
?
(
'
0
'
+
seconds
)
:
seconds
console
.
log
(
'
======mss=
'
,
'
剩余
'
+
str
+
'
:
'
+
str1
+
'
:
'
+
str2
)
//
console.log('======mss=', '剩余' + str + ':' + str1 + ':' + str2)
return
'
剩余
'
+
str
+
'
:
'
+
str1
+
'
:
'
+
str2
return
'
剩余
'
+
str
+
'
:
'
+
str1
+
'
:
'
+
str2
}
else
{
}
else
{
this
.
$emit
(
'
finishCountDown
'
)
this
.
$emit
(
'
finishCountDown
'
)
...
...
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