|
|
|
@ -50,20 +50,14 @@ |
|
|
|
:class="{ |
|
|
|
' color-plain': form.direction == 'buy', |
|
|
|
}" |
|
|
|
@click=" |
|
|
|
form.direction = 'buy'; |
|
|
|
getDefaultPrice(); |
|
|
|
" |
|
|
|
@click="changeDirection('buy')" |
|
|
|
>{{ $t("exchange.c3") }}</view> |
|
|
|
<view |
|
|
|
class="color-gray w-6/12 h-34 d-flex justify-center align-center" |
|
|
|
:class="{ |
|
|
|
' color-plain': form.direction == 'sell', |
|
|
|
}" |
|
|
|
@click=" |
|
|
|
form.direction = 'sell'; |
|
|
|
getDefaultPrice(); |
|
|
|
" |
|
|
|
@click="changeDirection('sell')" |
|
|
|
>{{ $t("exchange.c4") }}</view> |
|
|
|
</view> |
|
|
|
<!-- <v-picker :list="typeList" v-model="form.type" class="p-y-md fn-14"> |
|
|
|
@ -705,6 +699,13 @@ export default { |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 切换方向 |
|
|
|
changeDirection(type){ |
|
|
|
this.form.direction = type; |
|
|
|
this.getDefaultPrice(); |
|
|
|
let n = this.progress[this.sliderActive]; |
|
|
|
this.sliderChange(n, this.sliderActive); |
|
|
|
}, |
|
|
|
// 计算深度 |
|
|
|
getValue(amount) { |
|
|
|
const arr = this.buyList.concat(this.sellList).map((item) => item.amount); |
|
|
|
|