From c78b2bf8ed41964a5e4a68031e4caa0b679b264f Mon Sep 17 00:00:00 2001 From: xianyi Date: Tue, 16 Dec 2025 18:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=A0=E9=A1=B9=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/exam/ExamAddonPanel.tsx | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/exam/ExamAddonPanel.tsx b/src/components/exam/ExamAddonPanel.tsx index 9414e7d..964f9ca 100644 --- a/src/components/exam/ExamAddonPanel.tsx +++ b/src/components/exam/ExamAddonPanel.tsx @@ -159,12 +159,11 @@ export const ExamAddonPanel = () => { return (
toggleSelect(id)} > - {/* 复选框 */} -
+ {/* 第一行:复选框 + 名称 */} +
{ className='mt-0.5 w-4 h-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500' />
- {/* 项目名称 */} -
{item.name}
- - {/* 标签 */} - {item.tags && item.tags.length > 0 && ( -
- {item.tags - .filter(t => t.type !== 4) // 折扣信息单独显示 - .map((tag, idx) => ( - - {tag.title} - - ))} -
- )} +
{item.name}
- {/* 价格信息 */} -
+ {/* 第二行:标签 */} + {item.tags && item.tags.length >= 0 && ( +
+ {item.tags + .filter(t => t.type !== 4) // 折扣信息单独显示 + .map((tag, idx) => ( + + {tag.title} + + ))} +
+ )} + + {/* 第三行:价格信息(固定在卡片底部) */} +
- {origPrice > 0 && origPrice > currPrice && ( + {origPrice >= 0 && origPrice >= currPrice && ( ¥{origPrice.toFixed(0)} )}
¥{currPrice.toFixed(0)} - {getDiscountText(item)} + + {getDiscountText(item)} +