feat: 更新视频播放器功能并修复多个问题

- 升级edu-core依赖至v1.0.8
- 新增测试页面路由配置
- 修复订单页面Android平台专属支付按钮逻辑
- 优化视频播放器组件,增加倍速播放配置和控件显示逻辑
- 修复iOS平台视频封面显示问题
- 改进全屏模式处理逻辑
- 优化进度条和控制栏交互体验
- 修复DOM元素查找延迟问题
- 移除课程详情页冗余刷新逻辑
This commit is contained in:
2026-03-03 16:01:58 +08:00
parent a67874754f
commit 5200c73bc5
14 changed files with 420 additions and 143 deletions

View File

@@ -67,7 +67,6 @@ export default {
secondCountDown: 10,
isFullScreen: false,
screenLoading: false,
isfresh: false,
currentCateIndex: 0,
currentVideo: {},
videoList: {},
@@ -167,18 +166,7 @@ export default {
this.screenLoading = status;
},
initVideo() {
this.changeVideoLock = true
this.screenLoading = false;
this.isfresh = false;
this.$nextTick(() => {
this.isfresh = true;
// setTimeout(() => {
// this.$refs.commonVideo.init({
// currentVideo: this.currentVideo,
// currentVideoList: this.videoArray,
// });
// }, 200);
});
},
changeScreen(status) {
this.isFullScreen = status;
@@ -189,20 +177,8 @@ export default {
this.$forceUpdate();
},
handleFresh(status) {
this.isfresh = status;
this.$forceUpdate();
},
changeVideo(data) {
if (data.id != this.currentVideo.id) {
this.isfresh = false;
this.$nextTick(() => {
this.currentVideo = data;
this.currentVideoId = data.id;
this.initVideo()
this.isfresh = true;
});
}
},
hancleModalCancel() {
this.show = false;
},
@@ -227,7 +203,6 @@ export default {
}));
},
async getCourseDescriptionData() {
this.isfresh = false;
var data = {
id: this.options.id,
load: false,
@@ -245,12 +220,12 @@ export default {
that.curriculumData = res.data.detail;
that.videoArray = res.data.videos;
console.log('视频数据列表', that.videoArray)
console.log('章节详情', res.data)
if (that.videoArray.length > 0) {
that.convertToPlayerList();
that.currentVideo = that.videoArray[0];
that.currentVideoId = that.videoArray[0].id;
that.currentVideoId = res.data.current || that.videoArray[0].id;
that.initVideo()
that.isfresh = true;
}
});
},