谢杰标 2 lat temu
rodzic
commit
7aa979c78d
1 zmienionych plików z 10 dodań i 9 usunięć
  1. 10 9
      pages3/polyv/detail.vue

+ 10 - 9
pages3/polyv/detail.vue

@@ -961,7 +961,7 @@ export default {
       }
     },
   },
-  onLoad(option) {
+  async onLoad(option) {
     if (option.isOther) {
       this.showMark = true;
       return;
@@ -974,8 +974,6 @@ export default {
     this.option = option;
     // 公众号模板消息的数据埋点
     option.informId && this.clickOfficial(option.informId);
-  },
-  async onShow() {
     if (this.option.skipPort) {
       await this.$method.skipLogin(this.option.skipPort);
     }
@@ -984,6 +982,9 @@ export default {
     }
     this.courseCourseList();
   },
+  async onShow() {
+    console.log('12123123')
+  },
   onUnload() {
     console.log("onUnloadonUnloadonUnloadonUnload");
     this.originUnload();
@@ -1012,7 +1013,7 @@ export default {
       // /course/courseList查询商品下的课程列表
       this.courseList = [];
       this.menuList = [];
-      this.photoConfig = false
+      this.photoConfig = false;
       this.$api
         .courseCourseList({
           pageNum: 1,
@@ -1185,7 +1186,7 @@ export default {
                 }
               },
             });
-            this.clearPauseTimer()
+            this.clearPauseTimer();
           }
         }, 5000);
       }
@@ -1309,7 +1310,7 @@ export default {
       });
       this.updateChapterOpen(true);
     },
-    clearPauseTimer(){
+    clearPauseTimer() {
       if (this.pauseTimer) {
         clearInterval(this.pauseTimer);
         this.pauseTimer = null;
@@ -1336,7 +1337,7 @@ export default {
         clearInterval(this.studyTimer);
         this.hasStart = false;
       }
-      this.clearPauseTimer()
+      this.clearPauseTimer();
       if (this.barTimer) {
         clearInterval(this.barTimer);
         this.barTimer = null;
@@ -3085,7 +3086,7 @@ export default {
         //开始播放
         this.timer && clearInterval(this.timer);
         if (this.playSecIsLearn && (this.erJianErZao || this.photoNum > 0)) {
-          this.clearPauseTimer()
+          this.clearPauseTimer();
           this.timer = setInterval(this.timeEvent, 1000); //定时器
         }
       }
@@ -3800,7 +3801,7 @@ export default {
           //开始播放
           this.timer && clearInterval(this.timer);
           if (this.playSecIsLearn && (this.erJianErZao || this.photoNum > 0)) {
-            this.clearPauseTimer()
+            this.clearPauseTimer();
             this.timer = setInterval(this.timeEvent, 1000); //定时器
           }