Bläddra i källkod

完善活体检测

Michael Wang 6 år sedan
förälder
incheckning
b9181b3bc7

+ 1 - 1
src/components/FaceRecognition/FaceRecognition.vue

@@ -151,7 +151,7 @@ export default {
         });
       } catch (e) {
         console.log(e);
-        this.$Message.error(e.message);
+        // this.$Message.error(e.message);
         return;
       }
     },

+ 1 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -111,7 +111,7 @@ export default {
     //   }
     // });
   },
-  destroyed() {
+  beforeDestroy() {
     clearInterval(this.submitInterval);
     clearInterval(this.snapInterval);
   },

+ 3 - 3
src/features/OnlineExam/Examing/FaceId.vue

@@ -13,13 +13,13 @@
 								   height:620px;
 								   background-color: #6e6f72!important;
   								background-image: radial-gradient(circle at 50% 0,#a9a9a9,#34363c);">
-      <div v-if="!showIframe" width="100%" height="200px" style="text-align: center;line-height:100px;margin-top:5px;">
+      <div v-show="!showIframe" width="100%" height="200px" style="text-align: center;line-height:100px;margin-top:5px;">
         <div style="color:white;font-weight: bold;font-size:20px;">
           {{redoBtnMsg}}
         </div>
-        <button v-if="redoBtnShow" type="button" class="qm-primary-button" :disabled="redoBtnDisabled" @click="startFaceVerify()">重试</button>
+        <button v-if="redoBtnShow" type="button" class="qm-primary-button" :disabled="redoBtnDisabled" @click="startFaceVerify">重试</button>
       </div>
-      <iframe v-if="showIframe" allow="camera *" allowusermedia id="myFrame" scrolling="no" width="100%" height="620px" frameborder="0"></iframe>
+      <iframe v-show="showIframe" allow="camera *" allowusermedia id="myFrame" scrolling="no" width="100%" height="620px" frameborder="0"></iframe>
     </div>
   </div>
 </template>