From a25cfb906a717cf779b4056c318f3e07c355a92d Mon Sep 17 00:00:00 2001 From: fish Date: Tue, 28 Jul 2026 10:00:56 +0800 Subject: [PATCH] =?UTF-8?q?PNL=E5=BC=B9=E7=AA=97=E6=89=8B=E7=BB=AD?= =?UTF-8?q?=E8=B4=B9=E9=87=91=E9=A2=9D=E9=A2=9C=E8=89=B2=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=BB=BF=E8=89=B2?= 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html index d98091b..c1bda20 100644 --- a/ft-app/app/templates/trades.html +++ b/ft-app/app/templates/trades.html @@ -374,8 +374,8 @@ function showPnlDrawer(title, direction, openPrice, closePrice, openFee, closeFe var html = '项目计算金额'; html += '价差' + (direction === 'short' ? openPrice + ' - ' + closePrice : closePrice + ' - ' + openPrice) + '' + diff.toFixed(2) + ' 点'; html += '毛利' + diff.toFixed(2) + ' × ' + pointValue + '' + gross.toFixed(2) + ''; - html += '开仓手续费-' + openFee.toFixed(2) + ''; - html += '平仓手续费-' + closeFee.toFixed(2) + ''; + 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('pnlOverlay').style.display = 'block';