|
@@ -136,6 +136,7 @@
|
|
|
<!--模块 -->
|
|
|
<view v-if="item.type == 1"
|
|
|
><courseModule
|
|
|
+ v-if="reStart"
|
|
|
:isLive="true"
|
|
|
:orderGoodsId="orderGoodsId"
|
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
@@ -153,6 +154,7 @@
|
|
|
<!--章 -->
|
|
|
<view v-if="item.type == 2"
|
|
|
><courseChapter
|
|
|
+ v-if="reStart"
|
|
|
:isLive="true"
|
|
|
:orderGoodsId="orderGoodsId"
|
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
@@ -172,6 +174,7 @@
|
|
|
<!--节 -->
|
|
|
<view v-if="item.type == 3"
|
|
|
><courseSection
|
|
|
+ v-if="reStart"
|
|
|
:isLive="true"
|
|
|
:orderGoodsId="orderGoodsId"
|
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
@@ -719,6 +722,7 @@ export default {
|
|
|
courseList: [], // 课程列表
|
|
|
courseTotal: 0,
|
|
|
options: {},
|
|
|
+ reStart: false, // 是否显示模块/章/节
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -830,7 +834,6 @@ export default {
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
- console.log('res.data', res.data)
|
|
|
if (res.data.data && Object.keys(res.data.data).length) { //有最后一次看的录播的信息
|
|
|
this.courseId = res.data.data.courseId
|
|
|
this.originOnShow()
|
|
@@ -867,7 +870,7 @@ export default {
|
|
|
this.$store.commit("setPlaySectionId", { playSectionId: item.sectionId });
|
|
|
this.$store.commit("setPlayVID", { playVID: item.recordingUrl });
|
|
|
this.$store.commit("updatePlayNextId", playNextId);
|
|
|
- console.log("this.playNoteVideo");
|
|
|
+ // console.log("this.playNoteVideo");
|
|
|
|
|
|
this.playNoteVideo(item)
|
|
|
} else {
|
|
@@ -876,7 +879,7 @@ export default {
|
|
|
},
|
|
|
originOnMount() {
|
|
|
uni.$on("changeSection", (oldSectionId) => {
|
|
|
- console.log(this.playVID);
|
|
|
+ // console.log(this.playVID);
|
|
|
this.hasStart = false;
|
|
|
this.photoConfig = false;
|
|
|
this.photoIndex = 0;
|
|
@@ -891,7 +894,7 @@ export default {
|
|
|
this.postStudyRecord(0, oldSectionId);
|
|
|
});
|
|
|
uni.$on("getSection", (item) => {
|
|
|
- console.log('触发事件-=====')
|
|
|
+ // console.log('触发事件-=====')
|
|
|
//清除直播
|
|
|
this.hasStart = false;
|
|
|
this.isPlayRebuild = item.rebuild;
|
|
@@ -919,7 +922,7 @@ export default {
|
|
|
this.channelItem = item;
|
|
|
});
|
|
|
uni.$on("isRebuild", (item) => {
|
|
|
- console.log(item);
|
|
|
+ // console.log(item);
|
|
|
this.isRebuild = item;
|
|
|
});
|
|
|
this.updateChapterOpen(true);
|
|
@@ -933,6 +936,7 @@ export default {
|
|
|
// 进入学习
|
|
|
jump(item, index) {
|
|
|
this.courseId = item.courseId
|
|
|
+ this.reStart = false
|
|
|
this.toggleCourseShow = false
|
|
|
this.originOnShow()
|
|
|
this.originOnMount()
|
|
@@ -948,7 +952,7 @@ export default {
|
|
|
orderGoodsId:this.orderGoodsId,
|
|
|
courseId:this.courseId
|
|
|
}).then(res => {
|
|
|
- console.log(res,'liveres')
|
|
|
+ // console.log(res,'liveres')
|
|
|
this.updateLiveLast(res.data.data)
|
|
|
})
|
|
|
},
|
|
@@ -1152,11 +1156,11 @@ export default {
|
|
|
timeInterval: postTime ? self.photoList.join(",") : "",
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
};
|
|
|
- console.log("提交接口", data);
|
|
|
+ // console.log("提交接口", data);
|
|
|
this.$api
|
|
|
.coursePhotoRecord(data)
|
|
|
.then((res) => {
|
|
|
- console.log(res,'postCoursePhotoRecord')
|
|
|
+ // console.log(res,'postCoursePhotoRecord')
|
|
|
if (res.data.code == 200) {
|
|
|
resolve();
|
|
|
} else {
|
|
@@ -1251,10 +1255,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 (
|
|
@@ -1262,12 +1266,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;
|
|
|
}
|
|
|
}
|
|
@@ -1308,9 +1310,9 @@ export default {
|
|
|
},
|
|
|
playerLiveStatusChange(e) {
|
|
|
const status = e.detail.status;
|
|
|
- console.log("直播状态", status);
|
|
|
+ // console.log("直播状态", status);
|
|
|
if (status === "live") {
|
|
|
- console.log("开始直播");
|
|
|
+ // console.log("开始直播");
|
|
|
//开始播放
|
|
|
if (this.timer) {
|
|
|
clearInterval(this.timer);
|
|
@@ -1324,7 +1326,7 @@ export default {
|
|
|
//只有播放过的结束才提交,避免未开播触发结束
|
|
|
this.postStudyRecord(1);
|
|
|
}
|
|
|
- console.log("结束直播");
|
|
|
+ // console.log("结束直播");
|
|
|
this.livePlay = false;
|
|
|
// 未开始
|
|
|
}
|
|
@@ -1396,7 +1398,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
openSetting(res) {
|
|
|
- console.log(res, 98);
|
|
|
+ // console.log(res, 98);
|
|
|
},
|
|
|
getCameraSetting() {
|
|
|
const self = this;
|
|
@@ -2150,7 +2152,7 @@ export default {
|
|
|
item.menuType = item.type;
|
|
|
}
|
|
|
this.menuList = res.data.rows;
|
|
|
-
|
|
|
+ this.reStart = true
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
if (res.data.rows[i].type == 1) {
|
|
|
this.menuIndex = [i];
|