Commit 656cdfc88fe41c79f07f2bc131ba38672772b7f3

Authored by vking
2 parents 6c2f60b7 9373c6cf

Merge remote-tracking branch 'origin/master'

... ... @@ -106,20 +106,17 @@ Component({
let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD');
let curtimestamp=new Date()/1000;
let sectionarr=this.data.sectionlist[index].sectiondur.split('-');
let starttimestamp=Number(util.timetouUnix(today+' '+sectionarr[1]+':00'));
let starttimestamp=Number(util.timetouUnix(today+' '+sectionarr[0]+':00'));
let endtimestamp=Number(util.timetouUnix(today+' '+sectionarr[1]+':00'));
let obj={
section:selectsection,
action:action
}
if(curtimestamp>=starttimestamp && curtimestamp<endtimestamp){
obj.time=sectionarr[1]
console.log(curtimestamp,starttimestamp)
if(curtimestamp<starttimestamp){
obj.time=sectionarr[0]
}else{
if(curtimestamp>=endtimestamp){
obj.time=sectionarr[1]
}else{
obj.time=sectionarr[0]
}
obj.time=sectionarr[1]
}
this.triggerEvent('selectsection',obj)
... ...