Compare commits

...

3 Commits

Author SHA1 Message Date
lyc ff97a2bef6 Merge pull request 'lyc-dev' (#163) from lyc-dev into main 2024-08-30 14:29:52 +08:00
lyc 05c567d1cd console 2024-08-30 14:28:55 +08:00
lyc 1a6abfaa50 预约课程-时间限制 2024-08-30 14:15:15 +08:00
1 changed files with 10 additions and 5 deletions

View File

@ -177,14 +177,19 @@ const disabledHours = ()=>{
}
}
// -
const disabledMinute = () => {
const disabledMinute = (hour,role) => {
if(getCurrentTime('YYYY-MM-DD') == form.day){
const arrs = []
for (let i = 0; i < 60; i++) {
if (new Date().getMinutes() <= i && form.time[0]) continue;
arrs.push(i)
if(role == 'start'){
for (let i = 0; i < 60; i++) {
if (new Date().getMinutes() <= i) continue;
arrs.push(i)
}
return arrs;
}
else{
if(form.time[0]) return []
}
return arrs;
}
}