From 9bce3814971122b96910cf9a2e59cd3cd8c54f20 Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 27 Jul 2026 15:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E5=B9=B3=E4=BB=93=E7=9B=88=E4=BA=8F?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E6=94=B9=E4=B8=BA=E7=BA=A2=E6=B6=A8=E7=BB=BF?= =?UTF-8?q?=E8=B7=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- ft-app/app/templates/trades.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html index a961dec..b99e3f8 100644 --- a/ft-app/app/templates/trades.html +++ b/ft-app/app/templates/trades.html @@ -166,7 +166,7 @@ {% set p = t.pnl %} {% if p is not none %} - + {% if p > 0 %}+{% endif %}{{ p }} - 盈亏合计 {% if ns.total_pnl > 0 %}+{% endif %}{{ '%.2f'|format(ns.total_pnl) }} + 盈亏合计 {% if ns.total_pnl > 0 %}+{% endif %}{{ '%.2f'|format(ns.total_pnl) }} | 开仓手续费 {{ '%.2f'|format(ns.total_open_fee) }} | @@ -306,7 +306,7 @@ function showPnlDrawer(title, direction, openPrice, closePrice, openFee, closeFe html += '开仓手续费-' + openFee.toFixed(2) + ''; html += '平仓手续费-' + closeFee.toFixed(2) + ''; document.getElementById('pnlTable').innerHTML = html; - document.getElementById('pnlResult').innerHTML = '盈亏 = ' + gross.toFixed(2) + ' - ' + openFee.toFixed(2) + ' - ' + closeFee.toFixed(2) + ' = ' + (result > 0 ? '+' : '') + result.toFixed(2) + ''; + document.getElementById('pnlResult').innerHTML = '盈亏 = ' + gross.toFixed(2) + ' - ' + openFee.toFixed(2) + ' - ' + closeFee.toFixed(2) + ' = ' + (result > 0 ? '+' : '') + result.toFixed(2) + ''; document.getElementById('pnlOverlay').style.display = 'block'; document.getElementById('pnlBox').style.display = 'block'; }