Browse Source

进度条修改

master
aBin 4 years ago
parent
commit
da525d3dcf
  1. 6
      src/components/Panel/Panel.vue

6
src/components/Panel/Panel.vue

@ -65,11 +65,11 @@ export default {
this.info = '呼叫';
this.setStartMessages(false);
} else {
if (val.step && val.step - 0 > (this.percent * 13) / 100 && val.step - 0 <= 13) {
if ((val.step || val.step === '0') && val.step - 0 >= (this.percent * 13) / 100 && val.step - 0 <= 13) {
console.log(val.step - 0, this.percent);
this.percent = ((val.step - 0) * 100) / 12;
this.percent = ((val.step - 0 + 1) * 100) / 12;
this.percentA = (this.percent * 100) / 120 + '%';
this.info = this.lists[val.step - 0];
this.info = this.lists[val.step - 0 + 1];
}
}
},

Loading…
Cancel
Save