Kaynağa Gözat

图像识别

zhujindu 1 yıl önce
ebeveyn
işleme
da2c829d05

+ 6 - 1
src/components/imageAIVerifyErr.vue

@@ -5,7 +5,7 @@
       <div class="content">
         <div class="AIVerify">{{ contentMessage }}</div>
         <van-cell>
-          <template #title> <span class="van-f-red">*</span>拍照上传</template>
+          <template #title> <span class="van-f-red">*</span>重新拍照上传</template>
           <template #right-icon>
             <van-icon
               class="photo photos"
@@ -132,5 +132,10 @@ export default {
     /*margin-top: 9px;*/
     float: right;
   }
+  .title {
+    font-size: 14px;
+    text-align: center;
+    padding: 5px;
+  }
 }
 </style>

+ 3 - 2
src/components/uploadImgVStore.vue

@@ -165,12 +165,13 @@ export default {
         locationRemark: localStorage.getItem('locationRemark'),
         deptName: localStorage.getItem('deptName'),
       };
-      this.toastLoading(0, '上传中...', true);
       // 需要图匠校验的添加参数和loading
       if (this.photoIdentifyType) {
         // store.dispatch('setShotsNum', this.shotsNum + 1);
         form.photoIdentifyType = this.photoIdentifyType;
         this.progress();
+      } else {
+        this.toastLoading(0, '上传中...', true);
       }
       uploadImagev(form).then((res) => {
         this.toastLoading().clear();
@@ -205,7 +206,7 @@ export default {
       }, 1000);
     },
     format(percentage) {
-      return 'format';
+      return `${percentage} %\n图像识别中`;
     },
     requestTimeOut(res) {
       this.resetProgress();