Commit 302ef50a50c5e581df8e7b84f4ae0701ba582e7a

Authored by liuxuqinfhp1220
1 parent 8d10c00f

no message

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -34,9 +34,9 @@ Component({
//每个时段的开始时间、结束时间
let starttime=Number(arr[0].split(':')[0]);
let endtime=Number(arr[1].split(':')[0]);
if(currenttimemark<endtime){
if(currenttimemark>starttime){
starttime=Math.round(currenttimemark)
if(currenttimemark+0.5<endtime){
if(currenttimemark+0.5>starttime){
starttime=Math.round(currenttimemark)+0.5;
}
for(let i=starttime;i<=endtime;i+=0.5){
let obj={};
... ...