Refine device-first baby management
This commit is contained in:
@@ -37,7 +37,7 @@ function formatParticipantLabel(message: ChatMessage): string {
|
||||
return name === '我' ? '我' : name || '家长'
|
||||
}
|
||||
if (senderType === 'child') {
|
||||
return name || `儿童ID ${senderId}`
|
||||
return name || `宝贝ID ${senderId}`
|
||||
}
|
||||
if (senderType === 'device') {
|
||||
return name || `设备ID ${senderId}`
|
||||
|
||||
@@ -74,7 +74,7 @@ export default function Chat() {
|
||||
<View className='guest-card'>
|
||||
<Text className='guest-card-icon'>💬</Text>
|
||||
<Text className='guest-card-title'>亲子互动会话</Text>
|
||||
<Text className='guest-card-desc'>绑定设备后,可以在这里查看孩子、家长和 AI 玩伴之间的消息记录。</Text>
|
||||
<Text className='guest-card-desc'>绑定设备后,可以在这里查看宝贝、家长和 AI 玩伴之间的消息记录。</Text>
|
||||
<View className='guest-card-btn' onClick={handleGuestLogin}>
|
||||
<Text className='guest-card-btn-text'>登录后查看</Text>
|
||||
</View>
|
||||
@@ -85,7 +85,7 @@ export default function Chat() {
|
||||
</View>
|
||||
) : conversations.length === 0 ? (
|
||||
<View className='empty-card'>
|
||||
<Text className='empty-title'>当前孩子暂无会话</Text>
|
||||
<Text className='empty-title'>当前宝贝暂无会话</Text>
|
||||
</View>
|
||||
) : (
|
||||
<ScrollView className='conversation-list' scrollY>
|
||||
|
||||
Reference in New Issue
Block a user