|
@@ -170,10 +170,10 @@ export default {
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
// console.log('needOpen:', this.needOpen, this.chapterOpen);
|
|
|
- if (this.needOpen && this.chapterOpen) {
|
|
|
- this.updateChapterOpen(false);
|
|
|
- this.openChapter(this.menuItem);
|
|
|
- }
|
|
|
+ // if (this.needOpen && this.chapterOpen) {
|
|
|
+ // this.updateChapterOpen(false);
|
|
|
+ // this.openChapter(this.menuItem);
|
|
|
+ // }
|
|
|
},
|
|
|
onPageShow() {
|
|
|
if (this.isBuy) {
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
// console.log('---zhang',this.menuItem, this.down, item.courseId, item.moduleId);
|
|
|
this.down = !this.down;
|
|
|
if (!this.down && this.list.length == 0) {
|
|
|
- // console.log(item.id, 69);
|
|
|
+ console.log(item.id, 69);
|
|
|
//获取章下面所有节试卷列表-course/sectionExamList
|
|
|
|
|
|
this.$method.isLogin() &&
|
|
@@ -743,6 +743,24 @@ export default {
|
|
|
return isAllLearn ? 1 : -1;
|
|
|
},
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ courseId: {
|
|
|
+ handler(val) {
|
|
|
+ console.log(
|
|
|
+ "🚀 ~ file: courseChapter.vue:749 ~ handler ~ val:",
|
|
|
+ val,
|
|
|
+ this.needOpen
|
|
|
+ );
|
|
|
+ if (this.needOpen) {
|
|
|
+ this.down = true;
|
|
|
+ this.list = [];
|
|
|
+ this.updateChapterOpen(false);
|
|
|
+ this.openChapter(this.menuItem);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|