|
...
|
...
|
@@ -26,7 +26,6 @@ Component({ |
|
|
|
this.gethousefulldate();
|
|
|
|
},
|
|
|
|
ready(){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut'})
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
//默认标记特殊日期
|
|
...
|
...
|
@@ -48,6 +47,12 @@ Component({ |
|
|
|
App.Customer.GetHouseFullDate(parmdata).then((json)=>{
|
|
|
|
console.log(json)
|
|
|
|
if(json.ret==200){
|
|
|
|
this.houseFullDate=json.data;
|
|
|
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0})
|
|
|
|
}else{
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
|
|
|
|
}
|
|
|
|
if(json.data.length>0){
|
|
|
|
this.changespeciallist(json.data)
|
|
|
|
}
|
|
...
|
...
|
@@ -92,7 +97,11 @@ Component({ |
|
|
|
this.setData({
|
|
|
|
date:e.detail.date
|
|
|
|
})
|
|
|
|
this.triggerEvent('selectdate',{date:this.data.date,action:'click'})
|
|
|
|
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})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|