From 3504c1fe317e0f605c6cdf267861857746626953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9F=B5=E7=90=B4?= <757188142@qq.com> Date: Fri, 10 Apr 2026 14:35:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E5=92=A8=E8=AF=A2=E6=A8=A1=E5=9D=97=E5=AF=BC=E8=88=AA=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E9=97=AE=E9=A2=98=E5=8F=8A=E6=96=B0=E5=A2=9E=E4=BD=93?= =?UTF-8?q?=E6=A3=80=E6=8A=A5=E5=91=8A=E5=8D=A1=E7=89=87=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复5个弹窗dialog关闭后空白页问题,改为history.back()返回上一页 - 补充text-chat和video-success缺失的返回按钮 - 修复rate-doctor与text-chat返回按钮死循环跳转 - text-chat返回按钮支持?from参数动态返回来源页 - expert-profile返回按钮移除history.back()避免跳回聊天页 - index.html入口页返回按钮取消点击事件 - 聊天页新增内嵌体检报告选择弹窗及报告卡片气泡展示 Co-Authored-By: Claude Opus 4.6 --- .../health-consult/consult-notice-dialog.html | 5 +- employee-app/health-consult/doc/CHANGELOG.md | 28 ++++ .../health-consult/end-consult-dialog.html | 4 +- .../health-consult/expert-profile.html | 2 - employee-app/health-consult/index.html | 11 +- employee-app/health-consult/rate-dialog.html | 4 +- employee-app/health-consult/rate-doctor.html | 10 +- .../health-consult/select-person-dialog.html | 4 +- .../health-consult/select-report-dialog.html | 4 +- employee-app/health-consult/text-chat.html | 136 +++++++++++++++++- .../health-consult/video-success.html | 4 +- 11 files changed, 177 insertions(+), 35 deletions(-) diff --git a/employee-app/health-consult/consult-notice-dialog.html b/employee-app/health-consult/consult-notice-dialog.html index ff74386..35722df 100644 --- a/employee-app/health-consult/consult-notice-dialog.html +++ b/employee-app/health-consult/consult-notice-dialog.html @@ -103,10 +103,9 @@ + diff --git a/employee-app/health-consult/rate-dialog.html b/employee-app/health-consult/rate-dialog.html index e246846..8f92fcd 100644 --- a/employee-app/health-consult/rate-dialog.html +++ b/employee-app/health-consult/rate-dialog.html @@ -111,9 +111,9 @@ } } - /** 取消 - 关闭弹窗 */ + /** 取消 - 返回上一页 */ function handleCancel() { - document.getElementById('modalOverlay').style.display = 'none'; + history.back(); } /** 提交评价 */ diff --git a/employee-app/health-consult/rate-doctor.html b/employee-app/health-consult/rate-doctor.html index e9015b8..968a24f 100644 --- a/employee-app/health-consult/rate-doctor.html +++ b/employee-app/health-consult/rate-doctor.html @@ -160,15 +160,7 @@ * 返回上一页:读取 ?from 参数决定目标页 */ function goBack() { - var params = new URLSearchParams(window.location.search); - var from = params.get('from'); - if (from === 'text-chat') { - window.location.href = 'text-chat.html'; - } else if (history.length > 1) { - history.back(); - } else { - window.location.href = 'my-records.html'; - } + window.location.href = 'my-records.html'; } diff --git a/employee-app/health-consult/select-person-dialog.html b/employee-app/health-consult/select-person-dialog.html index 75cc2eb..e4da74d 100644 --- a/employee-app/health-consult/select-person-dialog.html +++ b/employee-app/health-consult/select-person-dialog.html @@ -175,9 +175,9 @@ diff --git a/employee-app/health-consult/video-success.html b/employee-app/health-consult/video-success.html index b273a6a..32d66e7 100644 --- a/employee-app/health-consult/video-success.html +++ b/employee-app/health-consult/video-success.html @@ -27,9 +27,10 @@ /* 导航栏 */ .nav-bar { height: 44px; display: flex; align-items: center; justify-content: center; - background: #fff; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; + background: #fff; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; position: relative; } .nav-title { font-size: 17px; font-weight: 600; color: #1a1a1a; } + .nav-back { position: absolute; left: 16px; font-size: 22px; color: #333; text-decoration: none; cursor: pointer; } /* 内容区 */ .content { flex: 1; overflow-y: auto; padding: 32px 20px 20px; } .content::-webkit-scrollbar { display: none; } @@ -72,6 +73,7 @@