Commit 32311fc8 authored by liujiangnan's avatar liujiangnan

fix: 卡死的问题

parent ab0b1a16
...@@ -294,15 +294,22 @@ export default class NewClass extends middleLayerBase { ...@@ -294,15 +294,22 @@ export default class NewClass extends middleLayerBase {
await this.saveAnswer(data); await this.saveAnswer(data);
} }
if (this.courseIndex == this.courses.length - 1) { if (this.courseIndex == this.courses.length - 1) {
// 最后一页课件 await this.pdtdFinishHandler();
this.unlockNextForder();
this.playGetParterAnim();
} else { } else {
// 如果不是最后一页,跳转到下一页 // 如果不是最后一页,跳转到下一页
this.goNextPage(); this.goNextPage();
} }
} }
async pdtdFinishHandler() {
if (!this.getData("syllabus_path") || this.getData("syllabus_path").type !== "pdtd") {
// 不是拼读天地的学习内容
return;
}
await this.playGetParterAnim();
this.unlockNextForder();
}
async playGetParterAnim() { async playGetParterAnim() {
const coolcat = cc.find('middleLayer/coolcat'); const coolcat = cc.find('middleLayer/coolcat');
coolcat.active = true; coolcat.active = true;
......
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