diff --git a/src/views/contract/exchange-store.vue b/src/views/contract/exchange-store.vue index e6f566b..9cc064f 100644 --- a/src/views/contract/exchange-store.vue +++ b/src/views/contract/exchange-store.vue @@ -529,7 +529,7 @@ export default { // console.info(this.form.lever_rate) // console.info(this.margin) if (!this.form.lever_rate || !this.marginBuy) return 0; - let p=this.marginBuy*this.form.lever_rate; + let p = Math.round(this.marginBuy*this.form.lever_rate); this.buyform.amount=p; return p @@ -538,7 +538,7 @@ export default { // console.info(this.form.lever_rate) // console.info(this.marginSell) if (!this.form.lever_rate || !this.marginSell) return 0; - let p=this.marginSell*this.form.lever_rate; + let p = Math.round(this.marginSell*this.form.lever_rate); this.sellform.amount=p; return p @@ -559,7 +559,7 @@ export default { // if (!this.form.lever_rate) { // this.form.lever_rate = res.lever_rate; // } - if (this.form.lever_rate && !boo) { + if (this.form.lever_rate) { this.openNum(); } });