Commit 8de2f913de332bcae4484e86bd6318ad7bcb2420

Authored by liuxuqinfhp1220
1 parent e83919df

日历通知事件新增了满房状态houseFullStatus,1为满房

... ... @@ -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})
}
}
}
... ...
... ... @@ -467,7 +467,7 @@
"id": 56,
"name": "测试组件",
"pathName": "pages/reserve/detail",
"query": "id=80&activeTab=reserve",
"query": "id=48&activeTab=reserve",
"scene": null
},
{
... ...