From 6a5902050c246c7cce76ed6521eee0d8972c2b96 Mon Sep 17 00:00:00 2001 From: luyisha Date: Tue, 14 Nov 2023 15:10:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=B8=81=E5=B8=81=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=96=B9=E5=90=91=E9=80=89=E6=8B=A9=E7=99=BE=E5=88=86=E6=AF=94?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exchange/exchange-transaction.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pages/exchange/exchange-transaction.vue b/pages/exchange/exchange-transaction.vue index 5a5bf73..254e3b3 100644 --- a/pages/exchange/exchange-transaction.vue +++ b/pages/exchange/exchange-transaction.vue @@ -494,13 +494,13 @@ export default { dtime: null, scrollTop:0, refreshing:false, - marks:{ - 2: '0%', - 25: '25%', - 50: '50%', - 75: '75%', - 100: '100%', - } + marks:{ + 0: '0%', + 25: '25%', + 50: '50%', + 75: '75%', + 100: '100%', + } }; }, computed: { @@ -713,8 +713,10 @@ export default { }, // 计算滑动出来的金额 sliderChange(n,i) { + console.log(n,i,'-------'); let num = n/100; - this.sliderActive=i + // this.sliderActive=i;//按钮--数组内索引 + this.sliderActive=n;//滑块--对象内键名,切换方向时需要 if (this.form.direction == "buy") { if (!this.targetBalance.usable_balance) return; if (this.form.type == 0) { @@ -820,7 +822,8 @@ export default { changeDirection(type){ this.form.direction = type; this.getDefaultPrice(); - let n = this.progress[this.sliderActive]; + // let n = this.progress[this.sliderActive];// 按钮--数组 + let n = this.sliderActive;// 滑块--对象 this.sliderChange(n, this.sliderActive); }, // 计算深度 From 8d39eb3f833d4f37098e9996c312510036aa6447 Mon Sep 17 00:00:00 2001 From: luyisha Date: Tue, 14 Nov 2023 16:01:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=B8=81=E5=B8=81=E5=90=88=E7=BA=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exchange/exchange-transaction.vue | 3 ++ pages/exchange/open-position.vue | 69 +++++++++++++++---------- 2 files changed, 46 insertions(+), 26 deletions(-) diff --git a/pages/exchange/exchange-transaction.vue b/pages/exchange/exchange-transaction.vue index 044886e..842ea61 100644 --- a/pages/exchange/exchange-transaction.vue +++ b/pages/exchange/exchange-transaction.vue @@ -1163,4 +1163,7 @@ export default { .reda{ color: #CA3F66; } +::v-deep .el-slider__button-wrapper{ + z-index: 1; +} diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index d903a0d..63f8e1a 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -142,7 +142,7 @@ @change="form.entrust_price=$event.detail" v-if="form.type == 0" /> --> - + {{$t('exchange.d2')}}(USDT) @@ -179,8 +179,9 @@ :placeholder="$t('exchange.c5')" style="border: 1px solid #202020;"> @@ -234,16 +235,30 @@ {{$t('first.a3')}} ({{$t('reg.b4')}}) --> - - - {{ $t("common.c3") }} - - {{ maxNum }} - {{ $t("contract.d8") }} - - - - + + + {{ $t("contract.d4") }}(USDT) + + {{ accountInfo.account_equity || "--"}} + + + + + + + {{ $t("contract.e4") }}(USDT) + {{accountInfo.usable_balance}} + + + + {{ $t("common.c3") }} + + {{ maxNum }} + {{ $t("contract.d8") }} + + + + - {{ $t('contract.i4') }}/{{ $t('contract.i7') }} + {{ $t('contract.i4') }}/{{ $t('contract.i7') }} @@ -301,7 +316,7 @@ {{ $t("contract.c0") }} - + - - --> - - {{ form.amount}} USDT + {{amount}} - --> +