谢杰标 пре 2 година
родитељ
комит
a7e57df517
1 измењених фајлова са 11 додато и 1 уклоњено
  1. 11 1
      pages2/class/questionBank.vue

+ 11 - 1
pages2/class/questionBank.vue

@@ -952,6 +952,7 @@ export default {
       faceUrl: "",
       simulateExamId: undefined,
       isBackVideo: "",
+      isReach: false, //599重拍
     };
   },
   watch: {
@@ -1146,8 +1147,12 @@ export default {
           });
           return;
         }
+        
         self.ossAvatarUrl = "";
         self.isTakePhoto = true;
+        if(this.isReach){
+          return this.submit();
+        }
         //拍照
         if (this.lastTime) {
           this.timer = setInterval(() => {
@@ -1517,7 +1522,7 @@ export default {
       return this.$api.bankExam(this.id).then((res) => {
         const { examLimitClient, doType } = res.data.data;
         if (!this.$method.examClientCanLearn(examLimitClient)) {
-          return
+          return;
         }
         this.bankType = doType;
         this.examData = res.data.data;
@@ -2263,6 +2268,7 @@ export default {
         })
         .then((res) => {
           this.isSubmit = true;
+          this.isReach = false
           if (res.data.code == 200) {
             uni.showToast({
               title: "交卷成功",
@@ -2288,6 +2294,10 @@ export default {
                 });
               }, 1000);
             }
+          } else if (res.data.code == 559) {
+            this.isReach = true;
+            this.uploadLock = false;
+            this.openPhoto();
           }
         });