Showing
1 changed file
with
9 additions
and
7 deletions
| @@ -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,bookstatus:200}) | 53 | + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0}) |
| 54 | }else{ //满房 | 54 | }else{ //满房 |
| 55 | - this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:200}) | 55 | + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0}) |
| 56 | } | 56 | } |
| 57 | if(json.data.length>0){ | 57 | if(json.data.length>0){ |
| 58 | this.changespeciallist(json.data) | 58 | this.changespeciallist(json.data) |
| @@ -64,7 +64,8 @@ Component({ | @@ -64,7 +64,8 @@ Component({ | ||
| 64 | if(json.ret==401){ | 64 | if(json.ret==401){ |
| 65 | if(action=='defalut'){ | 65 | if(action=='defalut'){ |
| 66 | this.houseFullDate=null | 66 | this.houseFullDate=null |
| 67 | - this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:401}) | 67 | + this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0}) |
| 68 | + this.triggerEvent('tellbookstatus',{date:this.data.date,action:'defalut'}) | ||
| 68 | } | 69 | } |
| 69 | } | 70 | } |
| 70 | 71 | ||
| @@ -119,16 +120,17 @@ Component({ | @@ -119,16 +120,17 @@ Component({ | ||
| 119 | //可预订 | 120 | //可预订 |
| 120 | if(this.houseFullDate){ | 121 | if(this.houseFullDate){ |
| 121 | if(this.houseFullDate.indexOf(this.data.date)==-1){ | 122 | if(this.houseFullDate.indexOf(this.data.date)==-1){ |
| 122 | - this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0,bookstatus:200}) | 123 | + this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0}) |
| 123 | }else{ //满房 | 124 | }else{ //满房 |
| 124 | - this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0,bookstatus:200}) | 125 | + this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0}) |
| 125 | } | 126 | } |
| 126 | }else{ | 127 | }else{ |
| 127 | //不可预订 | 128 | //不可预订 |
| 128 | - this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0,bookstatus:401}) | 129 | + this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0}) |
| 130 | + this.triggerEvent('tellbookstatus',{date:this.data.date,action:'click'}) | ||
| 129 | } | 131 | } |
| 130 | }else{ //overdate为1过期日期 | 132 | }else{ //overdate为1过期日期 |
| 131 | - this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1,bookstatus:200}) | 133 | + this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1}) |
| 132 | } | 134 | } |
| 133 | 135 | ||
| 134 | 136 |
-
Please register or login to post a comment