|
@@ -365,6 +365,7 @@
|
|
:orderGoodsId="orderGoodsId"
|
|
:orderGoodsId="orderGoodsId"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
:courseId="courseId"
|
|
:courseId="courseId"
|
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
:goodsId="goodsId"
|
|
:goodsId="goodsId"
|
|
:gradeId="gradeId"
|
|
:gradeId="gradeId"
|
|
:isRebuild="true"
|
|
:isRebuild="true"
|
|
@@ -381,6 +382,7 @@
|
|
<courseChapter
|
|
<courseChapter
|
|
:orderGoodsId="orderGoodsId"
|
|
:orderGoodsId="orderGoodsId"
|
|
:courseId="courseId"
|
|
:courseId="courseId"
|
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
@playEnd="sectionPlayEnd($event, index)"
|
|
@playEnd="sectionPlayEnd($event, index)"
|
|
:gradeId="gradeId"
|
|
:gradeId="gradeId"
|
|
@@ -398,6 +400,7 @@
|
|
<courseSection
|
|
<courseSection
|
|
:orderGoodsId="orderGoodsId"
|
|
:orderGoodsId="orderGoodsId"
|
|
:courseId="courseId"
|
|
:courseId="courseId"
|
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
:sectionMaxNum="goodsData.sectionMaxNum"
|
|
@playEnd="sectionPlayEnd($event, index)"
|
|
@playEnd="sectionPlayEnd($event, index)"
|
|
:gradeId="gradeId"
|
|
:gradeId="gradeId"
|
|
@@ -1645,8 +1648,45 @@ export default {
|
|
});
|
|
});
|
|
this.sectionItem = sectionItem;
|
|
this.sectionItem = sectionItem;
|
|
this.playVideo(sectionItem);
|
|
this.playVideo(sectionItem);
|
|
|
|
+ } else if (sectionItem.doType == 2) {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: "温馨提示",
|
|
|
|
+ content: "当前节视频已学完,即将进入考试?",
|
|
|
|
+ showCancel: false,
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ this.toQuestionBank(sectionItem);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ toQuestionBank(sectionItem) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:
|
|
|
|
+ "/pages2/class/questionBank?courseId=" +
|
|
|
|
+ this.courseId +
|
|
|
|
+ "&gradeId=" +
|
|
|
|
+ this.gradeId +
|
|
|
|
+ "&isFromVideo=1&id=" +
|
|
|
|
+ sectionItem.id +
|
|
|
|
+ "&goodsid=" +
|
|
|
|
+ this.goodsId +
|
|
|
|
+ "&moduleId=" +
|
|
|
|
+ (sectionItem.moduleId || 0) +
|
|
|
|
+ "&chapterId=" +
|
|
|
|
+ (sectionItem.chapterId || 0) +
|
|
|
|
+ "&orderGoodsId=" +
|
|
|
|
+ this.orderGoodsId +
|
|
|
|
+ "&type=" +
|
|
|
|
+ (sectionItem.type == 4 ? 1 : 3) +
|
|
|
|
+ "&learning=" +
|
|
|
|
+ sectionItem.studyStatus +
|
|
|
|
+ "&isBackVideo=" +
|
|
|
|
+ 1,
|
|
|
|
+ });
|
|
|
|
+ },
|
|
studyRecordQueryLiveLast() {
|
|
studyRecordQueryLiveLast() {
|
|
// /study/record/queryLiveLast
|
|
// /study/record/queryLiveLast
|
|
this.$api
|
|
this.$api
|
|
@@ -1657,13 +1697,16 @@ export default {
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
let { data } = res.data;
|
|
let { data } = res.data;
|
|
- console.log(data, 7789);
|
|
|
|
if (!data.sectionId) {
|
|
if (!data.sectionId) {
|
|
data = this.menuAllList[0];
|
|
data = this.menuAllList[0];
|
|
} else {
|
|
} else {
|
|
- // if(data.learning==1){
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
|
|
+ if (
|
|
|
|
+ data.learning == 1 &&
|
|
|
|
+ this.businessData.goodsLearningOrder == 2
|
|
|
|
+ ) {
|
|
|
|
+ let next = this.menuAllList.find((e) => e.studyStatus != 1);
|
|
|
|
+ next && (data = next);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.initPlayVideo(data);
|
|
this.initPlayVideo(data);
|
|
// if (res.data.data) {
|
|
// if (res.data.data) {
|
|
@@ -3277,29 +3320,7 @@ export default {
|
|
content: "当前节视频已学完,是否进入考试?",
|
|
content: "当前节视频已学完,是否进入考试?",
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
- uni.navigateTo({
|
|
|
|
- url:
|
|
|
|
- "/pages2/class/questionBank?courseId=" +
|
|
|
|
- this.courseId +
|
|
|
|
- "&gradeId=" +
|
|
|
|
- this.gradeId +
|
|
|
|
- "&isFromVideo=1&id=" +
|
|
|
|
- data.id +
|
|
|
|
- "&goodsid=" +
|
|
|
|
- this.goodsId +
|
|
|
|
- "&moduleId=" +
|
|
|
|
- (data.moduleId || 0) +
|
|
|
|
- "&chapterId=" +
|
|
|
|
- (data.chapterId || 0) +
|
|
|
|
- "&orderGoodsId=" +
|
|
|
|
- this.orderGoodsId +
|
|
|
|
- "&type=" +
|
|
|
|
- (data.type == 4 ? 1 : 3) +
|
|
|
|
- "&learning=" +
|
|
|
|
- data.studyStatus +
|
|
|
|
- "&isBackVideo=" +
|
|
|
|
- 1,
|
|
|
|
- });
|
|
|
|
|
|
+ this.toQuestionBank(data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@@ -3642,7 +3663,7 @@ export default {
|
|
// '/goods/'+ data,
|
|
// '/goods/'+ data,
|
|
this.$api.goodsDetail(this.goodsId).then(async (res) => {
|
|
this.$api.goodsDetail(this.goodsId).then(async (res) => {
|
|
this.goodsData = res.data.data;
|
|
this.goodsData = res.data.data;
|
|
- await this.checkFinishRequiredCourse();
|
|
|
|
|
|
+ // await this.checkFinishRequiredCourse();
|
|
if (self.goodsData.buyNote) {
|
|
if (self.goodsData.buyNote) {
|
|
this.baseHandoutTipList();
|
|
this.baseHandoutTipList();
|
|
}
|
|
}
|