Browse Source

图像识别

zhujindu 1 year ago
parent
commit
e5ba7069b6
3 changed files with 24 additions and 6 deletions
  1. 17 3
      src/components/imageAIVerifyErr.vue
  2. 5 2
      src/components/uploadImgVStore.vue
  3. 2 1
      src/utils/request.js

+ 17 - 3
src/components/imageAIVerifyErr.vue

@@ -4,7 +4,7 @@
       <div class="title">图像识别结果</div>
       <div class="content">
         <div class="AIVerify">{{ contentMessage }}</div>
-        <div class="uploadImg" @uploadImg="uploadImg">
+        <div class="uploadImg" @click="uploadImg">
           <div class="label"><span class="van-f-red">*</span>重新拍照上传</div>
           <div class="icon">
             <van-icon class="photo photos" name="photograph" size="22px" color="#969696" />
@@ -60,6 +60,7 @@ export default {
       // cheatType	作弊类型
       // qualifiedState 是否合格(0:不合格,1:合格)
       // unqualifiedReason	不合格原因
+      console.log(this.imageAIVerifyData);
       let checkInfo = this.imageAIVerifyData[0].npkpiData.checkInfo || null;
       if (checkInfo) {
         if (checkInfo.qualifiedState == 0) {
@@ -90,6 +91,7 @@ export default {
 </script>
 <style scoped lang="scss">
 .imageAIVerifyErr {
+  border-radius: 8px;
   .van-popup {
     width: 80%;
     padding: 8px;
@@ -105,7 +107,7 @@ export default {
     float: right;
   }
   .title {
-    font-size: 14px;
+    font-size: 16px;
     text-align: center;
     padding: 5px;
   }
@@ -114,7 +116,7 @@ export default {
     border-bottom: 1px solid #ccc;
     .AIVerify {
       padding: 5px;
-      font-size: 12px;
+      font-size: 14px;
       color: red;
       text-align: center;
     }
@@ -122,6 +124,18 @@ export default {
       display: flex;
       align-items: center;
       justify-content: space-between;
+      .label {
+        font-size: 14px;
+      }
+    }
+  }
+  .btn {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    .tips {
+      font-size: 14px;
+      color: rgb(232, 232, 100);
     }
   }
 }

+ 5 - 2
src/components/uploadImgVStore.vue

@@ -313,10 +313,13 @@ export default {
   top: 42%;
 }
 .mask {
-  position: absolute;
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
   width: 100%;
   height: 100%;
-  top: 0;
   background: rgba(255, 255, 255, 0.8);
   display: flex;
   justify-content: center;

+ 2 - 1
src/utils/request.js

@@ -9,7 +9,8 @@ import errorCode from '@/utils/errorCode';
 axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
 const service = axios.create({
   baseURL: process.env.VUE_APP_BASE_API,
-  timeout: 30000,
+  // timeout: 30000,
+  timeout: 0,
   withCredentials: true,
 });
 // request拦截器