|
@@ -1238,21 +1238,26 @@ export default {
|
|
|
watch: {
|
|
|
takePhotoModal(val, oldVal) {
|
|
|
if (val) {
|
|
|
- this.takeSetInt = setTimeout(() => {
|
|
|
- this.$confirm("检测拍照停留时间过长,刷新当前页面", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- showCancelButton: false,
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- showClose: false,
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$router.go(0);
|
|
|
+ if (this.sectionItem.learning != 1 && this.goodsData.erJianErZao) {
|
|
|
+ this.takeSetInt = setTimeout(() => {
|
|
|
+ if (this.isFullScreen()) {
|
|
|
+ this.exitFullscreen();
|
|
|
+ }
|
|
|
+ this.$confirm("检测拍照停留时间过长,刷新当前页面", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ showCancelButton: false,
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ showClose: false,
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
- }, 900000);
|
|
|
+ .then(() => {
|
|
|
+ this.$router.go(0);
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ }, 900000);
|
|
|
+ }
|
|
|
} else {
|
|
|
clearTimeout(this.takeSetInt);
|
|
|
}
|
|
@@ -1304,6 +1309,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
|
+ console.log(this.$route.params);
|
|
|
this.courseId = +this.$route.query.courseId || "";
|
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
|
this.goodsId = this.$route.params.goodsId;
|
|
@@ -3100,7 +3106,7 @@ export default {
|
|
|
showClose: false
|
|
|
}
|
|
|
).then(() => {
|
|
|
- this.$router.go(-1);
|
|
|
+ this.$router.back(-1);
|
|
|
});
|
|
|
},
|
|
|
isVirtualCamera(stream) {
|
|
@@ -3387,6 +3393,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (option.sectionType == 1) {
|
|
|
+ let query = {
|
|
|
+ goodsId: this.goodsId,
|
|
|
+ courseId: this.courseId,
|
|
|
+ gradeId: this.gradeId,
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
|
+ moduleId: option.moduleId || 0,
|
|
|
+ chapterId: option.chapterId || 0,
|
|
|
+ sectionId: option.sectionId || option.menuId || 0,
|
|
|
+ sectionType: 1
|
|
|
+ };
|
|
|
+ this.$router.replace({ path: this.$route.path, query });
|
|
|
//提交保存观看历史
|
|
|
if (this.playSectionId) {
|
|
|
this.postStudyRecord(0, this.playSectionId);
|
|
@@ -3572,9 +3589,12 @@ export default {
|
|
|
|
|
|
this.player.on("s2j_onVideoPause", () => {
|
|
|
clearInterval(this.postTimer);
|
|
|
- if (this.sectionItem.learning != 1) {
|
|
|
+ if (this.sectionItem.learning != 1 && this.goodsData.erJianErZao) {
|
|
|
this.videoPause = setTimeout(() => {
|
|
|
if (!this.takePhotoModal) {
|
|
|
+ if (this.isFullScreen()) {
|
|
|
+ this.exitFullscreen();
|
|
|
+ }
|
|
|
this.confirmStatus = true;
|
|
|
this.$confirm("检测暂停时间过长,刷新当前页面", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -3619,6 +3639,7 @@ export default {
|
|
|
this.$refs["courseTree"][
|
|
|
this.playTabIndex
|
|
|
].dialogPalyVisible = true;
|
|
|
+ clearTimeout(this.videoPause);
|
|
|
}
|
|
|
|
|
|
if (this.isFullScreen()) {
|
|
@@ -3686,9 +3707,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
getPhotoLastRecord() {
|
|
|
- if (this.goodsData.erJianErZao) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ clearTimeout(this.videoPause);
|
|
|
return new Promise(resolve => {
|
|
|
let self = this;
|
|
|
this.photoConfig = false;
|
|
@@ -3803,6 +3822,7 @@ export default {
|
|
|
this.photoConfig = true;
|
|
|
if (this.goodsData.erJianErZao) {
|
|
|
this.photoList = this.randomConfig(totalVideoTime, duration);
|
|
|
+ console.log("拍摄时间组:(秒)",this.photoList)
|
|
|
return;
|
|
|
}
|
|
|
//没有历史拍照间隔数据
|
|
@@ -3844,6 +3864,7 @@ export default {
|
|
|
this.photoList.push(endTakeTime);
|
|
|
}
|
|
|
}
|
|
|
+ console.log("拍摄时间组:(秒)",this.photoList)
|
|
|
this.postCoursePhotoRecord(true); //提交随机拍照时间数组
|
|
|
}
|
|
|
console.log(this.photoList, "随机拍照时间数组");
|