Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -56,8 +56,11 @@ Component({ | @@ -56,8 +56,11 @@ Component({ | ||
| 56 | if(util.unixtoTime(date/1000,'YYYY-MM-DD')==this.data.date){ //当天 | 56 | if(util.unixtoTime(date/1000,'YYYY-MM-DD')==this.data.date){ //当天 |
| 57 | if(currenttimemark+0.5<endtime){ | 57 | if(currenttimemark+0.5<endtime){ |
| 58 | if(currenttimemark+0.5>starttime){ | 58 | if(currenttimemark+0.5>starttime){ |
| 59 | - console.log(starttime,currenttimemark) | ||
| 60 | - starttime=Math.round(currenttimemark+0.5); | 59 | + if(currenttimemark+0.5>Math.round(currenttimemark+0.5)){ |
| 60 | + starttime=Math.round(currenttimemark+0.5)+0.5; | ||
| 61 | + }else{ | ||
| 62 | + starttime=Math.round(currenttimemark+0.5); | ||
| 63 | + } | ||
| 61 | console.log(starttime,currenttimemark) | 64 | console.log(starttime,currenttimemark) |
| 62 | } | 65 | } |
| 63 | let thisdurlist=this.getsinglelist(starttime,endtime) | 66 | let thisdurlist=this.getsinglelist(starttime,endtime) |
-
Please register or login to post a comment