Commit fc6c533b61b55f2e84e5be98f559c0cfbef73e53

Authored by vking
1 parent 56ab15ae

fixbug 接单时间跨天

Showing 1 changed file with 3 additions and 0 deletions
@@ -199,6 +199,9 @@ Page({ @@ -199,6 +199,9 @@ Page({
199 let today=util.unixtoTime(time,"YYYY-MM-DD") 199 let today=util.unixtoTime(time,"YYYY-MM-DD")
200 stime=util.timetouUnix(today+' '+this.data.seller.rec_stime+':00') 200 stime=util.timetouUnix(today+' '+this.data.seller.rec_stime+':00')
201 etime=util.timetouUnix(today+' '+this.data.seller.rec_etime+':00') 201 etime=util.timetouUnix(today+' '+this.data.seller.rec_etime+':00')
  202 + if(etime<=stime){
  203 + etime+=86400
  204 + }
202 if(time>=stime && time<=etime){ 205 if(time>=stime && time<=etime){
203 return true; 206 return true;
204 } 207 }