Przeglądaj źródła

feature_20260506_增加照片上传进度UI效果

zhujindu 2 dni temu
rodzic
commit
d274658408
1 zmienionych plików z 8 dodań i 3 usunięć
  1. 8 3
      src/components/uploadVNormalTaskPhoto.vue

+ 8 - 3
src/components/uploadVNormalTaskPhoto.vue

@@ -369,8 +369,13 @@ export default {
     },
     // 正常流程
     normalFlow(res) {
-      this.runD2(100, false, () => {
+      if (this.d2timer) {
         clearTimeout(this.d2timer);
+      }
+      this.runD2(100, false, () => {
+        if (this.d2timer) {
+          clearTimeout(this.d2timer);
+        }
         this.d2running = false;
         this.d2count = 0;
         this.uploadImgTotal = 0;
@@ -548,14 +553,14 @@ export default {
   z-index: 9998;
 }
 .uploadImgDemo {
-  width: 90%;
+  width: 95%;
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 9999;
   background: #fff;
-  padding: 10px 0;
+  padding: 10px 5px;
 }
 .uploadImgDemo .ring-area {
   display: none;