feat(frontend): Task 8 - 聊天设置页 + 消息搜索页 + 联系人改造

pages/chat/settings.vue(聊天设置页):
- 对方信息展示(头像+昵称)
- 置顶/取消置顶切换
- 清空聊天记录(确认弹窗)
- 删除会话(确认弹窗 + 双层返回)

pages/chat/search.vue(消息搜索页):
- 全局消息搜索(关键词匹配)
- 搜索结果列表(发送者头像+昵称+内容+时间)
- 点击跳转到对应会话

联系人模块改造:
- contact/detail.vue "发消息"按钮改为跳转聊天页

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-03-03 11:02:30 +08:00
parent 565afb3149
commit 0ea8c0d331
3 changed files with 408 additions and 1 deletions

View File

@@ -136,7 +136,11 @@ const selectGroup = () => {
}
const sendMessage = () => {
uni.showToast({ title: '聊天功能开发中', icon: 'none' })
const f = friend.value
if (!f) return
uni.navigateTo({
url: `/pages/chat/conversation?conversationId=0&peerId=${f.user_id}&peerName=${encodeURIComponent(f.remark || f.nickname || f.username)}&peerAvatar=${encodeURIComponent(f.avatar || '')}`
})
}
const handleBlock = () => {