|
@@ -21,10 +21,9 @@ Component({ |
|
@@ -21,10 +21,9 @@ Component({ |
|
21
|
let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD');
|
21
|
let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD');
|
|
22
|
this.getsectionlist();
|
22
|
this.getsectionlist();
|
|
23
|
if(today==newdate){
|
23
|
if(today==newdate){
|
|
|
|
24
|
+ this.markoversection();
|
|
24
|
if(this.data.section){
|
25
|
if(this.data.section){
|
|
25
|
this.changesectionstyle(this.data.section);
|
26
|
this.changesectionstyle(this.data.section);
|
|
26
|
- }else{
|
|
|
|
27
|
- this.markoversection();
|
|
|
|
28
|
}
|
27
|
}
|
|
29
|
}else{
|
28
|
}else{
|
|
30
|
if(this.data.section){
|
29
|
if(this.data.section){
|
|
@@ -34,7 +33,7 @@ Component({ |
|
@@ -34,7 +33,7 @@ Component({ |
|
34
|
}
|
33
|
}
|
|
35
|
let obj={
|
34
|
let obj={
|
|
36
|
section:this.data.section ? this.data.section : this.data.sectionlist[0].section,
|
35
|
section:this.data.section ? this.data.section : this.data.sectionlist[0].section,
|
|
37
|
- action:'defalut',
|
36
|
+ action:this.data.section ? 'click' :'defalut',
|
|
38
|
time:this.data.sectionlist[0].sectiondur.split('-')[0]
|
37
|
time:this.data.sectionlist[0].sectiondur.split('-')[0]
|
|
39
|
}
|
38
|
}
|
|
40
|
this.triggerEvent('selectsection',obj)
|
39
|
this.triggerEvent('selectsection',obj)
|
|
@@ -85,9 +84,11 @@ Component({ |
|
@@ -85,9 +84,11 @@ Component({ |
|
85
|
}
|
84
|
}
|
|
86
|
})
|
85
|
})
|
|
87
|
console.log(interval)
|
86
|
console.log(interval)
|
|
88
|
- if(interval.length>0){
|
|
|
|
89
|
- sectionlist[interval[0].index].isselected=true;
|
|
|
|
90
|
- this.tellsection(sectionlist[interval[0].index].section,'defalut',interval[0].index)
|
87
|
+ if(!this.data.section){
|
|
|
|
88
|
+ if(interval.length>0){
|
|
|
|
89
|
+ sectionlist[interval[0].index].isselected=true;
|
|
|
|
90
|
+ this.tellsection(sectionlist[interval[0].index].section,'defalut',interval[0].index)
|
|
|
|
91
|
+ }
|
|
91
|
}
|
92
|
}
|
|
92
|
this.setData({
|
93
|
this.setData({
|
|
93
|
sectionlist:sectionlist
|
94
|
sectionlist:sectionlist
|