Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
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
fengzhaoyu
schedule
Commits
a2d14732
Commit
a2d14732
authored
Feb 16, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页修改
parent
a075e286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
index.js
pages/index/index.js
+8
-8
No files found.
pages/index/index.js
View file @
a2d14732
...
@@ -28,7 +28,6 @@ Page({
...
@@ -28,7 +28,6 @@ Page({
let
year
=
now
.
getFullYear
();
let
year
=
now
.
getFullYear
();
let
scheduleList
=
[];
let
scheduleList
=
[];
for
(
let
i
=
0
;
i
<=
year
-
2019
;
i
++
)
{
for
(
let
i
=
0
;
i
<=
year
-
2019
;
i
++
)
{
console
.
log
(
2019
+
i
)
scheduleList
.
push
(
that
.
returnScheduleList
(
2019
+
i
))
scheduleList
.
push
(
that
.
returnScheduleList
(
2019
+
i
))
}
}
const
today
=
new
Date
()
const
today
=
new
Date
()
...
@@ -90,12 +89,14 @@ Page({
...
@@ -90,12 +89,14 @@ Page({
let
date2
=
this
.
data
.
AllScheduleList
[
y
].
endTime
.
slice
(
0
,
10
).
replace
(
/-/g
,
'/'
)
let
date2
=
this
.
data
.
AllScheduleList
[
y
].
endTime
.
slice
(
0
,
10
).
replace
(
/-/g
,
'/'
)
let
count
=
this
.
count
(
date1
,
date2
)
let
count
=
this
.
count
(
date1
,
date2
)
if
(
count
==
0
)
{
if
(
count
==
0
)
{
DateMap
.
get
(
`
${
new
Date
(
this
.
data
.
AllScheduleList
[
y
].
startTime
.
replace
(
/-/g
,
'/'
)).
toLocaleDateString
()}
`
).
scheduleList
.
push
({
if
(
DateMap
.
get
(
new
Date
(
time
.
getFullYear
(),
time
.
getMonth
(),
time
.
getDate
()).
toLocaleDateString
())){
...
this
.
data
.
AllScheduleList
[
y
],
DateMap
.
get
(
`
${
new
Date
(
this
.
data
.
AllScheduleList
[
y
].
startTime
.
replace
(
/-/g
,
'/'
)).
toLocaleDateString
()}
`
).
scheduleList
.
push
({
thisDayStartTime
:
this
.
data
.
AllScheduleList
[
y
].
startTime
.
slice
(
11
,
16
),
...
this
.
data
.
AllScheduleList
[
y
],
thisDayEndTime
:
this
.
data
.
AllScheduleList
[
y
].
endTime
.
slice
(
11
,
16
),
thisDayStartTime
:
this
.
data
.
AllScheduleList
[
y
].
startTime
.
slice
(
11
,
16
),
isBeOverdue
:
new
Date
().
getTime
()
>
new
Date
(
this
.
data
.
AllScheduleList
[
y
].
endTime
.
replace
(
/-/g
,
'/'
)).
getTime
()
?
true
:
false
thisDayEndTime
:
this
.
data
.
AllScheduleList
[
y
].
endTime
.
slice
(
11
,
16
),
})
isBeOverdue
:
new
Date
().
getTime
()
>
new
Date
(
this
.
data
.
AllScheduleList
[
y
].
endTime
.
replace
(
/-/g
,
'/'
)).
getTime
()
?
true
:
false
})
}
}
else
{
}
else
{
for
(
let
j
=
0
;
j
<=
count
;
j
++
)
{
for
(
let
j
=
0
;
j
<=
count
;
j
++
)
{
let
time
=
new
Date
(
date1
);
let
time
=
new
Date
(
date1
);
...
@@ -121,7 +122,6 @@ Page({
...
@@ -121,7 +122,6 @@ Page({
type
:
'year'
,
type
:
'year'
,
value
:
year
value
:
year
})
})
console
.
log
(
DateMap
)
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
if
(
new
Date
(
key
).
getDay
()
===
0
&&
that
.
count
(
key
,
new
Date
(
year
,
0
,
isLeapYear
?
366
:
365
).
toLocaleDateString
())
>
7
)
{
if
(
new
Date
(
key
).
getDay
()
===
0
&&
that
.
count
(
key
,
new
Date
(
year
,
0
,
isLeapYear
?
366
:
365
).
toLocaleDateString
())
>
7
)
{
listWeek
=
listWeek
+
1
listWeek
=
listWeek
+
1
...
...
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