|
|
|
@ -105,9 +105,11 @@ |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<div class="px-2" v-if="this.tab == 1"> |
|
|
|
<!-- :value="activeStepBuy" |
|
|
|
@input="sliderChangeBuy" --> |
|
|
|
<el-slider |
|
|
|
:value="activeStepBuy" |
|
|
|
@input="sliderChangeBuy" |
|
|
|
v-model="activeStepBuy" |
|
|
|
@change="sliderChangeBuy" |
|
|
|
:format-tooltip="tooltip" |
|
|
|
:marks="marks" |
|
|
|
:step="25" |
|
|
|
@ -226,9 +228,11 @@ |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<div class="px-2" v-if="this.tab == 1"> |
|
|
|
<!-- :value="activeStepSell" |
|
|
|
@input="sliderChangeSell" --> |
|
|
|
<el-slider |
|
|
|
:value="activeStepSell" |
|
|
|
@input="sliderChangeSell" |
|
|
|
v-model="activeStepSell" |
|
|
|
@change="sliderChangeSell" |
|
|
|
:format-tooltip="tooltip" |
|
|
|
:marks="marks" |
|
|
|
:step="25" |
|
|
|
@ -383,7 +387,9 @@ export default { |
|
|
|
marginBuy:0, |
|
|
|
marginSell:0, |
|
|
|
checkboxBuy: false, |
|
|
|
checkboxSell: false |
|
|
|
checkboxSell: false, |
|
|
|
activeStepBuy:0, |
|
|
|
activeStepSell:0 |
|
|
|
}; |
|
|
|
}, |
|
|
|
props: { |
|
|
|
@ -483,16 +489,16 @@ export default { |
|
|
|
if (!item) return 0; |
|
|
|
return item.avail_position; |
|
|
|
}, |
|
|
|
activeStepBuy() { |
|
|
|
if (!this.buyform.amount || !this.maxNum) return 0; |
|
|
|
let num = (this.buyform.amount / this.maxNum) * 100; |
|
|
|
return num; |
|
|
|
}, |
|
|
|
activeStepSell() { |
|
|
|
if (!this.sellform.amount || !this.maxNum) return 0; |
|
|
|
let num = (this.sellform.amount / this.maxNum) * 100; |
|
|
|
return num; |
|
|
|
}, |
|
|
|
// activeStepBuy() { |
|
|
|
// if (!this.buyform.amount || !this.maxNum) return 0; |
|
|
|
// let num = (this.buyform.amount / this.maxNum) * 100; |
|
|
|
// return num; |
|
|
|
// }, |
|
|
|
// activeStepSell() { |
|
|
|
// if (!this.sellform.amount || !this.maxNum) return 0; |
|
|
|
// let num = (this.sellform.amount / this.maxNum) * 100; |
|
|
|
// return num; |
|
|
|
// }, |
|
|
|
// 保证金 |
|
|
|
// margin() { |
|
|
|
// if (!this.form.lever_rate) return ''; |
|
|
|
|