Commit 9031b522 authored by wildfirecode's avatar wildfirecode

1

parent 81d4b6dc
......@@ -29,27 +29,31 @@ export default class ConfirmPanel extends Panel {
initEvents() {
super.initEvents();
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() {
console.log('onTap_btn');
yzwNet.joinPkTeam((success) => {
const data = DataManager.ins.getData('joinPkTeam');
if (success) {
ToastCtrl.instance.show('成功加入队伍')
} else {
if (data.message) {
ToastCtrl.instance.show(data.message);
yzwNet.accept(() => {
yzwNet.joinPkTeam((success) => {
const data = DataManager.ins.getData('joinPkTeam');
if (success) {
ToastCtrl.instance.show('成功加入队伍')
} else {
if (data.message) {
ToastCtrl.instance.show(data.message);
}
//200006 您已加入该战队,请勿重复加入
}
//200006 您已加入该战队,请勿重复加入
history.pushState("", document.title, window['indexhtml']);
this.hidePanel();
},
window['projectId'], GameConst.getQueryString("joinTeamCode"));
}, window['projectId'], GameConst.getQueryString("shareCode"));
}
history.pushState("", document.title, window['indexhtml']);
this.hidePanel();
},
window['projectId'], GameConst.getQueryString("joinTeamCode"));
}
}
......
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