xuqiaoying 2 years ago
parent
commit
c44a36fbcc
1 changed files with 5 additions and 9 deletions
  1. 5 9
      pages3/polyv/detail.vue

+ 5 - 9
pages3/polyv/detail.vue

@@ -846,19 +846,14 @@ export default {
     this.$store.getters.dictObj;
   },
   onUnload() {
-    console.log('onUnloadonUnloadonUnload');
     this.originUnload()
+    this.clears()
   },
   onHide() {
-    console.log('onHideonHideonHideonHide');
     this.originUnload()
   },
   mounted() {
   },
-  beforeDestroy() {
-    console.log('beforeDestroy');
-    this.originUnload()
-  },
   methods: {
     ...mapMutations(["updateChapterOpen","updateLiveLast"]),
     // 新增微信公众号模板消息点击数据
@@ -3346,12 +3341,12 @@ export default {
         });
 
         polyvPlayerContext = this.player
-        console.log('this.player:', this.player, 'polyvPlayerContext:', polyvPlayerContext)
+        console.log('this.player:', this.player)
 
-        this.postStudyRecord(0)
         this.player.on("s2j_onPlayStart", (vid) => { // 视频初次播放时触发
           console.log('视频初次播放时触发:');
           this.loadedmetadata()
+          this.postStudyRecord(0)
         });
 
         this.player.on("s2j_onVideoPause", () => { // 视频暂停时触发
@@ -3365,6 +3360,7 @@ export default {
           if (this.needSeek) {
             if (this.recordObj.videoCurrentTime) {
               this.seekTime = this.$method.secondToDate(this.recordObj.videoCurrentTime)
+              
               this.videoToastShow = true
               this.toastTimer = setTimeout(() => {
                 this.videoToastShow = false
@@ -4157,7 +4153,7 @@ page {
     font-size: 26rpx;
     align-items: center;
     overflow: visible;
-
+    z-index: 999;
     &__text {
       flex: 1;
       margin-left: 40rpx;