Просмотр исходного кода

Merge branch 'feature_20260506_增加照片上传进度UI效果' into uat(dev)

zhujindu 2 дней назад
Родитель
Сommit
e7722fdb85
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      src/components/uploadVNormalTaskPhoto.vue

+ 4 - 3
src/components/uploadVNormalTaskPhoto.vue

@@ -506,10 +506,11 @@ export default {
           const offset = 251.2 * (1 - this.d2count / this.uploadImgTotal);
           document.getElementById('d2ring').style.strokeDashoffset = offset;
           document.getElementById('d2sub').textContent = `${this.d2count}/${this.uploadImgTotal}`;
-          if (this.d2count >= this.uploadImgTotal * 0.7) {
+          if (this.d2count >= Math.floor(this.uploadImgTotal * 0.7)) {
             clearTimeout(this.d2timer);
+            return;
           }
-          this.runD2();
+          this.runD2(delay);
         }, delay);
       } else {
         document.getElementById(`dot${this.d2count - 1}`).className = 'ring-dot done';
@@ -563,7 +564,7 @@ export default {
 .uploadImgDemoMask {
   position: fixed;
   inset: 0;
-  background: rgba(0, 0, 0, 0.3);
+  background: rgba(0, 0, 0, 0.5);
   z-index: 9998;
 }
 .uploadImgDemo {