|
...
|
...
|
@@ -59,11 +59,7 @@ Page({ |
|
|
|
timePickerMask:false,
|
|
|
|
pnumInputFocus:false,
|
|
|
|
pageMarginBottom:0,
|
|
|
|
speciallist:[
|
|
|
|
{ date: '2018-11-21', background: '', text:'今 天' },
|
|
|
|
{ date: '2018-11-22', background: '', text: '明 天' },
|
|
|
|
{ date: '2018-11-23', background: '', text: '后 天' },
|
|
|
|
],
|
|
|
|
speciallist:[],
|
|
|
|
calendar:{
|
|
|
|
nextNum:0,
|
|
|
|
},
|
|
...
|
...
|
@@ -76,12 +72,19 @@ Page({ |
|
|
|
this.initLoad(options)
|
|
|
|
},
|
|
|
|
async initLoad(options={}){
|
|
|
|
let nt=new Date()/1000;
|
|
|
|
let speciallist=[
|
|
|
|
{ date: util.unixtoTime(nt,'YYYY-MM-DD'), background: '', text:'今 天' },
|
|
|
|
{ date: util.unixtoTime(nt+86400,'YYYY-MM-DD'), background: '', text: '明 天' },
|
|
|
|
{ date: util.unixtoTime(nt+86400*2,'YYYY-MM-DD'), background: '', text: '后 天' },
|
|
|
|
];
|
|
|
|
this.reserve_id=options.id||'';
|
|
|
|
await this.setDateStr();
|
|
|
|
this.sellerid=util.cache('sellerid');
|
|
|
|
let timePickerArray= await comm.getDayTimeSpace();
|
|
|
|
this.setData({
|
|
|
|
timePickerArray: timePickerArray,
|
|
|
|
speciallist:speciallist
|
|
|
|
})
|
|
|
|
if(this.reserve_id>0){
|
|
|
|
this.initModify(this.reserve_id);
|
...
|
...
|
|