Only show refund received button when email has refund status
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -722,11 +722,13 @@ class MailManager {
|
||||
|
||||
renderRefundBtn(email) {
|
||||
const info = this.claudePaymentStatuses[email];
|
||||
const isReceived = info && info.refund_received === '1';
|
||||
// 只有已退款状态才显示退款到账按钮
|
||||
if (!info || !info.refund_time) return '';
|
||||
const isReceived = info.refund_received === '1';
|
||||
if (isReceived) {
|
||||
return `<button class="view" style="background:rgba(16,185,129,0.1);color:#059669;border-color:rgba(16,185,129,0.15);" onclick="app.confirmRefundToggle('${this.escapeHtml(email)}')">已到账</button>`;
|
||||
}
|
||||
return `<button class="view" onclick="app.confirmRefundToggle('${this.escapeHtml(email)}')">退款</button>`;
|
||||
return `<button class="view" style="background:rgba(245,158,11,0.1);color:#d97706;border-color:rgba(245,158,11,0.15);" onclick="app.confirmRefundToggle('${this.escapeHtml(email)}')">未到账</button>`;
|
||||
}
|
||||
|
||||
confirmRefundToggle(email) {
|
||||
|
||||
Reference in New Issue
Block a user