|
@@ -390,7 +390,7 @@ export default {
|
|
|
if (this.d2timer) {
|
|
if (this.d2timer) {
|
|
|
clearTimeout(this.d2timer);
|
|
clearTimeout(this.d2timer);
|
|
|
}
|
|
}
|
|
|
- this.runD2(100, false, () => {
|
|
|
|
|
|
|
+ this.runD2(800, false, () => {
|
|
|
if (this.d2timer) {
|
|
if (this.d2timer) {
|
|
|
clearTimeout(this.d2timer);
|
|
clearTimeout(this.d2timer);
|
|
|
}
|
|
}
|
|
@@ -507,7 +507,10 @@ export default {
|
|
|
const offset = 251.2 * (1 - this.d2count / this.uploadImgTotal);
|
|
const offset = 251.2 * (1 - this.d2count / this.uploadImgTotal);
|
|
|
document.getElementById('d2ring').style.strokeDashoffset = offset;
|
|
document.getElementById('d2ring').style.strokeDashoffset = offset;
|
|
|
document.getElementById('d2sub').textContent = `${this.d2count}/${this.uploadImgTotal}`;
|
|
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);
|
|
clearTimeout(this.d2timer);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|