Browse Source

Merge branch 'iteration_0310' into jenkins

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

+ 5 - 5
src/student/pre-register-active/video.tsx

@@ -230,13 +230,13 @@ export default defineComponent({
     const updateStat = async (pageBrowseTime = 10) => {
       try {
         const videoBrowseData = moreTime.value.length > 0 ? formatEffectiveTime(moreTime.value) : []
-        let time = moreTime.value.length > 0 ? formatTimer(moreTime.value) : 0
-        const videoCountTime = videoIntervalRef?.counter.value
+        const time = moreTime.value.length > 0 ? formatTimer(moreTime.value) : 0
+        // const videoCountTime = videoIntervalRef?.counter.value
         const videoDuration = forms.player.duration
         // 判断如何视屏播放时间大于视屏播放有效时间则说明数据有问题,进行重置数据
-        if (time > videoCountTime && time < videoDuration) {
-          time = videoCountTime
-        }
+        // if (time > videoCountTime && time < videoDuration) {
+        //   time = videoCountTime
+        // }
         const rate = Math.floor((time / Math.floor(videoDuration)) * 100)
 
         await request.post('/api-student/open/studentBrowseRecord/updateStat', {