wangguoyu há 3 semanas atrás
pai
commit
b5d4c5df90
1 ficheiros alterados com 15 adições e 16 exclusões
  1. 15 16
      pages/client/Kecheng/study.vue

+ 15 - 16
pages/client/Kecheng/study.vue

@@ -294,23 +294,22 @@
 				console.log('data', data);
 				this.curPlayData = data;
 				
-				this.videoUrl = 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4'
+				//this.videoUrl = 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4'
 				
-				// kechengApi.getVideoId({
-				// 	videoId: data.url
-				// }).then(res => {
-
-				// 	this.videoUrl = res.data
-				// 	console.log('res', res);
-				// 	// const progress = data.curProcess || 0;
-				// 	// this.$refs.videoRef.init({
-				// 	// 	videoId: data.url,
-				// 	// 	playAuth: res.data,
-				// 	// 	seekTime: data.duration * progress / 100,
-				// 	// 	isPlay: false
-				// 	// })
-
-				// })
+				kechengApi.getVideoId({
+					videoId: data.url
+				}).then(res => {
+					this.videoUrl = res.data
+					console.log('res', res);
+					// const progress = data.curProcess || 0;
+					// this.$refs.videoRef.init({
+					// 	videoId: data.url,
+					// 	playAuth: res.data,
+					// 	seekTime: data.duration * progress / 100,
+					// 	isPlay: false
+					// })
+
+				})
 			},
 			initFirstVideo() {