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