Commit dd545330f464a58533485c4747e97f78e91aee73

Authored by wangfan
1 parent e83775da

日历插件

Showing 1 changed file with 8 additions and 5 deletions
... ... @@ -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);
... ...