From e53f38639e6d4c80315ed6f72bc8e9759801dccd Mon Sep 17 00:00:00 2001 From: luyisha Date: Wed, 14 Jun 2023 16:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E7=BA=A6=E7=9B=98=E5=8F=A3=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E7=82=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/handicap.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/contract/handicap.vue b/src/views/contract/handicap.vue index 736f5ba..ed3562f 100644 --- a/src/views/contract/handicap.vue +++ b/src/views/contract/handicap.vue @@ -169,18 +169,22 @@ export default { }; }, sellListShow() { - let list = this.sellList.splice(0, 12); - let total = 0; - list.forEach(item => { - item.total = total += item.amount; - }); - return list.reverse(); + let list = this.sellList.splice(0, 12); + let total = 0; + list.forEach(item => { + // item.total = total += item.amount; + item.total = total += Number(item.amount); + item.total = item.total.toFixed(3) + }); + return list.reverse(); }, buyListShow() { let list = this.buyList.splice(0, 12); let total = 0; list.forEach(item => { - item.total = total += item.amount; + // item.total = total += item.amount; + item.total = total += Number(item.amount); + item.total = item.total.toFixed(3); }); return list; }