|
@@ -5059,6 +5059,7 @@ export default {
|
|
|
workTypeC: false,
|
|
|
isAnswer: false,
|
|
|
timer: null,
|
|
|
+ opertimer: null,
|
|
|
showType: 0,
|
|
|
fileType: 0,
|
|
|
showPDF: false,
|
|
@@ -7959,6 +7960,7 @@ export default {
|
|
|
} else {
|
|
|
this.isClickNav = "video0";
|
|
|
}
|
|
|
+ this.setOperationTime();
|
|
|
} else {
|
|
|
this.courseDetail = res.data[0][0];
|
|
|
this.chapInfoList = JSON.parse(this.courseDetail.chapters);
|
|
@@ -7975,7 +7977,6 @@ export default {
|
|
|
if(this.courseDetail.userid == this.userid && this.IsFollow){
|
|
|
this.setCTask();
|
|
|
}
|
|
|
- this.setoTime();
|
|
|
let _this = this;
|
|
|
if (_this.timer) {
|
|
|
clearInterval(_this.timer);
|
|
@@ -8022,13 +8023,23 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- setoTime(){
|
|
|
+ setOperationTime(){
|
|
|
+ let _this = this
|
|
|
+ if (_this.opertimer) {
|
|
|
+ clearInterval(_this.opertimer);
|
|
|
+ _this.opertimer = null;
|
|
|
+ }
|
|
|
+ _this.opertimer = setInterval(() => {
|
|
|
+ _this.setoTime('600000')
|
|
|
+ }, 600000);
|
|
|
+ },
|
|
|
+ setoTime(time){
|
|
|
let params = [
|
|
|
{
|
|
|
uid: this.userid,
|
|
|
cid: this.id,
|
|
|
type: '2',
|
|
|
- time: '5',
|
|
|
+ time: time,
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
@@ -9930,6 +9941,8 @@ export default {
|
|
|
window.onresize = null;
|
|
|
clearInterval(this.timer);
|
|
|
this.timer = null;
|
|
|
+ clearInterval(this.opertimer);
|
|
|
+ this.opertimer = null;
|
|
|
},
|
|
|
computed: {
|
|
|
contentConvent() {
|