Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6da7f1d5
authored
2026-06-10 10:13:10 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
日期格式兼容性
1 parent
a5474b95
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
myCenter/order.vue
pages/index/daoGuanOrder.vue
personal/order.vue
personalVip/order.vue
myCenter/order.vue
View file @
6da7f1d
...
...
@@ -304,7 +304,12 @@ const getAuditStatusText = (status) => {
const
filterTime
=
(
row
)
=>
{
if
(
!
row
)
return
''
return
dayjs
(
row
).
format
(
'YYYY年MM月DD日'
)
const
date
=
new
Date
(
String
(
row
).
replace
(
/-/g
,
'/'
))
if
(
Number
.
isNaN
(
date
.
getTime
()))
return
''
const
year
=
date
.
getFullYear
()
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
return
`${year
}
年${month
}
月${day
}
日`
}
const
filterType
=
(
row
)
=>
{
...
...
pages/index/daoGuanOrder.vue
View file @
6da7f1d
...
...
@@ -355,7 +355,12 @@ const getOrderLabel = (item) => {
const
filterTime
=
(
row
)
=>
{
if
(
!
row
)
return
''
return
dayjs
(
row
).
format
(
'YYYY年MM月DD日'
)
const
date
=
new
Date
(
String
(
row
).
replace
(
/-/g
,
'/'
))
if
(
Number
.
isNaN
(
date
.
getTime
()))
return
''
const
year
=
date
.
getFullYear
()
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
return
`${year
}
年${month
}
月${day
}
日`
}
const
filterType
=
(
row
)
=>
{
...
...
personal/order.vue
View file @
6da7f1d
...
...
@@ -258,7 +258,12 @@ onLoad((options) => {
}
)
const
filterTime
=
(
row
)
=>
{
if
(
!
row
)
return
''
return
dayjs
(
row
).
format
(
'YYYY年MM月DD日'
)
const
date
=
new
Date
(
String
(
row
).
replace
(
/-/g
,
'/'
))
if
(
Number
.
isNaN
(
date
.
getTime
()))
return
''
const
year
=
date
.
getFullYear
()
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
return
`${year
}
年${month
}
月${day
}
日`
}
// // 页面挂载初始化
...
...
personalVip/order.vue
View file @
6da7f1d
...
...
@@ -302,7 +302,8 @@ const getOrderLabel = (item) => {
const
filterTime
=
(
row
)
=>
{
if
(
!
row
)
return
''
const
date
=
new
Date
(
row
)
const
date
=
new
Date
(
String
(
row
).
replace
(
/-/g
,
'/'
))
if
(
Number
.
isNaN
(
date
.
getTime
()))
return
''
const
year
=
date
.
getFullYear
()
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
...
...
Write
Preview
Styling with
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