mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
Merge branch 'dai-master'
This commit is contained in:
@@ -325,7 +325,8 @@ export default {
|
|||||||
// let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id});
|
// let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id});
|
||||||
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
// window.open(this.webBaseUrl+routeData.href, '_blank');
|
||||||
// window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank');
|
// window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank');
|
||||||
this.$router.push({path:'/course/detail',query:{id:item.id}})
|
//this.$router.push({path:'/course/detail',query:{id:item.id}})
|
||||||
|
this.$router.push({path:'/course/studyindex',query:{id:item.id}})
|
||||||
// }
|
// }
|
||||||
} else {
|
} else {
|
||||||
// if (item.type == 10) {
|
// if (item.type == 10) {
|
||||||
|
|||||||
@@ -397,6 +397,8 @@
|
|||||||
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
||||||
this.courseId = this.$route.query.id;
|
this.courseId = this.$route.query.id;
|
||||||
this.initContentId = this.$route.query.contentId;
|
this.initContentId = this.$route.query.contentId;
|
||||||
|
this.stopStudyTime();//先关闭
|
||||||
|
this.cleanAppendTime();//
|
||||||
this.loadData();
|
this.loadData();
|
||||||
//console.log(this.$xpage.constants.fileBaseUrl,'this.$xpage.constants.fileBaseUrl');
|
//console.log(this.$xpage.constants.fileBaseUrl,'this.$xpage.constants.fileBaseUrl');
|
||||||
},
|
},
|
||||||
@@ -436,6 +438,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyed(){
|
destroyed(){
|
||||||
|
this.cleanAppendTime();
|
||||||
this.stopStudyTime();
|
this.stopStudyTime();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -446,6 +449,12 @@
|
|||||||
//视频点定位,直接到播放的视频位置
|
//视频点定位,直接到播放的视频位置
|
||||||
this.timer = new Date().getTime()
|
this.timer = new Date().getTime()
|
||||||
},
|
},
|
||||||
|
//清空追加学习时长事件
|
||||||
|
cleanAppendTime(){
|
||||||
|
if(this.appendStudyOtherHandle){
|
||||||
|
window.clearTimeout(this.appendStudyOtherHandle);
|
||||||
|
}
|
||||||
|
},
|
||||||
//非音视频课学习时长的增加,每一分钟保存一次
|
//非音视频课学习时长的增加,每一分钟保存一次
|
||||||
appendStudyOtherTime() {
|
appendStudyOtherTime() {
|
||||||
//console.log('开始追加学习时长',this.isAppendTime);
|
//console.log('开始追加学习时长',this.isAppendTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user