Commit bf385f91 authored by 李维's avatar 李维

添加日志信息

parent 6b46e1a0
...@@ -239,24 +239,31 @@ export default class MiddleLayerClass extends middleLayerBase { ...@@ -239,24 +239,31 @@ export default class MiddleLayerClass extends middleLayerBase {
} }
goNextPage() { goNextPage() {
console.log(this.courseIndex)
console.log(this.courses.length)
console.log("this.crossArray", JSON.stringify(this.crossArray))
if (this.courseIndex < this.courses.length-1) { if (this.courseIndex < this.courses.length-1) {
// 单页完成的庆祝画面 // 单页完成的庆祝画面
this.showGold(() => { this.showGold(() => {
this.goTarIndexPage(this.courseIndex + 1); this.goTarIndexPage(this.courseIndex + 1);
}); });
} }else if (this.courseIndex >= this.courses.length){
if (this.courseIndex >= this.courses.length){
const lastCurse = this.crossArray[this.crossArray.length-1]; const lastCurse = this.crossArray[this.crossArray.length-1];
console.log("KK", this.courseItem.course_id, lastCurse.id)
if (this.courseItem.course_id != lastCurse.id) { if (this.courseItem.course_id != lastCurse.id) {
console.log("showFinish")
// 课件完成的庆祝画面 // 课件完成的庆祝画面
this.showFinish(); this.showFinish();
// 上报解锁下一关 // 上报解锁下一关
const currentIndex = this.crossArray.findIndex(item => item.id == this.courseItem.course_id); const currentIndex = this.crossArray.findIndex(item => item.id == this.courseItem.course_id);
const nextCourse = this.crossArray[currentIndex + 1]; const nextCourse = this.crossArray[currentIndex + 1];
console.log("currentIndex", currentIndex)
console.log("nextCourse", nextCourse)
console.log("nextCourse.id", nextCourse.id)
this.unlockNext(nextCourse.id); this.unlockNext(nextCourse.id);
} else { } else {
// 所有课件都完成的庆祝动画 // 所有课件都完成的庆祝动画
console.log("showAllFinish")
this.showAllFinish(); this.showAllFinish();
// 上报一个本节课完成 // 上报一个本节课完成
this.callNetworkApiPost(`/api/kyxq/v1/user/saveend`, { this.callNetworkApiPost(`/api/kyxq/v1/user/saveend`, {
......
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