Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7a7e3343
authored
Sep 13, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
当前时间减去修改时间
1 parent
4b6ed104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/foodOrder/index.vue
src/views/foodOrder/index.vue
View file @
7a7e334
...
...
@@ -340,7 +340,7 @@ export default {
let
updateTimeArr
=
res
.
updateTime
?.
split
(
' '
)
let
updateDayTime
=
updateTimeArr
?.
length
?
new
Date
(
updateTimeArr
[
0
]?.
replace
(
'-'
,
'/'
)).
getTime
()
:
''
if
(
!
updateTimeArr
?.
length
)
return
;
let
days
=
parseInt
(
parseInt
(
updateDayTime
-
cur
DayTime
)
/
86400
/
1000
)
let
days
=
parseInt
(
parseInt
(
curDayTime
-
update
DayTime
)
/
86400
/
1000
)
this
.
residueDay
=
res
.
limitedDay
-
(
days
<
0
?
0
:
days
)
}
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment