|
|
|
@ -246,7 +246,8 @@ |
|
|
|
<div v-if="tab == 1" class="kaicang"> |
|
|
|
<div class="d-flex justify-content-between mb-3"> |
|
|
|
<div class="color_7c">{{ $t("contract.e7") }} </div> |
|
|
|
<div>{{ accountInfo.account_equity }}</div> |
|
|
|
<!-- <div>{{ accountInfo.account_equity }}</div> --> |
|
|
|
<div>{{ maxNum }}</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-between mb-3"> |
|
|
|
<div class="color_7c">{{ $t("contract.e1") }}</div> |
|
|
|
@ -508,7 +509,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 |
|
|
|
@ -517,7 +518,7 @@ export default { |
|
|
|
// console.info(this.form.lever_rate) |
|
|
|
// console.info(this.margin) |
|
|
|
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 |
|
|
|
|