|
...
|
...
|
@@ -26,6 +26,7 @@ Page({ |
|
|
|
[],
|
|
|
|
[],
|
|
|
|
],
|
|
|
|
speciallist:[],
|
|
|
|
},
|
|
|
|
sellerid:0,
|
|
|
|
indexOpt:null,
|
|
...
|
...
|
@@ -44,11 +45,18 @@ Page({ |
|
|
|
}
|
|
|
|
//this.sellerid=opt.seller_id ? opt.seller_id : util.cache('sellerid');
|
|
|
|
let timePickerArray= await bookOrder.getDayTimeSpace();
|
|
|
|
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.setData({
|
|
|
|
sellerid:this.sellerid,
|
|
|
|
listHeight:contentHeight-Math.ceil(210/radio),
|
|
|
|
dateStr:dateStr,
|
|
|
|
timePickerArray: timePickerArray,
|
|
|
|
speciallist:speciallist,
|
|
|
|
})
|
|
|
|
//util.setBarTitle('预定本');
|
|
|
|
this.indexOpt=opt;
|
|
...
|
...
|
@@ -144,8 +152,8 @@ Page({ |
|
|
|
console.log(this.data.calendarMask)
|
|
|
|
},
|
|
|
|
dateChange(event){
|
|
|
|
let cktime=util.timetouUnix(event.detail.year+'/'+event.detail.month+'/'+event.detail.day)
|
|
|
|
let clickDay = event.detail.day;
|
|
|
|
let cktime=util.timetouUnix(event.detail.date)
|
|
|
|
let clickDay = event.detail.date.substr(8,2);
|
|
|
|
let changeDay = `dayStyle[1].day`;
|
|
|
|
let changeBg = `dayStyle[1].background`;
|
|
|
|
this.setData({
|
...
|
...
|
|