Commit 7e85984c authored by liujiangnan's avatar liujiangnan

debug

parent 3a03bf6f
...@@ -75,6 +75,8 @@ cc.Class({ ...@@ -75,6 +75,8 @@ cc.Class({
xhr.send(JSON.stringify(data)); xhr.send(JSON.stringify(data));
}, },
tFlag = null,
start() { start() {
this.node.zIndex = 9999; this.node.zIndex = 9999;
if (!window.air) { if (!window.air) {
...@@ -86,10 +88,13 @@ cc.Class({ ...@@ -86,10 +88,13 @@ cc.Class({
console.log("***成功调用onCourseInScreen***"); console.log("***成功调用onCourseInScreen***");
window.air.onCourseInScreen = null; window.air.onCourseInScreen = null;
}); });
if (this.tFlag) {
clearTimeout(this.tFlag);
setTimeout(()=>{ setTimeout(()=>{
this.hideWaitingLetters(); this.hideWaitingLetters();
}, 1000); }, 1000);
} }
}
this.showWaitingLetters(); this.showWaitingLetters();
...@@ -682,6 +687,9 @@ cc.Class({ ...@@ -682,6 +687,9 @@ cc.Class({
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
cc.director.runScene(scene, null, () => { cc.director.runScene(scene, null, () => {
console.log("sceneName = " + conf.sceneName); console.log("sceneName = " + conf.sceneName);
this.tFlag = setTimeout(() => {
this.hideWaitingLetters();
}, 15000);
callback && callback(); callback && callback();
if (this.bundleType == "StoryBox") { if (this.bundleType == "StoryBox") {
this.node.removeComponent(cc.Widget); this.node.removeComponent(cc.Widget);
......
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