mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
清除无用注释,影响排查要搜索修改的代码
This commit is contained in:
@@ -467,7 +467,6 @@
|
|||||||
this.stopStudyTime();//先关闭
|
this.stopStudyTime();//先关闭
|
||||||
this.cleanAppendTime();//
|
this.cleanAppendTime();//
|
||||||
this.loadData();
|
this.loadData();
|
||||||
//console.log(this.$xpage.constants.fileBaseUrl,'this.$xpage.constants.fileBaseUrl');
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
@@ -593,7 +592,6 @@
|
|||||||
this.onPlayerPause()
|
this.onPlayerPause()
|
||||||
//this.audioPause();
|
//this.audioPause();
|
||||||
this.contentData.lastStudyTime=time;
|
this.contentData.lastStudyTime=time;
|
||||||
//this.onPlayerPlay();
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$this.$refs.myVideoPlayer.startPlay(time);
|
$this.$refs.myVideoPlayer.startPlay(time);
|
||||||
}, 10)
|
}, 10)
|
||||||
@@ -610,7 +608,6 @@
|
|||||||
if(toResContent){
|
if(toResContent){
|
||||||
|
|
||||||
this.changePlayRes(toResContent);
|
this.changePlayRes(toResContent);
|
||||||
//this.onPlayerPlay();
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$this.$refs.myVideoPlayer.startPlay(time);
|
$this.$refs.myVideoPlayer.startPlay(time);
|
||||||
}, 10)
|
}, 10)
|
||||||
@@ -1138,31 +1135,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onPlayerPlay() {
|
onPlayerPlay() {
|
||||||
//console.log("开始播放");
|
|
||||||
// if(this.contentData.contentType == 10){
|
|
||||||
// if(this.contentData.status<2){
|
|
||||||
// this.contentData.status = 2;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
this.playerBoxShow = false;
|
this.playerBoxShow = false;
|
||||||
// this.onPlayerPlayFullscreen()
|
|
||||||
// this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
|
||||||
let $this = this;
|
let $this = this;
|
||||||
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
||||||
this.isAppendTime=true;
|
this.isAppendTime=true;
|
||||||
this.appendStudyTime();//启动追加学习时长
|
this.appendStudyTime();//启动追加学习时长
|
||||||
//console.log(this.contentData.status,'this.contentData.status');
|
|
||||||
// if(this.contentData.status<9){
|
|
||||||
// let completeType=this.curriculumData.completeSetup;
|
|
||||||
// //console.log(completeType,'completeType');
|
|
||||||
// if(completeType==0){
|
|
||||||
// //默认5秒后学习完成.
|
|
||||||
// $this.handleTimeout= setTimeout(function() {$this.saveStudyInfo();}, 5000); //5秒后记录学习完成
|
|
||||||
// }else{
|
|
||||||
// //先记录进行中的学习内容
|
|
||||||
// this.saveStudyItem();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onFullscreen(full) {
|
onFullscreen(full) {
|
||||||
@@ -1194,7 +1171,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPlayerPause() {
|
onPlayerPause() {
|
||||||
//console.log("暂停");
|
|
||||||
this.stopStudyTime();
|
this.stopStudyTime();
|
||||||
},
|
},
|
||||||
onPlayerEnded() {
|
onPlayerEnded() {
|
||||||
@@ -1207,8 +1183,6 @@
|
|||||||
onPlayerPlaying(itme) {
|
onPlayerPlaying(itme) {
|
||||||
this.isAppendTime = true;//可以追加学习时长
|
this.isAppendTime = true;//可以追加学习时长
|
||||||
this.intTimeNote = parseInt(itme);
|
this.intTimeNote = parseInt(itme);
|
||||||
//console.log("当前播放"+itme);
|
|
||||||
//console.log("当前播放11"+itme);
|
|
||||||
if (this.contentData.contentType && this.contentData.contentType == 10) {
|
if (this.contentData.contentType && this.contentData.contentType == 10) {
|
||||||
let intTime = parseInt(itme);
|
let intTime = parseInt(itme);
|
||||||
//判断是否完成
|
//判断是否完成
|
||||||
@@ -1311,10 +1285,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
audioPlay() {
|
audioPlay() {
|
||||||
//console.log("开始播放");
|
|
||||||
// if(this.contentData.contentType == 20 && this.contentData.status < 2){
|
|
||||||
// this.contentData.status = 2;
|
|
||||||
// }
|
|
||||||
let $this = this;
|
let $this = this;
|
||||||
this.isAppendTime=true;
|
this.isAppendTime=true;
|
||||||
this.appendStudyTime();//启动追加学习时长
|
this.appendStudyTime();//启动追加学习时长
|
||||||
@@ -1425,7 +1395,6 @@
|
|||||||
//处理内容的名称
|
//处理内容的名称
|
||||||
this.totalContent = rs.result.contents.length;
|
this.totalContent = rs.result.contents.length;
|
||||||
//加载学习的数据
|
//加载学习的数据
|
||||||
//this.loadStudyData();
|
|
||||||
this.loadStudyData(rs.result);
|
this.loadStudyData(rs.result);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1451,7 +1420,6 @@
|
|||||||
playIndex = conIdx;
|
playIndex = conIdx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//console.log(scon.contentId,con.id);
|
|
||||||
con.lastStudyTime = scon.lastStudyTime;
|
con.lastStudyTime = scon.lastStudyTime;
|
||||||
con.progressVideo = scon.progressVideo;
|
con.progressVideo = scon.progressVideo;
|
||||||
//以下判断是为了兼容之前的问题,学习状态
|
//以下判断是为了兼容之前的问题,学习状态
|
||||||
@@ -1461,23 +1429,17 @@
|
|||||||
con.status = 9;
|
con.status = 9;
|
||||||
}
|
}
|
||||||
con.studyItemId = scon.id; //这个就是学习内容(条目)的id
|
con.studyItemId = scon.id; //这个就是学习内容(条目)的id
|
||||||
//console.log(scon.id,"scon.id");
|
|
||||||
//console.log(con,"scon.id");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.courseInfo.type == 10) {
|
if (this.courseInfo.type == 10) {
|
||||||
///console.log(this.contentList[0],'ccccc11111')
|
|
||||||
this.showRes(this.contentList[0]);
|
this.showRes(this.contentList[0]);
|
||||||
} else {
|
} else {
|
||||||
//如果没有,就定位第一项内容
|
//如果没有,就定位第一项内容
|
||||||
if (playIndex === -1) {
|
if (playIndex === -1) {
|
||||||
// this.showRes(this.contentList[0]);
|
|
||||||
//console.log(this.catalogTree,'ccccc22222')
|
|
||||||
this.showRes(this.catalogTree[0].children[0])
|
this.showRes(this.catalogTree[0].children[0])
|
||||||
} else {
|
} else {
|
||||||
//console.log(this.contentList[0],'ccccc3333')
|
|
||||||
this.showRes(this.contentList[playIndex]);
|
this.showRes(this.contentList[playIndex]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user