feat(frontend): Task 7 - 会话列表页 + 聊天对话页

pages/chat/index.vue(会话列表页):
- 排序展示会话列表(置顶优先 → 时间降序)
- 未读 badge + 时间格式化(今天/昨天/日期)
- 长按操作菜单(置顶/删除)
- 正在输入状态提示
- 空状态 UI

pages/chat/conversation.vue(聊天页):
- 消息气泡(自己蓝色/对方白色)
- 游标分页加载历史消息
- 发送消息 + 三态确认(sending/sent/failed)
- 长按撤回 + 重发失败消息
- 正在输入通知(发送 + 接收)
- 自定义导航栏 + 设置入口

pages.json:
- 新增 chat/conversation、chat/settings、chat/search 路由

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-03-03 11:01:15 +08:00
parent 780dea3c31
commit 565afb3149
3 changed files with 834 additions and 21 deletions

View File

@@ -62,6 +62,25 @@
"navigationBarTitleText": "黑名单"
}
},
{
"path": "pages/chat/conversation",
"style": {
"navigationBarTitleText": "聊天",
"navigationStyle": "custom"
}
},
{
"path": "pages/chat/settings",
"style": {
"navigationBarTitleText": "聊天设置"
}
},
{
"path": "pages/chat/search",
"style": {
"navigationBarTitleText": "搜索消息"
}
},
{
"path": "pages/meeting/index",
"style": {