wangguoyu 10 月之前
父节点
当前提交
7bbd353528
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      pages/study/lookShipin.vue

+ 5 - 5
pages/study/lookShipin.vue

@@ -72,7 +72,7 @@
 			this.videoId = data.videoId
 			this.progressMarkers = data.progressMarkers
 			this.getLive(); //获取播放凭证
-			uni.$on('playEnd', this.playEnd);
+			//uni.$on('playEnd', this.playEnd);
 		},
 		methods: {
 			playEnd(data) {
@@ -228,10 +228,10 @@
 
 				});
 				player.one('ended', function() {
-				
-					uni.$emit('playEnd', {
-						data: 'end'
-					});
+				that.$ownerInstance.callMethod('playEnd', {data:'end'})
+					// uni.$emit('playEnd', {
+					// 	data: 'end'
+					// });
 				});
 			},