Commit ed9d6c1b authored by liujiangnan's avatar liujiangnan

debug

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