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
22008a04
Commit
22008a04
authored
Mar 24, 2020
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: every min to every 5 min
parent
26b07d2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
meetingTimePicker.js
components/meetingTimePicker/meetingTimePicker.js
+13
-5
No files found.
components/meetingTimePicker/meetingTimePicker.js
View file @
22008a04
...
...
@@ -2,14 +2,22 @@ const currentDate = new Date();
const
weekList
=
[
'周日'
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
];
const
durationList
=
[{
value
:
60
,
label
:
'1小时'
},
{
value
:
120
,
label
:
'2小时'
},
{
value
:
30
,
label
:
'30分钟'
}];
const
timeData
=
generateDate
(
365
);
const
timeHour
=
generate
Time
(
24
);
const
timeMin
=
generate
Time
(
60
);
const
timeHour
=
generate
Hour
(
24
);
const
timeMin
=
generate
Min
(
60
);
function
padZero
(
val
)
{
return
(
"00"
+
val
).
slice
(
-
2
);
}
// 生成小时和分钟
function
generateTime
(
max
)
{
// 生成分钟 每隔五分钟
function
generateMin
(
max
)
{
const
time
=
[];
for
(
let
i
=
0
;
i
<
max
;
i
+=
5
)
{
time
.
push
(
padZero
(
i
))
}
return
time
;
}
// 生成小时
function
generateHour
(
max
)
{
const
time
=
[];
for
(
let
i
=
0
;
i
<
max
;
i
++
)
{
time
.
push
(
padZero
(
i
))
...
...
@@ -229,7 +237,7 @@ Component({
},
onChange
(
e
)
{
const
pickValue
=
e
.
detail
.
value
;
console
.
log
(
pickValue
)
if
(
this
.
data
.
currentTab
===
'start'
)
{
const
startDate
=
getDateByPickValue
(
pickValue
);
this
.
changeStart
(
startDate
,
pickValue
);
...
...
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