xuqiaoying 2 жил өмнө
parent
commit
a743cf8f96

+ 4 - 4
components/course/courseChapter.vue

@@ -26,8 +26,8 @@
             :levelId="levelId + '-' + itemM.sectionId"
             :testType="2"
             :ChapterSectionExam='sectionExam'
-            @togoBack='togoBack()'
           ></courseSection>
+          <!-- @togoBack='togoBack()' -->
           <u-line v-if="indexM < list.length - 1"></u-line>
         </view>
         <view v-if="itemM.type == 2">
@@ -161,9 +161,9 @@ export default {
   methods: {
     ...mapMutations(["updateChapterOpen"]),
     // 调用节的方法
-    togoBack(value) {
-      this.$refs.ChapterSection[0].ChapterExam()
-    },
+    // togoBack(value) {
+    //   this.$refs.ChapterSection[0].ChapterExam()
+    // },
     goodsTodayStudySectionNum() {
       return new Promise((resolve) => {
         this.$api

+ 7 - 2
components/course/courseSection.vue

@@ -229,7 +229,12 @@ export default {
 			
 		},
 		toDoSectionExam() {
-			this.$emit('togoBack', 1)
+			// this.$emit('togoBack', 1)
+			if (this.testType == 3) {
+				this.ModuleExam()
+			} else {
+				this.ChapterExam()
+			}
 		},
 		checkTest() {
 			let data = this.testType == 3 ? this.moduleSectionExam : this.ChapterSectionExam
@@ -298,7 +303,7 @@ export default {
 			})
 		},
 		async getVideo(){
-			
+			console.log('this.menuItem:', this.menuItem);
 			if(this.clickLock) {
 				return;
 			}

+ 4 - 4
pages3/polyv/detail.vue

@@ -189,9 +189,9 @@
                 :levelId="'0-0-' + item.menuId"
                 :goodsType='1'
                 :testType="3"
-                @togoBack="togoBack($event)"
               ></courseSection
             ></view>
+            <!-- @togoBack="togoBack($event)" -->
           </view>
         </view>
         <!--讲义 -->
@@ -805,9 +805,9 @@ export default {
   methods: {
     ...mapMutations(["updateChapterOpen","updateLiveLast"]),
     // 调用节的方法
-    togoBack(value) {
-      this.$refs.MoudleSection[0].ModuleExam()
-    },
+    // togoBack(value) {
+    //   this.$refs.MoudleSection[0].ModuleExam()
+    // },
     // 新增微信公众号模板消息点击数据
     clickOfficial() {
       this.$http({