feat: 咨询消息轮询优化 — Web 自动刷新 + 患者端聊天详情页
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

Web 端:
- ConsultationDetail 添加 10s 自动轮询新消息(after_id 增量拉取)
- consultations API 补充 after_id 参数

小程序患者端:
- 新增 consultation service 消息 API(listMessages/sendMessage/markSessionRead)
- 新增聊天详情页(8s 轮询 + 发送消息 + 自动标记已读)
- 咨询列表页点击跳转详情页(替换"即将上线"占位)
This commit is contained in:
iven
2026-04-26 14:40:46 +08:00
parent 4f4a44ddb6
commit 5bb6105127
7 changed files with 400 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ export default defineAppConfig({
'pages/ai-report/detail/index',
'pages/followup/detail/index',
'pages/consultation/index',
'pages/consultation/detail/index',
'pages/mall/index',
'pages/mall/exchange/index',
'pages/mall/orders/index',