|
@@ -1304,7 +1304,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- checkCanLearn() {
|
|
|
+ checkCanLearn(section) {
|
|
|
let time = this.$tools.timest();
|
|
|
let {
|
|
|
interfaceAccountId,
|
|
@@ -1320,7 +1320,7 @@ export default {
|
|
|
console.log(interfaceAccountId,learnStatus,"xzx")
|
|
|
if (interfaceAccountId > 0) {
|
|
|
learnStatus == 1
|
|
|
- ? this.rebuildSubmit(this.goodsData)
|
|
|
+ ? this.rebuildSubmit(this.goodsData, section)
|
|
|
: this.$message({
|
|
|
type: "warning",
|
|
|
message:
|
|
@@ -1352,8 +1352,7 @@ export default {
|
|
|
return index === -1;
|
|
|
},
|
|
|
async studyFunc(courseItem, items) {
|
|
|
- console.log(items);
|
|
|
- if (!this.checkCanLearn()) {
|
|
|
+ if (!this.checkCanLearn(items)) {
|
|
|
return false;
|
|
|
}
|
|
|
if (!(await this.orderTopTobottom(courseItem, items, 99))) {
|
|
@@ -1503,7 +1502,7 @@ export default {
|
|
|
let index = this.courseList.findIndex(
|
|
|
(e) => e.courseId == courseLists.courseId
|
|
|
);
|
|
|
-
|
|
|
+
|
|
|
if (index) {
|
|
|
let prevItem = this.courseList[index - 1]; //上一课
|
|
|
if (prevItem.stuAllNum != prevItem.secAllNum) {
|
|
@@ -1803,13 +1802,17 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- rebuildSubmit(item) {
|
|
|
+ rebuildSubmit(item, section) {
|
|
|
this.$router.push({
|
|
|
path: `/my-course-detail/${item.goodsId}`,
|
|
|
query: {
|
|
|
gradeId: item.gradeId,
|
|
|
orderGoodsId: item.orderGoodsId,
|
|
|
rebuild: 1,
|
|
|
+ courseId: section.courseId,
|
|
|
+ chapterId: section.chapterId,
|
|
|
+ moduleId: section.moduleId,
|
|
|
+ sectionId: section.sectionId || section.menuId,
|
|
|
},
|
|
|
});
|
|
|
},
|