|
@@ -151,6 +151,7 @@
|
|
|
:levelId="item.menuId"
|
|
|
:goodsType='1'
|
|
|
:menuAllList="menuAllList"
|
|
|
+ :sectionItem="sectionItem"
|
|
|
></courseModule
|
|
|
></view>
|
|
|
<!--章 -->
|
|
@@ -171,6 +172,7 @@
|
|
|
:levelId="'0-' + item.menuId"
|
|
|
:goodsType='1'
|
|
|
:menuAllList="menuAllList"
|
|
|
+ :sectionItem="sectionItem"
|
|
|
></courseChapter
|
|
|
></view>
|
|
|
<!--节 -->
|
|
@@ -332,6 +334,9 @@
|
|
|
:isBuy="true"
|
|
|
:menuItem="item"
|
|
|
:levelId="item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :menuAllList="menuAllList"
|
|
|
+ :sectionItem="sectionItem"
|
|
|
></courseModule
|
|
|
></view>
|
|
|
<!--章 -->
|
|
@@ -347,6 +352,9 @@
|
|
|
:isBuy="true"
|
|
|
:menuItem="item"
|
|
|
:levelId="'0-' + item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :menuAllList="menuAllList"
|
|
|
+ :sectionItem="sectionItem"
|
|
|
></courseChapter>
|
|
|
</view>
|
|
|
<!--节 -->
|
|
@@ -363,6 +371,9 @@
|
|
|
:nextMenuItem="findMenuNextSection(index)"
|
|
|
:menuItem="item"
|
|
|
:levelId="'0-0-' + item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :testType="3"
|
|
|
+ :menuAllList="menuAllList"
|
|
|
></courseSection>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -720,7 +731,7 @@ export default {
|
|
|
photoConfig: false, //是否配置好拍照次数
|
|
|
photoIndex: 0, //当前位于拍照的区间下标 从0开始
|
|
|
photoHistoryList: [], //已拍照历史的下标点
|
|
|
- sectionItem: null,
|
|
|
+ sectionItem: {},
|
|
|
businessData: {},
|
|
|
showNotes: true,
|
|
|
menuIndex: [],
|
|
@@ -885,7 +896,7 @@ export default {
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.sectionItem = res.data.data
|
|
|
+ this.sectionItem = res.data.data || {}
|
|
|
if (res.data.data && Object.keys(res.data.data).length) { //有最后一次看的录播的信息
|
|
|
this.courseId = res.data.data.courseId
|
|
|
// console.log('查询用户最后一次看的录播的信息', res.data, this.courseId)
|
|
@@ -1401,7 +1412,7 @@ export default {
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.sectionItem = res.data.data
|
|
|
+ this.sectionItem = res.data.data || {}
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -2425,7 +2436,6 @@ export default {
|
|
|
fromRebuild: this.isRebuild,
|
|
|
}); //通知播放结束,不来自重修目录的点击不用弹窗学习下一节
|
|
|
uni.$emit("playNext" + playNextId); //通知播放结束
|
|
|
- console.log("playNext" + playNextIdisRebuild, '-----l', "playNext" + playNextId);
|
|
|
}
|
|
|
|
|
|
self.ossAvatarUrl = "";
|
|
@@ -2899,7 +2909,7 @@ export default {
|
|
|
item.name = item.menuName;
|
|
|
}
|
|
|
self.reMenuList = res.data.rows;
|
|
|
- console.log('reMenuList:' , this.reMenuList);
|
|
|
+ console.log('reMenuList:' , this.reMenuList, 'this.sectionItem:', this.sectionItem);
|
|
|
if (self.reMenuList.length > 0) {
|
|
|
this.showNotes = false;
|
|
|
self.list = [
|
|
@@ -2918,7 +2928,17 @@ export default {
|
|
|
{ name: "重修目录" },
|
|
|
];
|
|
|
this.current = 0;
|
|
|
+ if (Object.keys(this.sectionItem).length) {
|
|
|
+ let playNextIdisRebuild = `moduleId${this.sectionItem.moduleId}chapterId${this.sectionItem.chapterId}sectionId${this.sectionItem.sectionId}isRebuild`;
|
|
|
+ this.$store.commit("updatePlayNextId", playNextIdisRebuild);
|
|
|
+ }
|
|
|
} else {
|
|
|
+ if (Object.keys(this.sectionItem).length) {
|
|
|
+ let playNextId = `moduleId${this.sectionItem.moduleId}chapterId${this.sectionItem.chapterId}sectionId${this.sectionItem.sectionId}`;
|
|
|
+ this.$store.commit("updatePlayNextId", playNextId);
|
|
|
+ console.log('拼接playNextId:', playNextId);
|
|
|
+ }
|
|
|
+
|
|
|
self.list = [
|
|
|
{
|
|
|
name: "目录",
|
|
@@ -2939,7 +2959,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getMenuList() {
|
|
|
- console.log('menuList的目录');
|
|
|
+ console.log('menuList的目录', this.sectionItem);
|
|
|
let self = this;
|
|
|
// /course/menuList 查询课程目录结构列表
|
|
|
this.$api
|
|
@@ -2956,10 +2976,14 @@ export default {
|
|
|
self.menuList = res.data.rows;
|
|
|
this.reStart = true
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
+ // && res.data.rows[i].menuId == this.sectionItem.moduleId
|
|
|
if (res.data.rows[i].type == 1) {
|
|
|
this.menuIndex = [i];
|
|
|
break;
|
|
|
} else if (res.data.rows[i].type == 2) {
|
|
|
+ // &&
|
|
|
+ // res.data.rows[i].menuId == this.sectionItem.chapterId &&
|
|
|
+ // (!this.sectionItem.moduleId || this.sectionItem.moduleId == 0)
|
|
|
this.menuIndex = [i];
|
|
|
break;
|
|
|
}
|