Commit fe633ef8 authored by wangzhujun's avatar wangzhujun

1232

parent 2acda392
...@@ -53,8 +53,9 @@ ...@@ -53,8 +53,9 @@
<script> <script>
// window['pageID'] = 'TeamShareScene'; // window['pageID'] = 'TeamShareScene';
// window['pageID'] = 'JoinShareScene'; // window['pageID'] = 'JoinShareScene';
window['pageID'] = 'TransScene'; // window['pageID'] = 'TransScene';
// window['pageID'] = 'Share2Scene'; // window['pageID'] = 'Share2Scene';
window['indexhtml'] = 'https://yazuwei.activity-1.m.duiba.com.cn/projectx/pbe1f2241/index.html'
window['TransLink']=''; window['TransLink']='';
window['projectId'] = "1"; window['projectId'] = "1";
window['playwayId'] = "join_1"; window['playwayId'] = "join_1";
......
...@@ -29,10 +29,12 @@ export default class ConfirmPanel extends Panel { ...@@ -29,10 +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']);})
} }
onTap_btn() { onTap_btn() {
console.log('onTap_btn'); console.log('onTap_btn');
yzwNet.joinPkTeam((success) => { yzwNet.joinPkTeam((success) => {
const data = DataManager.ins.getData('joinPkTeam'); const data = DataManager.ins.getData('joinPkTeam');
if (success) { if (success) {
...@@ -44,6 +46,7 @@ export default class ConfirmPanel extends Panel { ...@@ -44,6 +46,7 @@ export default class ConfirmPanel extends Panel {
//200006 您已加入该战队,请勿重复加入 //200006 您已加入该战队,请勿重复加入
} }
history.pushState("", document.title, window['indexhtml']);
this.hidePanel(); this.hidePanel();
}, },
window['projectId'], GameConst.getQueryString("joinTeamCode")); 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