feat(admin): 구매 이력에 POS/QR 소스 뱃지 추가
- QR 적립: 초록색 'QR' 뱃지 + 포인트 적립 표시 - POS 매핑: 회색 'POS' 뱃지 + '적립 안됨' 표시 - 구매 소스 시각적으로 구분 가능
This commit is contained in:
parent
4a529fc891
commit
4c033b0584
@ -1354,13 +1354,16 @@
|
||||
html += `
|
||||
<div style="border: 1px solid #e9ecef; border-radius: 12px; margin-bottom: 12px; overflow: hidden;">
|
||||
<!-- 아코디언 헤더 -->
|
||||
<div onclick="toggleAccordion('${accordionId}')" style="padding: 16px; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center;">
|
||||
<div onclick="toggleAccordion('${accordionId}')" style="padding: 16px; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; position: relative;">
|
||||
<div style="flex: 1;">
|
||||
<div style="font-size: 15px; font-weight: 600; color: #212529; margin-bottom: 6px;">
|
||||
${purchase.items_summary}
|
||||
${purchase.source === 'pos'
|
||||
? '<span style="position: relative; top: -2px; margin-left: 8px; padding: 2px 6px; background: linear-gradient(135deg, #94a3b8, #64748b); color: white; border-radius: 4px; font-size: 10px; font-weight: 600;">POS</span>'
|
||||
: '<span style="position: relative; top: -2px; margin-left: 8px; padding: 2px 6px; background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border-radius: 4px; font-size: 10px; font-weight: 600;">QR</span>'}
|
||||
</div>
|
||||
<div style="font-size: 13px; color: #868e96;">
|
||||
${purchase.date} | ${purchase.amount.toLocaleString()}원 구매 | ${purchase.points.toLocaleString()}P 적립
|
||||
${purchase.date} | ${purchase.amount.toLocaleString()}원 구매 | ${purchase.points > 0 ? purchase.points.toLocaleString() + 'P 적립' : '적립 안됨'}
|
||||
</div>
|
||||
</div>
|
||||
<div id="${accordionId}-icon" style="width: 24px; height: 24px; color: #868e96; transition: transform 0.3s;">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user