Эх сурвалжийг харах

Merge branch 'master' of https://gitee.com/he2802/saas_applet

chenxiong 3 жил өмнө
parent
commit
20f6a2e49e

+ 7 - 2
pages3/polyv/detail.vue

@@ -556,10 +556,15 @@ export default {
 			  this.timer = setInterval(this.timeEventLiving, 1000); //定时器
 		    }
 		    if (status === 'end') {
+				if(this.livePlay){
+					//只有播放过的结束才提交,避免未开播触发结束
+					this.postStudyRecord(1);
+				}
+				 console.log('结束直播');
 				this.livePlay = false
 		      // 未开始
-		      console.log('结束直播');
-			  this.postStudyRecord(1);
+		     
+			  
 		    }
 		},
 		closePlv(){