|
@@ -775,6 +775,7 @@ export default {
|
|
|
prendreAutoCarme: false, // 是否发起授权相机
|
|
|
studyTimer: null, // 学习记录定时器
|
|
|
CountTo: 30, // 倒计时
|
|
|
+ handoutTipLength: 0,
|
|
|
menuAllList: [],
|
|
|
popupPhotoShow: false,
|
|
|
curPlayIndex: 0, // 正在播放的节的下标
|
|
@@ -992,7 +993,7 @@ export default {
|
|
|
this.goodsTeacher.push(data)
|
|
|
})
|
|
|
}
|
|
|
- console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
|
|
|
+ // console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
|
|
|
this.goodsTeacher.forEach((item) => {
|
|
|
if(item.courseList.some(x => x.courseId == this.courseId)){
|
|
|
this.teacherList = item.teaList
|
|
@@ -1361,12 +1362,18 @@ export default {
|
|
|
noticeConfirm() {
|
|
|
if (this.CountTo < 0) {
|
|
|
this.noticeShow = false
|
|
|
+ if (this.handoutTipLength == 0 && this.goodsPlayConfig.autoPlay > 0) {
|
|
|
+ this.autoplay = true
|
|
|
+ var polyvPlayerContext = this.selectComponent("#playerVideo")
|
|
|
+ polyvPlayerContext.play()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
baseHandoutTipList() {
|
|
|
this.$api.baseHandoutTipList({
|
|
|
orderGoodsId:this.orderGoodsId
|
|
|
}).then(res => {
|
|
|
+ this.handoutTipLength = res.data.rows.length
|
|
|
if(res.data.rows.length == 0) {
|
|
|
this.noticeShow = true;
|
|
|
if (this.CountTo == 30) {
|
|
@@ -1379,6 +1386,11 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.CountTo = -1
|
|
|
+ if (this.goodsPlayConfig.autoPlay > 0) {
|
|
|
+ this.autoplay = true
|
|
|
+ var polyvPlayerContext = this.selectComponent("#playerVideo")
|
|
|
+ polyvPlayerContext.play()
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1871,6 +1883,7 @@ export default {
|
|
|
self.photoHistoryList.push(res.data.data[i].photoIndex);
|
|
|
}
|
|
|
}
|
|
|
+ // console.log('7777', this.photoHistoryList, this.photoList);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -1999,7 +2012,7 @@ export default {
|
|
|
// console.log(this.photoList, "随机拍照时间数组11", photoNum);
|
|
|
this.postCoursePhotoRecord(true); //提交随机拍照时间数组
|
|
|
}
|
|
|
- // console.log(this.photoList, "随机拍照时间数组");
|
|
|
+
|
|
|
//兼容已有观看历史
|
|
|
for (let i = 0; i < this.photoList.length - 1; i++) {
|
|
|
if (
|
|
@@ -2576,7 +2589,7 @@ export default {
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
if (polyvPlayerContext != null) {
|
|
|
this.playTime = polyvPlayerContext.getCurrentTime(); //播放时刻
|
|
|
- // console.log('拍照啊', 789, this.photoHistoryList, 'this.photoList:', this.photoList)
|
|
|
+ console.log(789, this.photoHistoryList, 'this.photoList:', this.photoList, 'photoNum:', this.photoNum, 'playTime:', this.playTime)
|
|
|
//判断是否需要拍照
|
|
|
if (this.photoNum > 0) {
|
|
|
this.configPhoto();
|
|
@@ -2721,6 +2734,9 @@ export default {
|
|
|
this.$store.commit("setPlaySectionId", { playSectionId: data.sectionId })
|
|
|
this.$store.commit("setPlayVID", { playVID: data.recordingUrl })
|
|
|
|
|
|
+ this.hasStart = false;
|
|
|
+ this.photoConfig = false;
|
|
|
+ this.photoIndex = 0;
|
|
|
this.sectionItem = data;
|
|
|
await this.getPhotoLastRecord() // 获取拍照历史
|
|
|
this.playVideo(data)
|
|
@@ -2773,11 +2789,11 @@ export default {
|
|
|
position: 0,
|
|
|
success: (res) => {
|
|
|
let base64 = "data:image/jpg;base64," + res.data;
|
|
|
- console.log('base64Data人脸识别参数:', {
|
|
|
- imageA: base64,
|
|
|
- orderGoodsId: this.orderGoodsId,
|
|
|
- gradeId: this.gradeId,
|
|
|
- })
|
|
|
+ // console.log('base64Data人脸识别参数:', {
|
|
|
+ // imageA: base64,
|
|
|
+ // orderGoodsId: this.orderGoodsId,
|
|
|
+ // gradeId: this.gradeId,
|
|
|
+ // })
|
|
|
|
|
|
let timer = setTimeout(() => {
|
|
|
uni.showToast({
|
|
@@ -2832,7 +2848,7 @@ export default {
|
|
|
this.uploadLock = true;
|
|
|
|
|
|
let compareFaceData = await this.faceRecognition();
|
|
|
- console.log(compareFaceData,'compareFaceData')
|
|
|
+ // console.log(compareFaceData,'compareFaceData')
|
|
|
this.compareFaceData = compareFaceData
|
|
|
if (compareFaceData >= 80) {
|
|
|
const waitYS = await this.imageInfos();
|
|
@@ -2946,9 +2962,9 @@ export default {
|
|
|
this.getNoteList();
|
|
|
if (self.goodsData.goodsPlayConfig) {
|
|
|
self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
|
|
|
- if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
- self.autoplay = true;
|
|
|
- }
|
|
|
+ // if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
+ // self.autoplay = true;
|
|
|
+ // }
|
|
|
if (self.goodsPlayConfig.drag > 0) {
|
|
|
self.isAllowSeek = "yes";
|
|
|
}
|
|
@@ -3090,7 +3106,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
|
|
|
+ // console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
|
|
|
}
|
|
|
});
|
|
|
},
|