|
|
@ -186,7 +186,7 @@ |
|
|
class="h-30 p-x-ms rounded bg-form-panel-3 fn-12 fn-center" |
|
|
class="h-30 p-x-ms rounded bg-form-panel-3 fn-12 fn-center" |
|
|
> |
|
|
> |
|
|
</v-input> |
|
|
</v-input> |
|
|
<v-input |
|
|
<v-input |
|
|
:placeholder="$t('contract.i7')" |
|
|
:placeholder="$t('contract.i7')" |
|
|
v-model="form.sl_trigger_price" |
|
|
v-model="form.sl_trigger_price" |
|
|
class="h-30 p-x-ms m-l-xs rounded fn-12 bg-form-panel-3" |
|
|
class="h-30 p-x-ms m-l-xs rounded fn-12 bg-form-panel-3" |
|
|
@ -849,7 +849,7 @@ export default { |
|
|
console.info(this.margin) |
|
|
console.info(this.margin) |
|
|
if (!this.form.lever_rate || !this.margin) return 0; |
|
|
if (!this.form.lever_rate || !this.margin) return 0; |
|
|
let p=this.margin*this.form.lever_rate; |
|
|
let p=this.margin*this.form.lever_rate; |
|
|
|
|
|
p = p.toFixed(0) |
|
|
this.form.amount=p; |
|
|
this.form.amount=p; |
|
|
return p |
|
|
return p |
|
|
}, |
|
|
}, |
|
|
|