Browse Source

Merge branch 'iteration_0310' into jenkins

lex 1 year ago
parent
commit
351b39ca68
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/student/pre-register-active/video.tsx

+ 2 - 1
src/student/pre-register-active/video.tsx

@@ -215,6 +215,7 @@ export default defineComponent({
           // console.log(tempTime, 'tempTime', moreTime.value)
           // 处理在短时间内的时间差 【视屏拖动,点击可能会导致时间差太大】
           const diffTime = tempTime[1] - tempTime[0] - currentTimer.counter.value > 2
+          // console.log(diffTime, 'diffTime', currentTimer.counter.value, 'value')
           // 结束时间,如果 大于开始时间则清除
           if (tempTime[1] >= tempTime[0] && !diffTime) moreTime.value.push(tempTime)
           tempTime = []
@@ -234,7 +235,7 @@ export default defineComponent({
         const videoDuration = forms.player.duration
         // 判断如何视屏播放时间大于视屏播放有效时间则说明数据有问题,进行重置数据
         if (time > videoCountTime && time < videoDuration) {
-          time = videoDuration
+          time = videoCountTime
         }
         const rate = Math.floor((time / Math.floor(videoDuration)) * 100)