Commit 48bb8422 authored by wildfirecode's avatar wildfirecode

1

parent 4d26669d
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<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['TransLink']=''; window['TransLink']='';
window['projectId'] = "1"; window['projectId'] = "1";
......
...@@ -172,7 +172,7 @@ class Main extends MainBase { ...@@ -172,7 +172,7 @@ class Main extends MainBase {
if (window['pageID']) { if (window['pageID']) {
Buried.init(); Buried.init();
Waiting.instance.hide(); Waiting.instance.hide();
if (window['pageID'] == 'Share2Scene') { if (window['pageID'] == 'Share2Scene') {
...@@ -185,14 +185,11 @@ class Main extends MainBase { ...@@ -185,14 +185,11 @@ class Main extends MainBase {
SceneCtrl.instance.change(ModuleTypes.TeamShareScene); SceneCtrl.instance.change(ModuleTypes.TeamShareScene);
} }
if (window['pageID'] == 'TransScene') { if (window['pageID'] == 'TransScene') {
yzwNet.homeBaseInfo((s) => { SceneCtrl.instance.change(ModuleTypes.TransScene);
SceneCtrl.instance.change(ModuleTypes.TransScene);
}, window['projectId']);
} }
return; return;
} }
loadSvgaRes(getResPath() + 'resource/assets/svgas/standby.svga'); loadSvgaRes(getResPath() + 'resource/assets/svgas/standby.svga');
loadSvgaRes(getResPath() + 'resource/assets/svgas/trans.svga'); loadSvgaRes(getResPath() + 'resource/assets/svgas/trans.svga');
......
...@@ -22,13 +22,7 @@ export default class TransScene extends Scene { ...@@ -22,13 +22,7 @@ export default class TransScene extends Scene {
constructor(data) { constructor(data) {
super(); super();
yzwNet.accept((success) => {
if (success) {
} else {
location.href = window['indexUrl'];
}
}, window['projectId'], GameConst.getQueryString("shareCode"));
this.initUI(data); this.initUI(data);
...@@ -37,6 +31,16 @@ export default class TransScene extends Scene { ...@@ -37,6 +31,16 @@ export default class TransScene extends Scene {
} }
async initUI(data) { async initUI(data) {
this['btn'].visible=false;
yzwNet.accept((success) => {
if (success) {
yzwNet.homeBaseInfo((s) => {
this['btn'].visible=true;
}, window['projectId']);
} else {
location.href = window['indexUrl'];
}
}, window['projectId'], GameConst.getQueryString("shareCode"));
if (iswx()) { if (iswx()) {
NetManager.ins.showLog(getlogItem(9)); NetManager.ins.showLog(getlogItem(9));
} else { } else {
...@@ -160,18 +164,18 @@ export default class TransScene extends Scene { ...@@ -160,18 +164,18 @@ export default class TransScene extends Scene {
this['shareTips'].visible = true; this['shareTips'].visible = true;
//进入页面后发送确认消息 //进入页面后发送确认消息
// yzwNet.accept((success) => { // yzwNet.accept((success) => {
// if (success) { // if (success) {
yzwNet.openPass(() => { yzwNet.openPass(() => {
this.addShareEvent(); this.addShareEvent();
}, window['projectId'], GameConst.getQueryString("shareCode")) }, window['projectId'], GameConst.getQueryString("shareCode"))
// } else { // } else {
// location.href = window['indexUrl']; // location.href = window['indexUrl'];
// } // }
// }, window['projectId'], GameConst.getQueryString("shareCode")); // }, window['projectId'], GameConst.getQueryString("shareCode"));
setTimeout(() => { // setTimeout(() => {
this.onshake(); // this.onshake();
}, 3000); // }, 3000);
}, this); }, this);
} }
......
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