소스 검색

更新链接

lex 2 년 전
부모
커밋
d81823db61
1개의 변경된 파일18개의 추가작업 그리고 18개의 파일을 삭제
  1. 18 18
      src/student/pre-register-active/video.tsx

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

@@ -122,14 +122,14 @@ export default defineComponent({
         forms.player.currentTime = forms.videoBrowsePoint
       })
 
-      forms.player.on('seeking', (val: any) => {
-        console.log('seeking')
-      })
+      // forms.player.on('seeking', (val: any) => {
+      //   console.log('seeking')
+      // })
 
-      // // 拖动结束时
-      forms.player.on('seeked', (val: any) => {
-        console.log('seeked')
-      })
+      // // // 拖动结束时
+      // forms.player.on('seeked', (val: any) => {
+      //   console.log('seeked')
+      // })
 
       // 正在搜索中
       forms.player.on('waiting', () => {
@@ -243,24 +243,24 @@ export default defineComponent({
         forms.intervalFnRef?.pause()
         // 页面计时暂停
         pageTimer.pause()
-        // await updateStat()
-
-        // window.location.href =
-        //   window.location.origin +
-        //   window.location.pathname +
-        //   'preRegister.html?' +
-        //   qs.stringify({
-        //     orchestraId: forms.orchestraId,
-        //     openId: forms.openId
-        //   })
+        await updateStat()
 
         window.location.href =
           window.location.origin +
-          '/project/preRegister.html?' +
+          window.location.pathname +
+          'preRegister.html?' +
           qs.stringify({
             orchestraId: forms.orchestraId,
             openId: forms.openId
           })
+
+        // window.location.href =
+        //   window.location.origin +
+        //   '/project/preRegister.html?' +
+        //   qs.stringify({
+        //     orchestraId: forms.orchestraId,
+        //     openId: forms.openId
+        //   })
       } catch (e) {
         console.log(e, 'e')
         // 还原