Showing
1 changed file
with
1 additions
and
5 deletions
| @@ -16,11 +16,7 @@ Component({ | @@ -16,11 +16,7 @@ Component({ | ||
| 16 | this.setData({ | 16 | this.setData({ |
| 17 | showYearMonth:this.getshowmonth(this.data.date) | 17 | showYearMonth:this.getshowmonth(this.data.date) |
| 18 | }) | 18 | }) |
| 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 | - } | 19 | + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut'}) |
| 24 | this.getweeklist(); | 20 | this.getweeklist(); |
| 25 | this.getdaylist(); | 21 | this.getdaylist(); |
| 26 | this.getFullDate(); | 22 | this.getFullDate(); |
-
Please register or login to post a comment