fix(user-center): 单独弱化实际到账金额

This commit is contained in:
2026-09-16 13:10:13 +08:00
parent d4e33706cf
commit 3cedcd1bc2
2 changed files with 17 additions and 9 deletions
+10 -3
View File
@@ -859,9 +859,16 @@
badge.classList.add(status === 'rejected' ? 'c-red' : (status === 'completed' ? 'c-green' : 'c-blue'));
var gross = text(item && (item.gross_amount || item.amount));
var net = text(item && item.amount);
var amountText = formatGrossAmount(gross);
if (net !== '') amountText += '(实际到账:' + formatNetAmount(net) + '元)';
appendText(row, amountText, 'uc-withdraw-history__amount em12');
var amount = document.createElement('span');
amount.className = 'uc-withdraw-history__amount em12';
amount.appendChild(document.createTextNode(formatGrossAmount(gross)));
if (net !== '') {
var netText = document.createElement('span');
netText.className = 'uc-withdraw-history__net';
netText.textContent = '(实际到账:' + formatNetAmount(net) + '元)';
amount.appendChild(netText);
}
row.appendChild(amount);
var number = document.createElement('span');
number.className = 'uc-withdraw-history__number muted-2-color em09';
var numberLabel = document.createElement('span');