|
...
|
...
|
@@ -33,6 +33,13 @@ Component({ |
|
|
|
action:'defalut',
|
|
|
|
time:this.data.sectionlist[0].sectiondur.split('-')[0]
|
|
|
|
}
|
|
|
|
if(this.data.section){
|
|
|
|
this.data.sectionlist.forEach((v,i)=>{
|
|
|
|
if(this.data.section==v.section){
|
|
|
|
obj.time=v.sectiondur.split('-')[0]
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.triggerEvent('selectsection',obj)
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -115,9 +122,11 @@ Component({ |
|
|
|
let _target=e.currentTarget.dataset;
|
|
|
|
this.changesectionstyle(_target.section);
|
|
|
|
this.tellsection(_target.section,'click',_target.index);
|
|
|
|
console.log(_target.index);
|
|
|
|
},
|
|
|
|
//通知时段
|
|
|
|
tellsection(selectsection,action,index){
|
|
|
|
console.log(index);
|
|
|
|
let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD');
|
|
|
|
let curtimestamp=new Date()/1000;
|
|
|
|
let sectionarr=this.data.sectionlist[index].sectiondur.split('-');
|
|
...
|
...
|
@@ -149,6 +158,7 @@ Component({ |
|
|
|
}
|
|
|
|
if(selectsection==v.section){
|
|
|
|
curindex=i;
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
let curkey='sectionlist['+curindex+'].isselected';
|
...
|
...
|
|