프리티어 변경
필터링 AND OR 조건 추가 데이터 JSON 구조 변경 오류 수정
This commit is contained in:
@@ -153,7 +153,7 @@ function renderModalInfo(product) {
|
||||
function renderSpecs(product) {
|
||||
// 구매일자
|
||||
const modalDateRow = document.getElementById('modal-date-row');
|
||||
const pDate = product.specs?.purchaseDate;
|
||||
const pDate = product.purchaseDate;
|
||||
if (pDate && String(pDate).trim() !== '' && String(pDate) !== 'null') {
|
||||
document.getElementById('modal-date').textContent = pDate;
|
||||
modalDateRow?.classList.replace('hidden', 'flex');
|
||||
@@ -162,7 +162,7 @@ function renderSpecs(product) {
|
||||
}
|
||||
|
||||
// 제품 상태(Condition)
|
||||
const conditionKey = product.specs?.condition;
|
||||
const conditionKey = product.condition;
|
||||
const conditionRowWrap = document.getElementById('modal-condition-row')?.parentElement;
|
||||
if (conditionKey) {
|
||||
const conditionLabel = PRODUCT_CONDITIONS[conditionKey]?.label || conditionKey;
|
||||
@@ -170,7 +170,7 @@ function renderSpecs(product) {
|
||||
conditionRowWrap?.classList.replace('hidden', 'flex');
|
||||
|
||||
const verifiedIcon = document.getElementById('modal-verified-icon');
|
||||
if (verifiedIcon) verifiedIcon.classList.toggle('hidden', !product.specs?.isVerified);
|
||||
if (verifiedIcon) verifiedIcon.classList.toggle('hidden', !product.isVerified);
|
||||
} else {
|
||||
conditionRowWrap?.classList.replace('flex', 'hidden');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user