Showing
1 changed file
with
8 additions
and
5 deletions
| @@ -59,11 +59,7 @@ Page({ | @@ -59,11 +59,7 @@ Page({ | ||
| 59 | timePickerMask:false, | 59 | timePickerMask:false, |
| 60 | pnumInputFocus:false, | 60 | pnumInputFocus:false, |
| 61 | pageMarginBottom:0, | 61 | pageMarginBottom:0, |
| 62 | - speciallist:[ | ||
| 63 | - { date: '2018-11-21', background: '', text:'今 天' }, | ||
| 64 | - { date: '2018-11-22', background: '', text: '明 天' }, | ||
| 65 | - { date: '2018-11-23', background: '', text: '后 天' }, | ||
| 66 | - ], | 62 | + speciallist:[], |
| 67 | calendar:{ | 63 | calendar:{ |
| 68 | nextNum:0, | 64 | nextNum:0, |
| 69 | }, | 65 | }, |
| @@ -76,12 +72,19 @@ Page({ | @@ -76,12 +72,19 @@ Page({ | ||
| 76 | this.initLoad(options) | 72 | this.initLoad(options) |
| 77 | }, | 73 | }, |
| 78 | async initLoad(options={}){ | 74 | async initLoad(options={}){ |
| 75 | + let nt=new Date()/1000; | ||
| 76 | + let speciallist=[ | ||
| 77 | + { date: util.unixtoTime(nt,'YYYY-MM-DD'), background: '', text:'今 天' }, | ||
| 78 | + { date: util.unixtoTime(nt+86400,'YYYY-MM-DD'), background: '', text: '明 天' }, | ||
| 79 | + { date: util.unixtoTime(nt+86400*2,'YYYY-MM-DD'), background: '', text: '后 天' }, | ||
| 80 | + ]; | ||
| 79 | this.reserve_id=options.id||''; | 81 | this.reserve_id=options.id||''; |
| 80 | await this.setDateStr(); | 82 | await this.setDateStr(); |
| 81 | this.sellerid=util.cache('sellerid'); | 83 | this.sellerid=util.cache('sellerid'); |
| 82 | let timePickerArray= await comm.getDayTimeSpace(); | 84 | let timePickerArray= await comm.getDayTimeSpace(); |
| 83 | this.setData({ | 85 | this.setData({ |
| 84 | timePickerArray: timePickerArray, | 86 | timePickerArray: timePickerArray, |
| 87 | + speciallist:speciallist | ||
| 85 | }) | 88 | }) |
| 86 | if(this.reserve_id>0){ | 89 | if(this.reserve_id>0){ |
| 87 | this.initModify(this.reserve_id); | 90 | this.initModify(this.reserve_id); |
-
Please register or login to post a comment