|
|
|
@ -115,8 +115,9 @@ |
|
|
|
<v-input |
|
|
|
v-if="form.type == 1" |
|
|
|
disabled |
|
|
|
:value='$t("first.a4")' |
|
|
|
class="h-30 p-y-xxs rounded fn-center color-light bg-form-panel-3 p-x-xs" |
|
|
|
:value='$t("exchange.c6")' |
|
|
|
class="h-30 p-y-xxs rounded fn-center bg-form-panel-3 p-x-xs" |
|
|
|
style="color: grey;" |
|
|
|
></v-input> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
@ -866,9 +867,22 @@ export default { |
|
|
|
// #ifdef APP-PLUS |
|
|
|
return plus.os.name |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
marginCheck(){ |
|
|
|
return parseInt(this.margin); |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
marginCheck: { |
|
|
|
handler(n){ |
|
|
|
// console.log(n, '-1----'); |
|
|
|
if(n===0){ |
|
|
|
this.margin = ''; |
|
|
|
// console.log(this.margin, '--2---'); |
|
|
|
} |
|
|
|
}, |
|
|
|
immediate: true |
|
|
|
}, |
|
|
|
maxNum(n){ |
|
|
|
this.form.amount = Math.round((this.maxNum * this.sliderActive1) / 100); |
|
|
|
this.margin=(this.form.amount/this.form.lever_rate) |
|
|
|
|