wwf
12 小时以前 9a6cd220224fd3a9a6c84b5bb37c6410a470969f
src/views/h5/faceAuth/components/auditDialog.vue
@@ -66,7 +66,8 @@
  data() {
    return {
      dialogFlag: false,
      status: ''
      status: '',
      url: ''
    }
  },
  props: {
@@ -99,16 +100,15 @@
  methods: {
    async submitAudit() {
      this.status = 'auditing'
      const url = await uploadByBase64(this.base64 ,'人脸照片')
      if (!url) {
      this.url = await uploadByBase64(this.base64 ,'人脸照片')
      if (!this.url) {
        this.status = 'fail'
        return
      }
      const params = { faceImgPath: url  }
      const params = { faceImgPath: this.url  }
      this.$axios.get('/system/auth/staff/checkin/face-match', { params }).then(res => {
        if (res.data.code == 0) {
          // this.status = res.data.data ? 'success' : 'fail'
          this.status = 'success'
          this.status = res.data.data ? 'success' : 'fail'
        } else {
          this.status = 'fail'
          this.$message.error(res.data.msg || "人脸比对失败")
@@ -119,7 +119,7 @@
    },
    handlerSuccess() {
      this.dialogFlag = false
      this.$emit('handlerSuccess')
      this.$emit('handlerSuccess', this.url)
    }
  }
}