调整体检基础信息面板样式

This commit is contained in:
xianyi
2025-12-16 17:07:56 +08:00
parent f2d1ba83bd
commit 70d02b0ee9

View File

@@ -147,20 +147,14 @@ export const ExamDetailPanel = ({
return ( return (
<div className='space-y-4 text-sm'> <div className='space-y-4 text-sm'>
<div className='flex items-center gap-4'> {loading && (
<div className='w-14 h-14 rounded-full bg-gray-200 flex-shrink-0 overflow-hidden'>
<div className='w-full h-full rounded-full bg-gray-300 flex items-center justify-center text-[10px] text-gray-500'>
</div>
</div>
<div className='text-xs text-gray-500'> <div className='text-xs text-gray-500'>
{loading ? '加载中…' : '基础信息:头像、姓名、证件号、手机号等(点击图标可进行编辑)'}
</div>
</div> </div>
)}
{editMessage && ( {editMessage && (
<div <div
className={`text-xs px-3 py-2 rounded-lg ${ className={`text-xs px-3 py-2 rounded-lg ${editMessage.includes('成功') ? 'bg-green-50 text-green-600' : 'bg-amber-50 text-amber-600'
editMessage.includes('成功') ? 'bg-green-50 text-green-600' : 'bg-amber-50 text-amber-600'
}`} }`}
> >
{editMessage} {editMessage}
@@ -169,9 +163,16 @@ export const ExamDetailPanel = ({
<div className='space-y-2 text-xs text-gray-700'> <div className='space-y-2 text-xs text-gray-700'>
<div className='font-medium text-gray-900'></div> <div className='font-medium text-gray-900'></div>
<div className='grid grid-cols-2 gap-x-8 gap-y-1'> <div className='grid grid-cols-2 gap-x-8 gap-y-1'>
<div className='flex items-center gap-3'>
<div className='w-14 h-14 rounded-full bg-gray-200 flex-shrink-0 overflow-hidden'>
<div className='w-full h-full rounded-full bg-gray-300 flex items-center justify-center text-[10px] text-gray-500'>
</div>
</div>
<div> <div>
<span className='text-gray-900'>{customerInfo?.customer_name || client.name}</span> <span className='text-gray-900'>{customerInfo?.customer_name || client.name}</span>
</div> </div>
</div>
<div> <div>
<span className='text-gray-900'>{customerInfo?.id_no || '—'}</span> <span className='text-gray-900'>{customerInfo?.id_no || '—'}</span>
</div> </div>