Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
3b3d176a
Commit
3b3d176a
authored
Oct 12, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
71fc9f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+2
-1
No files found.
taobao_mini/client/pages/myprize/myprize.js
View file @
3b3d176a
...
@@ -70,8 +70,9 @@ Page({
...
@@ -70,8 +70,9 @@ Page({
// const t1 = new Date(endTime).toLocaleDateString() + '';//获取年月日
// const t1 = new Date(endTime).toLocaleDateString() + '';//获取年月日
const
t2
=
new
Date
(
endTime
).
getHours
()
+
''
;
//获取时
const
t2
=
new
Date
(
endTime
).
getHours
()
+
''
;
//获取时
const
t3
=
new
Date
(
endTime
).
getMinutes
()
+
''
;
//获取分
const
t3
=
new
Date
(
endTime
).
getMinutes
()
+
''
;
//获取分
const
t4
=
new
Date
(
endTime
).
get
Millis
econds
()
+
''
;
//获取秒
const
t4
=
new
Date
(
endTime
).
get
S
econds
()
+
''
;
//获取秒
console
.
log
(
endTime
,
new
Date
(
endTime
+
48
*
60
*
60
*
1000
).
toLocaleString
(),
'endTime'
);
console
.
log
(
endTime
,
new
Date
(
endTime
+
48
*
60
*
60
*
1000
).
toLocaleString
(),
'endTime'
);
console
.
log
(
'endtime str'
,
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
))
this
.
setData
({
this
.
setData
({
endTime
:
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
)
endTime
:
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
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