|
...
|
...
|
@@ -23,6 +23,7 @@ Page({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
sellerid:0,
|
|
|
|
indexOpt:null,
|
|
|
|
onLoad:function(opt){
|
|
|
|
let d=new Date()/1000;
|
|
|
|
let dateStr=util.unixtoTime(d,'MM-DD DAY');
|
|
...
|
...
|
@@ -45,23 +46,25 @@ Page({ |
|
|
|
dateStr:dateStr,
|
|
|
|
})
|
|
|
|
//util.setBarTitle('预定本');
|
|
|
|
let openid=getApp().openid;
|
|
|
|
if(openid && opt.seller_id){
|
|
|
|
App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(opt)})
|
|
|
|
}
|
|
|
|
this.indexOpt=opt;
|
|
|
|
},
|
|
|
|
onShow:function(){
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.setData({
|
|
|
|
calendarMaskLoad:true,
|
|
|
|
})
|
|
|
|
},1000);
|
|
|
|
var that=this;
|
|
|
|
this.setData({
|
|
|
|
isloading:false,
|
|
|
|
})
|
|
|
|
this.getbooklist();
|
|
|
|
this.selectComponent('#nav').init();
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.setData({
|
|
|
|
isloading:false,
|
|
|
|
calendarMaskLoad:true,
|
|
|
|
})
|
|
|
|
this.getbooklist();
|
|
|
|
this.selectComponent('#nav').init();
|
|
|
|
let openid=getApp().openid;
|
|
|
|
if(openid && this.indexOpt.seller_id){
|
|
|
|
App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(this.indexOpt)})
|
|
|
|
}else{
|
|
|
|
console.log('index-opt',openid,this.indexOpt);
|
|
|
|
}
|
|
|
|
},1000);
|
|
|
|
},
|
|
|
|
async getbooklist(){
|
|
|
|
let time=0;
|
...
|
...
|
|