From 1775eb6227ed2f8ab7da8a464881ee43c82f724b Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Thu, 29 Feb 2024 15:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E7=BA=A6=E6=B7=BB=E5=8A=A0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=B8=81=E5=B8=81=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/handicap.vue | 2 +- src/views/contract/index.vue | 55 ++++++++++++++++++++++++++++++--- src/views/exchange/symbols.vue | 6 ++-- 3 files changed, 55 insertions(+), 8 deletions(-) diff --git a/src/views/contract/handicap.vue b/src/views/contract/handicap.vue index 66d1eb7..1b1b1c6 100644 --- a/src/views/contract/handicap.vue +++ b/src/views/contract/handicap.vue @@ -197,7 +197,7 @@ export default { } bus.$on('collapse', msg => { // this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); - const closeStr = msg.close.toString(); + const closeStr = msg.close.toFixed(1) this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4); this.$emit("input", this.newPriceObj); }); diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index 6cf1aaf..d76550e 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -31,9 +31,18 @@ style="max-height:300px;overflow:auto;" >