|
|
@ -108,11 +108,10 @@ |
|
|
<!-- :value="activeStepBuy" |
|
|
<!-- :value="activeStepBuy" |
|
|
@input="sliderChangeBuy" --> |
|
|
@input="sliderChangeBuy" --> |
|
|
<el-slider |
|
|
<el-slider |
|
|
v-model="activeStepBuy" |
|
|
:value="activeStepBuy" |
|
|
@change="sliderChangeBuy" |
|
|
@input="sliderChangeBuy" |
|
|
:format-tooltip="tooltip" |
|
|
:format-tooltip="tooltip" |
|
|
:marks="marks" |
|
|
:marks="marks" |
|
|
:step="25" |
|
|
|
|
|
></el-slider> |
|
|
></el-slider> |
|
|
</div> |
|
|
</div> |
|
|
<div class="d-flex justify-content-between mb-3 color_7c fn-10"> |
|
|
<div class="d-flex justify-content-between mb-3 color_7c fn-10"> |
|
|
@ -231,11 +230,10 @@ |
|
|
<!-- :value="activeStepSell" |
|
|
<!-- :value="activeStepSell" |
|
|
@input="sliderChangeSell" --> |
|
|
@input="sliderChangeSell" --> |
|
|
<el-slider |
|
|
<el-slider |
|
|
v-model="activeStepSell" |
|
|
:value="activeStepSell" |
|
|
@change="sliderChangeSell" |
|
|
@input="sliderChangeSell" |
|
|
:format-tooltip="tooltip" |
|
|
:format-tooltip="tooltip" |
|
|
:marks="marks" |
|
|
:marks="marks" |
|
|
:step="25" |
|
|
|
|
|
></el-slider> |
|
|
></el-slider> |
|
|
</div> |
|
|
</div> |
|
|
<div class="d-flex justify-content-between mb-3 color_7c fn-10"> |
|
|
<div class="d-flex justify-content-between mb-3 color_7c fn-10"> |
|
|
@ -388,8 +386,8 @@ export default { |
|
|
marginSell:0, |
|
|
marginSell:0, |
|
|
checkboxBuy: false, |
|
|
checkboxBuy: false, |
|
|
checkboxSell: false, |
|
|
checkboxSell: false, |
|
|
activeStepBuy:0, |
|
|
// activeStepBuy:0, |
|
|
activeStepSell:0 |
|
|
// activeStepSell:0 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
@ -489,16 +487,24 @@ export default { |
|
|
if (!item) return 0; |
|
|
if (!item) return 0; |
|
|
return item.avail_position; |
|
|
return item.avail_position; |
|
|
}, |
|
|
}, |
|
|
// activeStepBuy() { |
|
|
activeStepBuy() { |
|
|
// if (!this.buyform.amount || !this.maxNum) return 0; |
|
|
let num = 0 |
|
|
// let num = (this.buyform.amount / this.maxNum) * 100; |
|
|
if (!this.buyform.amount || !this.maxNum){ |
|
|
// return num; |
|
|
num = (this.buyform.amount / this.maxNum) * 100; |
|
|
// }, |
|
|
}else{ |
|
|
// activeStepSell() { |
|
|
num = (this.buyform.amount / this.maxNum) * 100; |
|
|
// if (!this.sellform.amount || !this.maxNum) return 0; |
|
|
} |
|
|
// let num = (this.sellform.amount / this.maxNum) * 100; |
|
|
return num; |
|
|
// return num; |
|
|
}, |
|
|
// }, |
|
|
activeStepSell() { |
|
|
|
|
|
let num = 0 |
|
|
|
|
|
if (!this.sellform.amount || !this.maxNum){ |
|
|
|
|
|
num = (this.sellform.amount / this.maxNum) * 100; |
|
|
|
|
|
}else{ |
|
|
|
|
|
num = (this.sellform.amount / this.maxNum) * 100; |
|
|
|
|
|
} |
|
|
|
|
|
return num; |
|
|
|
|
|
}, |
|
|
// 保证金 |
|
|
// 保证金 |
|
|
// margin() { |
|
|
// margin() { |
|
|
// if (!this.form.lever_rate) return ''; |
|
|
// if (!this.form.lever_rate) return ''; |
|
|
|