mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 10:26:45 +08:00
add warn
This commit is contained in:
@@ -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;
|
||||
}
|
||||
//启动下次追加学习时长
|
||||
|
||||
Reference in New Issue
Block a user