From 300095853f6d921d4bc1b283b89a5582fbe83e75 Mon Sep 17 00:00:00 2001 From: TorsenLi Date: Thu, 11 Jun 2026 05:16:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=80=89=E6=8B=A9=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/exchangeStock/make-deal.vue | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/views/exchangeStock/make-deal.vue b/src/views/exchangeStock/make-deal.vue index 53a748b..6548fca 100644 --- a/src/views/exchangeStock/make-deal.vue +++ b/src/views/exchangeStock/make-deal.vue @@ -374,8 +374,7 @@ export default { if (!this.isMarket) { return Math.multiple(this.buyorder.entrust_price, this.buyorder.amount); } else { - // return this.cacheTotal; - return Math.multiple(this.buyorder.entrust_price, this.buyorder.amount); + return this.cacheTotal; } }, set(val) { @@ -383,9 +382,8 @@ export default { if (!this.isMarket) { this.buyorder.amount = Math.division(val, this.buyorder.entrust_price); } else { // 市价单 缓存总值 - // this.cacheTotal = val; - // this.buyorder.amount = this.cacheTotal - this.buyorder.amount = Math.division(val, this.buyorder.entrust_price,6); + this.cacheTotal = val; + this.buyorder.amount = this.cacheTotal; } } }, @@ -548,9 +546,7 @@ export default { renderBuyAmount(val, index) { - // console.Info(val) - // console.Info(this.buyorder) - if (!this.buyorder.entrust_price) { + if (!this.isMarket && !this.buyorder.entrust_price) { this.visibles.buy.limitPrice = true; this.msgList.buy[1] = this.$t('nav.set'); this.clearAll(); @@ -644,9 +640,7 @@ export default { this.buyorder.amount = 0; this.sellorder.amount = 0; - // total赋值会触发set方法 - // this.buyTotal = 0; - // this.cacheTotal = 0; + this.cacheTotal = 0; // 去除百分比样式 this.buyPercentIndex = -1;