‘最新提交’

master
xcw 2023-03-16 18:09:57 +08:00
parent da89a9d42c
commit f9a4083cea
1 changed files with 10 additions and 8 deletions

View File

@ -63,15 +63,17 @@
onUnload() { onUnload() {
console.log('页面销毁了') console.log('页面销毁了')
let course_video_id = this.videoList[this.currentIndex].course_video_id; let course_video_id = this.videoList[this.currentIndex].course_video_id;
let params = { if(course_video_id) {
course_video_id:course_video_id, let params = {
duration:parseInt(this.currentTime), course_video_id:course_video_id,
} duration:parseInt(this.currentTime),
this.$requst.get('/api/course/create-browse-records',params).then(res=>{
if(res.code == 0) {
console.log('观影记录提交成功',this.currentTime)
} }
}) this.$requst.get('/api/course/create-browse-records',params).then(res=>{
if(res.code == 0) {
console.log('观影记录提交成功',this.currentTime)
}
})
}
}, },
methods:{ methods:{
// 视频滑动结束 // 视频滑动结束