Commit ed9d6c1b authored by liujiangnan's avatar liujiangnan

debug

parent 404d15d8
...@@ -40,15 +40,19 @@ export default class NewClass extends middleLayerBase { ...@@ -40,15 +40,19 @@ export default class NewClass extends middleLayerBase {
(<any>window).air = {}; (<any>window).air = {};
} }
(<any>window).air.hideAirClassLoading = () => { (<any>window).air.hideAirClassLoading = () => {
console.log('汪汪汪'); if ((<any>window).air.onCourseInScreen) {
(<any>window).air.onCourseInScreen && (<any>window).air.onCourseInScreen(() => { (<any>window).air.onCourseInScreen(() => {
console.log("***成功调用onCourseInScreen***"); console.log("***成功调用onCourseInScreen***");
(<any>window).air.onCourseInScreen = null; (<any>window).air.onCourseInScreen = null;
this.hideWaitingLetters();
this.hideMask();
}); });
} else {
this.hideWaitingLetters(); this.hideWaitingLetters();
this.hideMask(); this.hideMask();
} }
} }
}
async showTips(str: string) { async showTips(str: string) {
const tipsLayer = cc.find('middleLayer/tipsLayer'); const tipsLayer = cc.find('middleLayer/tipsLayer');
const label = cc.find('middleLayer/tipsLayer/tips/label'); const label = cc.find('middleLayer/tipsLayer/tips/label');
......
...@@ -331,12 +331,14 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -331,12 +331,14 @@ export abstract class middleLayerBase extends cc.Component {
this.goTarIndexPage(this.courseIndex - 1); this.goTarIndexPage(this.courseIndex - 1);
} }
goNextPage() { goNextPage() {
console.log("====goNextPage====");
this.goTarIndexPage(this.courseIndex + 1); this.goTarIndexPage(this.courseIndex + 1);
} }
goTarIndexPage(index) { goTarIndexPage(index) {
if (!this.courses || index == this.courseIndex || index < 0 || index > this.courses.length - 1) { if (!this.courses || index == this.courseIndex || index < 0 || index > this.courses.length - 1) {
return; return;
} }
this.showWaitingLetters(); this.showWaitingLetters();
(<any>window).courseware.freeAllOcMethod(); (<any>window).courseware.freeAllOcMethod();
......
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