|
...
|
...
|
@@ -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})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
|
|
}
|
|
|
|
if(json.data.length>0){
|
|
|
|
this.changespeciallist(json.data)
|
|
...
|
...
|
@@ -60,10 +60,11 @@ Component({ |
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
//不可预订
|
|
|
|
if(json.ret==401){
|
|
|
|
if(action=='defalut'){
|
|
|
|
this.houseFullDate=null
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:401})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -115,17 +116,19 @@ Component({ |
|
|
|
date:e.detail.date
|
|
|
|
})
|
|
|
|
if(date/1000<=Number(util.timetouUnix(this.data.date,'-'))){
|
|
|
|
//可预订
|
|
|
|
if(this.houseFullDate){
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
|
|
|
|
//不可预订
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0,bookstatus:401})
|
|
|
|
}
|
|
|
|
}else{ //overdate为1过期日期
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1,bookstatus:200})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
...
|
...
|
|