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
e4c2b8ce
Commit
e4c2b8ce
authored
Feb 19, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Plain Diff
11
parents
79285f0b
bfc0f545
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+4
-4
repetitionTime.js
pages/repetitionTime/repetitionTime.js
+3
-2
No files found.
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
e4c2b8ce
...
...
@@ -125,10 +125,10 @@ create.Page({
this
.
conflict
()
}
}
else
{
if
(
new
Date
(
e
.
time
).
getTime
()
<
new
Date
(
this
.
data
.
time1
).
getTime
())
{
if
(
new
Date
(
e
.
time
).
getTime
()
<
=
new
Date
(
this
.
data
.
time1
).
getTime
())
{
dd
.
alert
({
title
:
'提示'
,
content
:
'会议结束时间不能小于开始时间'
,
content
:
'会议结束时间不能小于
等于
开始时间'
,
buttonText
:
'我知道了'
,
success
:
()
=>
{
},
...
...
@@ -382,8 +382,8 @@ create.Page({
title
:
res
.
data
.
data
.
title
,
time1
:
res
.
data
.
data
.
startTime
.
replace
(
/-/g
,
'/'
),
time2
:
res
.
data
.
data
.
endTime
.
replace
(
/-/g
,
'/'
),
week1
:
this
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
startTime
).
getDay
()],
week2
:
this
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
endTime
).
getDay
()]
week1
:
this
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
startTime
.
replace
(
/
\/
/g
,
"-"
)
).
getDay
()],
week2
:
this
.
data
.
weekList
[
new
Date
(
res
.
data
.
data
.
endTime
.
replace
(
/
\/
/g
,
"-"
)
).
getDay
()]
})
console
.
log
(
2222222
)
// this.store(JSON.stringify())
...
...
pages/repetitionTime/repetitionTime.js
View file @
e4c2b8ce
...
...
@@ -115,7 +115,7 @@ create.Page({
let
month
=
data
[
1
];
let
day
=
data
[
2
]
+
1
;
let
date
=
new
Date
(
year
,
month
,
day
);
let
count
=
this
.
getMonthLength
(
year
,
month
,
day
);
let
count
=
this
.
getMonthLength
(
year
,
month
,
1
);
let
timeDay
=
[];
for
(
let
i
=
1
;
i
<=
count
;
i
++
)
{
let
week
=
weekList
[
new
Date
(
year
,
month
,
i
).
getDay
()]
...
...
@@ -133,7 +133,8 @@ create.Page({
month
:
month
+
1
,
day
:
day
,
week
:
weekList
[
date
.
getDay
()],
isBeOverdue
:
isBeOverdue
isBeOverdue
:
isBeOverdue
,
pickerValue
:
[
data
[
0
],
data
[
1
],
data
[
2
]]
})
// let weekList = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
// if (this.data.timeYear[data[0]] == this.data.year && this.data.timeMonth[data[1]] == this.data.month) {
...
...
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