diff --git a/assets/css/routes/user-center/credits.css b/assets/css/routes/user-center/credits.css index 5abd9c5b..c709568c 100644 --- a/assets/css/routes/user-center/credits.css +++ b/assets/css/routes/user-center/credits.css @@ -899,8 +899,6 @@ body.uc-modal-open { gap: 12px; min-width: 0; padding: 10px 0; - color: var(--muted-color, #7f8790); - font-size: 13px; border-bottom: 1px solid var(--muted-border-color, rgba(0,0,0,.08)); white-space: nowrap; } @@ -913,15 +911,18 @@ body.uc-modal-open { } .uc-withdraw-history__amount { min-width: 84px; - color: var(--muted-color, #737b84); text-align: right; - font-size: 13px; - font-weight: 600; + font-weight: 700; +} +.uc-withdraw-history__net { + margin-left: 4px; + color: var(--muted-2-color, #9aa1a8); + font-size: .78em; + font-weight: 400; } .uc-withdraw-history__number, .uc-withdraw-history__meta { min-width: 0; - color: var(--muted-2-color, #9aa1a8); overflow: hidden; text-overflow: ellipsis; } diff --git a/assets/js/credits.js b/assets/js/credits.js index aa10996d..6f259bda 100644 --- a/assets/js/credits.js +++ b/assets/js/credits.js @@ -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');