Parcourir la source

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

zhujindu il y a 1 jour
Parent
commit
f2179ff25a
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      src/components/uploadVNormalTaskPhoto.vue

+ 5 - 2
src/components/uploadVNormalTaskPhoto.vue

@@ -390,7 +390,7 @@ export default {
       if (this.d2timer) {
         clearTimeout(this.d2timer);
       }
-      this.runD2(100, false, () => {
+      this.runD2(800, false, () => {
         if (this.d2timer) {
           clearTimeout(this.d2timer);
         }
@@ -507,7 +507,10 @@ 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 >= Math.floor(this.uploadImgTotal * 0.8) && isFirst) {
+          if (
+            this.d2count >= Math.floor(this.uploadImgTotal * (0.4 + Math.random() * 0.5)) &&
+            isFirst
+          ) {
             clearTimeout(this.d2timer);
             return;
           }