Commit 8de2f913de332bcae4484e86bd6318ad7bcb2420

Authored by liuxuqinfhp1220
1 parent e83919df

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

@@ -26,7 +26,6 @@ Component({ @@ -26,7 +26,6 @@ Component({
26 this.gethousefulldate(); 26 this.gethousefulldate();
27 }, 27 },
28 ready(){ 28 ready(){
29 - this.triggerEvent('selectdate',{date:this.data.date,action:'defalut'})  
30 }, 29 },
31 methods:{ 30 methods:{
32 //默认标记特殊日期 31 //默认标记特殊日期
@@ -48,6 +47,12 @@ Component({ @@ -48,6 +47,12 @@ Component({
48 App.Customer.GetHouseFullDate(parmdata).then((json)=>{ 47 App.Customer.GetHouseFullDate(parmdata).then((json)=>{
49 console.log(json) 48 console.log(json)
50 if(json.ret==200){ 49 if(json.ret==200){
  50 + this.houseFullDate=json.data;
  51 + if(this.houseFullDate.indexOf(this.data.date)==-1){
  52 + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0})
  53 + }else{
  54 + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
  55 + }
51 if(json.data.length>0){ 56 if(json.data.length>0){
52 this.changespeciallist(json.data) 57 this.changespeciallist(json.data)
53 } 58 }
@@ -92,7 +97,11 @@ Component({ @@ -92,7 +97,11 @@ Component({
92 this.setData({ 97 this.setData({
93 date:e.detail.date 98 date:e.detail.date
94 }) 99 })
95 - this.triggerEvent('selectdate',{date:this.data.date,action:'click'}) 100 + if(this.houseFullDate.indexOf(this.data.date)==-1){
  101 + this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0})
  102 + }else{
  103 + this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1})
  104 + }
96 } 105 }
97 } 106 }
98 107
@@ -467,7 +467,7 @@ @@ -467,7 +467,7 @@
467 "id": 56, 467 "id": 56,
468 "name": "测试组件", 468 "name": "测试组件",
469 "pathName": "pages/reserve/detail", 469 "pathName": "pages/reserve/detail",
470 - "query": "id=80&activeTab=reserve", 470 + "query": "id=48&activeTab=reserve",
471 "scene": null 471 "scene": null
472 }, 472 },
473 { 473 {