Commit 9031b522 authored by wildfirecode's avatar wildfirecode

1

parent 81d4b6dc
...@@ -29,11 +29,12 @@ export default class ConfirmPanel extends Panel { ...@@ -29,11 +29,12 @@ export default class ConfirmPanel extends Panel {
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
this.onTap(this['btn'], this.onTap_btn); this.onTap(this['btn'], this.onTap_btn);
this.onTap(this['closeBtn'],()=>{history.pushState("", document.title, window['indexhtml']);}) this.onTap(this['closeBtn'], () => { history.pushState("", document.title, window['indexhtml']); })
} }
onTap_btn() { onTap_btn() {
console.log('onTap_btn'); console.log('onTap_btn');
yzwNet.accept(() => {
yzwNet.joinPkTeam((success) => { yzwNet.joinPkTeam((success) => {
const data = DataManager.ins.getData('joinPkTeam'); const data = DataManager.ins.getData('joinPkTeam');
...@@ -50,6 +51,9 @@ export default class ConfirmPanel extends Panel { ...@@ -50,6 +51,9 @@ export default class ConfirmPanel extends Panel {
this.hidePanel(); this.hidePanel();
}, },
window['projectId'], GameConst.getQueryString("joinTeamCode")); window['projectId'], GameConst.getQueryString("joinTeamCode"));
}, window['projectId'], GameConst.getQueryString("shareCode"));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment