Merge pull request #26 from wowario/bubbles

fix bubbles
v0.1.4
清武 博二 4 years ago committed by GitHub
commit b54c36f498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,18 +30,17 @@
return (this.$store.getters.btc_rate) * this.$store.getters.wallet.balance; return (this.$store.getters.btc_rate) * this.$store.getters.wallet.balance;
}, },
bubble_img() { bubble_img() {
let rate = this.$store.getters.usd_rate; let bal = this.$store.getters.wallet.balance;
let usd = (rate / 1000) * this.$store.getters.wallet.balance;
if(usd < 1){ if(bal < 1){
return this.path_bubble(0); return this.path_bubble(0);
} else if(usd < 100){ } else if(bal < 100){
return this.path_bubble(1); return this.path_bubble(1);
} else if(usd < 500){ } else if(bal < 1000){
return this.path_bubble(2); return this.path_bubble(2);
} else if(usd < 1000){ } else if(bal < 2000){
return this.path_bubble(3); return this.path_bubble(3);
} else if(usd < 1000){ } else if(bal > 2000){
return this.path_bubble(4); return this.path_bubble(4);
} }
} }

@ -47,18 +47,17 @@
return this.$store.getters.btc_rate * this.$store.getters.wallet.balance; return this.$store.getters.btc_rate * this.$store.getters.wallet.balance;
}, },
bubble_img() { bubble_img() {
let rate = this.$store.getters.usd_rate; let bal = this.$store.getters.wallet.balance;
let usd = (rate / 1000) * this.$store.getters.wallet.balance;
if(usd < 1){ if(bal < 1){
return this.path_bubble(0); return this.path_bubble(0);
} else if(usd < 100){ } else if(bal < 100){
return this.path_bubble(1); return this.path_bubble(1);
} else if(usd < 500){ } else if(bal < 1000){
return this.path_bubble(2); return this.path_bubble(2);
} else if(usd < 1000){ } else if(bal < 2000){
return this.path_bubble(3); return this.path_bubble(3);
} else if(usd < 1000){ } else if(bal > 2000){
return this.path_bubble(4); return this.path_bubble(4);
} }
} }

Loading…
Cancel
Save