Commit 5d40f16b8f3c5d163880ffc1670b31f399650dff

Authored by liuxuqinfhp1220
1 parent 6d474803

增加bookstatus=401不可预订

... ... @@ -50,9 +50,9 @@ Component({
this.houseFullDate=json.data;
if(action=='defalut'){
if(this.houseFullDate.indexOf(this.data.date)==-1){
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0,bookstatus:200})
}else{ //满房
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:200})
}
if(json.data.length>0){
this.changespeciallist(json.data)
... ... @@ -60,10 +60,11 @@ Component({
}
}else{
//不可预订
if(json.ret==401){
if(action=='defalut'){
this.houseFullDate=null
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0,bookstatus:401})
}
}
... ... @@ -115,17 +116,19 @@ Component({
date:e.detail.date
})
if(date/1000<=Number(util.timetouUnix(this.data.date,'-'))){
//可预订
if(this.houseFullDate){
if(this.houseFullDate.indexOf(this.data.date)==-1){
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0,overdate:0,bookstatus:200})
}else{ //满房
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0,bookstatus:200})
}
}else{
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0})
//不可预订
this.triggerEvent('selectdate',{date:this.data.date,action:401,houseFullStatus:1,overdate:0,bookstatus:401})
}
}else{ //overdate为1过期日期
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1})
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1,bookstatus:200})
}
... ...
... ... @@ -467,7 +467,7 @@
"id": 56,
"name": "测试组件",
"pathName": "pages/reserve/detail",
"query": "id=48&activeTab=reserve",
"query": "id=80&activeTab=reserve",
"scene": null
},
{
... ...