This commit is contained in:
2025-09-04 15:16:40 +08:00
parent 071fb0324e
commit 9753a5481d

View File

@@ -640,6 +640,7 @@ export default {
// 没有写播放时间
onPlayerPlay() {
console.log(`start play`)
this.playerBoxShow = false;
this.isAppendTime = true;
this.appendStudyTime();//启动追加学习时长
@@ -783,7 +784,6 @@ export default {
$this.curContent = c;
}
})
}
this.contentList = rs.result.contents;//内容列表
this.totalContent = rs.result.contents.length;//一共有向个可以播放的内容
@@ -1474,16 +1474,20 @@ export default {
this.appendStartTime = new Date();
//console.log('开始追加学习时长',this.isAppendTime);
if (this.studyId == '') {
console.warn(`this.studyId == ''`, this.studyId)
return;
}
if (!this.curContent.id) {
console.warn(`this.curContent.id`, this.studyId)
return;
}
//清除之前的
if (this.appendHandle != null) {
console.warn(`timer clear`)
window.clearTimeout(this.appendHandle);
}
if (!this.isAppendTime) {
console.warn(`this.isAppendTime` , false)
return;
}
//启动下次追加学习时长