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)} +