Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -7,7 +7,7 @@ Component({ | @@ -7,7 +7,7 @@ Component({ | ||
| 7 | //选中日期 | 7 | //选中日期 |
| 8 | date:{ | 8 | date:{ |
| 9 | type:String, | 9 | type:String, |
| 10 | - value:util.unixtoTime(date,'YYYY-MM-DD'), | 10 | + value:util.unixtoTime(date/1000,'YYYY-MM-DD'), |
| 11 | } | 11 | } |
| 12 | }, | 12 | }, |
| 13 | data: { | 13 | data: { |
| @@ -32,7 +32,7 @@ Component({ | @@ -32,7 +32,7 @@ Component({ | ||
| 32 | //默认标记特殊日期 | 32 | //默认标记特殊日期 |
| 33 | getspeciallist(){ | 33 | getspeciallist(){ |
| 34 | let speciallist = [ | 34 | let speciallist = [ |
| 35 | - {date: util.unixtoTime(date, 'YYYY-MM-DD'), background: '', text: '今'}, | 35 | + {date: util.unixtoTime(date/1000, 'YYYY-MM-DD'), background: '', text: '今'}, |
| 36 | {date: util.unixtoTime(date + 86400, 'YYYY-MM-DD'), background: '', text: '明'} | 36 | {date: util.unixtoTime(date + 86400, 'YYYY-MM-DD'), background: '', text: '明'} |
| 37 | ]; | 37 | ]; |
| 38 | this.setData({ | 38 | this.setData({ |
-
Please register or login to post a comment