|
@@ -1467,7 +1467,17 @@ export default {
|
|
|
this.loading = true;
|
|
|
let compareFaceData = await this.faceRecognition();
|
|
|
this.compareFaceData = compareFaceData;
|
|
|
- if (compareFaceData == 0) {
|
|
|
+ if (compareFaceData >= 80) {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "拍照成功",
|
|
|
+ });
|
|
|
+ const waitYS = await this.imageInfos();
|
|
|
+ this.loading = false;
|
|
|
+ this.takePhotoModal = false;
|
|
|
+ this.isTaking = true;
|
|
|
+ this.postStudyRecord(); //提交记录
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
message: "人脸匹配不通过,请重新拍照上传",
|
|
@@ -1477,21 +1487,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.reTake();
|
|
|
}, 2000);
|
|
|
- return;
|
|
|
}
|
|
|
-
|
|
|
- if (compareFaceData >= 80) {
|
|
|
- const waitYS = await this.imageInfos();
|
|
|
- this.postStudyRecord(); //提交记录
|
|
|
- }
|
|
|
-
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "拍照成功",
|
|
|
- });
|
|
|
- this.loading = false;
|
|
|
- this.takePhotoModal = false;
|
|
|
- this.isTaking = true;
|
|
|
},
|
|
|
|
|
|
postStudyRecord() {
|