mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
Merge branch 'boe_0701_icon' into dev0515
This commit is contained in:
@@ -1129,11 +1129,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;
|
||||||
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
||||||
@@ -1267,6 +1267,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;
|
||||||
@@ -1314,9 +1315,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();//启动追加学习时长
|
||||||
@@ -1513,10 +1514,12 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveStudyInfo() {
|
saveStudyInfo() {
|
||||||
|
if(this.isContentType){
|
||||||
if(this.isContentType != this.contentData.contentType){
|
if(this.isContentType != this.contentData.contentType){
|
||||||
//定时器产生的,不记录
|
//定时器产生的,不记录
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//记录课件学习信息
|
//记录课件学习信息
|
||||||
if (this.contentData.contentType >= 60) {
|
if (this.contentData.contentType >= 60) {
|
||||||
//只有在课件页面停留超过5秒才会记录
|
//只有在课件页面停留超过5秒才会记录
|
||||||
@@ -1773,8 +1776,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