diff --git a/src/pages/subscription/Subscription.jsx b/src/pages/subscription/Subscription.jsx index f0c5c42..a1ae586 100644 --- a/src/pages/subscription/Subscription.jsx +++ b/src/pages/subscription/Subscription.jsx @@ -331,6 +331,15 @@ function AnnouncementCard({ item, isSelected, onClick, onBookmark }) { {HOUSE_TYPE_LABELS[item.house_secd]} )} + {item.match_score > 0 && ( + = 70 ? '#34d399' : item.match_score >= 40 ? '#f59e0b' : '#94a3b8', + background: item.match_score >= 70 ? 'rgba(52,211,153,0.1)' : item.match_score >= 40 ? 'rgba(245,158,11,0.1)' : 'rgba(148,163,184,0.1)', + fontWeight: 700, + }}> + {item.match_score}점 + + )} { e.stopPropagation(); onBookmark?.(item.id); }} @@ -404,6 +413,23 @@ function AnnouncementDetail({ item, onBookmark }) { {item.house_nm} {item.address || item.region_name} + {item.match_score > 0 && ( + + = 70 ? '#34d399' : item.match_score >= 40 ? '#f59e0b' : '#94a3b8', + }}> + 매칭 {item.match_score}점 + + {item.eligible_types?.length > 0 && ( + + {(Array.isArray(item.eligible_types) ? item.eligible_types : []).map((t, i) => ( + {t} + ))} + + )} + + )} {match.region_name || '-'} + {match.receipt_start && ( + + {fmt(match.receipt_start)} ~ {fmt(match.receipt_end)} + {(() => { + const dd = getDDays(match.receipt_start); + return dd ? {dd} : null; + })()} + + )} {match.eligible_types && ( @@ -824,9 +859,14 @@ function MatchesTab() { ))} )} - - 매칭일: {fmtDateTime(match.created_at)} - + {match.match_reasons?.length > 0 && ( + + {(Array.isArray(match.match_reasons) + ? match.match_reasons + : (() => { try { return JSON.parse(match.match_reasons); } catch { return []; } })() + ).join(' · ')} + + )}
{item.address || item.region_name}
{match.region_name || '-'} + {match.receipt_start && ( + + {fmt(match.receipt_start)} ~ {fmt(match.receipt_end)} + {(() => { + const dd = getDDays(match.receipt_start); + return dd ? {dd} : null; + })()} + + )}