Showing
1 changed file
with
5 additions
and
1 deletions
| @@ -16,7 +16,11 @@ Component({ | @@ -16,7 +16,11 @@ Component({ | ||
| 16 | this.setData({ | 16 | this.setData({ |
| 17 | showYearMonth:this.getshowmonth(this.data.date) | 17 | showYearMonth:this.getshowmonth(this.data.date) |
| 18 | }) | 18 | }) |
| 19 | - this.triggerEvent('selectdate',{date:this.data.date,action:'defalut'}) | 19 | + if(this.data.date){ |
| 20 | + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut'}) | ||
| 21 | + }else{ | ||
| 22 | + this.triggerEvent('selectdate',{date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD'),action:'defalut'}) | ||
| 23 | + } | ||
| 20 | this.getweeklist(); | 24 | this.getweeklist(); |
| 21 | this.getdaylist(); | 25 | this.getdaylist(); |
| 22 | this.getFullDate(); | 26 | this.getFullDate(); |
-
Please register or login to post a comment