From 0f5c17f1482a1dbb3b0e7a4743300120689d3f43 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 28 Feb 2024 11:22:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=96=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/exchange-store.vue | 42 +++++++++++++++------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/src/views/contract/exchange-store.vue b/src/views/contract/exchange-store.vue index cdf9479..41c2c86 100644 --- a/src/views/contract/exchange-store.vue +++ b/src/views/contract/exchange-store.vue @@ -108,11 +108,10 @@
@@ -231,11 +230,10 @@
@@ -388,8 +386,8 @@ export default { marginSell:0, checkboxBuy: false, checkboxSell: false, - activeStepBuy:0, - activeStepSell:0 + // activeStepBuy:0, + // activeStepSell:0 }; }, props: { @@ -489,16 +487,24 @@ 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() { + let num = 0 + if (!this.buyform.amount || !this.maxNum){ + num = (this.buyform.amount / this.maxNum) * 100; + }else{ + num = (this.buyform.amount / this.maxNum) * 100; + } + 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() { // if (!this.form.lever_rate) return '';