feat(frontend): Task 8 - 聊天设置页 + 消息搜索页 + 联系人改造
pages/chat/settings.vue(聊天设置页): - 对方信息展示(头像+昵称) - 置顶/取消置顶切换 - 清空聊天记录(确认弹窗) - 删除会话(确认弹窗 + 双层返回) pages/chat/search.vue(消息搜索页): - 全局消息搜索(关键词匹配) - 搜索结果列表(发送者头像+昵称+内容+时间) - 点击跳转到对应会话 联系人模块改造: - contact/detail.vue "发消息"按钮改为跳转聊天页 Made-with: Cursor
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user