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
c0b0cdab
Commit
c0b0cdab
authored
Feb 27, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认时间
parent
024fd7ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
createOrEditSchedule.js
pages/createOrEditSchedule/createOrEditSchedule.js
+3
-7
No files found.
pages/createOrEditSchedule/createOrEditSchedule.js
View file @
c0b0cdab
...
...
@@ -44,13 +44,9 @@ create.Page({
this
.
store
.
data
.
conflictPeople
=
[]
this
.
store
.
data
.
participatorList
=
[]
this
.
store
.
data
.
locationName
=
''
// <<<<<<< HEAD
// this.store.data.participatorUserId = []
// this.update()
this
.
store
.
data
.
participatorUserId
=
[
getApp
().
globalData
.
userid
]
this
.
update
()
var
date
=
new
Date
();
var
date
=
new
Date
(
'2020/02/20 13:31'
);
var
y
=
date
.
getFullYear
();
var
m
=
(
date
.
getMonth
()
+
1
)
<
10
?
"0"
+
(
date
.
getMonth
()
+
1
)
:
(
date
.
getMonth
()
+
1
);
//获取当前月份的日期,不足10补0
var
d
=
date
.
getDate
()
<
10
?
"0"
+
date
.
getDate
()
:
date
.
getDate
();
//获取当前几号,不足10补0
...
...
@@ -59,8 +55,8 @@ create.Page({
var
h
=
date
.
getHours
()
var
min
=
date
.
getMinutes
();
this
.
setData
({
time1
:
`
${
y
}
/
${
m
}
/
${
d
}
${
h
<
10
?
"0"
+
date
.
getHours
()
:
date
.
getHours
()}
:
${
min
<
30
?
'30'
:
'00'
}
:00
`
,
time2
:
`
${
y
}
/
${
m
}
/
${
d
}
${
min
<
30
?
(
h
+
1
)
<
10
?
"0"
+
(
date
.
getHours
()
+
1
)
:
date
.
getHours
()
+
1
:
h
<
10
?
"0"
+
date
.
getHours
()
:
date
.
getHours
()}
:
${
min
<
30
?
'00'
:
'30'
}
:00
`
,
time1
:
`
${
y
}
/
${
m
}
/
${
d
}
${
min
<
30
?
h
<
10
?
'0'
+
h
:
h
:
(
h
+
1
)
<
10
?
'0'
+
(
h
+
1
):
h
+
1
}
:
${
min
<
30
?
'30'
:
'00'
}
`
,
time2
:
`
${
y
}
/
${
m
}
/
${
d
}
${
(
h
+
1
)
<
10
?
'0'
+
(
h
+
1
):
h
+
1
}
:
${
min
<
30
?
'00'
:
'30'
}
`
,
week1
:
w
,
week2
:
w
,
type
:
event
.
type
,
...
...
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