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
df362ebc
Commit
df362ebc
authored
5 years ago
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
24:30时间问题
parent
dee81b2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app.json
app.json
+1
-1
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+6
-2
No files found.
app.json
View file @
df362ebc
{
{
"pages"
:
[
"pages"
:
[
"pages/index/index"
,
"pages/index/index"
,
"pages/createOrEditSchedule/createOrEditSchedule"
,
"pages/meetingRoomList/meetingRoomList"
,
"pages/meetingRoomList/meetingRoomList"
,
"pages/place/place"
,
"pages/place/place"
,
"pages/uploadFile/uploadFile"
,
"pages/uploadFile/uploadFile"
,
"pages/addRemark/addRemark"
,
"pages/addRemark/addRemark"
,
"pages/createOrEditSchedule/createOrEditSchedule"
,
"pages/uploadFile/uploadFile"
,
"pages/uploadFile/uploadFile"
,
"pages/repetitionTime/repetitionTime"
,
"pages/repetitionTime/repetitionTime"
,
"pages/repeatMechanism/repeatMechanism"
,
"pages/repeatMechanism/repeatMechanism"
,
...
...
This diff is collapsed.
Click to expand it.
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
df362ebc
...
@@ -63,9 +63,13 @@ create.Page({
...
@@ -63,9 +63,13 @@ create.Page({
var
w
=
weekList
[
date
.
getDay
()];
var
w
=
weekList
[
date
.
getDay
()];
var
h
=
date
.
getHours
()
var
h
=
date
.
getHours
()
var
min
=
date
.
getMinutes
();
var
min
=
date
.
getMinutes
();
let
DateTimeStr
=
`
${
y
}
/
${
m
}
/
${
d
}
${
min
<
30
?
h
<
10
?
'0'
+
h
:
h
:
(
h
+
1
)
<
10
?
'0'
+
(
h
+
1
)
:
h
+
1
}
:
${
min
<
30
?
'30'
:
'00'
}
:00`
let
date1
=
new
Date
(
DateTimeStr
)
let
date2
=
new
Date
(
DateTimeStr
);
date2
.
setMinutes
(
date2
.
getMinutes
()
+
30
)
this
.
setData
({
this
.
setData
({
time1
:
`
${
y
}
/
${
m
}
/
${
d
}
${
min
<
30
?
h
<
10
?
'0'
+
h
:
h
:
(
h
+
1
)
<
10
?
'0'
+
(
h
+
1
)
:
h
+
1
}
:
${
min
<
30
?
'30'
:
'00'
}
:00
`
,
time1
:
`
${
date1
.
getFullYear
()}
/
${
date1
.
getMonth
()
<
9
?
'0'
+
(
date1
.
getMonth
()
+
1
):
date1
.
getMonth
()
+
1
}
/
${
date1
.
getDate
()
<
10
?
"0"
+
date1
.
getDate
()
:
date1
.
getDate
()}
${
date1
.
getHours
()
<
10
?
'0'
+
date1
.
getHours
()
:
date1
.
getHours
()}
:
${
date1
.
getMinutes
()
<
10
?
'0'
+
date1
.
getMinutes
():
date1
.
getMinutes
()}
`
,
time2
:
`
${
y
}
/
${
m
}
/
${
d
}
${(
h
+
1
)
<
10
?
'0'
+
(
h
+
1
)
:
h
+
1
}
:
${
min
<
30
?
'00'
:
'30'
}
:00
`
,
time2
:
`
${
date2
.
getFullYear
()}
/
${
date2
.
getMonth
()
<
9
?
'0'
+
(
date2
.
getMonth
()
+
1
):
date2
.
getMonth
()
+
1
}
/
${
date2
.
getDate
()
<
10
?
"0"
+
date2
.
getDate
()
:
date2
.
getDate
()}
${
date2
.
getHours
()
<
10
?
'0'
+
date2
.
getHours
()
:
date2
.
getHours
()}
:
${
date2
.
getMinutes
()
<
10
?
'0'
+
date2
.
getMinutes
():
date2
.
getMinutes
()}
`
,
week1
:
w
,
week1
:
w
,
week2
:
w
,
week2
:
w
,
type
:
event
.
type
,
type
:
event
.
type
,
...
...
This diff is collapsed.
Click to expand it.
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