|
@@ -247,9 +247,9 @@ export default {
|
|
//施工继教
|
|
//施工继教
|
|
ShiPhotoList(totalVideoTime) {
|
|
ShiPhotoList(totalVideoTime) {
|
|
//施工继教带年份的订单拍照设置
|
|
//施工继教带年份的订单拍照设置
|
|
- if(totalVideoTime < 2760){
|
|
|
|
|
|
+ if (totalVideoTime < 2760) {
|
|
var time1 = 46 * 60 - 1; //拍照间隔多久一张 46分钟
|
|
var time1 = 46 * 60 - 1; //拍照间隔多久一张 46分钟
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
var time1 = 45 * 60 - 1; //拍照间隔多久一张 45分钟
|
|
var time1 = 45 * 60 - 1; //拍照间隔多久一张 45分钟
|
|
}
|
|
}
|
|
let num = Math.ceil(totalVideoTime / time1); //拍照数量
|
|
let num = Math.ceil(totalVideoTime / time1); //拍照数量
|
|
@@ -527,12 +527,12 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
//播放出现错误时触发
|
|
//播放出现错误时触发
|
|
- onPlayerError() {
|
|
|
|
|
|
+ onPlayerError(title, msg) {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
this.$notify.error({
|
|
this.$notify.error({
|
|
duration: 0,
|
|
duration: 0,
|
|
- title: "错误",
|
|
|
|
- message: "视频播放错误,请及时反馈教务人员处理"
|
|
|
|
|
|
+ title: title || "错误",
|
|
|
|
+ message: msg || "视频播放错误,请及时反馈教务人员处理"
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//发生业务逻辑错误
|
|
//发生业务逻辑错误
|
|
@@ -689,6 +689,8 @@ export default {
|
|
}, 1500);
|
|
}, 1500);
|
|
} else if (err.code === 558) {
|
|
} else if (err.code === 558) {
|
|
this.$refs.countDown.openBoxs(parseInt(err.msg.split(",")[1]));
|
|
this.$refs.countDown.openBoxs(parseInt(err.msg.split(",")[1]));
|
|
|
|
+ } else if (err.code === 601) {
|
|
|
|
+ this.onPlayerError("提交异常", err.msg);
|
|
} else {
|
|
} else {
|
|
this.$message.error(err.msg || "未知错误");
|
|
this.$message.error(err.msg || "未知错误");
|
|
}
|
|
}
|