Commit ff3b013191498cf6ecd266fdd31dbc15189204b6

Authored by wangfan
1 parent 2d2ba2f1

录入调整

Showing 1 changed file with 16 additions and 13 deletions
@@ -23,6 +23,7 @@ Page({ @@ -23,6 +23,7 @@ Page({
23 } 23 }
24 }, 24 },
25 sellerid:0, 25 sellerid:0,
  26 + indexOpt:null,
26 onLoad:function(opt){ 27 onLoad:function(opt){
27 let d=new Date()/1000; 28 let d=new Date()/1000;
28 let dateStr=util.unixtoTime(d,'MM-DD DAY'); 29 let dateStr=util.unixtoTime(d,'MM-DD DAY');
@@ -45,23 +46,25 @@ Page({ @@ -45,23 +46,25 @@ Page({
45 dateStr:dateStr, 46 dateStr:dateStr,
46 }) 47 })
47 //util.setBarTitle('预定本'); 48 //util.setBarTitle('预定本');
48 - let openid=getApp().openid;  
49 - if(openid && opt.seller_id){  
50 - App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(opt)})  
51 - } 49 + this.indexOpt=opt;
52 }, 50 },
53 onShow:function(){ 51 onShow:function(){
54 - setTimeout(()=>{  
55 - this.setData({  
56 - calendarMaskLoad:true,  
57 - })  
58 - },1000);  
59 - var that=this; 52 + this.setData({
  53 + isloading:false,
  54 + })
  55 + this.getbooklist();
  56 + this.selectComponent('#nav').init();
  57 + setTimeout(()=>{
60 this.setData({ 58 this.setData({
61 - isloading:false, 59 + calendarMaskLoad:true,
62 }) 60 })
63 - this.getbooklist();  
64 - this.selectComponent('#nav').init(); 61 + let openid=getApp().openid;
  62 + if(openid && this.indexOpt.seller_id){
  63 + App.Reserve.SellerForOpenid({openid:openid,sedata:JSON.stringify(this.indexOpt)})
  64 + }else{
  65 + console.log('index-opt',openid,this.indexOpt);
  66 + }
  67 + },1000);
65 }, 68 },
66 async getbooklist(){ 69 async getbooklist(){
67 let time=0; 70 let time=0;