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; }