.receipt-container { position: relative; padding: 8px; background: #fff; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; .receipt-border { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 1px solid #e8e8e8; pointer-events: none; } .header-badge { position: absolute; top: 0; right: 8px; padding: 1px 6px; background: #1a6fb8; color: #fff; border-radius: 0 0 3px 3px; font-size: 11px; } .receipt-header { text-align: center; margin: 4px 0; .receipt-title { font-size: 16px; font-weight: bold; margin: 0; color: #171a1d; } } .receipt-content { font-size: 12px; line-height: 1.3; color: #333; flex: 1; display: flex; flex-direction: column; gap: 2px; p { margin: 0; } u { text-decoration: none; border-bottom: 1px solid #333; padding: 0 2px; } } .receipt-section { margin: 2px 0; h2 { font-size: 13px; margin: 0 0 2px 0; color: #171a1d; font-weight: bold; } p { margin: 1px 0; font-size: 12px; } } .receipt-footer { text-align: right; margin-top: 2px; font-size: 12px; p { margin: 1px 0; } } .qr-code-container { display: flex; justify-content: flex-end; margin: 2px 0; img { width: 80px; height: 80px; } } } // 修改弹窗样式 :global { .ant-modal { .ant-modal-content { height: 80vh; display: flex; flex-direction: column; } .ant-modal-header { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; min-height: 40px; .ant-modal-title { font-size: 14px; } } .ant-modal-body { flex: 1; overflow: hidden; padding: 0; } .ant-modal-footer { padding: 8px 12px; border-top: 1px solid #f0f0f0; min-height: 40px; .ant-btn { font-size: 12px; height: 28px; padding: 0 12px; } } } }