Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -147,6 +147,7 @@ Page({ | @@ -147,6 +147,7 @@ Page({ | ||
| 147 | console.log('hasActivityEvent',e); | 147 | console.log('hasActivityEvent',e); |
| 148 | App.Task.GetTaskInfo({pos:'home'}).then(res=>{ | 148 | App.Task.GetTaskInfo({pos:'home'}).then(res=>{ |
| 149 | let activity=res.data.activity | 149 | let activity=res.data.activity |
| 150 | + if(!activity) return; | ||
| 150 | let time=new Date()/1000 | 151 | let time=new Date()/1000 |
| 151 | if(activity.status==1 && activity.starttime<time && time<activity.endtime){ | 152 | if(activity.status==1 && activity.starttime<time && time<activity.endtime){ |
| 152 | this.setData({ | 153 | this.setData({ |
-
Please register or login to post a comment