Browse Source

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

zhujindu 2 ngày trước cách đây
mục cha
commit
ee36ca0917
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/components/uploadVNormalTaskPhoto.vue

+ 4 - 4
src/components/uploadVNormalTaskPhoto.vue

@@ -453,7 +453,7 @@ export default {
       if (this.d2running) return;
       this.d2running = true;
       this.d2count = 0;
-      this.runD2(1000);
+      this.runD2(1200);
     },
     runD2(delay) {
       //   this.NAMES = Array.from(
@@ -485,10 +485,10 @@ export default {
           this.runD2(delay);
         }, delay);
       } else {
-        document.getElementById(`dot${this.d2count}`).className = 'ring-dot active';
+        document.getElementById(`dot0`).className = 'ring-dot active';
         document.getElementById('d2name').textContent = '正在上传。。。';
-        document.getElementById('d2pct').textContent = '30%';
-        document.getElementById('d2ring').style.strokeDashoffset = 30;
+        document.getElementById('d2pct').textContent = '50%';
+        document.getElementById('d2ring').style.strokeDashoffset = 50;
         document.getElementById('d2sub').textContent = `0/${this.uploadImgTotal}`;
       }
     },