Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
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
marketing-web
marketing
Commits
45e5e5ea
Commit
45e5e5ea
authored
Jul 14, 2022
by
crushh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/火狐时间' into master
parents
f6cf2279
f124df42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
birthActiveTime.vue
src/views/ai/task/components/birthActiveTime.vue
+7
-3
No files found.
src/views/ai/task/components/birthActiveTime.vue
View file @
45e5e5ea
...
...
@@ -233,11 +233,15 @@ export default {
if
(
!
val
)
{
minTimeMonth
=
maxTimeMonth
=
null
;
}
else
{
let
y
ear
=
new
Date
(
val
[
1
]).
getFullYear
();
let
y
=
new
Date
(
val
[
1
]).
getFullYear
();
let
month
=
new
Date
(
val
[
1
]).
getMonth
()
+
1
;
let
days
=
[
1
,
3
,
5
,
7
,
9
].
includes
(
month
)
?
31
:
30
;
let
isLeap
=
(
0
===
y
%
4
&&
0
===
y
%
100
)
||
0
===
y
%
400
;
let
days
=
[
1
,
3
,
5
,
7
,
8
,
10
,
12
].
includes
(
month
)
?
31
:
30
;
// 1月、3月、5月、7月、8月、10月、12月
if
(
month
==
2
)
{
isLeap
?
(
days
=
29
)
:
(
days
=
28
);
}
this
.
form
.
birthDate2
[
0
]
=
new
Date
(
val
[
0
]).
getMonth
()
+
1
==
new
Date
().
getMonth
()
+
1
?
this
.
currentTime
:
val
[
0
];
this
.
form
.
birthDate2
[
1
]
=
new
Date
(
`
${
y
ear
}
/
${
month
}
/
${
days
}
23:59:59`
).
getTime
();
this
.
form
.
birthDate2
[
1
]
=
new
Date
(
`
${
y
}
/
${
month
}
/
${
days
}
23:59:59`
).
getTime
();
console
.
log
(
this
.
form
.
birthDate2
);
}
this
.
form
=
Object
.
assign
({},
this
.
form
);
...
...
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