perf: 会话提示

dev/chat
Lei OT 2 years ago
parent 08558325f7
commit 69d62427ac

@ -34,14 +34,20 @@ const MessagesHeader = () => {
{/* {currentConversation.customer_name && <Avatar src={`https://api.dicebear.com/7.x/avataaars/svg?seed=${currentConversation.customer_name}`} />} */}
<Flex flex={'1'} justify='space-between'>
<Flex vertical={false} gap={12} justify='space-between'>
{currentConversation.whatsapp_phone_number ? (
{(currentConversation.coli_sn || currentConversation.sn) ? (
<>
<Typography.Text strong>{currentConversation.customer_name}</Typography.Text>
<Typography.Text>{currentConversation.whatsapp_phone_number}</Typography.Text>
{currentConversation.whatsapp_phone_number ? (
<Typography.Text>{currentConversation.whatsapp_phone_number}</Typography.Text>
) : (
<Typography.Text strong type='danger'>
没有WhatsApp号码
</Typography.Text>
)}
</>
) : (
<Typography.Text strong type='danger'>
没有WhatsApp号码
<Typography.Text strong className='text-primary'>
请选择会话
</Typography.Text>
)}
<Spin spinning={msgListLoading} />

Loading…
Cancel
Save