Commit 43ee51cf authored by liujiangnan's avatar liujiangnan

feat

parent 139bef1a
......@@ -377,7 +377,7 @@ export default class NewClass extends middleLayerBase {
}
// 重写loadOnlineBundle方法;主要是对一些必要的页面跳转做一些拦截处理
loadOnlineBundle(bundleName) {
loadOnlineBundle(bundleName, callback = null) {
cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnLeft').active = false;
cc.find('middleLayer/ExitBtn').active = false;
......@@ -399,7 +399,7 @@ export default class NewClass extends middleLayerBase {
const sceneName = configData.sceneName;
const version = configData.version;
const bondleUrl = configData.bondleUrl;
this.loadBundle(sceneName, version, bondleUrl);
this.loadBundle(sceneName, version, bondleUrl, callback);
});
}
......@@ -551,6 +551,10 @@ export default class NewClass extends middleLayerBase {
}
this.showMask();
this.showWaitingLetters();
this.onMiddleLayerLoadingFinish();
const token = cc.sys.localStorage.getItem('token');
const kidDataStr = await this.asyncCallNetworkApiGet('/api/oxford/v1/kid/info', {
token: token
......@@ -561,7 +565,6 @@ export default class NewClass extends middleLayerBase {
} else {
this.loadOnlineBundle('NJ_login');
}
this.initListener();
}
......@@ -693,7 +696,5 @@ export default class NewClass extends middleLayerBase {
initAir(this);
this.reWriteAir();
this.reportErrorLog();
this.onMiddleLayerLoadingFinish();
}
}
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