Commit 96584618999e20d6443378aca9d0d99369eb92fc

Authored by liuxuqinfhp1220
1 parent 91885a63

no message

... ... @@ -21,7 +21,17 @@ Component({
'date,section': function(newdate,newsection) {
console.log('room',newdate,newsection)
if(newdate && newsection){
this.getroomtype();
if(this.date && this.section){
if(newdate!=newdate && this.section!=newsection){
this.getroomtype();
this.date=newdate;
this.section=newsection;
}
}else{
this.getroomtype();
this.date=newdate;
this.section=newsection;
}
}
}
},
... ...
... ... @@ -20,9 +20,16 @@ Component({
'date,section': function(newdate,newsection) {
console.log('room',newdate,newsection)
if(newdate && newsection){
this.setData({
seletroomlist:[]
})
if(this.date && this.section){
if(newdate!=newdate && this.section!=newsection){
this.setData({
seletroomlist:[]
})
this.date=newdate;
this.section=newsection;
}
}
}
}
},
... ...