|
|
|
@ -514,7 +514,7 @@ export default { |
|
|
|
// console.info(this.margin) |
|
|
|
if (!this.form.lever_rate || !this.marginBuy) return 0; |
|
|
|
let p=this.marginBuy*this.form.lever_rate; |
|
|
|
|
|
|
|
p = p.toFixed(0) |
|
|
|
this.buyform.amount=p; |
|
|
|
return p |
|
|
|
}, |
|
|
|
@ -523,7 +523,7 @@ export default { |
|
|
|
// console.info(this.margin) |
|
|
|
if (!this.form.lever_rate || !this.marginSell) return 0; |
|
|
|
let p=this.marginSell*this.form.lever_rate; |
|
|
|
|
|
|
|
p = p.toFixed(0) |
|
|
|
this.sellform.amount=p; |
|
|
|
return p |
|
|
|
} |
|
|
|
|