|
@@ -178,7 +178,7 @@
|
|
|
v-for="(item, index) in menuList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <template v-if="sectionItem.sectionId || sectionItem.id">
|
|
|
+ <template v-if="sectionItem.userId">
|
|
|
<!--模块 -->
|
|
|
<view v-if="item.type == 1"
|
|
|
><courseModule
|
|
@@ -1649,8 +1649,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async initPlayVideo(sectionItem) {
|
|
|
+ console.log(sectionItem,'this.sectionItem',this.menuList)
|
|
|
this.moduleId = sectionItem.moduleId;
|
|
|
this.chapterId = sectionItem.chapterId;
|
|
|
+ this.sectionItem = sectionItem;
|
|
|
if (sectionItem.sectionType == 1) {
|
|
|
//录播
|
|
|
this.$store.commit("setPlaySectionId", {
|
|
@@ -1659,8 +1661,6 @@ export default {
|
|
|
this.$store.commit("setPlayVID", {
|
|
|
playVID: sectionItem.recordingUrl,
|
|
|
});
|
|
|
-
|
|
|
- this.sectionItem = sectionItem;
|
|
|
await this.getPhotoLastRecord(); // 获取拍照历史
|
|
|
this.playVideo(sectionItem);
|
|
|
} else if (sectionItem.sectionType == 2) {
|
|
@@ -1674,7 +1674,6 @@ export default {
|
|
|
this.$store.commit("setPlayVID", {
|
|
|
playVID: sectionItem.recordingUrl,
|
|
|
});
|
|
|
- this.sectionItem = sectionItem;
|
|
|
this.playVideo(sectionItem);
|
|
|
} else if (sectionItem.doType == 2) {
|
|
|
uni.showModal({
|
|
@@ -1724,11 +1723,13 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
let { data } = res.data;
|
|
|
+ console.log(data,789)
|
|
|
if (!data.sectionId) {
|
|
|
data = this.menuAllList[0];
|
|
|
} else {
|
|
|
if (data.learning == 1 && this.orderNum == 2) {
|
|
|
let next = this.menuAllList.find((e) => e.studyStatus != 1);
|
|
|
+ console.log(next,789)
|
|
|
next && (data = next);
|
|
|
}
|
|
|
}
|
|
@@ -3005,15 +3006,15 @@ export default {
|
|
|
uni.navigateBack();
|
|
|
},
|
|
|
});
|
|
|
- } else if (code == 558) {
|
|
|
- this.CountTo1 = msg.split(",")[1]
|
|
|
+ } else if (code == 558) {
|
|
|
+ this.CountTo1 = msg.split(",")[1];
|
|
|
this.noticeShow1 = true;
|
|
|
var timer = setInterval(() => {
|
|
|
this.CountTo1--;
|
|
|
if (this.CountTo1 < 0) {
|
|
|
this.noticeShow1 = false;
|
|
|
clearInterval(timer);
|
|
|
- this.postStudyRecord(1)
|
|
|
+ this.postStudyRecord(1);
|
|
|
}
|
|
|
}, 1000);
|
|
|
reject("中断执行");
|
|
@@ -3707,7 +3708,7 @@ export default {
|
|
|
// '/goods/'+ data,
|
|
|
this.$api.goodsDetail(this.goodsId).then(async (res) => {
|
|
|
this.goodsData = res.data.data;
|
|
|
- // await this.checkFinishRequiredCourse();
|
|
|
+ this.option.periodWaitTime && (await this.checkFinishRequiredCourse());
|
|
|
if (self.goodsData.buyNote) {
|
|
|
this.baseHandoutTipList();
|
|
|
}
|