Commit 22fa2f78d742d1e01aad3cda1c8811706a4eb05a

Authored by liuxuqinfhp1220
1 parent af2120b3

通知事件增加overdate字段,1为过期时间

... ... @@ -49,16 +49,16 @@ Component({
if(json.ret==200){
this.houseFullDate=json.data;
if(this.houseFullDate.indexOf(this.data.date)==-1){
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:0,overdate:0})
}else{ //满房
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
}
if(json.data.length>0){
this.changespeciallist(json.data)
}
}else{
this.houseFullDate=null
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1})
this.triggerEvent('selectdate',{date:this.data.date,action:'defalut',houseFullStatus:1,overdate:0})
}
})
},
... ... @@ -99,16 +99,21 @@ Component({
this.setData({
date:e.detail.date
})
if(this.houseFullDate){
if(this.houseFullDate.indexOf(this.data.date)==-1){
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:0})
}else{ //满房
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1})
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})
}else{ //满房
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
}
}else{
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:0})
}
}else{
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1})
}else{ //overdate为1过期日期
this.triggerEvent('selectdate',{date:this.data.date,action:'click',houseFullStatus:1,overdate:1})
}
}
}
... ...