|
@@ -50,9 +50,9 @@ Component({ |
|
@@ -50,9 +50,9 @@ Component({ |
|
50
|
this.houseFullDate=json.data;
|
50
|
this.houseFullDate=json.data;
|
|
51
|
if(action=='defalut'){
|
51
|
if(action=='defalut'){
|
|
52
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
52
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
53
|
- this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0})
|
53
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
54
|
}else{ //满房
|
54
|
}else{ //满房
|
|
55
|
- this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
|
55
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
56
|
}
|
56
|
}
|
|
57
|
if(json.data.length>0){
|
57
|
if(json.data.length>0){
|
|
58
|
this.changespeciallist(json.data)
|
58
|
this.changespeciallist(json.data)
|
|
@@ -60,10 +60,11 @@ Component({ |
|
@@ -60,10 +60,11 @@ Component({ |
|
60
|
}
|
60
|
}
|
|
61
|
|
61
|
|
|
62
|
}else{
|
62
|
}else{
|
|
|
|
63
|
+ //不可预订
|
|
63
|
if(json.ret==401){
|
64
|
if(json.ret==401){
|
|
64
|
if(action=='defalut'){
|
65
|
if(action=='defalut'){
|
|
65
|
this.houseFullDate=null
|
66
|
this.houseFullDate=null
|
|
66
|
- this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
|
67
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:401})
|
|
67
|
}
|
68
|
}
|
|
68
|
}
|
69
|
}
|
|
69
|
|
70
|
|
|
@@ -115,17 +116,19 @@ Component({ |
|
@@ -115,17 +116,19 @@ Component({ |
|
115
|
date:e.detail.date
|
116
|
date:e.detail.date
|
|
116
|
})
|
117
|
})
|
|
117
|
if(date/1000<=Number(util.timetouUnix(this.data.date,'-'))){
|
118
|
if(date/1000<=Number(util.timetouUnix(this.data.date,'-'))){
|
|
|
|
119
|
+ //可预订
|
|
118
|
if(this.houseFullDate){
|
120
|
if(this.houseFullDate){
|
|
119
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
121
|
if(this.houseFullDate.indexOf(this.data.date)==-1){
|
|
120
|
- this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0})
|
122
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0,bookstatus:200})
|
|
121
|
}else{ //满房
|
123
|
}else{ //满房
|
|
122
|
- this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
|
124
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0,bookstatus:200})
|
|
123
|
}
|
125
|
}
|
|
124
|
}else{
|
126
|
}else{
|
|
125
|
- this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
|
127
|
+ //不可预订
|
|
|
|
128
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0,bookstatus:401})
|
|
126
|
}
|
129
|
}
|
|
127
|
}else{ //overdate为1过期日期
|
130
|
}else{ //overdate为1过期日期
|
|
128
|
- this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1})
|
131
|
+ this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1,bookstatus:200})
|
|
129
|
}
|
132
|
}
|
|
130
|
|
133
|
|
|
131
|
|
134
|
|