|
...
|
...
|
@@ -24,7 +24,15 @@ Component({ |
|
|
|
console.log(e)
|
|
|
|
let _target=e.detail;
|
|
|
|
let seletroomlist=this.data.seletroomlist;
|
|
|
|
seletroomlist.push(_target);
|
|
|
|
if(e.detail.action=='cancel'){
|
|
|
|
seletroomlist.forEach((v,i)=>{
|
|
|
|
if(v.id==_target.id){
|
|
|
|
seletroomlist.splice(i,1)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
seletroomlist.push(_target);
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
seletroomlist:this.data.seletroomlist
|
|
|
|
})
|
|
...
|
...
|
@@ -38,6 +46,7 @@ Component({ |
|
|
|
})
|
|
|
|
this.room.cancelroom(_target.id);
|
|
|
|
this.triggerEvent('changeroom',{selectroom:this.data.seletroomlist});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|