mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
Merge branch 'boe_0701_icon' into dev0515
This commit is contained in:
@@ -369,6 +369,8 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isContentTypeTwo: null,
|
||||
isContentType: null,
|
||||
activeId: '',
|
||||
isFalse: false,
|
||||
defaultOpeneds: [],
|
||||
@@ -753,9 +755,10 @@
|
||||
}
|
||||
if (this.contentData.status < 2) {
|
||||
// this.contentData.status = 2; //进行中
|
||||
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
||||
setTimeout(() => {
|
||||
this.contentData.status = 2;
|
||||
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
||||
setTimeout(() => {
|
||||
this.isContentTypeTwo = r.contentType
|
||||
$this.isShowTime()
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
@@ -786,6 +789,7 @@
|
||||
$this.appendStudyOtherTime();
|
||||
}, 15000); //非音视频课程学习,十五秒后记录
|
||||
//this.appendStudyTime();
|
||||
this.isContentType = this.contentData.contentType
|
||||
if (this.contentData.contentType != 50) {
|
||||
this.handleTimeout = setTimeout(function(){
|
||||
$this.saveStudyInfo();
|
||||
@@ -814,6 +818,12 @@
|
||||
//console.log(h,$this.controlHeight,'$this.controlHeight');
|
||||
})
|
||||
},
|
||||
isShowTime(){
|
||||
if(this.isContentTypeTwo != this.contentData.contentType){
|
||||
return
|
||||
}
|
||||
this.contentData.status = 2;
|
||||
},
|
||||
showRes(r, i, index,item) { //i:子节下标,index:章下标
|
||||
// 无权限查看不能点击
|
||||
if(!this.isCrowd){
|
||||
@@ -1503,6 +1513,10 @@
|
||||
});
|
||||
},
|
||||
saveStudyInfo() {
|
||||
if(this.isContentType != this.contentData.contentType){
|
||||
//定时器产生的,不记录
|
||||
return
|
||||
}
|
||||
//记录课件学习信息
|
||||
if (this.contentData.contentType >= 60) {
|
||||
//只有在课件页面停留超过5秒才会记录
|
||||
|
||||
Reference in New Issue
Block a user