|  | @@ -3,7 +3,7 @@
 | 
	
		
			
				|  |  |   * @Author: 空白格
 | 
	
		
			
				|  |  |   * @Date: 2022-08-24 13:48:47
 | 
	
		
			
				|  |  |   * @LastEditors: 空白格
 | 
	
		
			
				|  |  | - * @LastEditTime: 2022-12-16 11:53:22
 | 
	
		
			
				|  |  | + * @LastEditTime: 2023-04-19 11:26:38
 | 
	
		
			
				|  |  |   * @FilePath: \veterans_client_web\src\components\CourseVideo\index.vue
 | 
	
		
			
				|  |  |   * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
 | 
	
		
			
				|  |  |  -->
 | 
	
	
		
			
				|  | @@ -104,12 +104,12 @@ export default {
 | 
	
		
			
				|  |  |        this.videoInfo.playedTime =
 | 
	
		
			
				|  |  |          this.courseDetails.chapterList[0].playDuration;
 | 
	
		
			
				|  |  |        this.isPay = true;
 | 
	
		
			
				|  |  | -      this.$nextTick(() => {
 | 
	
		
			
				|  |  | -        let video = document.getElementById("myVideo");
 | 
	
		
			
				|  |  | -        video.onpause = () => {
 | 
	
		
			
				|  |  | -          this.submitVideoDuration();
 | 
	
		
			
				|  |  | -        };
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +      // this.$nextTick(() => {
 | 
	
		
			
				|  |  | +      //   let video = document.getElementById("myVideo");
 | 
	
		
			
				|  |  | +      //   video.onpause = () => {
 | 
	
		
			
				|  |  | +      //     this.submitVideoDuration();
 | 
	
		
			
				|  |  | +      //   };
 | 
	
		
			
				|  |  | +      // });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
	
		
			
				|  | @@ -204,15 +204,21 @@ export default {
 | 
	
		
			
				|  |  |                this.isPay = true;
 | 
	
		
			
				|  |  |                this.videoInfo.playedTime = item.playDuration;
 | 
	
		
			
				|  |  |                this.videoInfo.initial_time = item.currentDuration;
 | 
	
		
			
				|  |  | -              this.$nextTick(() => {
 | 
	
		
			
				|  |  | -                let video = document.getElementById("myVideo");
 | 
	
		
			
				|  |  | -                video.onpause = () => {
 | 
	
		
			
				|  |  | -                  this.submitVideoDuration();
 | 
	
		
			
				|  |  | -                };
 | 
	
		
			
				|  |  | -              });
 | 
	
		
			
				|  |  | +              // this.$nextTick(() => {
 | 
	
		
			
				|  |  | +              //   let video = document.getElementById("myVideo");
 | 
	
		
			
				|  |  | +              //   video.onpause = () => {
 | 
	
		
			
				|  |  | +              //     this.submitVideoDuration();
 | 
	
		
			
				|  |  | +              //   };
 | 
	
		
			
				|  |  | +              // });
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.$emit("changeClasses", item);
 | 
	
		
			
				|  |  | +        this.currentClasses = item;
 | 
	
		
			
				|  |  | +        this.isPay = true;
 | 
	
		
			
				|  |  | +        this.videoInfo.playedTime = item.playDuration;
 | 
	
		
			
				|  |  | +        this.videoInfo.initial_time = item.currentDuration;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 |