Commit 998f34cc authored by 范雪寒's avatar 范雪寒

feat:

parent e0779c1f
......@@ -69,6 +69,17 @@ export default class NewClass extends middleLayerBase {
}
async onHomeworkFinish(callBack, data = null) {
console.log("================");
// 上报成绩
// 如果不是最后一页,跳转到下一页
// 如果是part 的最后一页课件,播放获得拼读小伙的动画
if (this.courseIndex == this.courses.length - 1) {
this.playGetParterAnim();
}
// 如果是最后一个part,要解锁下一个文件夹
}
playGetParterAnim() {
}
hideWaitingLetters() {
cc.find('middleLayer/loadingLayer').active = false;
......@@ -147,17 +158,17 @@ export default class NewClass extends middleLayerBase {
(<any>window).courseware.freeAllOcMethod();
this.loadOnlineBundle('NJ_QianShuiTing');
}
if (this.courseItem && this.courseItem.template_name=="NJ_game_select") {
if (this.courseItem && this.courseItem.template_name == "NJ_game_select") {
// 如果是纸书索引页面则直接返回
exit();
} else {
this.showConfirm("还没有完成哦!确定离开吗?", ()=>{
this.showConfirm("还没有完成哦!确定离开吗?", () => {
exit();
});
}
});
buttonOnClick(cc.find('middleLayer/BtnRight'), () => {
this.showConfirm("还有任务没完成哦!确定跳过吗?", ()=>{
this.showConfirm("还有任务没完成哦!确定跳过吗?", () => {
this.goNextPage();
});
});
......
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