|
@@ -1249,6 +1249,7 @@ export default {
|
|
.reChapterList({
|
|
.reChapterList({
|
|
moduleId: id,
|
|
moduleId: id,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: courseId,
|
|
courseId: courseId,
|
|
rebuild: isRebuild ? 1 : undefined
|
|
rebuild: isRebuild ? 1 : undefined
|
|
})
|
|
})
|
|
@@ -1299,6 +1300,7 @@ export default {
|
|
.reSectionExamList({
|
|
.reSectionExamList({
|
|
chapterId: chapterId || menuId,
|
|
chapterId: chapterId || menuId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
gradeId: this.gradeId
|
|
gradeId: this.gradeId
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -1311,6 +1313,8 @@ export default {
|
|
.reSectionList({
|
|
.reSectionList({
|
|
chapterId: id,
|
|
chapterId: id,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: courseId,
|
|
courseId: courseId,
|
|
rebuild: isRebuild ? 1 : undefined,
|
|
rebuild: isRebuild ? 1 : undefined,
|
|
moduleId: moduleId || 0
|
|
moduleId: moduleId || 0
|
|
@@ -1550,6 +1554,8 @@ export default {
|
|
.studyRecordMenuAllListWithExam({
|
|
.studyRecordMenuAllListWithExam({
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
goodsId: this.goodsId
|
|
goodsId: this.goodsId
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -1738,7 +1744,9 @@ export default {
|
|
this.playTime = polyvPlayerContext.j2s_getCurrentTime(); //播放时刻
|
|
this.playTime = polyvPlayerContext.j2s_getCurrentTime(); //播放时刻
|
|
if (
|
|
if (
|
|
this.sectionItem.learning != 1 &&
|
|
this.sectionItem.learning != 1 &&
|
|
- (this.goodsData.erJianErZao || this.goodsData.jjShiGongYuan && this.orderYears || this.photoNum > 0)
|
|
|
|
|
|
+ (this.goodsData.erJianErZao ||
|
|
|
|
+ (this.goodsData.jjShiGongYuan && this.orderYears) ||
|
|
|
|
+ this.photoNum > 0)
|
|
) {
|
|
) {
|
|
this.configPhoto();
|
|
this.configPhoto();
|
|
let photoTime = 0; //获取拍照秒数
|
|
let photoTime = 0; //获取拍照秒数
|
|
@@ -1775,6 +1783,7 @@ export default {
|
|
goodsId: parseInt(self.goodsId),
|
|
goodsId: parseInt(self.goodsId),
|
|
courseId: parseInt(self.courseId),
|
|
courseId: parseInt(self.courseId),
|
|
gradeId: self.gradeId,
|
|
gradeId: self.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
chapterId: parseInt(self.chapterId),
|
|
chapterId: parseInt(self.chapterId),
|
|
moduleId: parseInt(self.moduleId)
|
|
moduleId: parseInt(self.moduleId)
|
|
};
|
|
};
|
|
@@ -1884,8 +1893,11 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.goodsData.jjShiGongYuan && this.orderYears) {
|
|
if (this.goodsData.jjShiGongYuan && this.orderYears) {
|
|
- console.log(this.orderYears,'orderYears')
|
|
|
|
- this.photoList = this.randomConfigJjShiGongYuan(totalVideoTime, duration);
|
|
|
|
|
|
+ console.log(this.orderYears, "orderYears");
|
|
|
|
+ this.photoList = this.randomConfigJjShiGongYuan(
|
|
|
|
+ totalVideoTime,
|
|
|
|
+ duration
|
|
|
|
+ );
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//没有历史拍照间隔数据
|
|
//没有历史拍照间隔数据
|
|
@@ -1950,13 +1962,13 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//施工继教带年份的订单拍照设置
|
|
//施工继教带年份的订单拍照设置
|
|
- randomConfigJjShiGongYuan(totalVideoTime){
|
|
|
|
|
|
+ randomConfigJjShiGongYuan(totalVideoTime) {
|
|
this.photoHistoryList = [];
|
|
this.photoHistoryList = [];
|
|
- let time1 = 2701//拍照间隔多久一张 45分钟
|
|
|
|
- let num = Math.trunc(totalVideoTime / time1) + 1;//拍照数量
|
|
|
|
- let photoList = []
|
|
|
|
- for(let i = 0; i < num;i++){
|
|
|
|
- photoList.push(i*time1)
|
|
|
|
|
|
+ let time1 = 2701; //拍照间隔多久一张 45分钟
|
|
|
|
+ let num = Math.trunc(totalVideoTime / time1) + 1; //拍照数量
|
|
|
|
+ let photoList = [];
|
|
|
|
+ for (let i = 0; i < num; i++) {
|
|
|
|
+ photoList.push(i * time1);
|
|
}
|
|
}
|
|
return photoList;
|
|
return photoList;
|
|
},
|
|
},
|
|
@@ -2010,6 +2022,7 @@ export default {
|
|
courseId,
|
|
courseId,
|
|
photoTime: parseInt(currentTime > 0 ? currentTime : 0),
|
|
photoTime: parseInt(currentTime > 0 ? currentTime : 0),
|
|
gradeId: parseInt(self.gradeId),
|
|
gradeId: parseInt(self.gradeId),
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
photoIndex: postTime ? -2 : parseInt(photoIndex), //从0算起,-2只提交随机时间
|
|
photoIndex: postTime ? -2 : parseInt(photoIndex), //从0算起,-2只提交随机时间
|
|
photoNum: parseInt(self.photoNum),
|
|
photoNum: parseInt(self.photoNum),
|
|
chapterId,
|
|
chapterId,
|
|
@@ -2218,7 +2231,11 @@ export default {
|
|
//最外层节有menuid
|
|
//最外层节有menuid
|
|
//普通章节目录
|
|
//普通章节目录
|
|
this.$request
|
|
this.$request
|
|
- .reMenuList({ courseId: this.courseId, gradeId: this.gradeId })
|
|
|
|
|
|
+ .reMenuList({
|
|
|
|
+ courseId: this.courseId,
|
|
|
|
+ gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId
|
|
|
|
+ })
|
|
.then(res => {
|
|
.then(res => {
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
let item = res.rows[i];
|
|
let item = res.rows[i];
|
|
@@ -2235,6 +2252,7 @@ export default {
|
|
.reMenuList({
|
|
.reMenuList({
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
rebuild: 1
|
|
rebuild: 1
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -2282,6 +2300,7 @@ export default {
|
|
.reSectionList({
|
|
.reSectionList({
|
|
chapterId: sectionItem.chapterId,
|
|
chapterId: sectionItem.chapterId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
moduleId: 0
|
|
moduleId: 0
|
|
})
|
|
})
|
|
@@ -2310,6 +2329,7 @@ export default {
|
|
.reSectionList({
|
|
.reSectionList({
|
|
chapterId: rebuildObj.chapterId,
|
|
chapterId: rebuildObj.chapterId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
moduleId: 0,
|
|
moduleId: 0,
|
|
rebuild: 1
|
|
rebuild: 1
|
|
@@ -2337,6 +2357,7 @@ export default {
|
|
.reMenuList({
|
|
.reMenuList({
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
rebuild: 1
|
|
rebuild: 1
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -2384,6 +2405,7 @@ export default {
|
|
.reSectionList({
|
|
.reSectionList({
|
|
chapterId: sectionItem.chapterId,
|
|
chapterId: sectionItem.chapterId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
moduleId: sectionItem.moduleId
|
|
moduleId: sectionItem.moduleId
|
|
})
|
|
})
|
|
@@ -2418,6 +2440,7 @@ export default {
|
|
.reSectionList({
|
|
.reSectionList({
|
|
chapterId: rebuildObj.chapterId,
|
|
chapterId: rebuildObj.chapterId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
moduleId: rebuildObj.moduleId,
|
|
moduleId: rebuildObj.moduleId,
|
|
rebuild: 1
|
|
rebuild: 1
|
|
@@ -2454,6 +2477,7 @@ export default {
|
|
.reMenuList({
|
|
.reMenuList({
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
rebuild: 1
|
|
rebuild: 1
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -2504,6 +2528,7 @@ export default {
|
|
let data = {
|
|
let data = {
|
|
gradeId: Number(self.gradeId),
|
|
gradeId: Number(self.gradeId),
|
|
goodsId: Number(self.goodsId),
|
|
goodsId: Number(self.goodsId),
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
sectionId: Number(self.playSectionId),
|
|
sectionId: Number(self.playSectionId),
|
|
courseId: Number(self.courseId),
|
|
courseId: Number(self.courseId),
|
|
chapterId: parseInt(self.chapterId),
|
|
chapterId: parseInt(self.chapterId),
|
|
@@ -2551,6 +2576,7 @@ export default {
|
|
.getRebuildCourse({
|
|
.getRebuildCourse({
|
|
goodsId: this.goodsId,
|
|
goodsId: this.goodsId,
|
|
rebuild: 1,
|
|
rebuild: 1,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
gradeId: this.gradeId
|
|
gradeId: this.gradeId
|
|
})
|
|
})
|
|
.then(async res => {
|
|
.then(async res => {
|
|
@@ -2581,7 +2607,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$request
|
|
this.$request
|
|
- .courseCourseList({ goodsId: this.goodsId, gradeId: this.gradeId })
|
|
|
|
|
|
+ .courseCourseList({
|
|
|
|
+ goodsId: this.goodsId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
|
|
+ gradeId: this.gradeId
|
|
|
|
+ })
|
|
.then(async res => {
|
|
.then(async res => {
|
|
this.courseList = res.rows;
|
|
this.courseList = res.rows;
|
|
console.error("res.rows", res.rows);
|
|
console.error("res.rows", res.rows);
|
|
@@ -2679,6 +2709,7 @@ export default {
|
|
let data = {
|
|
let data = {
|
|
gradeId: this.gradeId,
|
|
gradeId: this.gradeId,
|
|
goodsId: this.goodsId,
|
|
goodsId: this.goodsId,
|
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
sectionId: this.playSectionId,
|
|
sectionId: this.playSectionId,
|
|
courseId: this.courseId,
|
|
courseId: this.courseId,
|
|
noteText: this.textareaNote,
|
|
noteText: this.textareaNote,
|