Quellcode durchsuchen

jifenduihuan——4

xvying vor 1 Jahr
Ursprung
Commit
128047262f
2 geänderte Dateien mit 12 neuen und 9 gelöschten Zeilen
  1. 10 7
      src/views/xuexi/videoDetail.vue
  2. 2 2
      src/views/xuexi/video_detail.vue

+ 10 - 7
src/views/xuexi/videoDetail.vue

@@ -130,7 +130,7 @@ export default {
       activeNames: ["first"],
       player: null,
       videoArr: [],
-      times:''
+      times: "",
     };
   },
   watch: {
@@ -193,10 +193,10 @@ export default {
       }
     },
     async getSetting() {
-      const { data } = await getSetting({ keys: ["SENG_VIDEO_MSG"]});
+      const { data } = await getSetting({ keys: ["SENG_VIDEO_MSG"] });
       console.log(data);
-      this.times = Number(data.SENG_VIDEO_MSG)
-      console.log(this.times)
+      this.times = Number(data.SENG_VIDEO_MSG);
+      console.log(this.times);
     },
     //点击重新播放
     refLook() {
@@ -316,7 +316,10 @@ export default {
       let that = this;
       playTimeInterval = setInterval(function () {
         that.playTime = parseInt(myPlayer.currentTime());
-        if (Math.floor(that.playTime / that.times) > 0 && that.playTime % that.times == 0) {
+        if (
+          Math.floor(that.playTime / that.times) > 0 &&
+          that.playTime % that.times == 0
+        ) {
           that.lookRecord();
           console.log(that.playTime, "that.playTime");
         }
@@ -446,8 +449,8 @@ export default {
     margin: 0;
     padding: 0;
   }
-  position: fixed;
-  top: 145px;
+  // position: fixed;
+  // top: 145px;
   width: 100%;
   background-color: #e5e5e5;
   height: 100%;

+ 2 - 2
src/views/xuexi/video_detail.vue

@@ -193,7 +193,7 @@ export default {
       this.loading = false;
       console.log(data);
       this.course_zhangjie = data.directory;
-      this.lookVideo()
+      this.lookVideo();
       // if (this.videoId) {
       //   this.isLearn = this.videoId;
       //   //this.isLearn = this.video_slug
@@ -463,7 +463,7 @@ export default {
     margin: 0;
     padding: 0;
   }
-  position: fixed;
+  // position: fixed;
   width: 100%;
   background-color: #e5e5e5;
   height: 100%;