Pārlūkot izejas kodu

线上研修 章节不能标记

XW 3 gadi atpakaļ
vecāks
revīzija
b48c790b85
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      TEAMModelOS/ClientApp/src/view/jyzx/index.vue

+ 4 - 1
TEAMModelOS/ClientApp/src/view/jyzx/index.vue

@@ -1213,6 +1213,8 @@ export default {
                                 && abily.taskId === this.topChapterId && abily.nodeId === this.chapterId
                     })
                     if(ablIndex === -1) {
+                        this.studyVideoNum += 1
+                        console.log(this.studyVideoNum, "这个资源还没有存===================================");
                         if(zhiyuan.type === "video") {
                             this.fileRcd.push({
                                 abilityId: this.pointList[this.activePointIndex].id,
@@ -1464,7 +1466,8 @@ export default {
             ) {
                 if(e.target.id !== this.videoEle) return
                 // 不能前进
-                if(e.target.currentTime - this.currentTime > 1) {
+
+                if (e.target.currentTime - this.currentTime > 1) {
                     // 判断前一秒和后一秒的视频时间差大于一秒的话,就让进度设置成前一秒的进度
                     var video = document.getElementById(e.target.id);
                     video.currentTime = this.currentTime