|
|
@@ -1088,16 +1088,19 @@ export default {
|
|
|
} else {
|
|
|
polyvPlayerContext.j2s_pauseVideo();
|
|
|
}
|
|
|
+ this.abnormal(data);
|
|
|
this.$refs.countDown.openBoxsRestart(err.code);
|
|
|
}
|
|
|
else if (err.code === 559) {
|
|
|
console.log("拍照不够触发");
|
|
|
+ this.abnormal(data);
|
|
|
this.$message.error(err.msg);
|
|
|
this.openPhotoStatus = 1;
|
|
|
setTimeout(() => {
|
|
|
this.openPhoto();
|
|
|
}, 1500);
|
|
|
} else if (err.code === 558) {
|
|
|
+ this.abnormal(data);
|
|
|
this.$refs.countDown.openBoxs(parseInt(err.msg.split(",")[1]));
|
|
|
}
|
|
|
else if (err.code === 601) {
|
|
|
@@ -1108,6 +1111,17 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ //异常记录
|
|
|
+ abnormal(data){
|
|
|
+ this.$request
|
|
|
+ .abnormal(data)
|
|
|
+ .then((res) => {
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err, "err");
|
|
|
+ });
|
|
|
+ },
|
|
|
//重置视频学习
|
|
|
resetSection(errcode){
|
|
|
let data = {
|