Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
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
潘琦
voucher-h5
Commits
2616957c
Commit
2616957c
authored
Sep 05, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签约页日期格式转换解决后台日期无法解析问题YYYY-mm-dd;
parent
9bce7d2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
index.vue
src/views/signing/index.vue
+14
-6
No files found.
src/views/signing/index.vue
View file @
2616957c
...
...
@@ -900,10 +900,14 @@ export default {
lastMensesTimePickerConfirm
(
date
)
{
const
selectedDate
=
new
Date
(
date
)
let
month
=
selectedDate
.
getMonth
()
+
1
if
(
selectedDate
.
getMonth
()
+
1
<
=
9
)
{
month
=
'0'
+
(
selectedDate
.
getMonth
()
+
1
)
if
(
selectedDate
.
getMonth
()
+
1
<
10
)
{
month
=
'0'
+
month
}
this
.
BaseForm
.
lastMensesTime
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
selectedDate
.
getDate
()
let
day
=
selectedDate
.
getDate
()
if
(
day
<
10
)
{
day
=
'0'
+
day
}
this
.
BaseForm
.
lastMensesTime
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
day
},
openPickerBirth
(
index
)
{
// 打开出生日期控件
this
.
pickerOpenIndex
=
index
...
...
@@ -913,10 +917,14 @@ export default {
this
.
BaseValidate
.
birthKidState
=
true
const
selectedDate
=
new
Date
(
date
)
let
month
=
selectedDate
.
getMonth
()
+
1
if
(
selectedDate
.
getMonth
()
+
1
<=
9
)
{
month
=
'0'
+
(
selectedDate
.
getMonth
()
+
1
)
if
(
month
<
10
)
{
month
=
'0'
+
month
}
let
day
=
selectedDate
.
getDate
()
if
(
day
<
10
)
{
month
=
'0'
+
day
}
let
birth
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
selectedDate
.
getDate
()
let
birth
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
day
this
.
childrenArr
[
this
.
pickerOpenIndex
].
birth
=
birth
this
.
childrenArr
[
this
.
pickerOpenIndex
].
age
=
getAgeByBirth
(
birth
)
},
...
...
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