|
@@ -483,7 +483,8 @@ export default {
|
|
|
failToRegister: false, //报名是否不通过
|
|
|
openPhotoStatus: 0,
|
|
|
readerResult: null,
|
|
|
- handoutList: []
|
|
|
+ handoutList: [],
|
|
|
+ orderYears: ""
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -631,7 +632,9 @@ export default {
|
|
|
//提交完资料返回判断是否已开班
|
|
|
await this.getGradeInfo();
|
|
|
//继教七大员公共课程同步
|
|
|
- if (this.gradeDetail.sevenYear) {
|
|
|
+ const res = await this.$request.ordersevenyear(this.orderGoodsId);
|
|
|
+ if (res.data) {
|
|
|
+ this.orderYears = res.data;
|
|
|
await this.sevenCommonCourse();
|
|
|
}
|
|
|
}
|
|
@@ -1735,7 +1738,7 @@ export default {
|
|
|
this.playTime = polyvPlayerContext.j2s_getCurrentTime(); //播放时刻
|
|
|
if (
|
|
|
this.sectionItem.learning != 1 &&
|
|
|
- (this.goodsData.erJianErZao || this.photoNum > 0)
|
|
|
+ (this.goodsData.erJianErZao || this.goodsData.jjShiGongYuan && this.orderYears || this.photoNum > 0)
|
|
|
) {
|
|
|
this.configPhoto();
|
|
|
let photoTime = 0; //获取拍照秒数
|
|
@@ -1878,7 +1881,11 @@ export default {
|
|
|
this.photoConfig = true;
|
|
|
if (this.goodsData.erJianErZao) {
|
|
|
this.photoList = this.randomConfig(totalVideoTime, duration);
|
|
|
- console.log("拍摄时间组:(秒)", this.photoList);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.goodsData.jjShiGongYuan && this.orderYears) {
|
|
|
+ console.log(this.orderYears,'orderYears')
|
|
|
+ this.photoList = this.randomConfigJjShiGongYuan(totalVideoTime, duration);
|
|
|
return;
|
|
|
}
|
|
|
//没有历史拍照间隔数据
|
|
@@ -1942,6 +1949,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //施工继教带年份的订单拍照设置
|
|
|
+ randomConfigJjShiGongYuan(totalVideoTime){
|
|
|
+ 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)
|
|
|
+ }
|
|
|
+ return photoList;
|
|
|
+ },
|
|
|
// 随机拍摄时间
|
|
|
randomConfig(totalVideoTime, duration) {
|
|
|
this.photoHistoryList = [];
|