|
|
@@ -808,7 +808,6 @@ export default {
|
|
|
this.originUnload()
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log('index:--mounted')
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(["updateChapterOpen","updateLiveLast"]),
|
|
|
@@ -829,7 +828,6 @@ export default {
|
|
|
},
|
|
|
// 点击课程目录
|
|
|
cMenu(item, index) {
|
|
|
- console.log('item', item)
|
|
|
this.subIndex = index
|
|
|
this.newActiveSubjectId = item.subjectId
|
|
|
// if (item.subjectId != 0) {
|
|
|
@@ -977,13 +975,12 @@ 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
|
|
|
}
|
|
|
})
|
|
|
- console.log(this.teacherList,'this.teacherList');
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -1003,7 +1000,7 @@ export default {
|
|
|
// this.getAnswerList();
|
|
|
// }, 5000);
|
|
|
let noteSecond = Number(this.option.noteSecond);
|
|
|
- console.log('noteSecondnoteSecond:', noteSecond, this.option)
|
|
|
+ // console.log('noteSecondnoteSecond:', noteSecond, this.option)
|
|
|
if (noteSecond > 0) {
|
|
|
//我的消息跳过来,播放节
|
|
|
let item = {
|
|
|
@@ -1029,7 +1026,7 @@ export default {
|
|
|
// 原来的mouted内容
|
|
|
originMounted() {
|
|
|
uni.$on("changeSection", (oldSectionId) => {
|
|
|
- console.log('originMounted->playVID:', this.playVID, oldSectionId);
|
|
|
+ // console.log('originMounted->playVID:', this.playVID, oldSectionId);
|
|
|
this.hasStart = false;
|
|
|
this.photoConfig = false;
|
|
|
this.photoIndex = 0;
|
|
|
@@ -1097,7 +1094,7 @@ export default {
|
|
|
this.closePlv();
|
|
|
//移除所有的事件监听器
|
|
|
uni.$off();
|
|
|
- console.log('timer', this.timer, 'lockTimer:', this.lockTimer, 'studyTimer:', this.studyTimer);
|
|
|
+ // console.log('timer', this.timer, 'lockTimer:', this.lockTimer, 'studyTimer:', this.studyTimer);
|
|
|
this.clearTimer && clearTimeout(this.clearTimer)
|
|
|
this.toastTimer && clearTimeout(this.toastTimer)
|
|
|
this.studyTimer && clearInterval(this.studyTimer)
|
|
|
@@ -1130,7 +1127,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- console.log('findResult:', findResult)
|
|
|
this.jump(findResult, 1)
|
|
|
},
|
|
|
// 进入学习
|
|
|
@@ -1361,7 +1357,7 @@ export default {
|
|
|
this.$store.commit("setPlaySectionId", { playSectionId: res.data.data.sectionId });
|
|
|
this.$store.commit("setPlayVID", { playVID: res.data.data.recordingUrl });
|
|
|
|
|
|
- console.log('playVID:', this.playVID, 'playSectionId-', this.playSectionId, 'moduleId:', this.moduleId,'chapterId:', this.chapterId, 'courseId:', this.courseId)
|
|
|
+ // console.log('playVID:', this.playVID, 'playSectionId-', this.playSectionId, 'moduleId:', this.moduleId,'chapterId:', this.chapterId, 'courseId:', this.courseId)
|
|
|
this.sectionItem = res.data.data;
|
|
|
await this.getPhotoLastRecord() // 获取拍照历史
|
|
|
this.playVideo(res.data.data)
|
|
|
@@ -1420,7 +1416,7 @@ export default {
|
|
|
this.reMenuList = []
|
|
|
this.$nextTick(() => {
|
|
|
this.reMenuList = res.data.rows;
|
|
|
- console.log(this.reMenuList,'this.reMenuList1')
|
|
|
+ // console.log(this.reMenuList,'this.reMenuList1')
|
|
|
})
|
|
|
} else {
|
|
|
this.reMenuList = [];
|
|
|
@@ -1469,7 +1465,6 @@ export default {
|
|
|
this.$api
|
|
|
.reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
|
.then((res) => {
|
|
|
- console.log("noRebuild1");
|
|
|
if (res.data.code == 200) {
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
let item = res.data.rows[i];
|
|
|
@@ -1489,7 +1484,6 @@ export default {
|
|
|
this.$api
|
|
|
.reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
|
.then((res) => {
|
|
|
- console.log("noRebuild2");
|
|
|
if (res.data.code == 200) {
|
|
|
res.data.rows[index].name = res.data.rows[index].menuName;
|
|
|
res.data.rows[index].id = res.data.rows[index].menuId;
|
|
|
@@ -1505,7 +1499,6 @@ export default {
|
|
|
gradeId: this.gradeId,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log("Rebuild2");
|
|
|
if (res.data.code == 200) {
|
|
|
if (res.data.rows.length) {
|
|
|
// for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
@@ -1564,8 +1557,6 @@ export default {
|
|
|
this.$api
|
|
|
.reMenuList({ courseId: this.courseId, gradeId: this.gradeId ,orderGoodsId: this.orderGoodsId,})
|
|
|
.then((res) => {
|
|
|
- console.log("noRebuild3-->this.courseId:", this.courseId);
|
|
|
- console.log("noRebuild3index", index);
|
|
|
if (res.data.code == 200) {
|
|
|
res.data.rows[index].name = res.data.rows[index].menuName;
|
|
|
res.data.rows[index].id = res.data.rows[index].menuId;
|
|
|
@@ -1595,7 +1586,6 @@ export default {
|
|
|
}).then(res => {
|
|
|
let nowTime = Number(new Date().getTime()/1000).toFixed(0)
|
|
|
// this.livingItem = res.data.data[0]
|
|
|
- console.log('res.data.data---', res.data.data)
|
|
|
if (res.data.data) {
|
|
|
this.livingItem = res.data.data.find(item => item.liveStartTime<=nowTime&&item.liveEndTime>nowTime);
|
|
|
}
|
|
|
@@ -1606,7 +1596,6 @@ export default {
|
|
|
let self = this;
|
|
|
this.getCameraSetting();
|
|
|
this.$api.getbaseprofiletplists({ goodsId: self.goodsId,orderGoodsId: this.orderGoodsId, }).then((res) => {
|
|
|
- // console.log(res, "res1");
|
|
|
if (res.data.code === 200 && res.data.rows.length) {
|
|
|
if (res.data.rows[0].keyValue) {
|
|
|
self.$api.getbaseprofiletpId(self.goodsId).then((baseRes) => {
|
|
|
@@ -1619,7 +1608,6 @@ export default {
|
|
|
orderGoodsId: self.orderGoodsId,
|
|
|
})
|
|
|
.then((result) => {
|
|
|
- console.log(result, "result");
|
|
|
if (result.data.code === 200) {
|
|
|
if (
|
|
|
!result.data.data ||
|
|
|
@@ -1863,7 +1851,6 @@ export default {
|
|
|
this.$api
|
|
|
.coursePhotoRecord(data)
|
|
|
.then((res) => {
|
|
|
- console.log(res,'postCoursePhotoRecord')
|
|
|
if (res.data.code == 200) {
|
|
|
resolve();
|
|
|
} else {
|
|
|
@@ -1892,9 +1879,7 @@ export default {
|
|
|
configPhoto() {
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
let totalVideoTime = polyvPlayerContext.getDuration();
|
|
|
- // console.log('totalVideoTime总时长:', totalVideoTime, 'this.photoList:', this.photoList)
|
|
|
let duration = polyvPlayerContext.getCurrentTime();
|
|
|
- // console.log('取当前播放的时间点:', duration)
|
|
|
let photoNum = this.photoNum;
|
|
|
if (!this.photoConfig) {
|
|
|
this.photoConfig = true;
|
|
|
@@ -1960,10 +1945,10 @@ export default {
|
|
|
// this.photoList.push(s)
|
|
|
// initSpace+=spaceTime
|
|
|
// }
|
|
|
- console.log(this.photoList, "随机拍照时间数组11", photoNum);
|
|
|
+ // console.log(this.photoList, "随机拍照时间数组11", photoNum);
|
|
|
this.postCoursePhotoRecord(true); //提交随机拍照时间数组
|
|
|
}
|
|
|
- console.log(this.photoList, "随机拍照时间数组");
|
|
|
+ // console.log(this.photoList, "随机拍照时间数组");
|
|
|
//兼容已有观看历史
|
|
|
for (let i = 0; i < this.photoList.length - 1; i++) {
|
|
|
if (
|
|
|
@@ -1971,12 +1956,10 @@ export default {
|
|
|
this.photoList[i + 1] > duration
|
|
|
) {
|
|
|
this.photoIndex = i + 1;
|
|
|
- // console.log("我的修改了photoIndex")
|
|
|
break;
|
|
|
}
|
|
|
if (duration > this.photoList[this.photoList.length - 1]) {
|
|
|
this.photoIndex = this.photoList.length - 1; //取最后一个下标
|
|
|
- // console.log("我的修改了photoIndex")
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
@@ -2029,7 +2012,6 @@ export default {
|
|
|
//只有播放过的结束才提交,避免未开播触发结束
|
|
|
this.postStudyRecord(1);
|
|
|
}
|
|
|
- // console.log("结束直播");
|
|
|
this.livePlay = false;
|
|
|
// 未开始
|
|
|
}
|
|
|
@@ -2150,7 +2132,6 @@ export default {
|
|
|
if (this.vid) {
|
|
|
//切换视频
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
- console.log('polyvPlayerContext', polyvPlayerContext)
|
|
|
polyvPlayerContext && polyvPlayerContext.changeVid(item.recordingUrl);
|
|
|
} else {
|
|
|
this.vid = item.recordingUrl;
|
|
|
@@ -2218,12 +2199,10 @@ export default {
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
let noteDate = this.$method.getZeroTime();
|
|
|
let noteSecond = polyvPlayerContext.getCurrentTime();
|
|
|
- console.log(noteSecond, 698);
|
|
|
if (!noteSecond) {
|
|
|
if (noteSecond == 0) {
|
|
|
//播放结束
|
|
|
noteSecond = polyvPlayerContext.getDuration();
|
|
|
- console.log(noteSecond, 63398);
|
|
|
}
|
|
|
if (!noteSecond) {
|
|
|
this.$u.toast("视频暂未开始");
|
|
|
@@ -2372,7 +2351,7 @@ export default {
|
|
|
this.postAnswer();
|
|
|
},
|
|
|
postStudyRecord(status = 0, sectionId = this.playSectionId) {
|
|
|
- console.log('学习记录接口的playSectionId', sectionId);
|
|
|
+ // console.log('学习记录接口的playSectionId', sectionId);
|
|
|
let currentTime = 0;
|
|
|
let PlayDuration = 0;
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
@@ -2433,7 +2412,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
uploadFile(options, int) {
|
|
|
- console.log(options)
|
|
|
var self = this;
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var data = {
|
|
|
@@ -2810,7 +2788,6 @@ export default {
|
|
|
* 进入全屏
|
|
|
*/
|
|
|
fullscreenchange(event) {
|
|
|
- console.log('进入全屏',event);
|
|
|
if (event.detail.direction == "vertical") {
|
|
|
this.navShow = true;
|
|
|
} else if (event.detail.direction == "horizontal") {
|
|
|
@@ -2825,7 +2802,6 @@ export default {
|
|
|
this.baseHandoutTipList()
|
|
|
}
|
|
|
self.gradeId = self.goodsData.gradeId;
|
|
|
- // console.log(self.gradeId, "班级ID");
|
|
|
this.courseBusiness(this.goodsData.businessId);
|
|
|
this.courseHandouts();
|
|
|
self.getMenuList();
|
|
|
@@ -2856,7 +2832,7 @@ export default {
|
|
|
);
|
|
|
if (self.goodsPhotographConfig.photoNum > 0) {
|
|
|
self.photoNum = self.goodsPhotographConfig.photoNum;
|
|
|
- console.log(self.photoNum, 777777);
|
|
|
+ // console.log(self.photoNum, 777777);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -2945,7 +2921,6 @@ export default {
|
|
|
item.menuType = item.type;
|
|
|
}
|
|
|
self.menuList = res.data.rows;
|
|
|
- // console.log('======menuList', this.menuList)
|
|
|
this.reStart = true
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
if (res.data.rows[i].type == 1) {
|
|
|
@@ -3004,11 +2979,9 @@ export default {
|
|
|
success: (res) => {
|
|
|
this.downLoading = false
|
|
|
uni.setStorageSync('current', this.current)
|
|
|
- console.log(res, "打开文档成功");
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
this.downLoading = false
|
|
|
- console.log(err);
|
|
|
uni.showToast({
|
|
|
icon: "none",
|
|
|
title: "文档地址错误",
|