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

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

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

+ 1 - 2
src/components/uploadVNormalTaskPhoto.vue

@@ -488,14 +488,13 @@ 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.7)) {
+          if (this.d2count >= Math.floor(this.uploadImgTotal * 0.8)) {
             clearTimeout(this.d2timer);
             return;
           }
           this.runD2(delay);
         }, delay);
       } else {
-        document.getElementById(`dot${this.d2count - 1}`).className = 'ring-dot done';
         document.getElementById(`dot${this.d2count}`).className = 'ring-dot active';
         document.getElementById('d2name').textContent = '正在上传。。。';
         document.getElementById('d2pct').textContent = '30%';