|
|
|
@ -544,8 +544,7 @@ export default { |
|
|
|
console.info(this.form.lever_rate) |
|
|
|
console.info(this.margin_buy) |
|
|
|
if (!this.form.lever_rate || !this.margin_buy) return 0; |
|
|
|
// let p=this.margin_buy*this.form.lever_rate; |
|
|
|
let p=this.margin_buy; |
|
|
|
let p=this.margin_buy*this.form.lever_rate; |
|
|
|
|
|
|
|
this.form.amount_buy=p; |
|
|
|
return p |
|
|
|
@ -554,8 +553,7 @@ export default { |
|
|
|
console.info(this.form.lever_rate) |
|
|
|
console.info(this.margin_sell) |
|
|
|
if (!this.form.lever_rate || !this.margin_sell) return 0; |
|
|
|
// let p=this.margin_sell*this.form.lever_rate; |
|
|
|
let p=this.margin_sell; |
|
|
|
let p=this.margin_sell*this.form.lever_rate; |
|
|
|
|
|
|
|
this.form.amount_sell=p; |
|
|
|
return p |
|
|
|
|