mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
add warn
This commit is contained in:
@@ -640,6 +640,7 @@ export default {
|
|||||||
|
|
||||||
// 没有写播放时间
|
// 没有写播放时间
|
||||||
onPlayerPlay() {
|
onPlayerPlay() {
|
||||||
|
console.log(`start play`)
|
||||||
this.playerBoxShow = false;
|
this.playerBoxShow = false;
|
||||||
this.isAppendTime = true;
|
this.isAppendTime = true;
|
||||||
this.appendStudyTime();//启动追加学习时长
|
this.appendStudyTime();//启动追加学习时长
|
||||||
@@ -783,7 +784,6 @@ export default {
|
|||||||
$this.curContent = c;
|
$this.curContent = c;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
this.contentList = rs.result.contents;//内容列表
|
this.contentList = rs.result.contents;//内容列表
|
||||||
this.totalContent = rs.result.contents.length;//一共有向个可以播放的内容
|
this.totalContent = rs.result.contents.length;//一共有向个可以播放的内容
|
||||||
@@ -1474,16 +1474,20 @@ export default {
|
|||||||
this.appendStartTime = new Date();
|
this.appendStartTime = new Date();
|
||||||
//console.log('开始追加学习时长',this.isAppendTime);
|
//console.log('开始追加学习时长',this.isAppendTime);
|
||||||
if (this.studyId == '') {
|
if (this.studyId == '') {
|
||||||
|
console.warn(`this.studyId == ''`, this.studyId)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.curContent.id) {
|
if (!this.curContent.id) {
|
||||||
|
console.warn(`this.curContent.id`, this.studyId)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//清除之前的
|
//清除之前的
|
||||||
if (this.appendHandle != null) {
|
if (this.appendHandle != null) {
|
||||||
|
console.warn(`timer clear`)
|
||||||
window.clearTimeout(this.appendHandle);
|
window.clearTimeout(this.appendHandle);
|
||||||
}
|
}
|
||||||
if (!this.isAppendTime) {
|
if (!this.isAppendTime) {
|
||||||
|
console.warn(`this.isAppendTime` , false)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//启动下次追加学习时长
|
//启动下次追加学习时长
|
||||||
|
|||||||
Reference in New Issue
Block a user