원가=할인가 비교 후 할인가만 표시

This commit is contained in:
bd091
2025-10-24 22:43:47 +09:00
parent 868ccf01b1
commit fc00a8edfc
2 changed files with 45 additions and 43 deletions

View File

@@ -189,12 +189,13 @@ function fn_RenderServices(services) {
let servicesHtml = ''; let servicesHtml = '';
services.forEach(function(service) { services.forEach(function(service) {
servicesHtml += ` servicesHtml += `
<div class="service-card" onclick="fn_GoToDetail('${service.CATEGORY_DIV_CD}', '${service.CATEGORY_NO}', '${service.POST_NO}')" style="cursor: pointer;"> <div class="service-card" onclick="fn_GoToDetail('${service.CATEGORY_DIV_CD}', '${service.CATEGORY_NO}', '${service.POST_NO}')" style="cursor: pointer;">
<div class="service-title">${service.SERVICE_NM || service.TITLE || '서비스명 없음'}</div> <div class="service-title">${service.SERVICE_NM || service.TITLE || '서비스명 없음'}</div>
<div class="service-description">${service.SERVICE_DESC || service.CONTENT || '설명 없음'}</div> <div class="service-description">${service.SERVICE_DESC || service.CONTENT || '설명 없음'}</div>
<div class="service-price"><span class="cancel-price">${fn_FormatPrice(service.PRICE)}</span>&nbsp;${fn_FormatPrice(service.DISCOUNT_PRICE)}</div> <div class="service-price">
${service.PRICE !== service.DISCOUNT_PRICE ? `<span class="cancel-price">${fn_FormatPrice(service.PRICE)}</span>&nbsp;` : ''}${fn_FormatPrice(service.DISCOUNT_PRICE)}
</div>
</div> </div>
`; `;
}); });

View File

@@ -539,12 +539,13 @@ class EventManager {
</div> </div>
<div class="event-info"> <div class="event-info">
<div class="event-title">${event.title}</div> <div class="event-title">${event.title}</div>
<div class="event-desc">${event.desc}</div>
${event.meta ? `<div class="event-meta">${event.meta}</div>` : ''} ${event.meta ? `<div class="event-meta">${event.meta}</div>` : ''}
<div class="event-price"> <div class="event-price">
<span style="text-decoration:line-through; color:#9ca3af; font-size:0.95em; margin-right:8px;"> ${event.price.before !== event.price.after
? `<span style="text-decoration:line-through; color:#9ca3af; font-size:0.95em; margin-right:8px;">
${event.price.before.toLocaleString()} ${event.price.before.toLocaleString()}
</span> </span>`
: ''}
${event.price.after.toLocaleString()}원 부터 ${event.price.after.toLocaleString()}원 부터
</div> </div>
</div> </div>