|
@@ -41,6 +41,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ console.debug("startFaceVerify");
|
|
|
this.startFaceVerify();
|
|
|
},
|
|
|
methods: {
|
|
@@ -105,7 +106,6 @@ export default {
|
|
|
};
|
|
|
//定时事件,如果1分钟内未完成人脸检测,执行内部程序
|
|
|
var faceIdTime = setTimeout(() => {
|
|
|
- this.$Modal.remove();
|
|
|
ws.close();
|
|
|
var that = this;
|
|
|
this.$http
|
|
@@ -159,6 +159,7 @@ export default {
|
|
|
}
|
|
|
} else if (receivedMsg.verifyCount >= 2) {
|
|
|
if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
|
+ // FIXME: 什么逻辑?
|
|
|
this.$Message.info("人脸检测成功,请继续完成考试", { time: 5000 });
|
|
|
this.faceTestEndHandle("SUCCESS");
|
|
|
} else {
|
|
@@ -177,7 +178,7 @@ export default {
|
|
|
if (response.data.indexOf("verifyResult") > -1) {
|
|
|
var receivedMsg = JSON.parse(response.data);
|
|
|
clearTimeout(faceIdTime);
|
|
|
- this.logout();
|
|
|
+ this.$emit("closeFaceId");
|
|
|
ws.close();
|
|
|
this.faceTestEnd(receivedMsg);
|
|
|
}
|
|
@@ -221,7 +222,10 @@ export default {
|
|
|
this.updateFaceVerify(iframeLoadMsg, null);
|
|
|
} else if (iframeLoadMsg == "success") {
|
|
|
clearInterval(iframeLoadTime);
|
|
|
- this.iframeLoadSuccess();
|
|
|
+ // this.iframeLoadSuccess();
|
|
|
+ setTimeout(() => {
|
|
|
+ this.iframeLoadSuccess();
|
|
|
+ }, 300); // 延迟确保能删除footer
|
|
|
}
|
|
|
}, 500);
|
|
|
}
|