Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
Project
Project
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
xulili
ybf
Commits
e5ee63bb
Commit
e5ee63bb
authored
5 years ago
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios与Android时间格式上的差异
parent
6a318166
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Foundation.js
wx_application/src/utils/Foundation.js
+1
-1
activeDetail.vue
wx_application/src/views/active/activeDetail.vue
+2
-1
No files found.
wx_application/src/utils/Foundation.js
View file @
e5ee63bb
export
function
CoutDown
(
Endtime
)
{
let
leftTime
=
(
new
Date
(
Endtime
))
-
new
Date
();
//计算剩余的毫秒数
let
leftTime
=
(
new
Date
(
Endtime
.
replace
(
/-/g
,
'/'
)
))
-
new
Date
();
//计算剩余的毫秒数
let
days
=
parseInt
(
leftTime
/
1000
/
60
/
60
/
24
,
10
);
//计算剩余的天数
let
hours
=
parseInt
(
leftTime
/
1000
/
60
/
60
%
24
,
10
);
//计算剩余的小时
let
minutes
=
parseInt
(
leftTime
/
1000
/
60
%
60
,
10
);
//计算剩余的分钟
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/active/activeDetail.vue
View file @
e5ee63bb
...
...
@@ -277,7 +277,8 @@ export default {
}
if
(
this
.
active_type
===
"wheel"
)
{
let
cur_date
=
new
Date
();
let
end_time
=
new
Date
(
this
.
timeLine
)
||
Date
.
parse
(
this
.
timeLine
.
replace
(
/-/g
,
'/'
));
let
end_time
=
new
Date
(
this
.
timeLine
.
replace
(
/-/g
,
'/'
));
console
.
log
(
'ios date'
,
this
.
timeLine
.
replace
(
/-/g
,
'/'
));
if
(
end_time
>
cur_date
)
{
this
.
timer
=
setInterval
(()
=>
{
CoutDown
(
this
.
timeLine
);
...
...
This diff is collapsed.
Click to expand it.
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