mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
bug
This commit is contained in:
@@ -1109,11 +1109,11 @@
|
|||||||
|
|
||||||
onPlayerPlay() {
|
onPlayerPlay() {
|
||||||
//console.log("开始播放");
|
//console.log("开始播放");
|
||||||
if(this.contentData.contentType == 10){
|
// if(this.contentData.contentType == 10){
|
||||||
if(this.contentData.status<2){
|
// if(this.contentData.status<2){
|
||||||
this.contentData.status = 2;
|
// this.contentData.status = 2;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
this.playerBoxShow = false;
|
this.playerBoxShow = false;
|
||||||
let $this = this;
|
let $this = this;
|
||||||
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
||||||
@@ -1216,6 +1216,7 @@
|
|||||||
audioPlaying(item, currentTime) {
|
audioPlaying(item, currentTime) {
|
||||||
//console.log("当前播放"+item);
|
//console.log("当前播放"+item);
|
||||||
let intTime = parseInt(currentTime);
|
let intTime = parseInt(currentTime);
|
||||||
|
this.handleAudioTimeUpdate(intTime)
|
||||||
//判断是否完成
|
//判断是否完成
|
||||||
let completeType = this.curriculumData.completeSetup;
|
let completeType = this.curriculumData.completeSetup;
|
||||||
let completeSecond = this.curriculumData.second;
|
let completeSecond = this.curriculumData.second;
|
||||||
@@ -1255,9 +1256,9 @@
|
|||||||
},
|
},
|
||||||
audioPlay() {
|
audioPlay() {
|
||||||
//console.log("开始播放");
|
//console.log("开始播放");
|
||||||
if(this.contentData.contentType == 20 && this.contentData.status < 2){
|
// if(this.contentData.contentType == 20 && this.contentData.status < 2){
|
||||||
this.contentData.status = 2;
|
// this.contentData.status = 2;
|
||||||
}
|
// }
|
||||||
let $this = this;
|
let $this = this;
|
||||||
this.isAppendTime=true;
|
this.isAppendTime=true;
|
||||||
this.appendStudyTime();//启动追加学习时长
|
this.appendStudyTime();//启动追加学习时长
|
||||||
@@ -1453,9 +1454,11 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveStudyInfo() {
|
saveStudyInfo() {
|
||||||
if(this.isContentType != this.contentData.contentType){
|
if(this.isContentType){
|
||||||
//定时器产生的,不记录
|
if(this.isContentType != this.contentData.contentType){
|
||||||
return
|
//定时器产生的,不记录
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//记录课件学习信息
|
//记录课件学习信息
|
||||||
if (this.contentData.contentType >= 60) {
|
if (this.contentData.contentType >= 60) {
|
||||||
@@ -1713,8 +1716,12 @@
|
|||||||
status: 2,
|
status: 2,
|
||||||
contentTotal: this.totalContent
|
contentTotal: this.totalContent
|
||||||
};
|
};
|
||||||
if(currentTime > 2 && this.trueFalse && this.contentData.contentType == 10){
|
if(currentTime > 2 && this.trueFalse){
|
||||||
apiStudy.studyContent(params)
|
apiStudy.studyContent(params).then(()=>{
|
||||||
|
if(this.contentData.status<2){
|
||||||
|
this.contentData.status = 2;
|
||||||
|
}
|
||||||
|
})
|
||||||
this.trueFalse = false
|
this.trueFalse = false
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user