|
...
|
...
|
@@ -50,9 +50,9 @@ Component({ |
|
|
|
this.houseFullDate=json.data;
|
|
|
|
if(action=='defalut'){
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0})
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
|
|
|
|
}
|
|
|
|
if(json.data.length>0){
|
|
|
|
this.changespeciallist(json.data)
|
|
...
|
...
|
@@ -64,7 +64,8 @@ Component({ |
|
|
|
if(json.ret==401){
|
|
|
|
if(action=='defalut'){
|
|
|
|
this.houseFullDate=null
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:401})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
|
|
|
|
this.triggerEvent('tellbookstatus',{date:this.data.date,action:'defalut'})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -119,16 +120,17 @@ Component({ |
|
|
|
//可预订
|
|
|
|
if(this.houseFullDate){
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0})
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
//不可预订
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0,bookstatus:401})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
|
|
|
|
this.triggerEvent('tellbookstatus',{date:this.data.date,action:'click'})
|
|
|
|
}
|
|
|
|
}else{ //overdate为1过期日期
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1,bookstatus:200})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
...
|
...
|
|