From 205979e0c7d20304a1fe3641282ff66f351292b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9F=B5=E7=90=B4?= <757188142@qq.com> Date: Mon, 13 Apr 2026 17:21:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=81=A5=E5=BA=B7=E5=92=A8=E8=AF=A2?= =?UTF-8?q?=E4=B8=89=E7=AB=AF=E5=8E=9F=E5=9E=8B=E5=A4=A7=E8=A7=84=E6=A8=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=8C=E6=96=B0=E5=A2=9E13=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2/=E5=BC=B9=E7=AA=97=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=9622=E4=B8=AA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 员工端APP:新增综合搜索、选择咨询人、咨询人档案、健康档案、历史对话只读页、视频待确认详情页;重构找专家页、我的记录页、医院详情页;优化对话页面交互 - 小助手后台:新增专家管理模块(列表+详情+导入导出);重构当前咨询页和员工档案弹窗 - 管理端后台:重构咨询须知配置(分TAB+双栏预览);优化咨询记录和结算页 - 应急APP专家端:新增咨询人档案页;优化工作台和对话页面 Co-Authored-By: Claude Opus 4.6 --- .../workbench/consult-person-detail.html | 156 ++++++++ emergency-app/expert/workbench/index.html | 28 +- emergency-app/expert/workbench/text-chat.html | 54 ++- .../expert/workbench/text-consult-done.html | 31 +- .../health-consult/add-health-record.html | 219 +++++++++++ .../assistant-chat-history.html | 154 ++++++++ .../health-consult/assistant-chat.html | 85 +++- .../health-consult/consult-notice-dialog.html | 117 ------ .../health-consult/consult-person-detail.html | 261 +++++++++++++ employee-app/health-consult/doc/CHANGELOG.md | 134 +++++++ employee-app/health-consult/doc/PRD.md | 206 +++++++++- employee-app/health-consult/expert-list.html | 74 +++- .../health-consult/expert-profile.html | 51 ++- employee-app/health-consult/find-expert.html | 362 ++++++------------ .../health-consult/hospital-detail.html | 332 +++++++--------- employee-app/health-consult/index.html | 8 +- employee-app/health-consult/my-records.html | 347 +++++++++++------ employee-app/health-consult/rate-dialog.html | 127 ------ employee-app/health-consult/rate-doctor.html | 38 +- .../health-consult/record-detail-rated.html | 104 +---- .../health-consult/record-detail-unrated.html | 97 +---- employee-app/health-consult/search.html | 275 +++++++++++++ .../health-consult/select-person-dialog.html | 1 + .../health-consult/select-person.html | 356 +++++++++++++++++ .../health-consult/text-chat-history.html | 230 +++++++++++ employee-app/health-consult/text-chat.html | 91 ++++- .../health-consult/video-booking.html | 14 +- .../video-detail-cancelled.html | 39 +- .../video-detail-confirming.html | 154 ++++++++ .../health-consult/video-detail-done.html | 46 +-- .../health-consult/video-detail-pending.html | 41 +- .../health-consult/video-detail-rejected.html | 37 +- .../health-consult/video-success.html | 8 +- .../assistant/chat-message.html | 1 + .../assistant/checkup-standard.html | 1 + .../assistant/consult-settle.html | 1 + .../assistant/current-consult.html | 68 +++- .../health-consult/assistant/doc/CHANGELOG.md | 27 ++ web-admin/health-consult/assistant/doc/PRD.md | 112 +++++- .../assistant/employee-profile-dialog.html | 262 ++++++------- .../assistant/expert-detail-dialog.html | 150 ++++++++ .../assistant/expert-import-dialog.html | 52 +++ .../assistant/expert-manage.html | 258 +++++++++++++ .../assistant/export-task-dialog.html | 58 +++ .../assistant/history-consult.html | 1 + .../assistant/import-task-dialog.html | 57 +++ .../health-consult/assistant/sms-send.html | 1 + web-admin/health-consult/config-notice.html | 355 +++++++++++------ web-admin/health-consult/doc/CHANGELOG.md | 15 + web-admin/health-consult/history-expert.html | 35 +- web-admin/health-consult/settlement.html | 22 -- 51 files changed, 4264 insertions(+), 1489 deletions(-) create mode 100644 emergency-app/expert/workbench/consult-person-detail.html create mode 100644 employee-app/health-consult/add-health-record.html create mode 100644 employee-app/health-consult/assistant-chat-history.html delete mode 100644 employee-app/health-consult/consult-notice-dialog.html create mode 100644 employee-app/health-consult/consult-person-detail.html delete mode 100644 employee-app/health-consult/rate-dialog.html create mode 100644 employee-app/health-consult/search.html create mode 100644 employee-app/health-consult/select-person.html create mode 100644 employee-app/health-consult/text-chat-history.html create mode 100644 employee-app/health-consult/video-detail-confirming.html create mode 100644 web-admin/health-consult/assistant/expert-detail-dialog.html create mode 100644 web-admin/health-consult/assistant/expert-import-dialog.html create mode 100644 web-admin/health-consult/assistant/expert-manage.html create mode 100644 web-admin/health-consult/assistant/export-task-dialog.html create mode 100644 web-admin/health-consult/assistant/import-task-dialog.html diff --git a/emergency-app/expert/workbench/consult-person-detail.html b/emergency-app/expert/workbench/consult-person-detail.html new file mode 100644 index 0000000..000b04a --- /dev/null +++ b/emergency-app/expert/workbench/consult-person-detail.html @@ -0,0 +1,156 @@ + + + + + +专家工作台 - 咨询人档案 | 健康长庆原型 + + + +
+
+ 9:41 +
●●●WiFi🔋
+
+ + +
+ +
+
👩
+
+
张小红
+
女 · 28岁 · 165cm · 50kg
+
+
+ + +
+
📋 基本信息
+
+
姓名
张小红
+
性别
+
年龄
28岁
+
身高
165cm
+
体重
50kg
+
血型
A型
+
+
+ + +
+
🏃 生活习惯
+
+ 不吸烟 + 不饮酒 + 饮食均衡 + 睡眠一般 +
+
+ + +
+
🩺 身体情况
+
+
过敏史
青霉素过敏
+
遗传史
+
既往史
+
其他疾病
+
+
+ + +
+
+
📋
+
+
头痛咨询
+
2026-04-13 创建
+
+
+
+
+
问题描述
+
最近总是头痛,尤其是下午工作时特别明显,主要在太阳穴两侧,有时伴有恶心,已持续一周。
+
+
+
持续时间
+
+ 1周 +
+
+
+
检查资料
+
+ 检查报告 + CT片 +
+
+
+
期望帮助
+
希望了解头痛的具体原因,是否需要进一步检查,以及日常缓解方案。
+
+
+
+
+
+ + diff --git a/emergency-app/expert/workbench/index.html b/emergency-app/expert/workbench/index.html index 78c8407..fd52f1c 100644 --- a/emergency-app/expert/workbench/index.html +++ b/emergency-app/expert/workbench/index.html @@ -102,12 +102,12 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items:
-
👩
张小红
研发部 · 工程师
待回复
+
👩
张小红
女 · 28岁
待回复
最近总是头痛,尤其是下午工作时...
10:23
-
👨
李建国
市场部 · 销售专员
待回复
+
👨
李建国
男 · 45岁
待回复
血压最近偏高,想咨询一下用药...
09:55
@@ -116,7 +116,7 @@ body { background: #f0f2f5; display: flex; justify-content: center; align-items: @@ -151,6 +201,31 @@ const panel = document.getElementById('expandPanel'); panel.classList.toggle('show'); } + + /** + * 切换语音/文字输入模式 + * 语音模式:隐藏输入框和发送按钮,显示"按住 说话"按钮,图标变为 ⌨️ + * 文字模式:隐藏"按住 说话"按钮,显示输入框和发送按钮,图标变为 🎤 + */ + var isVoiceMode = false; + function toggleVoice() { + isVoiceMode = !isVoiceMode; + var toggleBtn = document.getElementById('voiceToggle'); + var msgInput = document.getElementById('msgInput'); + var holdBtn = document.getElementById('holdToTalk'); + var sendBtn = document.getElementById('sendBtn'); + if (isVoiceMode) { + toggleBtn.textContent = '⌨️'; + msgInput.classList.add('hide'); + sendBtn.classList.add('hide'); + holdBtn.classList.add('show'); + } else { + toggleBtn.textContent = '🎤'; + msgInput.classList.remove('hide'); + sendBtn.classList.remove('hide'); + holdBtn.classList.remove('show'); + } + } diff --git a/employee-app/health-consult/consult-notice-dialog.html b/employee-app/health-consult/consult-notice-dialog.html deleted file mode 100644 index 35722df..0000000 --- a/employee-app/health-consult/consult-notice-dialog.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - 咨询须知弹窗 - - - - -
- -
- 9:41 - - ●●●● - WiFi - 🔋 - -
- - -
- - - -
- - - - diff --git a/employee-app/health-consult/consult-person-detail.html b/employee-app/health-consult/consult-person-detail.html new file mode 100644 index 0000000..6aaa5cd --- /dev/null +++ b/employee-app/health-consult/consult-person-detail.html @@ -0,0 +1,261 @@ + + + + + + 咨询人档案详情 + + + +
+
+ 9:41 + ●●●●WiFi🔋 +
+ + +
+ +
+
👤
+
+
+ 张旭 + 父亲 +
+
28岁 · 男 · 170cm · 65kg
+
+
+ + +
+
📋 基本信息
+
+
+
姓名
+
张旭
+
+
+
与本人关系
+
父亲
+
+
+
性别
+
+
+
+
年龄
+
28岁
+
+
+
身高
+
170cm
+
+
+
体重
+
65kg
+
+
+
+ +
+
🏃 生活习惯
+
+ 不吸烟 + 偶尔饮酒 + 饮食均衡 + 睡眠良好 +
+
+ + +
+
🩺 身体情况
+
+
+
过敏史
+
+
+
+
遗传史
+
高血压家族史
+
+
+
既往史
+
+
+
+
其他疾病
+
+
+
+
+ + +
+
+
📋
+
+
腰部疼痛咨询
+
2026-04-10 创建
+
+
+
+ +
+
问题描述
+
久坐后腰部持续酸痛,弯腰时加重,近两周症状明显,影响日常工作和休息。
+
+ +
+
持续时间
+
+ 1-2周 +
+
+ +
+
检查资料
+
+ 检查报告 + 患处照片 +
+
+ +
+
就诊经历
+
+
+
+
医院名称
+
北京协和医院
+
+
+
科室
+
骨科
+
+
+
疾病名称
+
腰肌劳损
+
+
+
+
+ +
+
期望帮助
+
希望了解腰部疼痛的具体病因,是否需要进一步检查,以及日常缓解和治疗方案建议。
+
+
+
+
+
+ + diff --git a/employee-app/health-consult/doc/CHANGELOG.md b/employee-app/health-consult/doc/CHANGELOG.md index fc51cc9..d6e3555 100644 --- a/employee-app/health-consult/doc/CHANGELOG.md +++ b/employee-app/health-consult/doc/CHANGELOG.md @@ -4,6 +4,140 @@ --- +## [2026-04-13] feat: 新增图文咨询历史对话只读页面 + +**涉及文件(1个新增 + 2个修改):** +- `text-chat-history.html`(新增)— 图文咨询历史对话只读页面,基于 text-chat.html 结构,去掉"结束咨询"按钮、温馨提示卡片、底部输入区及所有弹窗,底部显示"咨询已结束"提示条,保留健康档案卡片和体检报告卡片展示 +- `record-detail-rated.html` — "查看历史对话记录"跳转从 `text-chat.html` 改为 `text-chat-history.html?from=record-detail-rated` +- `record-detail-unrated.html` — "查看历史对话记录"跳转从 `text-chat.html` 改为 `text-chat-history.html?from=record-detail-unrated` + +**变更说明:** +- 已完成的图文咨询从详情页查看对话时进入只读模式,无法继续输入或结束咨询 +- 返回按钮根据 `?from` 参数精确返回来源详情页 + +--- + +## [2026-04-13] feat: 新增小助手历史对话只读页面 + +**涉及文件(1个新增 + 1个修改):** +- `assistant-chat-history.html`(新增)— 小助手历史对话只读页面,基于 assistant-chat.html 结构,去掉右上角"结束咨询"按钮和底部输入区,底部显示"咨询已结束"提示条 +- `my-records.html` — 咨询小助手面板中已完成记录的跳转目标从 `assistant-chat.html` 改为 `assistant-chat-history.html` + +**变更说明:** +- 已完成的小助手咨询进入只读模式,仅可查看历史对话,无法继续输入 +- 进行中的小助手咨询仍跳转到 `assistant-chat.html`(可继续对话) + +--- + +## [2026-04-13] refactor: 合并评价页面,新增匿名评价功能 + +**涉及文件(2个修改 + 1个删除):** +- `rate-doctor.html` — 新增匿名评价开关(默认关闭),开启后医生无法看到评价者姓名 +- `record-detail-unrated.html` — 评价按钮跳转目标从 `rate-dialog.html` 改为 `rate-doctor.html` +- `rate-dialog.html`(删除)— 弹窗版评价与独立页功能重复,合并至 `rate-doctor.html` + +**变更说明:** +- 统一评价入口为 `rate-doctor.html`,消除两个评价页面并存的冗余 +- 匿名评价开关位于评价文本框下方,附提示文案"开启后,医生将无法看到您的姓名" + +--- + +## [2026-04-13] feat: 新增视频咨询"待确认"状态 + +**涉及文件(1个修改 + 1个新增):** +- `my-records.html` — 视频咨询列表新增"待确认"状态记录项(周明辉医生),新增 `.status-confirming` 样式(紫色标签) +- `video-detail-confirming.html`(新增)— 待确认状态的视频咨询详情页,包含医生信息栏、咨询人健康档案入口、视频咨询Banner(紫色渐变)、预约信息卡片、温馨提示,底部操作栏为"取消预约"+"等待医生确认"(禁用态) + +**变更说明:** +- 待确认状态表示用户已提交视频咨询预约申请,等待医生确认接诊 +- 状态标签使用紫色(#722ed1)区分于待开始的橙色 +- 详情页信息卡片展示期望时间(非确定时间)和提交时间 + +--- + +## [2026-04-13] feat: 我的咨询页增加咨询专家/咨询小助手分类 + +**涉及文件(1个修改):** +- `my-records.html` — 一级Tab从「图文咨询/视频咨询」改为「咨询专家/咨询小助手」;咨询专家下内嵌二级Tab(图文咨询/视频咨询),保留原有列表数据;新增咨询小助手面板,包含4条AI小助手历史咨询记录(2条进行中+2条已完成) + +**变更说明:** +- 页面结构从单层Tab改为两层Tab:一级区分咨询类型(专家/小助手),二级区分专家咨询形式(图文/视频) +- 咨询小助手记录卡片展示对话主题、AI标识、状态标签、消息摘要、时间,点击跳转到AI小助手聊天页 +- JS逻辑拆分为 switchPrimaryTab(一级切换)和 switchSubTab(二级切换),互不干扰 + +--- + +## [2026-04-13] feat: 医院详情页专家改为两列网格并新增用户评价 + +**涉及文件(1个修改):** +- `hospital-detail.html` — 本院专家区域从列表改为两列网格卡片,展示6名热门专家(头像、姓名、职称、科室、评分、咨询次数);新增用户评价区域,展示最新4条评价(标注来源科室),底部"查看全部"跳转到评价列表页;移除不再需要的排序栏、搜索栏及相关JS + +**变更说明:** +- 专家卡片改为紧凑的两列网格布局,每张卡片居中展示核心信息 +- 新增用户评价区域,每条评价包含用户昵称、日期、来源科室标签、星级评分、评价内容 +- 4条评价分别来自心内科、神经内科、内分泌科、骨科 +- "查看全部"按钮跳转到 expert-reviews.html 并携带医院名称参数 + +--- + +## [2026-04-13] feat: 医院详情页新增"全部专家"入口 + +**涉及文件(2个修改):** +- `hospital-detail.html` — "本院专家"标题右侧新增"全部专家"按钮,点击跳转到专家列表页并携带医院名称参数 +- `expert-list.html` — 新增 type=hospital 参数处理,导航标题显示"医院专家",头部显示医院名称,展示该医院全部专家数据 + +**变更说明:** +- 医院详情页本院专家区域标题改为 flex 布局,右侧展示"全部专家 >"链接 +- 点击后跳转到 expert-list.html?type=hospital&name=医院名称 +- 专家列表页新增北京协和医院(6位)和上海瑞金医院(3位)的模拟专家数据 + +--- + +## [2026-04-13] feat: 科室与疾病跳转专家列表页区分上下文 + +**涉及文件(3个修改):** +- `find-expert.html` — 科室和疾病项的跳转链接增加 type/name URL 参数,新增 goExpertList() 跳转函数 +- `expert-list.html` — 导航标题和头部区域根据 URL 参数动态切换(科室→"科室专家",疾病→"疾病专家"),疾病维度展示不同的模拟专家数据 +- `search.html` — 科室和疾病标签的跳转链接同步增加 type/name 参数 + +**变更说明:** +- 按科室进入专家列表:导航标题"科室专家",头部显示科室名称 +- 按疾病进入专家列表:导航标题"疾病专家",头部显示疾病名称,专家卡片展示与该疾病相关的擅长标签 +- 综合搜索页中科室/疾病标签跳转同步携带参数 + +--- + +## [2026-04-13] feat: 新增综合搜索页面 + +**涉及文件(1个新增,1个修改):** +- `search.html` — 新增综合搜索二级页面;包含搜索历史、热门搜索、综合搜索结果(专家/医院/科室/疾病四类混合展示)、无结果空态 +- `find-expert.html` — 搜索栏由可输入改为点击跳转区域,点击后跳转到综合搜索页 + +**变更说明:** +- 找专家页搜索栏改为不可编辑的占位文本,点击整个区域跳转到 search.html +- 综合搜索页顶部自动聚焦输入框,右侧取消按钮返回找专家页 +- 默认态展示搜索历史标签(支持清空)和热门搜索标签 +- 输入关键字后切换为搜索结果态,按专家、医院、科室、疾病四个分类展示匹配结果 +- 专家分类带"查看全部"入口,医院分类带"查看全部"入口 +- 输入"无"模拟无结果空态展示 + +--- + +## [2026-04-13] feat: 选择咨询人改为独立页面,新增健康档案管理 + +**涉及文件(2个新增):** +- `select-person.html` — 新增选择咨询人二级页面,替代原弹窗设计;咨询人卡片下方展示健康档案列表,支持选中档案后发送咨询;无档案时显示新增档案入口 +- `add-health-record.html` — 新增健康档案三级页面;表单包含档案名称、问题描述、持续时间、上传检查报告/患处图片(仅自己和医生可见)、是否就诊过(条件展开医院/科室/疾病字段)、期望帮助 + +**变更说明:** +- 原 `select-person-dialog.html` 弹窗设计废弃,改为独立二级页面 `select-person.html` +- 咨询人信息增加身高体重展示 +- 每个咨询人下方展示其健康档案列表(档案名称、问题摘要、创建时间) +- 选中档案后底部"发送咨询"按钮激活,将咨询人基本信息+档案信息发送到对话框 +- 新增健康档案表单支持就诊经历条件展开(选择"是"后展开医院名称、科室、疾病名称字段) + +--- + ## [2026-04-10] fix: 修复返回按钮死循环跳转问题 **涉及文件(2个):** diff --git a/employee-app/health-consult/doc/PRD.md b/employee-app/health-consult/doc/PRD.md index 6c35348..c7692f4 100644 --- a/employee-app/health-consult/doc/PRD.md +++ b/employee-app/health-consult/doc/PRD.md @@ -2,7 +2,7 @@ > **所属端**:员工端 APP > **模块路径**:`employee-app/health-consult/` -> **最后更新**:2026-04-10 +> **最后更新**:2026-04-13 --- @@ -15,14 +15,18 @@ ``` 健康咨询首页 ├── 找专家 +│ ├── 综合搜索 → 专家主页 / 医院详情 / 专家列表 │ ├── [按医院] → 医院详情 → 专家主页 │ ├── [按科室] → 专家列表 → 专家主页 │ └── [按疾病] → 专家列表 → 专家主页 ├── AI 小助手 -└── 我的咨询 → 咨询详情 → 图文咨询聊天 +└── 我的咨询 + ├── [咨询专家] → 图文咨询详情 / 视频咨询详情 + └── [咨询小助手] → AI 小助手聊天 专家主页 ├── [图文咨询] → 咨询须知弹窗 → 图文咨询聊天 → 结束咨询确认弹窗 → 评价医生 +│ └── 聊天中选择档案 → 选择咨询人 → 新增健康档案 ├── [视频咨询] → 咨询须知弹窗 → 视频咨询预约 → 预约成功 └── 查看全部评价 → 用户评价列表 ``` @@ -32,6 +36,9 @@ ```mermaid stateDiagram-v2 [*] --> 进行中: 发起图文咨询 + [*] --> 待确认: 提交视频咨询预约 + 待确认 --> 待开始: 医生确认接诊 + 待确认 --> 已取消: 用户取消预约 [*] --> 待开始: 预约视频咨询 待开始 --> 进行中: 到达预约时间 待开始 --> 已取消: 用户取消预约 @@ -46,7 +53,8 @@ stateDiagram-v2 |---|------|------|------| | 1 | `index.html` | 页面 | 模块首页 | | 2 | `find-expert.html` | 页面 | 找专家(搜索 + 分类) | -| 3 | `expert-list.html` | 页面 | 专家列表 | +| 3 | `search.html` | 页面 | 综合搜索(关键字搜索专家/医院/科室/疾病) | +| 4 | `expert-list.html` | 页面 | 专家列表 | | 4 | `expert-profile.html` | 页面 | 专家主页 | | 5 | `expert-reviews.html` | 页面 | 用户评价列表 | | 6 | `hospital-detail.html` | 页面 | 医院详情 | @@ -59,13 +67,18 @@ stateDiagram-v2 | 13 | `rate-doctor.html` | 页面 | 评价医生 | | 14 | `consult-notice-dialog.html` | 弹窗 | 咨询须知 | | 15 | `end-consult-dialog.html` | 弹窗 | 结束咨询确认 | -| 16 | `select-person-dialog.html` | 弹窗 | 选择/新增咨询人 | +| 16 | `select-person-dialog.html` | 弹窗 | 选择/新增咨询人(已废弃,由 select-person.html 替代) | | 17 | `select-report-dialog.html` | 弹窗 | 选择体检报告 | -| 18 | `rate-dialog.html` | 弹窗 | 评价医生(弹窗版) | -| 19 | `video-detail-pending.html` | 页面 | 视频咨询详情 - 待开始 | +| 18 | ~~`rate-dialog.html`~~ | — | 已删除,合并至 `rate-doctor.html` | +| 19 | `video-detail-confirming.html` | 页面 | 视频咨询详情 - 待确认 | +| 20 | `video-detail-pending.html` | 页面 | 视频咨询详情 - 待开始 | | 20 | `video-detail-done.html` | 页面 | 视频咨询详情 - 已完成 | | 21 | `video-detail-cancelled.html` | 页面 | 视频咨询详情 - 已取消 | | 22 | `video-detail-rejected.html` | 页面 | 视频咨询详情 - 已拒绝 | +| 23 | `select-person.html` | 页面 | 选择咨询人(含档案列表) | +| 24 | `add-health-record.html` | 页面 | 新增健康档案 | +| 25 | `assistant-chat-history.html` | 页面 | 小助手历史对话(只读) | +| 26 | `text-chat-history.html` | 页面 | 图文咨询历史对话(只读) | --- @@ -97,7 +110,7 @@ stateDiagram-v2 **功能说明** -三维度查找专家:按医院、按科室、按疾病。顶部搜索栏支持关键词模糊搜索。 +三维度查找专家:按医院、按科室、按疾病。顶部搜索栏点击后跳转到综合搜索页。 - **全部医院**:医院卡片列表,展示名称、等级、距离、专家数、地址 - **全部科室**:左侧一级分类 + 右侧二级科室网格,每项展示科室名和专家数 @@ -112,6 +125,7 @@ stateDiagram-v2 **交互说明** +- 点击搜索栏跳转到综合搜索页 - 顶部 Tab 切换「全部医院 / 全部科室 / 全部疾病」三个面板 - 点击医院卡片跳转到医院详情页 - 科室面板:点击左侧一级分类联动切换右侧二级科室;点击二级科室项跳转到专家列表页 @@ -120,17 +134,51 @@ stateDiagram-v2 --- +### 2.2b 综合搜索(search.html) + +**功能说明** + +综合搜索二级页面,支持按关键字搜索所有相关信息。搜索结果按专家、医院、科室、疾病四个分类混合展示。 + +- **默认态**:展示搜索历史标签和热门搜索标签 +- **结果态**:按分类展示匹配结果,专家和医院分类带"查看全部"入口 +- **空态**:无匹配结果时展示空状态提示 + +**业务规则** + +- 搜索基于 ElasticSearch 全文模糊匹配,同时搜索专家姓名、医院名称、科室名称、疾病名称 +- 搜索历史本地存储,最多保留 10 条 +- 热门搜索由后端配置,定期更新 + +**交互说明** + +- 输入框自动聚焦,输入文字后实时展示搜索结果 +- 输入框右侧清除按钮,点击清空输入并回到默认态 +- 点击搜索历史/热门搜索标签,自动填入关键字并触发搜索 +- 点击"清空"清除所有搜索历史 +- 点击专家卡片跳转到专家主页 +- 点击医院卡片跳转到医院详情页 +- 点击科室/疾病标签跳转到专家列表页 +- 点击"取消"返回找专家页 + +--- + ### 2.3 专家列表(expert-list.html) **功能说明** -展示特定分类(科室/疾病)下的专家列表。头部展示分类名称和专家总数。支持排序(好评优先 / 热度优先 / 回复率)和按姓名搜索过滤。 +展示特定分类(科室/疾病)下的专家列表。根据 URL 参数 `type`(dept/disease)和 `name` 动态切换页面上下文: +- 科室维度(type=dept):导航标题"科室专家",头部显示科室名称 +- 疾病维度(type=disease):导航标题"疾病专家",头部显示疾病名称,专家卡片展示与该疾病相关的擅长标签 + +支持排序(好评优先 / 热度优先 / 回复率)和按姓名搜索过滤。 **业务规则** - 默认按好评优先排序 - 搜索为前端实时过滤,匹配医生姓名 - 无结果时展示空状态提示 +- 页面通过 URL 参数区分来源,同一页面服务科室和疾病两种入口 **交互说明** @@ -205,18 +253,23 @@ stateDiagram-v2 **功能说明** -展示用户的所有咨询记录。通过 Tab 栏切换「图文咨询 / 视频咨询」。记录卡片展示医生头像、姓名、科室、状态标签、咨询人、消息摘要、时间。 +展示用户的所有咨询记录。通过一级 Tab 栏切换「咨询专家 / 咨询小助手」两大类型: +- **咨询专家**:内嵌二级 Tab 切换「图文咨询 / 视频咨询」,记录卡片展示医生头像、姓名、科室、状态标签、咨询人、消息摘要、时间 +- **咨询小助手**:展示 AI 小助手历史咨询记录列表,卡片展示对话主题、AI 标识、状态标签、消息摘要、时间 **业务规则** -- 咨询状态及对应样式:`进行中`(蓝色)、`已完成`(绿色)、`待开始`(橙色)、`已取消`(灰色)、`已拒绝`(红色) +- 咨询状态及对应样式:`进行中`(蓝色)、`已完成`(绿色)、`待开始`(橙色)、`待确认`(紫色)、`已取消`(灰色)、`已拒绝`(红色) - 已完成的图文咨询如已评价则显示"已评价"标记 -- 视频咨询 `待开始` 状态显示预约时间,`已完成` 显示通话时长,`已取消` 显示预约时间,`已拒绝` 显示预约时间 +- 视频咨询 `待确认` 状态显示期望时间,`待开始` 状态显示预约时间,`已完成` 显示通话时长,`已取消` 显示预约时间,`已拒绝` 显示预约时间 +- 小助手咨询仅有「进行中」和「已完成」两种状态 **交互说明** -- Tab 栏切换图文/视频记录列表 -- 点击记录卡片跳转到对应咨询详情页:图文咨询跳转到咨询详情页,视频咨询根据状态跳转到对应的视频详情页(待开始/已完成/已取消/已拒绝) +- 一级 Tab 栏切换咨询专家/咨询小助手面板 +- 咨询专家面板内二级 Tab 切换图文/视频记录列表 +- 点击专家咨询记录卡片跳转到对应咨询详情页:图文咨询跳转到咨询详情页,视频咨询根据状态跳转到对应的视频详情页(待确认/待开始/已完成/已取消/已拒绝) +- 点击小助手咨询记录卡片跳转到AI小助手聊天页 - 导航栏返回 → 健康咨询首页 --- @@ -244,6 +297,27 @@ stateDiagram-v2 --- +### 2.8e 视频咨询详情 - 待确认(video-detail-confirming.html) + +**功能说明** + +视频咨询待确认状态的详情页。展示医生信息(紫色"待确认"标签)、咨询人健康档案入口、紫色视频咨询Banner(含期望时间)、预约信息卡片(咨询人、咨询类型、期望时间、提交时间、当前状态)、温馨提示。 + +**业务规则** + +- 用户提交视频咨询预约后进入待确认状态,等待医生确认接诊 +- 医生确认后状态流转为"待开始",并确定最终预约时间 +- 用户可在医生确认前取消预约 +- "等待医生确认"按钮为置灰禁用状态 + +**交互说明** + +- 点击「咨询人健康档案」跳转到咨询人档案详情页 +- 点击「取消预约」取消当前视频咨询预约 +- 导航栏返回 → 我的咨询记录页 + +--- + ### 2.8a 视频咨询详情 - 待开始(video-detail-pending.html) **功能说明** @@ -414,12 +488,14 @@ AI 智能问诊聊天界面。头部展示机器人头像和"健康小助手"。 - 默认 5 星,可下调 - 文字评价为选填 +- 支持匿名评价,开关默认关闭;开启后医生无法看到评价者姓名 - 提交后跳转到我的咨询记录页 - 返回按钮精确返回来源页(从聊天页进入则返回聊天页,其他情况返回我的咨询记录页) **交互说明** - 点击星级图标切换评分 +- 点击匿名评价开关切换匿名状态 - 点击「提交评价」提交并跳转到我的咨询记录页 - 导航栏返回 → 精确返回来源页 @@ -429,6 +505,69 @@ AI 智能问诊聊天界面。头部展示机器人头像和"健康小助手"。 |------|------|------|------| | 星级评分 | 星级选择(1~5) | 是 | 默认 5 星 | | 评价内容 | 多行文本 | 否 | 无字数限制 | +| 匿名评价 | 开关 | 否 | 默认关闭,开启后隐藏评价者姓名 | + +--- + +### 2.14 选择咨询人(select-person.html) + +**功能说明** + +独立二级页面,替代原弹窗设计。展示当前用户的所有咨询人列表(本人 + 家属),每个咨询人卡片下方展示其健康档案列表。用户选中某条档案后,点击底部"发送咨询"将咨询人基本信息(姓名、年龄、性别、身高、体重)、生活习惯、身体情况及所选健康档案一并发送到对话框。 + +**业务规则** + +- 咨询人卡片展示:头像、姓名、年龄、性别、身高、体重、与本人关系标签 +- 有档案的咨询人:卡片下方展开档案列表,每条档案显示档案名称、问题摘要、创建时间 +- 无档案的咨询人:卡片独立展示,无档案区域 +- 选中档案时自动高亮所属咨询人 +- 未选择档案时仍可发送咨询(仅发送咨询人基本信息) + +**交互说明** + +- 点击咨询人卡片选中该咨询人,取消其他选中状态 +- 点击档案条目选中该档案,同时高亮所属咨询人 +- 点击「+ 新增健康档案」跳转到新增健康档案页 +- 点击「+ 新增咨询人」进入新增咨询人流程 +- 点击「发送咨询」将咨询人信息和档案发送到对话框并返回 +- 导航栏返回 → 上一页 + +--- + +### 2.15 新增健康档案(add-health-record.html) + +**功能说明** + +三级页面,为指定咨询人创建健康档案。档案信息包含问题描述、持续时间、检查资料上传、就诊经历、期望帮助。保存后返回选择咨询人页,新档案出现在对应咨询人下方。 + +**业务规则** + +- 档案名称和问题描述为必填项 +- 上传图片仅自己和医生可见,最多 9 张 +- 选择"是否去医院就诊过"为"是"时,展开医院名称、科室、疾病名称三个字段 +- 保存后档案关联到当前咨询人 + +**交互说明** + +- 问题持续时间通过选项按钮组单选(几天内 / 1-2周 / 1-3个月 / 3个月以上) +- 点击上传区域选择图片上传 +- 选择"是否就诊过"为"是"时展开就诊信息字段,选"否"时收起 +- 点击「保存档案」校验必填项后保存并返回选择咨询人页 +- 导航栏返回 → 选择咨询人页 + +#### 新增健康档案表单字段 + +| 字段 | 类型 | 必填 | 规则 | +|------|------|------|------| +| 档案名称 | 文本 | 是 | 如:腰部疼痛咨询 | +| 描述您的问题 | 多行文本 | 是 | 详细描述症状、不适部位等 | +| 本次问题持续多久 | 按钮组单选 | 是 | 几天内 / 1-2周 / 1-3个月 / 3个月以上 | +| 检查报告/患处图片 | 图片上传 | 否 | 最多9张,仅自己和医生可见 | +| 是否去医院就诊过 | 按钮组单选 | 是 | 否 / 是(选"是"展开以下字段) | +| 医院名称 | 文本 | 否 | 就诊过时填写 | +| 科室 | 文本 | 否 | 就诊过时填写 | +| 疾病名称 | 文本 | 否 | 就诊过时填写 | +| 期望得到的帮助 | 多行文本 | 否 | 如:了解病因、推荐治疗方案 | --- @@ -523,18 +662,47 @@ AI 智能问诊聊天界面。头部展示机器人头像和"健康小助手"。 --- -### 3.5 评价医生弹窗(rate-dialog.html) +### 3.5 评价医生弹窗(rate-dialog.html)— 已删除 + +已合并至 `rate-doctor.html`,不再单独维护。 + +--- + +### 2.15 小助手历史对话(assistant-chat-history.html) **功能说明** -弹窗形式的评价功能,底部滑出样式。与评价医生页功能相同,展示形式不同。 +已结束的小助手咨询的历史对话查看页面。与小助手聊天页结构一致,但为只读模式,不可继续对话。 **业务规则** -- 必须选择星级才能提交,否则弹出提示 -- 文字评价选填 +- 仅展示历史消息,不提供输入功能 +- 头部显示"咨询已结束"状态文字 +- 底部显示"— 咨询已结束 —"提示条 **交互说明** -- 点击「取消」关闭弹窗 -- 点击「提交评价」校验评分 → 提交 → 关闭弹窗 +- 导航栏返回 → 我的咨询记录页 +- 消息区可上下滚动浏览历史对话 + +--- + +### 2.16 图文咨询历史对话(text-chat-history.html) + +**功能说明** + +已结束的图文咨询的历史对话查看页面。与图文咨询聊天页结构一致,但为只读模式,不可继续对话。保留健康档案卡片、体检报告卡片等富媒体消息的展示。 + +**业务规则** + +- 仅展示历史消息,不提供输入功能 +- 无"结束咨询"按钮 +- 头部显示"咨询已结束"状态文字 +- 底部显示"— 咨询已结束 —"提示条 +- 根据 `?from` 参数精确返回来源详情页 + +**交互说明** + +- 导航栏返回 → 根据来源参数返回对应详情页(record-detail-rated / record-detail-unrated) +- 消息区可上下滚动浏览历史对话 +- 健康档案卡片点击可跳转到咨询人档案详情页 diff --git a/employee-app/health-consult/expert-list.html b/employee-app/health-consult/expert-list.html index c976acb..69e5aa8 100644 --- a/employee-app/health-consult/expert-list.html +++ b/employee-app/health-consult/expert-list.html @@ -83,13 +83,13 @@
-
心内科
-
共 8位专家
+
心内科
+
共 8位专家
@@ -248,6 +248,74 @@ // 聚焦输入框 input.focus(); } + + /* ===== 根据 URL 参数动态切换页面内容 ===== */ + (function() { + var params = new URLSearchParams(window.location.search); + var type = params.get('type'); + var name = params.get('name'); + if (!name) return; + + var navTitle = document.getElementById('navTitle'); + var headerTitle = document.getElementById('headerTitle'); + var headerMeta = document.getElementById('headerMeta'); + var container = document.getElementById('expertListContainer'); + + headerTitle.textContent = name; + + /* 疾病维度的模拟专家数据 */ + var diseaseExperts = { + '冠心病': [ + { n: '张建国', t: '主任医师', h: '北京协和医院·心内科', tags: ['冠心病','心绞痛'], s: '4.9', c: '1280', r: '96%' }, + { n: '王丽华', t: '副主任医师', h: '上海瑞金医院·心内科', tags: ['冠心病','高血压'], s: '4.8', c: '860', r: '94%' } + ], + '高血压': [ + { n: '李明远', t: '主任医师', h: '北京协和医院·心内科', tags: ['高血压','心衰'], s: '4.9', c: '2100', r: '97%' }, + { n: '赵雪梅', t: '主任医师', h: '广州中山医院·心内科', tags: ['高血压','冠心病'], s: '4.8', c: '1560', r: '95%' }, + { n: '孙志强', t: '副主任医师', h: '北京天坛医院·心内科', tags: ['高血压','心律失常'], s: '4.7', c: '920', r: '92%' } + ] + }; + + function renderExperts(list) { + container.innerHTML = ''; + list.forEach(function(d) { + var g = ['王','赵','李','陈','周'].indexOf(d.n.charAt(0)) >= 0 ? '👩‍⚕️' : '👨‍⚕️'; + var ts = d.tags.map(function(t){ return ''+t+''; }).join(''); + container.innerHTML += '
'+g+'
'+d.n+''+d.t+'
'+d.h+'
'+ts+'
'+d.s+'💬 '+d.c+'✉ 回复率 '+d.r+'
'; + }); + } + + /* 医院维度的模拟专家数据 */ + var hospitalExperts = { + '北京协和医院': [ + { n: '张建国', t: '主任医师', h: '北京协和医院·心内科', tags: ['冠心病','高血压'], s: '4.9', c: '1280', r: '96%' }, + { n: '陈美华', t: '主任医师', h: '北京协和医院·神经内科', tags: ['头痛','失眠'], s: '4.9', c: '2100', r: '98%' }, + { n: '刘海波', t: '副主任医师', h: '北京协和医院·消化内科', tags: ['胃炎','结肠炎'], s: '4.7', c: '430', r: '85%' }, + { n: '李明远', t: '主任医师', h: '北京协和医院·内分泌科', tags: ['糖尿病','甲亢'], s: '4.9', c: '1860', r: '97%' }, + { n: '周婷', t: '副主任医师', h: '北京协和医院·妇科', tags: ['子宫肌瘤','月经不调'], s: '4.8', c: '760', r: '93%' }, + { n: '赵伟', t: '主任医师', h: '北京协和医院·骨科', tags: ['颈椎病','关节置换'], s: '4.8', c: '1120', r: '91%' } + ], + '上海瑞金医院': [ + { n: '王丽华', t: '副主任医师', h: '上海瑞金医院·心内科', tags: ['冠心病','高血压'], s: '4.8', c: '860', r: '94%' }, + { n: '林志远', t: '主任医师', h: '上海瑞金医院·内分泌科', tags: ['糖尿病','甲状腺'], s: '4.9', c: '1950', r: '96%' }, + { n: '陈晓燕', t: '副主任医师', h: '上海瑞金医院·神经内科', tags: ['帕金森','癫痫'], s: '4.7', c: '680', r: '90%' } + ] + }; + + if (type === 'hospital') { + navTitle.textContent = '医院专家'; + var hExperts = hospitalExperts[name]; + headerMeta.textContent = '共 ' + (hExperts ? hExperts.length : 0) + '位专家'; + if (hExperts) renderExperts(hExperts); + } else if (type === 'disease') { + navTitle.textContent = '疾病专家'; + var experts = diseaseExperts[name]; + headerMeta.textContent = '共 ' + (experts ? experts.length : 3) + '位专家'; + if (experts) renderExperts(experts); + } else { + navTitle.textContent = '科室专家'; + } + })(); diff --git a/employee-app/health-consult/expert-profile.html b/employee-app/health-consult/expert-profile.html index c151417..8b1347c 100644 --- a/employee-app/health-consult/expert-profile.html +++ b/employee-app/health-consult/expert-profile.html @@ -209,6 +209,23 @@ color: #555; line-height: 1.7; } + .profile-section .text-clamp { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; + } + .profile-section .text-clamp.expanded { + -webkit-line-clamp: unset; + } + .toggle-btn { + background: none; + border: none; + color: #1677ff; + font-size: 13px; + padding: 6px 0 0; + cursor: pointer; + } /* ===== 擅长标签 ===== */ .tags-wrap { @@ -361,8 +378,6 @@ @@ -404,15 +419,27 @@
+
+

图文咨询:通过图片、文字形式;视频咨询:通过语音视频方式

+
+

医生简介

-

从事心内科临床工作20余年,擅长冠心病、高血压、心律失常等心血管疾病的诊断与治疗。曾赴美国哈佛医学院进修,发表SCI论文30余篇,主持国家自然科学基金项目2项。

+

从事心内科临床工作20余年,擅长冠心病、高血压、心律失常等心血管疾病的诊断与治疗。曾赴美国哈佛医学院进修,发表SCI论文30余篇,主持国家自然科学基金项目2项。

+
- +
-

擅长方向

+

职业经历

+

2001年毕业于北京大学医学部临床医学专业,获医学博士学位。2001-2005年于北京协和医院心内科完成住院医师规范化培训。2005-2008年晋升主治医师,负责冠心病介入诊疗工作。2008-2010年赴美国哈佛医学院附属布莱根妇女医院心血管中心访问学者。2010年回国后晋升副主任医师,2016年晋升主任医师,现任心内科副主任。

+ +
+ + +
+

擅长疾病

冠心病 高血压 @@ -481,6 +508,18 @@
diff --git a/employee-app/health-consult/index.html b/employee-app/health-consult/index.html index e3652de..e500fb7 100644 --- a/employee-app/health-consult/index.html +++ b/employee-app/health-consult/index.html @@ -142,7 +142,7 @@ @@ -159,17 +159,17 @@
🔍
找专家
-
按科室查找
+
合作专家库
🤖
小助手
-
AI智能问诊
+
有问题找小助手
📋
我的咨询
-
历史记录
+
历史咨询记录
diff --git a/employee-app/health-consult/my-records.html b/employee-app/health-consult/my-records.html index fdc174e..c41a2a0 100644 --- a/employee-app/health-consult/my-records.html +++ b/employee-app/health-consult/my-records.html @@ -63,10 +63,15 @@ .scroll-content { flex: 1; overflow-y: auto; } .scroll-content::-webkit-scrollbar { display: none; } - /* 记录Tab栏 */ - .record-tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; } - .record-tab { flex: 1; padding: 12px; text-align: center; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; } - .record-tab.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 600; } + /* 一级Tab栏 */ + .primary-tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; } + .primary-tab { flex: 1; padding: 12px; text-align: center; font-size: 15px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; } + .primary-tab.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 600; } + + /* 二级Tab栏 */ + .sub-tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; } + .sub-tab { flex: 1; padding: 10px; text-align: center; font-size: 13px; color: #999; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; } + .sub-tab.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 500; } /* 记录卡片 */ .record-item { margin: 12px 16px 0; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; text-decoration: none; color: inherit; display: block; transition: transform 0.15s; } @@ -82,6 +87,7 @@ .status-pending { background: #fff7e6; color: #fa8c16; } .status-cancelled { background: #f5f5f5; color: #999; } .status-rejected { background: #fff2f0; color: #ff4d4f; } + .status-confirming { background: #f9f0ff; color: #722ed1; } .ri-consult-person { font-size: 12px; color: #666; margin-top: 10px; display: flex; align-items: center; gap: 6px; } .ri-consult-person .rated-tag { font-size: 11px; background: #f6ffed; color: #52c41a; padding: 1px 6px; border-radius: 10px; } .ri-msg { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -91,6 +97,20 @@ .tab-content { display: none; padding-bottom: 20px; } .tab-content.active { display: block; } + /* 小助手记录卡片 */ + .assistant-item { margin: 12px 16px 0; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; text-decoration: none; color: inherit; display: block; transition: transform 0.15s; } + .assistant-item:active { transform: scale(0.98); } + .ai-top { display: flex; align-items: center; gap: 10px; } + .ai-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#e8f0ff,#c4d7ff); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; } + .ai-info { flex: 1; } + .ai-title { font-size: 15px; font-weight: 600; color: #1a1a1a; } + + /* 状态筛选栏 */ + .filter-bar { display: flex; gap: 8px; padding: 12px 16px; background: #fff; overflow-x: auto; } + .filter-bar::-webkit-scrollbar { display: none; } + .filter-chip { padding: 5px 14px; border-radius: 20px; font-size: 13px; color: #666; background: #f5f5f5; white-space: nowrap; cursor: pointer; border: none; transition: all 0.2s; flex-shrink: 0; } + .filter-chip.active { background: #e6f4ff; color: #1677ff; font-weight: 500; } + /* 底部安全区留白 */ .bottom-spacer { height: 34px; flex-shrink: 0; } @@ -114,121 +134,205 @@ 我的咨询 - -
-
图文咨询
-
视频咨询
+ +
+
咨询专家
+
咨询小助手
- -
+ +
- - -
-
👨‍⚕️
-
-
张建国医生
-
北京协和医院 · 心内科
+ +
+
图文咨询
+
视频咨询
+
+ + +
+ + + +
+ + +
+ +
+ + + +
+ + + +
+
👩‍💼
+
+
小助手
进行中
-
咨询人:本人
-
张医生:您好,胸闷气短需要引起重视...
-
2026-04-07 10:20
+
2026-04-12 16:30
- - -
-
👩‍⚕️
-
-
李晓梅医生
-
上海瑞金医院 · 内分泌科
+ + +
+
+
👩‍💼
+
+
小助手
已完成
-
咨询人:张三(父亲)已评价
-
您的血糖控制情况良好,继续保持...
-
2026-03-28 14:35
+
2026-04-05 11:20
- - -
-
👨‍⚕️
-
- - - @@ -240,19 +344,44 @@ diff --git a/employee-app/health-consult/rate-dialog.html b/employee-app/health-consult/rate-dialog.html deleted file mode 100644 index 8f92fcd..0000000 --- a/employee-app/health-consult/rate-dialog.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - 评价医生弹窗 - - - -
-
- 9:41 - ●●●●WiFi🔋 -
-
- - - -
- - - - diff --git a/employee-app/health-consult/rate-doctor.html b/employee-app/health-consult/rate-doctor.html index 968a24f..2ea25ca 100644 --- a/employee-app/health-consult/rate-doctor.html +++ b/employee-app/health-consult/rate-doctor.html @@ -77,6 +77,26 @@ .rate-textarea:focus { border-color: #1677ff; } .rate-textarea::placeholder { color: #bbb; } + /* 匿名评价开关 */ + .anon-row { + display: flex; align-items: center; justify-content: space-between; + margin-top: 16px; padding: 0 2px; + } + .anon-row .anon-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; } + .anon-row .anon-label .anon-icon { font-size: 16px; } + .anon-toggle { + width: 44px; height: 24px; border-radius: 12px; background: #e0e0e0; + position: relative; cursor: pointer; transition: background 0.25s; flex-shrink: 0; + } + .anon-toggle.on { background: #1677ff; } + .anon-toggle::after { + content: ''; position: absolute; top: 2px; left: 2px; + width: 20px; height: 20px; border-radius: 50%; background: #fff; + box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: transform 0.25s; + } + .anon-toggle.on::after { transform: translateX(20px); } + .anon-hint { font-size: 12px; color: #bbb; margin-top: 6px; text-align: left; padding: 0 2px; } + /* 提交按钮 */ .submit-btn { width: 100%; height: 48px; border: none; border-radius: 24px; margin-top: 24px; @@ -127,7 +147,14 @@ - + +
+ 🔒匿名评价 +
+
+
开启后,医生将无法看到您的姓名
+ +
@@ -149,6 +176,15 @@ }); } + /** + * 匿名评价开关 + */ + let isAnonymous = false; + function toggleAnon() { + isAnonymous = !isAnonymous; + document.getElementById('anonToggle').classList.toggle('on', isAnonymous); + } + /** * 提交评价,跳转到咨询记录页 */ diff --git a/employee-app/health-consult/record-detail-rated.html b/employee-app/health-consult/record-detail-rated.html index 2763279..5e12774 100644 --- a/employee-app/health-consult/record-detail-rated.html +++ b/employee-app/health-consult/record-detail-rated.html @@ -103,8 +103,10 @@ /* 我的评价区域 */ .rating-section { margin: 12px 16px; background: #fff; border-radius: 14px; padding: 16px; display: block; } .rating-section .rs-label { font-size: 13px; color: #999; margin-bottom: 8px; } - .rating-section .rs-stars { display: flex; gap: 4px; } + .rating-section .rs-stars { display: flex; gap: 4px; margin-bottom: 10px; } .rating-section .rs-stars .star { font-size: 20px; } + .rating-section .rs-text { font-size: 14px; color: #333; line-height: 1.6; } + .rating-section .rs-anon { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #999; margin-top: 8px; } /* 咨询人健康档案 */ .health-record-entry { @@ -218,17 +220,19 @@ 咨询类型 💬 图文咨询
-
- 咨询时间 - 2026-03-28 14:35 -
+
咨询人 张三(父亲)
-
- 咨询状态 - 已完成 + +
+ 咨询时间 + 2026-03-28 14:35 +
+
+ 结束时间 + 2026-03-28 14:35
咨询时长 @@ -246,79 +250,20 @@
+
李医生非常专业,耐心解答了我关于血糖控制的疑问,给出的饮食建议也很实用,非常感谢!
+
🔒 匿名评价
- -
+ + +
📋 咨询人健康档案
- -
- -
-
基本信息
-
- 姓名 - 张三 -
-
- 性别 / 年龄 - 男 / 58岁 -
-
- 身高 / 体重 - 172 cm / 80 kg -
-
- - -
-
生活习惯
-
- 吸烟 - -
-
- 饮酒 - 偶尔 -
-
- 饮食喜好 - 偏油腻 -
-
- 睡眠质量 - 一般 -
-
- - -
-
身体情况
-
- 过敏史 - -
-
- 遗传史 - 高血压家族史 -
-
- 既往史 - 阑尾炎手术 -
-
- 其他疾病 - 高血压、高血脂 -
-
-
- - - + + 💬
查看历史对话记录
@@ -327,19 +272,10 @@
- -
-
📋 医生咨询小结
-
您的血糖控制情况良好,继续保持现有的饮食和运动习惯。建议每3个月复查一次血糖指标,定期监测血压。
-
- - +
diff --git a/employee-app/health-consult/record-detail-unrated.html b/employee-app/health-consult/record-detail-unrated.html index 2eb867f..e0d280f 100644 --- a/employee-app/health-consult/record-detail-unrated.html +++ b/employee-app/health-consult/record-detail-unrated.html @@ -213,17 +213,19 @@ 咨询类型 💬 图文咨询
-
- 咨询时间 - 2026-03-15 09:10 -
+
咨询人 本人
-
- 咨询状态 - 已完成 + +
+ 咨询时间 + 2026-03-15 09:10 +
+
+ 结束时间 + 2026-03-15 09:10
咨询时长 @@ -231,77 +233,17 @@
- -
+ + + +
📋 咨询人健康档案
- -
- -
-
基本信息
-
- 姓名 - 本人 -
-
- 性别 / 年龄 - 男 / 45岁 -
-
- 身高 / 体重 - 175 cm / 75 kg -
-
- - -
-
生活习惯
-
- 吸烟 - -
-
- 饮酒 - 偶尔 -
-
- 饮食喜好 - 清淡 -
-
- 睡眠质量 - 良好 -
-
- - -
-
身体情况
-
- 过敏史 - -
-
- 遗传史 - -
-
- 既往史 - -
-
- 其他疾病 - -
-
-
- - - + + > 💬
查看历史对话记录
@@ -310,18 +252,13 @@
- -
-
📋 医生咨询小结
-
建议您做颈椎MRI检查,明确诊断。同时建议进行颈椎牵引治疗,配合物理治疗。避免长时间低头,定期做颈椎保健操。
-
+
diff --git a/employee-app/health-consult/search.html b/employee-app/health-consult/search.html new file mode 100644 index 0000000..63ae3c9 --- /dev/null +++ b/employee-app/health-consult/search.html @@ -0,0 +1,275 @@ + + + + + +综合搜索 + + + +
+ +
+ 9:41 +
+ + + +
+
+ + +
+ + + 取消 +
+ + +
+ +
+
+
+ 搜索历史 + 清空 +
+
+ 心内科 + 北京协和医院 + 糖尿病 + 张医生 + 骨科 +
+
+ +
+ + + +
+ +
+
+
👨‍⚕️专家(6)
+ 查看全部 +
+ +
+
👨‍⚕️
+
+
张伟明主任医师
+
心内科 · 冠心病、高血压
+
北京协和医院
+
+
+
+
👩‍⚕️
+
+
李芳副主任医师
+
内分泌科 · 糖尿病、甲亢
+
上海瑞金医院
+
+
+
+
👨‍⚕️
+
+
王建国主任医师
+
骨科 · 颈椎病、关节置换
+
北京天坛医院
+
+
+
+ + +
+
+
🏥医院(3)
+ 查看全部 +
+ +
+
🏥
+
+
北京协和医院 三甲
+
北京市东城区帅府园1号 · 128位专家
+
+
+
+
🏥
+
+
上海瑞金医院 三甲
+
上海市黄浦区瑞金二路197号 · 96位专家
+
+
+
+ + +
+
+
🩺科室(4)
+
+
+
心内科 12位专家
+
神经内科 9位专家
+
内分泌科 8位专家
+
消化内科 11位专家
+
+
+ + +
+
+
📋疾病(5)
+
+
+
高血压 18位专家
+
冠心病 12位专家
+
糖尿病 15位专家
+
心律失常 9位专家
+
颈椎病 11位专家
+
+
+
+ + +
+ +
未找到相关结果
+
换个关键词试试
+
+
+
+ + + + diff --git a/employee-app/health-consult/select-person-dialog.html b/employee-app/health-consult/select-person-dialog.html index e4da74d..bee8184 100644 --- a/employee-app/health-consult/select-person-dialog.html +++ b/employee-app/health-consult/select-person-dialog.html @@ -165,6 +165,7 @@
+
温馨提示:咨询人信息用于平台审核,不会外传。请输入正确的咨询人信息
diff --git a/employee-app/health-consult/select-person.html b/employee-app/health-consult/select-person.html new file mode 100644 index 0000000..8b36af0 --- /dev/null +++ b/employee-app/health-consult/select-person.html @@ -0,0 +1,356 @@ + + + + + + 选择咨询人 + + + +
+
+ 9:41 + ●●●●WiFi🔋 +
+ + +
+ +
+
+ 👤 +
本人
28岁 · 男 · 170cm · 65kg
+ 本人 +
+
+
+ 📋 +
+
腰部疼痛咨询
+
久坐后腰部持续酸痛,弯腰时加重
+
2026-04-10 创建
+
+ +
+
+ 📋 +
+
睡眠问题
+
近一个月入睡困难,多梦易醒
+
2026-04-05 创建
+
+ +
+ +
+ 新增健康档案
+
+
+ + +
+
+ 👴 +
张三
58岁 · 男 · 172cm · 70kg
+ 父亲 +
+
+
+ 📋 +
+
血压偏高复查
+
近期血压波动较大,头晕频繁
+
2026-04-08 创建
+
+ +
+
+ 新增健康档案
+
+
+ + +
+
+ 👩 +
李梅
55岁 · 女 · 160cm · 55kg
+ 母亲 + +
+
+ +
+ 新增健康档案
+
+
+ + + +
+ 新增咨询人
+
+ + +
+
+
+

新增咨询人

+ +
+
+
+
+ +
+
+
+
+
+
+
+
生活习惯
+
+ +
偶尔
+
+
+ +
偶尔
+
+
+ +
清淡
均衡
偏油腻
偏辛辣
+
+
+ +
良好
一般
较差
+
+
身体情况
+
+
+
+
+
+
+
+
+
温馨提示:咨询人信息用于平台审核,不会外传。请输入正确的咨询人信息
+ +
+
+
+ + +
+ +
+
+ + + + \ No newline at end of file diff --git a/employee-app/health-consult/text-chat-history.html b/employee-app/health-consult/text-chat-history.html new file mode 100644 index 0000000..cc344b2 --- /dev/null +++ b/employee-app/health-consult/text-chat-history.html @@ -0,0 +1,230 @@ + + + + + + 历史对话 - 图文咨询 + + + +
+ +
+ 9:41 + + ●●●●● + WiFi + 🔋 + +
+ +
+ +
👨‍⚕️
+
+ 张建国医生 + 咨询已结束 +
+
+ + +
+ +
+
👨‍⚕️
+
您好,我是张建国医生,请问有什么可以帮助您的?请详细描述您的症状。
+
+ + +
+
😊
+
+
+
👤
+
+
张旭(父亲) · 28岁 · 男
+
170cm · 65kg · 不吸烟 · 睡眠良好
+
+
+
+
腰部疼痛咨询
+
久坐后腰部持续酸痛,弯腰时加重
+
+ 持续时间:1-2周 +
+
+ 检查报告 + 患处图片 +
+
+
+
+ + +
+
👨‍⚕️
+
您好,胸闷气短需要引起重视。请问您有没有伴随心跳加速、出汗或者胸痛的情况?平时血压情况如何?
+
+ + +
+
😊
+
张医生您好,我父亲最近经常感到胸闷气短,尤其是爬楼梯的时候,已经持续两周了。
+
+ + +
+
😊
+
+
+
📄
+
2026年度综合体检报告
+
+
+
2026-03-15 · 北京协和医院
+ 体检报告 +
+
+
+ + +
+
👨‍⚕️
+
已收到您的体检报告,我仔细看一下。从报告来看各项指标基本正常,建议您尽快到医院做一个心电图和胸片检查,排除心肺方面的问题。
+
+ + +
+
😊
+
+
+
已结束本次咨询
+
2026-03-15 09:35
+
+
+
+ + +
+
— 咨询已结束 —
+
+
+ + + + diff --git a/employee-app/health-consult/text-chat.html b/employee-app/health-consult/text-chat.html index 4351732..9d0f361 100644 --- a/employee-app/health-consult/text-chat.html +++ b/employee-app/health-consult/text-chat.html @@ -73,6 +73,15 @@ .chat-input-row input { flex: 1; background: #f5f5f5; border: none; border-radius: 20px; padding: 9px 16px; font-size: 14px; outline: none; } .chat-input-row .plus-btn { width: 36px; height: 36px; border-radius: 50%; background: #1677ff; color: #fff; border: none; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .chat-input-row .send-btn { background: #1677ff; color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 14px; cursor: pointer; } + /* 语音切换按钮 */ + .voice-toggle-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f5f5f5; color: #666; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; } + .voice-toggle-btn:active { background: #e8e8e8; } + /* 按住说话按钮 */ + .hold-to-talk { flex: 1; height: 36px; border: 1.5px solid #e8e8e8; border-radius: 20px; background: #f9f9f9; color: #333; font-size: 14px; font-weight: 500; cursor: pointer; display: none; align-items: center; justify-content: center; user-select: none; transition: background 0.15s; } + .hold-to-talk:active { background: #e6f4ff; border-color: #1677ff; color: #1677ff; } + .hold-to-talk.show { display: flex; } + .chat-input-row input.hide { display: none; } + .chat-input-row .send-btn.hide { display: none; } .plus-panel { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 8px 8px; } .plus-panel.show { display: grid; } .plus-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; } @@ -104,6 +113,24 @@ .report-sheet__card-meta { font-size: 12px; color: #999; margin-top: 3px; } .report-sheet__send-btn { margin-left: auto; font-size: 12px; background: #1677ff; color: #fff; padding: 4px 12px; border-radius: 20px; white-space: nowrap; cursor: pointer; border: none; } + /* ===== 健康档案卡片气泡 ===== */ + .bubble-record { max-width: 260px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e8e8e8; } + .msg-row.mine .bubble-record { border-bottom-right-radius: 4px; } + .bubble-record__header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(135deg, #e8f4ff, #bae0ff); } + .bubble-record__avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; } + .bubble-record__name { font-size: 13px; font-weight: 600; color: #333; } + .bubble-record__meta { font-size: 11px; color: #666; } + .bubble-record__body { padding: 10px 12px; } + .bubble-record__title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; } + .bubble-record__desc { font-size: 12px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } + .bubble-record__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; } + .bubble-record__tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; } + .bubble-record__tag--blue { color: #1677ff; background: #e8f4ff; } + .bubble-record__tag--orange { color: #d46b08; background: #fff7e6; } + .bubble-record__images { display: flex; gap: 4px; margin-top: 8px; } + .bubble-record__img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #f0f0f0; background: #f5f5f5; } + .bubble-record__footer { padding: 6px 12px 10px; font-size: 11px; color: #bbb; } + /* ===== 模态弹窗 ===== */ .modal-overlay { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; } .modal-overlay.show { display: flex; } @@ -133,7 +160,6 @@
👨‍⚕️
张建国医生 - ● 在线
@@ -149,15 +175,40 @@
👨‍⚕️
您好,我是张建国医生,请问有什么可以帮助您的?请详细描述您的症状。
- + +
😊
-
张医生您好,我最近经常感到胸闷气短,尤其是爬楼梯的时候,已经持续两周了。
+
+
+
👤
+
+
张旭(父亲) · 28岁 · 男
+
170cm · 65kg · 不吸烟 · 睡眠良好
+
+
+
+
腰部疼痛咨询
+
久坐后腰部持续酸痛,弯腰时加重
+
+ 持续时间:1-2周 +
+
+ 检查报告 + 患处图片 +
+
+
👨‍⚕️
您好,胸闷气短需要引起重视。请问您有没有伴随心跳加速、出汗或者胸痛的情况?平时血压情况如何?
+
+ +
+
😊
+
张医生您好,我父亲最近经常感到胸闷气短,尤其是爬楼梯的时候,已经持续两周了。
@@ -166,9 +217,13 @@
+ + + + - +
@@ -177,10 +232,9 @@
📋
体检报告
-
📁
选择档案
+
📁
选择档案
-
结束咨询
-
+
@@ -243,6 +297,29 @@ } })(); + /** + * 切换语音/文字输入模式 + */ + var isVoiceMode = false; + function toggleVoice() { + isVoiceMode = !isVoiceMode; + var toggleBtn = document.getElementById('voiceToggle'); + var msgInput = document.getElementById('msgInput'); + var holdBtn = document.getElementById('holdToTalk'); + var sendBtn = document.getElementById('sendBtn'); + if (isVoiceMode) { + toggleBtn.textContent = '⌨️'; + msgInput.classList.add('hide'); + sendBtn.classList.add('hide'); + holdBtn.classList.add('show'); + } else { + toggleBtn.textContent = '🎤'; + msgInput.classList.remove('hide'); + sendBtn.classList.remove('hide'); + holdBtn.classList.remove('show'); + } + } + /** * 切换展开面板的显示/隐藏 */ diff --git a/employee-app/health-consult/video-booking.html b/employee-app/health-consult/video-booking.html index dbe702e..e672364 100644 --- a/employee-app/health-consult/video-booking.html +++ b/employee-app/health-consult/video-booking.html @@ -122,12 +122,12 @@
选择日期
-
今天
04/07
-
明天
04/08
-
周四
04/09
-
周五
04/10
-
周六
04/11
-
周日
04/12
+
明天
04/07
+
周一
04/08
+
周二
04/09
+
周三
04/10
+
周四
04/11
+
周五
04/12
上午
@@ -158,7 +158,7 @@
04/08 10:00
- + diff --git a/employee-app/health-consult/video-detail-cancelled.html b/employee-app/health-consult/video-detail-cancelled.html index 6024004..6e2ad58 100644 --- a/employee-app/health-consult/video-detail-cancelled.html +++ b/employee-app/health-consult/video-detail-cancelled.html @@ -125,34 +125,12 @@ - -
+ +
📋 咨询人健康档案
-
-
-
基本信息
-
姓名本人
-
性别 / 年龄男 / 35岁
-
身高 / 体重175 cm / 72 kg
-
-
-
生活习惯
-
吸烟
-
饮酒偶尔
-
饮食喜好清淡
-
睡眠质量良好
-
-
-
身体情况
-
过敏史青霉素过敏
-
遗传史
-
既往史
-
其他疾病
-
-
@@ -160,17 +138,12 @@
视频咨询
预约时间:2026-03-10 15:00
+
取消时间:2026-03-10 15:00
已取消
- -
-
咨询类型📹 视频咨询
-
预约时间2026-03-10 15:00
-
取消时间2026-03-09 11:20
-
咨询状态已取消
-
+
@@ -187,10 +160,6 @@
diff --git a/employee-app/health-consult/video-detail-confirming.html b/employee-app/health-consult/video-detail-confirming.html new file mode 100644 index 0000000..ce530f1 --- /dev/null +++ b/employee-app/health-consult/video-detail-confirming.html @@ -0,0 +1,154 @@ + + + + + + 咨询详情 - 视频咨询待确认 + + + +
+
+ 10:24 +
+ + +
+
+ + + + +
+ +
+
👨‍⚕️
+
+
周明辉医生
+
浙江大学附属第一医院 · 呼吸内科
+
+ 待确认 +
+ + +
+ 📋 + 咨询人健康档案 + +
+ + +
+
📹
+
+
视频咨询
+
期望时间:2026-04-15 10:00
+
+ 待确认 +
+ + + + +
📌 温馨提示:您的预约申请已提交,正在等待医生确认。
+
+ + + +
+
+ + diff --git a/employee-app/health-consult/video-detail-done.html b/employee-app/health-consult/video-detail-done.html index 3fb2b76..905ff00 100644 --- a/employee-app/health-consult/video-detail-done.html +++ b/employee-app/health-consult/video-detail-done.html @@ -123,54 +123,26 @@ - -
+ +
📋 咨询人健康档案
-
-
-
基本信息
-
姓名本人
-
性别 / 年龄男 / 35岁
-
身高 / 体重175 cm / 72 kg
-
-
-
生活习惯
-
吸烟
-
饮酒偶尔
-
饮食喜好清淡
-
睡眠质量良好
-
-
-
身体情况
-
过敏史青霉素过敏
-
遗传史
-
既往史
-
其他疾病
-
-
📹
-
视频咨询
+
视频咨询
已完成
预约时间:2026-03-20 10:00
+
视频拨打时间:2026-03-20 11:00
+
通话时长:18分钟
- 已完成 +
- -
-
咨询类型📹 视频咨询
-
预约时间2026-03-20 10:00
-
视频拨打时间2026-03-20 10:00 ~ 10:03
-
咨询状态已完成
-
通话时长18分钟
-
-
+ diff --git a/employee-app/health-consult/video-detail-pending.html b/employee-app/health-consult/video-detail-pending.html index faf921b..c50c395 100644 --- a/employee-app/health-consult/video-detail-pending.html +++ b/employee-app/health-consult/video-detail-pending.html @@ -135,34 +135,12 @@ - -
+ +
📋 咨询人健康档案
-
-
-
基本信息
-
姓名本人
-
性别 / 年龄男 / 35岁
-
身高 / 体重175 cm / 72 kg
-
-
-
生活习惯
-
吸烟
-
饮酒偶尔
-
饮食喜好清淡
-
睡眠质量良好
-
-
-
身体情况
-
过敏史青霉素过敏
-
遗传史
-
既往史
-
其他疾病
-
-
@@ -176,30 +154,21 @@ - -
-
咨询类型📹 视频咨询
-
预约时间2026-04-08 10:00
-
咨询状态待开始
-
+ -
📌 温馨提示:请在预约时间前5分钟准备好,保持网络畅通,系统将提前15分钟推送提醒。
+
📌 温馨提示:请在预约时间前5分钟准备好,保持网络畅通,等待医生拨打视频通话
diff --git a/employee-app/health-consult/video-detail-rejected.html b/employee-app/health-consult/video-detail-rejected.html index c2bea16..5c852b3 100644 --- a/employee-app/health-consult/video-detail-rejected.html +++ b/employee-app/health-consult/video-detail-rejected.html @@ -125,34 +125,12 @@ - -
+ +
📋 咨询人健康档案
-
-
-
基本信息
-
姓名本人
-
性别 / 年龄男 / 35岁
-
身高 / 体重175 cm / 72 kg
-
-
-
生活习惯
-
吸烟
-
饮酒偶尔
-
饮食喜好清淡
-
睡眠质量良好
-
-
-
身体情况
-
过敏史青霉素过敏
-
遗传史
-
既往史
-
其他疾病
-
-
@@ -164,12 +142,7 @@ 已拒绝
- -
-
咨询类型📹 视频咨询
-
预约时间2026-03-05 09:00
-
咨询状态已拒绝
-
+
@@ -186,10 +159,6 @@
diff --git a/employee-app/health-consult/video-success.html b/employee-app/health-consult/video-success.html index 32d66e7..db3c4c3 100644 --- a/employee-app/health-consult/video-success.html +++ b/employee-app/health-consult/video-success.html @@ -81,8 +81,8 @@
预约成功!
-
请在预约时间内准时上线 -系统将提前15分钟推送提醒
+
请在预约时间前打开APP + 等待医生拨打视频通话
@@ -91,11 +91,11 @@
科室心内科
类型📹 视频咨询
时间2026-04-08 10:00
-
费用¥50
+
- +
diff --git a/web-admin/health-consult/assistant/chat-message.html b/web-admin/health-consult/assistant/chat-message.html index 73328ac..a3e0d38 100644 --- a/web-admin/health-consult/assistant/chat-message.html +++ b/web-admin/health-consult/assistant/chat-message.html @@ -108,6 +108,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 diff --git a/web-admin/health-consult/assistant/checkup-standard.html b/web-admin/health-consult/assistant/checkup-standard.html index e6933db..672fc53 100644 --- a/web-admin/health-consult/assistant/checkup-standard.html +++ b/web-admin/health-consult/assistant/checkup-standard.html @@ -63,6 +63,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 diff --git a/web-admin/health-consult/assistant/consult-settle.html b/web-admin/health-consult/assistant/consult-settle.html index 6fe02c9..d097bb3 100644 --- a/web-admin/health-consult/assistant/consult-settle.html +++ b/web-admin/health-consult/assistant/consult-settle.html @@ -73,6 +73,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 diff --git a/web-admin/health-consult/assistant/current-consult.html b/web-admin/health-consult/assistant/current-consult.html index 1e3cc96..3da4993 100644 --- a/web-admin/health-consult/assistant/current-consult.html +++ b/web-admin/health-consult/assistant/current-consult.html @@ -30,6 +30,9 @@ .conv-list__header{padding:16px;border-bottom:1px solid var(--border);} .conv-list__search{width:100%;height:36px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:0 12px 0 36px;font-size:var(--font-sm);outline:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Ccircle cx='6' cy='6' r='4' stroke='%23999' stroke-width='1.4'/%3E%3Cpath d='M10 10l2.5 2.5' stroke='%23999' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center;} .conv-list__search:focus{border-color:var(--primary);} + .conv-list__filters{display:flex;gap:16px;padding:10px 10px 0;font-size:var(--font-sm);} + .conv-list__filters label{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--text-secondary);user-select:none;} + .conv-list__filters input[type="checkbox"]{width:10px;height:10px;accent-color:var(--primary);cursor:pointer;} .conv-list__body{flex:1;overflow-y:auto;} .conv-item{display:flex;gap:12px;padding:14px 16px;cursor:pointer;border-bottom:1px solid #F5F5F5;transition:background .15s;} .conv-item:hover{background:#FAFAFA;} @@ -48,6 +51,11 @@ .chat-header__left{display:flex;align-items:center;gap:12px;} .chat-header__name{font-size:var(--font-base);font-weight:600;} .chat-header__tag{font-size:var(--font-xs);padding:2px 8px;border-radius:10px;background:#F6FFED;color:var(--success);} + .chat-header__tag--ended{background:#F5F5F5;color:#999;} + /* 咨询结束卡片(员工侧发出) */ + .end-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 18px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-sm);} + .end-card__icon{width:36px;height:36px;border-radius:50%;background:#FFF1F0;color:var(--danger);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;} + .end-card__text{font-size:var(--font-sm);color:var(--text-secondary);font-weight:500;} .chat-header__actions{display:flex;gap:8px;} .btn{height:36px;padding:0 16px;border-radius:var(--radius-sm);font-size:var(--font-sm);cursor:pointer;border:none;transition:all .2s;display:inline-flex;align-items:center;gap:6px;} .btn-primary{background:var(--primary);color:#fff;} @@ -125,6 +133,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 @@ -147,6 +156,11 @@
+
+ + + +
@@ -220,13 +234,13 @@
李明 - 咨询中 + 咨询中
- +
@@ -358,13 +372,61 @@ window.addEventListener('message', function(e) { if (e.data === 'close-dialog') closeOverlay(); }); +/* 各对话的聊天内容 */ +var convContents = {}; +convContents[0] = document.getElementById('chatBody').innerHTML; +convContents[1] = '' + + '
会话开始 · 2026-04-10 09:40
' + + '
健康小助手
您好!我是健康咨询小助手,很高兴为您服务。请问您有什么健康问题需要咨询?
09:40
' + + '
张伟(钻井工程公司)
最近总是头疼,尤其是下午比较严重,已经持续一周了。
09:42
' + + '
健康小助手
请问头疼的位置是前额、太阳穴还是后脑勺?有没有伴随恶心、视力模糊等情况?平时睡眠和用眼情况如何?
09:44
' + + '
张伟(钻井工程公司)
主要是太阳穴两侧,有时候会恶心。最近加班比较多,睡眠不太好。
09:50
' + + '
健康小助手
根据您的描述,可能是紧张性头痛,与疲劳和睡眠不足有关。建议:
1. 保证充足睡眠,每天7-8小时
2. 适当放松,避免长时间伏案
3. 如持续不缓解,建议做头颅CT排查
09:52
' + + '
张伟(钻井工程公司)
好的,谢谢!我先注意休息看看。
09:55
' + + '
张伟(钻井工程公司)
本次咨询已结束
09:58
'; + +/* 各对话的状态配置:tag文字 + 是否已结束 */ +var convStatus = { + 0: { text: '咨询中', ended: false }, + 1: { text: '已结束', ended: true }, + 2: { text: '咨询中', ended: false }, + 3: { text: '咨询中', ended: false }, + 4: { text: '咨询中', ended: false }, + 5: { text: '咨询中', ended: false } +}; + +var currentConvIdx = 0; + function selectConv(el, idx) { + /* 保存当前对话内容 */ + convContents[currentConvIdx] = document.getElementById('chatBody').innerHTML; + currentConvIdx = idx; + document.querySelectorAll('.conv-item').forEach(i => i.classList.remove('active')); el.classList.add('active'); const badge = el.querySelector('.conv-badge'); if (badge) badge.remove(); const name = el.querySelector('.conv-info__name').textContent; document.getElementById('chatName').textContent = name; + + /* 切换状态标签 */ + var tag = document.getElementById('chatTag'); + var status = convStatus[idx] || { text: '咨询中', ended: false }; + tag.textContent = status.text; + if (status.ended) { + tag.classList.add('chat-header__tag--ended'); + } else { + tag.classList.remove('chat-header__tag--ended'); + } + + /* 切换聊天内容 */ + var body = document.getElementById('chatBody'); + if (convContents[idx]) { + body.innerHTML = convContents[idx]; + } else { + body.innerHTML = '
暂无消息记录
'; + } + body.scrollTop = body.scrollHeight; } /* 常用语弹出 */ diff --git a/web-admin/health-consult/assistant/doc/CHANGELOG.md b/web-admin/health-consult/assistant/doc/CHANGELOG.md index 6cbc00a..a766c20 100644 --- a/web-admin/health-consult/assistant/doc/CHANGELOG.md +++ b/web-admin/health-consult/assistant/doc/CHANGELOG.md @@ -1,5 +1,32 @@ # 变更记录 - 专家咨询·小助手角色(后台管理系统) +## 2026-04-13 + +### feat: 新增专家管理模块 + +**涉及文件:** + +- `expert-manage.html` — 新增专家管理列表页(筛选、表格、操作按钮、导入导出) +- `expert-detail-dialog.html` — 新增专家详情弹窗(新增/编辑/查看共用) +- `expert-import-dialog.html` — 新增批量导入专家弹窗(下载模板+上传文件) +- `export-task-dialog.html` — 新增导出任务列表弹窗 +- `import-task-dialog.html` — 新增导入任务列表弹窗 +- `current-consult.html` — 顶部导航栏增加"专家管理"链接 +- `chat-message.html` — 顶部导航栏增加"专家管理"链接 +- `history-consult.html` — 顶部导航栏增加"专家管理"链接 +- `checkup-standard.html` — 顶部导航栏增加"专家管理"链接 +- `sms-send.html` — 顶部导航栏增加"专家管理"链接 +- `consult-settle.html` — 顶部导航栏增加"专家管理"链接 + +**变更说明:** + +- 新增"专家管理"一级菜单,位于"历史咨询"之后,用于管理平台咨询专家信息 +- 列表页支持按姓名、科室、咨询状态筛选,操作列包含查看详情、编辑、关闭/开启咨询、重置密码、删除 +- 顶部操作区支持新增专家、导出列表数据、查看导出任务、批量导入专家、查看导入任务 +- 专家详情弹窗包含基本信息、执业信息、咨询设置三个区块 +- 批量导入弹窗支持下载模板和拖拽上传 +- 同步更新全部6个同级页面的顶部导航栏 + ## 2026-04-10 ### feat: 新增对话消息模块及通讯录功能 diff --git a/web-admin/health-consult/assistant/doc/PRD.md b/web-admin/health-consult/assistant/doc/PRD.md index 68af5a1..72b7a36 100644 --- a/web-admin/health-consult/assistant/doc/PRD.md +++ b/web-admin/health-consult/assistant/doc/PRD.md @@ -11,6 +11,7 @@ ├── 当前咨询(IM对话) ├── 对话消息(内部IM) ├── 历史咨询(列表) +├── 专家管理(列表) ├── 体检标准化(分类+列表) ├── 短信发送(列表) └── 咨询结算(列表) @@ -40,13 +41,18 @@ stateDiagram-v2 | 5 | | 通讯录弹窗 | contacts-dialog.html | | 6 | 历史咨询 | 历史咨询列表页 | history-consult.html | | 7 | | 历史对话详情弹窗 | chat-detail-dialog.html | -| 8 | 体检标准化 | 体检标准化页面 | checkup-standard.html | -| 9 | | 体检项目明细弹窗 | item-detail-dialog.html | -| 10 | 短信发送 | 短信发送记录列表 | sms-send.html | -| 11 | | 新建短信弹窗 | send-dialog.html | -| 12 | | 短信发送详情弹窗 | sms-detail-dialog.html | -| 13 | 咨询结算 | 咨询结算列表页 | consult-settle.html | -| 14 | | 报表详情弹窗 | report-detail-dialog.html | +| 8 | 专家管理 | 专家管理列表页 | expert-manage.html | +| 9 | | 专家详情弹窗 | expert-detail-dialog.html | +| 10 | | 批量导入专家弹窗 | expert-import-dialog.html | +| 11 | | 导出任务列表弹窗 | export-task-dialog.html | +| 12 | | 导入任务列表弹窗 | import-task-dialog.html | +| 13 | 体检标准化 | 体检标准化页面 | checkup-standard.html | +| 14 | | 体检项目明细弹窗 | item-detail-dialog.html | +| 15 | 短信发送 | 短信发送记录列表 | sms-send.html | +| 16 | | 新建短信弹窗 | send-dialog.html | +| 17 | | 短信发送详情弹窗 | sms-detail-dialog.html | +| 18 | 咨询结算 | 咨询结算列表页 | consult-settle.html | +| 19 | | 报表详情弹窗 | report-detail-dialog.html | --- @@ -157,7 +163,85 @@ stateDiagram-v2 - 中部为完整对话消息流 - 转专家记录以黄色提示条展示 -### 8. 体检标准化页面 +### 8. 专家管理列表页 + +**功能说明:** 展示平台所有咨询专家信息,支持新增、编辑、删除专家,以及开启/关闭咨询状态、重置密码等操作。支持批量导入导出。 + +**业务规则:** +- 列表字段:专家姓名(含头像)、科室、职称、手机号、咨询状态、创建时间 +- 咨询状态:已开启(绿色)、已关闭(红色) +- 关闭咨询后该专家不再出现在员工端可选专家列表中 + +**交互说明:** +- 筛选条件:专家姓名、科室、咨询状态 +- 点击「新增专家」→ 打开专家详情弹窗(新增模式) +- 点击行末「详情」→ 打开专家详情弹窗(查看模式) +- 点击行末「编辑」→ 打开专家详情弹窗(编辑模式) +- 点击行末「关闭咨询」→ 确认后关闭该专家的咨询服务 +- 点击行末「开启咨询」→ 确认后开启该专家的咨询服务(仅已关闭状态显示) +- 点击行末「重置密码」→ 确认后重置专家登录密码 +- 点击行末「删除」→ 二次确认后删除专家 +- 点击「导出列表数据」→ 导出当前筛选结果 +- 点击「查看导出任务」→ 打开导出任务列表弹窗 +- 点击「批量导入专家」→ 打开批量导入弹窗 +- 点击「查看导入任务」→ 打开导入任务列表弹窗 + +### 9. 专家详情弹窗 + +**功能说明:** 新增/编辑/查看专家信息,包含基本信息、执业信息和咨询设置三个区块。 + +**交互说明:** +- 以弹窗形式打开 +- 新增模式:所有字段可编辑,底部显示「取消」和「保存」按钮 +- 编辑模式:回填已有数据,可修改 +- 查看模式:所有字段只读 + +| 字段名 | 类型 | 必填 | 规则 | +|--------|------|------|------| +| 头像 | 图片上传 | 是 | 支持jpg/png | +| 姓名 | 文本 | 是 | — | +| 性别 | 下拉 | 是 | 男/女 | +| 手机号 | 文本 | 是 | 11位手机号 | +| 身份证号 | 文本 | 否 | 18位 | +| 科室 | 下拉 | 是 | 预设科室列表 | +| 职称 | 下拉 | 是 | 主任医师/副主任医师/主治医师/住院医师 | +| 执业证号 | 文本 | 否 | — | +| 执业年限 | 数字 | 否 | — | +| 擅长领域 | 文本 | 否 | 逗号分隔 | +| 图文单价 | 数字 | 否 | 默认30 | +| 视频单价 | 数字 | 否 | 默认80 | +| 个人简介 | 文本域 | 否 | — | + +### 10. 批量导入专家弹窗 + +**功能说明:** 通过Excel模板批量导入专家信息,分两步操作:下载模板、上传文件。 + +**交互说明:** +- 点击「下载导入模板」→ 下载xlsx模板文件 +- 拖拽或点击上传区域 → 选择填好的xlsx文件 +- 点击「开始导入」→ 提交导入任务 +- 支持xlsx、xls格式,单次最多500条 + +### 11. 导出任务列表弹窗 + +**功能说明:** 展示历史导出任务记录,支持下载已完成的导出文件或重试失败任务。 + +**交互说明:** +- 列表字段:任务名称、创建时间、状态、操作 +- 状态:已完成(绿色)、已失败(红色) +- 已完成 → 点击「下载」获取文件 +- 已失败 → 点击「重试」重新执行 + +### 12. 导入任务列表弹窗 + +**功能说明:** 展示历史导入任务记录,包含导入结果统计(成功/失败条数)。 + +**交互说明:** +- 列表字段:文件名、导入时间、状态、结果、操作 +- 有失败记录时 → 点击「下载失败记录」获取失败明细 +- 已失败 → 点击「重新导入」 + +### 13. 体检标准化页面 **功能说明:** 左侧体检分类树 + 右侧项目列表,供小助手查阅体检项目明细以回答员工相关问题。 @@ -169,7 +253,7 @@ stateDiagram-v2 - 点击左侧分类 → 右侧切换为该分类下的项目列表 - 点击行末「查看明细」→ 打开体检项目明细弹窗 -### 9. 体检项目明细弹窗 +### 14. 体检项目明细弹窗 **功能说明:** 展示单个体检项目的详细信息,包括参考范围、临床意义、关联套餐和注意事项。 @@ -177,7 +261,7 @@ stateDiagram-v2 - 以新窗口弹窗形式打开 - 参考范围以可视化条形图辅助展示 -### 10. 短信发送记录列表 +### 15. 短信发送记录列表 **功能说明:** 展示短信发送历史记录和统计概览,支持新建短信。 @@ -190,7 +274,7 @@ stateDiagram-v2 - 点击行末「查看详情」→ 打开短信发送详情弹窗 - 支持按状态和时间范围筛选 -### 11. 新建短信弹窗 +### 16. 新建短信弹窗 **功能说明:** 创建并发送通知短信,支持选择发送对象和定时发送。 @@ -208,7 +292,7 @@ stateDiagram-v2 | 短信内容 | 文本域 | 是 | 不超过70字 | | 定时发送 | 开关+时间 | 否 | 开启后必填时间 | -### 12. 短信发送详情弹窗 +### 17. 短信发送详情弹窗 **功能说明:** 展示某批次短信的发送结果,包括基本信息、短信内容预览、发送统计和失败记录。 @@ -216,7 +300,7 @@ stateDiagram-v2 - 以新窗口弹窗形式打开 - 失败记录列出失败人员和原因 -### 13. 咨询结算列表页 +### 18. 咨询结算列表页 **功能说明:** 按月展示各专家的咨询结算数据,支持生成和下载结算报表。 @@ -230,7 +314,7 @@ stateDiagram-v2 - 点击「下载报表」→ 下载报表文件 - 点击行末「查看明细」→ 打开报表详情弹窗 -### 14. 报表详情弹窗 +### 19. 报表详情弹窗 **功能说明:** 展示单个专家的结算明细,包括专家信息、结算金额、咨询明细和月度趋势。 diff --git a/web-admin/health-consult/assistant/employee-profile-dialog.html b/web-admin/health-consult/assistant/employee-profile-dialog.html index 589a1d9..a9ddc90 100644 --- a/web-admin/health-consult/assistant/employee-profile-dialog.html +++ b/web-admin/health-consult/assistant/employee-profile-dialog.html @@ -6,146 +6,148 @@ 咨询人档案 | 健康长庆原型 -
-
-
咨询人档案
+ + +
+
基本信息
+ + + + + + + + + + + + + + +
姓名张伟员工编号CQ001234
性别年龄38岁
单位采油一厂部门心血管科
+
+ + +
+
+ 咨询人信息 +
+ -
- -
-
-
-
李明 在职
-
工号:CQ002571 · 采油二厂 · 生产运行科 · 班长
-
-
- -
-
基本信息
-
-
性别
-
年龄38岁
-
联系电话138****5678
-
入职日期2012-07-01
-
所属单位采油二厂
-
所属部门生产运行科
-
-
+ +
+
基本信息
+ + + + + + + + + +
咨询人姓名张伟父亲性别
出生日期1960-02-18与本人关系父亲
- -
-
健康概况
-
-
-
6.8
-
空腹血糖(mmol/L)
-
-
-
125/82
-
血压(mmHg)
-
-
-
24.5
-
BMI
-
-
-
4.8
-
总胆固醇(mmol/L)
-
-
-
1.9
-
甘油三酯(mmol/L)
-
-
-
68
-
心率(次/分)
-
-
-
+
生活习惯
+ + + + + + + + + +
是否抽烟是否饮酒偶尔
饮食喜好清淡睡眠质量一般
- -
-
最近咨询记录
-
-
-
- 空腹血糖偏高咨询 - 2026-04-10 10:20 -
- 小助手 -
-
-
- 体检报告解读 - 2026-03-15 14:30 -
- 专家 -
-
-
- 颈椎不适咨询 - 2026-02-20 09:10 -
- 小助手 -
-
-
- 高血脂饮食建议 - 2025-12-08 16:45 -
- 专家 -
-
-
+
身体情况
+ + + + + + + + + + + + + + + +
身高175cm体重72kg
过敏史遗传史高血压家族史
既往史其他疾病
+
+ + +
+
基本信息
+ + + + + + + + + +
咨询人姓名李芳性别
出生日期1990-03-22与本人关系配偶
+
+ + +
+
基本信息
+ + + + + + + + + +
咨询人姓名张小明性别
出生日期2015-09-10与本人关系子女
+ + - \ No newline at end of file + diff --git a/web-admin/health-consult/assistant/expert-detail-dialog.html b/web-admin/health-consult/assistant/expert-detail-dialog.html new file mode 100644 index 0000000..40e4b41 --- /dev/null +++ b/web-admin/health-consult/assistant/expert-detail-dialog.html @@ -0,0 +1,150 @@ + + + + + +专家咨询·小助手 - 新增专家 | 健康长庆原型 + + + +
+ + +
+ 返回首页 +
健康小助手 ▾ +
+
+
+ +
+
新增专家
+ +
基本信息
+
+ +
上传
+
+
+
+
密码不能少于12位,必须包含大小写字母、数字、特殊符号。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
扩展信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+ + \ No newline at end of file diff --git a/web-admin/health-consult/assistant/expert-import-dialog.html b/web-admin/health-consult/assistant/expert-import-dialog.html new file mode 100644 index 0000000..a1347c2 --- /dev/null +++ b/web-admin/health-consult/assistant/expert-import-dialog.html @@ -0,0 +1,52 @@ + + + + + +批量导入专家 | 健康长庆原型 + + + +
批量导入专家
+ +
+
1下载导入模板
+
请先下载标准模板,按模板格式填写专家信息后上传
+ 下载导入模板(.xlsx) +
+ +
+
2上传文件
+
支持 .xlsx、.xls 格式,单次最多导入 500 条
+
+
+
点击或拖拽文件到此区域上传
+
仅支持 .xlsx、.xls 格式文件
+
+
+ + + + \ No newline at end of file diff --git a/web-admin/health-consult/assistant/expert-manage.html b/web-admin/health-consult/assistant/expert-manage.html new file mode 100644 index 0000000..7ad0c6e --- /dev/null +++ b/web-admin/health-consult/assistant/expert-manage.html @@ -0,0 +1,258 @@ + + + + + +专家咨询·小助手 - 专家管理 | 健康长庆原型 + + + +
+ + +
+ 返回首页 +
健康小助手 ▾ +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+ + +
+
+ 新增专家 + + + + +
+
+
+
专家列表
+
共 86 位专家
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
序号用户账号专家编号姓名医院科室职称专家状态咨询状态收费类型排序是否推荐操作
1guojianqiangCQZJ20250018
郭建强
西安市第九医院心脏内科副主任医师有效开启咨询免费专家1 + 关闭咨询| + 详情| + +
2wangxiuyingCQZJ20250025
王秀英
西安交大一附院内分泌科主任医师有效开启咨询收费专家2 + 关闭咨询| + 详情| + +
3zhangweiqiangCQZJ20260003
张伟强
西安市中心医院神经内科主治医师无效关闭咨询收费专家3 + 开启咨询| + 详情| + +
4chenjianguoCQZJ20260008
陈建国
唐都医院骨科主任医师有效开启咨询免费专家4 + 关闭咨询| + 详情| + +
5sunlipingCQZJ20260012
孙丽萍
西京医院消化内科副主任医师有效开启咨询收费专家5 + 关闭咨询| + 详情| + +
+ +
+
+ +
+
+ + +
+
+ + + \ No newline at end of file diff --git a/web-admin/health-consult/assistant/export-task-dialog.html b/web-admin/health-consult/assistant/export-task-dialog.html new file mode 100644 index 0000000..b7cc8cd --- /dev/null +++ b/web-admin/health-consult/assistant/export-task-dialog.html @@ -0,0 +1,58 @@ + + + + + +导出任务 | 健康长庆原型 + + + +
导出任务列表
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
任务名称创建时间状态操作
专家列表导出_202604132026-04-13 14:30:22已完成下载
专家列表导出_202604102026-04-10 09:15:08已完成下载
专家列表导出_202604052026-04-05 16:42:11已失败重试
专家列表导出_202604012026-04-01 10:20:33已完成下载
+ + \ No newline at end of file diff --git a/web-admin/health-consult/assistant/history-consult.html b/web-admin/health-consult/assistant/history-consult.html index 1890409..5077780 100644 --- a/web-admin/health-consult/assistant/history-consult.html +++ b/web-admin/health-consult/assistant/history-consult.html @@ -84,6 +84,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 diff --git a/web-admin/health-consult/assistant/import-task-dialog.html b/web-admin/health-consult/assistant/import-task-dialog.html new file mode 100644 index 0000000..3bf71b1 --- /dev/null +++ b/web-admin/health-consult/assistant/import-task-dialog.html @@ -0,0 +1,57 @@ + + + + + +导入任务 | 健康长庆原型 + + + +
导入任务列表
+ + + + + + + + + + + + + + + + + + + + + + + + + +
文件名导入时间状态结果操作
专家信息_批量导入.xlsx2026-04-12 11:20:15已完成成功 48 条,失败 2下载失败记录
新增专家名单.xlsx2026-04-08 09:45:30已完成成功 25 条,失败 0
专家补录_0401.xlsx2026-04-01 14:10:22已失败文件格式错误重新导入
+ + \ No newline at end of file diff --git a/web-admin/health-consult/assistant/sms-send.html b/web-admin/health-consult/assistant/sms-send.html index 59d8ec8..942cb51 100644 --- a/web-admin/health-consult/assistant/sms-send.html +++ b/web-admin/health-consult/assistant/sms-send.html @@ -70,6 +70,7 @@ 当前咨询 对话消息 历史咨询 + 专家管理 体检标准化 短信发送 咨询结算 diff --git a/web-admin/health-consult/config-notice.html b/web-admin/health-consult/config-notice.html index 43d4a9b..860ea94 100644 --- a/web-admin/health-consult/config-notice.html +++ b/web-admin/health-consult/config-notice.html @@ -7,7 +7,7 @@ @@ -127,98 +138,222 @@
-
-
-
当前生效版本预览
-
- - -
-
-
- -
-
- - 移动端弹窗预览效果 -
-
-
咨询须知
-
-

1. 服务说明

-

本平台提供图文咨询和视频咨询两种方式,专家将在24小时内回复您的问题。

-

2. 使用规范

-

请详细描述您的症状或健康问题,上传相关检查报告有助于专家准确判断。

-

3. 注意事项

-

本咨询服务仅供健康指导参考,不作为正式医疗诊断依据。如病情紧急,请立即前往医院就诊或拨打急救电话120。

-

4. 隐私保护

-

您的咨询内容将严格保密,仅接诊专家可查看。

-
-
-
不同意
-
同意并继续
-
-
-
- -
+ +
+
图文咨询
+
视频咨询
-
- -
-
-
-
编辑咨询须知
- -
-
- - - -
- - - -
- - -
- - + +
+
+
+
图文咨询须知
+
+ + +
-
-1. 服务说明 -本平台提供图文咨询和视频咨询两种方式,专家将在24小时内回复您的问题。 +
+
+ + + +
+ + + +
+ + +
+ + +
+
1. 服务说明 +本平台提供在线图文咨询服务,专家将在接诊后24小时内回复您的问题。单次咨询有效期为48小时。 2. 使用规范 -请详细描述您的症状或健康问题,上传相关检查报告有助于专家准确判断。 +请详细描述您的症状或健康问题,上传相关检查报告有助于专家准确判断。每次咨询限一个主要问题。 3. 注意事项 本咨询服务仅供健康指导参考,不作为正式医疗诊断依据。如病情紧急,请立即前往医院就诊或拨打急救电话120。 4. 隐私保护 您的咨询内容将严格保密,仅接诊专家可查看。
- +
+
+
+ + 移动端弹窗预览 +
+
+
图文咨询须知
+
+
+
不同意
+
同意并继续
+
+
+
+
- + + +
+
+
+
视频咨询须知
+
+ + +
+
+
+
+ + + +
+ + + +
+ + +
+ + +
+
1. 服务说明 +本平台提供在线视频咨询服务,您将与专家进行实时视频沟通。单次视频时长不超过30分钟。 + +2. 设备要求 +请确保手机摄像头和麦克风权限已开启,建议在安静、光线充足的环境下进行视频咨询,使用WiFi或4G/5G网络以保证通话质量。 + +3. 预约规则 +视频咨询需提前预约,请在预约时段前5分钟进入等候。超过预约时间10分钟未接入,本次预约将自动取消。 + +4. 注意事项 +本咨询服务仅供健康指导参考,不作为正式医疗诊断依据。如病情紧急,请立即前往医院就诊或拨打急救电话120。 + +5. 隐私保护 +视频咨询过程不会被录制,您的咨询内容将严格保密。
+ +
+
+
+
+ + 移动端弹窗预览 +
+
+
视频咨询须知
+
+
+
不同意
+
同意并继续
+
+
+
+
+
+
+
+ + + + + + diff --git a/web-admin/health-consult/doc/CHANGELOG.md b/web-admin/health-consult/doc/CHANGELOG.md index b7df9ed..2caf524 100644 --- a/web-admin/health-consult/doc/CHANGELOG.md +++ b/web-admin/health-consult/doc/CHANGELOG.md @@ -1,5 +1,20 @@ # 专家咨询(管理端)变更记录 +## 2026-04-13 + +### refactor: 重构咨询须知配置页面 + +将咨询须知页面从单一须知改为按咨询类型分TAB管理,新增实时预览和历史版本弹窗。 + +**涉及文件:** + +- `config-notice.html` — 咨询须知配置页 + - 新增「图文咨询」「视频咨询」TAB标签切换 + - 改为左侧编辑区 + 右侧移动端预览的双栏布局 + - 编辑内容实时同步到右侧预览窗口 + - 底部历史版本区域改为按钮触发弹窗显示 + - 图文/视频各自独立编辑和发布 + ## 2026-04-09 ### init: 初始化专家咨询管理端原型 diff --git a/web-admin/health-consult/history-expert.html b/web-admin/health-consult/history-expert.html index 4a5dd0c..612f8c6 100644 --- a/web-admin/health-consult/history-expert.html +++ b/web-admin/health-consult/history-expert.html @@ -155,6 +155,10 @@
+
+ + +
@@ -281,6 +285,7 @@ + @@ -301,6 +306,7 @@ + @@ -319,6 +325,7 @@ + @@ -337,6 +344,7 @@ + @@ -355,6 +363,7 @@ + @@ -373,6 +382,7 @@ + @@ -391,6 +401,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -409,6 +439,7 @@ + @@ -427,6 +458,7 @@ + @@ -445,6 +477,7 @@ + @@ -519,7 +552,7 @@ const deptMap = { // 咨询状态映射 const consultStatusMap = { 'text': ['待回复', '进行中', '已完成'], - 'video': ['待确认', '待开始', '已拒绝', '已完成'] + 'video': ['待确认', '待开始', '已完成', '已取消', '已拒绝'] }; function updateConsultStatus() { diff --git a/web-admin/health-consult/settlement.html b/web-admin/health-consult/settlement.html index d2523bc..ef3cd28 100644 --- a/web-admin/health-consult/settlement.html +++ b/web-admin/health-consult/settlement.html @@ -117,28 +117,6 @@
-
-
-
本月待结算金额
-
¥ 32,450
-
2026年4月
-
-
-
本月已结算金额
-
¥ 18,200
-
已完成结算
-
-
-
本年累计结算
-
¥ 248,600
-
2026年度
-
-
-
待结算专家数
-
28
-
本月待处理
-
-
咨询单号 姓名 员工工号 所属单位
ZJ20260409001 张伟 EMP001 采油一厂查看对话
ZJ20260409002 李明 EMP002 采油二厂查看对话
ZJ20260409003 王芳 EMP003 勘探开发研究院查看对话
ZJ20260408004 刘洋 EMP004 采油三厂查看对话
ZJ20260408005 赵静 EMP005 机关事务服务中心查看对话
ZJ20260407006孙丽EMP010采油二厂技术部视频咨询陈医生长庆医院骨科收费专家已取消2026-04-07 08:202026-04-07 08:45查看对话
ZJ20260407007 陈磊 EMP006 采油一厂查看对话
ZJ20260409008 周华 EMP007 采油一厂查看对话
ZJ20260409009 吴娟 EMP008 采油二厂查看对话
ZJ20260409010 何军 EMP009 勘探开发研究院