|
...
|
...
|
@@ -48,17 +48,16 @@ Component({ |
|
|
|
console.log(json)
|
|
|
|
if(json.ret==200){
|
|
|
|
this.houseFullDate=json.data;
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0})
|
|
|
|
}else{
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
|
|
|
|
}
|
|
|
|
if(json.data.length>0){
|
|
|
|
this.changespeciallist(json.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
this.houseFullDate=json.data;
|
|
|
|
this.houseFullDate=null
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
|
|
|
|
}
|
|
|
|
})
|
|
...
|
...
|
@@ -100,11 +99,16 @@ Component({ |
|
|
|
this.setData({
|
|
|
|
date:e.detail.date
|
|
|
|
})
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0})
|
|
|
|
if(this.houseFullDate){
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0})
|
|
|
|
}else{ //满房
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1})
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1})
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|