mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 18:36:47 +08:00
临时方案避免重复调用
This commit is contained in:
@@ -429,6 +429,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
tentative: false,
|
||||||
isShowPdt: true,
|
isShowPdt: true,
|
||||||
progressData: 0,
|
progressData: 0,
|
||||||
contentTypeV: '',
|
contentTypeV: '',
|
||||||
@@ -904,6 +905,7 @@
|
|||||||
},
|
},
|
||||||
//更换播放内容
|
//更换播放内容
|
||||||
changePlayRes(con){
|
changePlayRes(con){
|
||||||
|
this.tentative = false;
|
||||||
this.videoPlayingTime = 0
|
this.videoPlayingTime = 0
|
||||||
this.scormUrl='';//清空地址
|
this.scormUrl='';//清空地址
|
||||||
this.articleMore=true;
|
this.articleMore=true;
|
||||||
@@ -1530,7 +1532,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
finishStudyItem(){ //设置完成学习的内容,针对于音视频的内容
|
finishStudyItem(){ //设置完成学习的内容,针对于音视频的内容
|
||||||
if(!this.curContent.studyItemId){
|
if(!this.curContent.studyItemId && !this.tentative){ //临时方案避免重复调用
|
||||||
//这种可能没有,不过这里也是为了万中那个1
|
//这种可能没有,不过这里也是为了万中那个1
|
||||||
this.saveStudyInfo();
|
this.saveStudyInfo();
|
||||||
}else{
|
}else{
|
||||||
@@ -1752,6 +1754,7 @@
|
|||||||
},
|
},
|
||||||
//还需要记录播放时间
|
//还需要记录播放时间
|
||||||
saveStudyInfo() { //记录课件学习信息
|
saveStudyInfo() { //记录课件学习信息
|
||||||
|
this.tentative = true;
|
||||||
if(this.curContent.contentType>=60){
|
if(this.curContent.contentType>=60){
|
||||||
//只有在课件页面停留超过5秒才会记录
|
//只有在课件页面停留超过5秒才会记录
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user