|
@@ -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
|
|