Kaynağa Gözat

新增群聊通用链接

XSLu08042 4 gün önce
ebeveyn
işleme
7bdc3855fa
1 değiştirilmiş dosya ile 13 ekleme ve 3 silme
  1. 13 3
      pages_course/video.vue

+ 13 - 3
pages_course/video.vue

@@ -667,7 +667,6 @@
 							this.isFinish = res.isFinish || 0
 							this.duration = res.course && res.course.duration ? res.course.duration : 0
 							this.playDuration = res.playDuration || 0
-							this.playDurationSeek = res.playDuration || 0
 							this.tipsTime = res.tipsTime || 0
 							let lineList = []
 							if (res.course && res.course.lineOne) {
@@ -708,6 +707,7 @@
 								// this.options.poster = res.course && res.course.imgUrl ? res.course.imgUrl : ''
 								// this.initVideo()
 								this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								setTimeout(()=>{
 									this.player = uni.createVideoContext('video-content-box');
 									this.player.seek(this.playTime)
@@ -723,6 +723,7 @@
 								// 	}
 								// }
 								this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								this.player.seek(this.playTime)
 								this.player.play();
 							}
@@ -979,11 +980,20 @@
 							this.isCheckRealUrl = false
 							this.goLogin()
 						} else if (res.code == 566) {
-							this.isAddKf = 1
-							this.isCheckRealUrl = true
 							// 官方群发通用链接
 							const url = res.courseLink.realLink.split('?course=')[1]
 							this.urlOption = JSON.parse(url)
+							this.isAddKf = 1
+							this.isCheckRealUrl = true
+							this.getH5CourseVideoDetails()
+						} else if (res.code == 567) {
+							// 群聊通用链接
+							this.urlOption = {
+								...this.urlOption,
+								qwExternalId: res.qwExternalId
+							}
+							this.isAddKf = 1
+							this.isCheckRealUrl = true
 							this.getH5CourseVideoDetails()
 						} else {
 							this.isCheckRealUrl = false