|
@@ -3352,7 +3352,6 @@ export default {
|
|
|
},
|
|
|
//校验节是否有试卷
|
|
|
checkSection(item) {
|
|
|
- console.log(this.sectionExam, item, "00000000");
|
|
|
if (this.sectionExam.length == 0) {
|
|
|
return false;
|
|
|
}
|
|
@@ -5560,7 +5559,6 @@ export default {
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
if (section.type != 2) {
|
|
|
if (this.clickLock) {
|
|
|
return;
|
|
@@ -5579,12 +5577,11 @@ export default {
|
|
|
this.clickLock = false;
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
if (this.businessData.goodsLearningOrder == 2 && !section.isRebuild) {
|
|
|
//要按从头到尾顺序学习, 且不是重修课程
|
|
|
|
|
|
let rows = await this.studyRecordMenuAllList();
|
|
|
- if (!this.hasPreItem(rows, section)) {
|
|
|
+ if (this.hasPreItem(rows, section)) {
|
|
|
//判断是否有上一节
|
|
|
let newRows = [];
|
|
|
for (let i = 0; i < rows.length; i++) {
|
|
@@ -5608,7 +5605,6 @@ export default {
|
|
|
let isAllLearn = newRows.every((item) => {
|
|
|
return item.studyStatus == 1;
|
|
|
});
|
|
|
-
|
|
|
if (isAllLearn) {
|
|
|
this.initVideo(section);
|
|
|
} else {
|
|
@@ -5665,7 +5661,6 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (index == 0) {
|
|
|
return false;
|
|
|
} else {
|