diff --git a/doc/DESIGN.md b/doc/DESIGN.md
index 8b82870..a7f5697 100644
--- a/doc/DESIGN.md
+++ b/doc/DESIGN.md
@@ -158,6 +158,8 @@
已完成(2026-11-14):`escort/itemlist` 服务卡改为「名称 → 说明 → 价格与预约」三段纵排:名称独占一行、允许换行,价格与时长在左、预约在右;白卡去阴影,改用 2rpx `--line` 描边。`recorddetail` 的客服、修改、展开入口补可见文字(「联系客服」「修改」「订单详情 / 收起详情」)。`mine/mine` 未登录态改为「登录后管理预约与就诊人」主文案 + 次选填昵称,通栏菜单块去阴影。`custom-tab-bar` 选中图标叠 14% 暖橙填充,选中态不只靠颜色。其余内容页同步:白卡去阴影、标题与主操作字重改 600、表单值改 500。
+已完成(2026-11-17):首页按 §10.2 调整——主视觉保持原版单行双色(暖墨「专业陪诊」+ 暖橙「多一份安心」,48rpx),删除小字眉题和拱形品牌图形(轨道、圆点随删);信任行由自绘对勾改 `--sep` 细竖线分隔,并上移到「立即预约」之前;培训卡下沉到常用功能之后,从无底色文字行改为浅橙卡(白色 `education` 图标底座 + 「国家开放大学培训中心 · 高级证书」副题 + 「了解详情」白底描边胶囊);栏目标题恢复 6×28rpx 暖橙竖条;服务宫格恢复 `--shadow-card`;页脚删除与培训入口重复的「陪诊师考证」;「当前预约」与其他栏目统一为 34rpx 暖墨。
+
### 5.2 系统级(不在页面里,最易漏)
| 位置 | 现状 | 应改为 |
@@ -256,8 +258,8 @@
| 元素 | 当前字号 / 行高 | 角色 |
|---|---|---|
-| 首页 `.hero-title` | 60rpx / 1.35,600 | 双行主视觉,不作为通用页标题 |
-| 首页 `.section-title` | `--fs-34`,600 | 无竖条区块标题 |
+| 首页 `.hero-title` | 48rpx / 1.4,600 | 单行双色主视觉,不作为通用页标题 |
+| 首页 `.section-title` | `--fs-34`,600 | 带 6×28rpx 暖橙竖条的区块标题 |
| 首页 `.hero-cta` | `--fs-32` / 1.5,600 | 实心主行动 |
| 首页 `.assist-name` | `--fs-28` / 1.6,400 | 服务入口名称,允许换行 |
| 首页 `.quick-name` | `--fs-30` / 1.5,500 | 工具卡标题 |
@@ -293,7 +295,7 @@
- 新页面优先使用无装饰标题。旧内容页保留竖条时,竖条高与标题字号同档,不再额外叠加短横、边框和色块。
- **导航栏已有页名时,页内不写同名大标题**;可以有不同内容的主张或导语,不限制为「短横 + 一句话」。
-- 首页 hero 当前为 **60rpx**;价格按 34–64rpx 数值档处理,不用它替代标题层级。
+- 首页 hero 当前为 **48rpx**;价格按 34–64rpx 数值档处理,不用它替代标题层级。
### 9.2 圆角
@@ -354,11 +356,13 @@
### 10.2 首页参考
-- 顺序:品牌 → 主视觉与立即预约 → 信任行 → 培训文字入口 → 接下来的预约(有数据时)→ 陪诊服务 → 常用功能 → 页脚。
-- 主视觉为左对齐双行标题,右侧拱形品牌图形只作陪衬;屏宽不超过 340 CSS px 时隐藏图形,不压缩标题。
+- 顺序:品牌 → 主视觉 → 信任行 → 立即预约 → 当前预约(有数据时)→ 陪诊服务 → 常用功能 → 培训卡 → 页脚。
+- 主视觉为左对齐单行双色标题(48rpx):暖墨「专业陪诊」+ 暖橙「多一份安心」,窄屏允许自然换行;不放拱形图形、轨道或其他装饰。信任行用 `--sep` 细竖线分隔,放在主按钮之前,先给依据再引出预约。
- 立即预约通栏,最小高度 96rpx、圆角 24rpx、字号 32rpx。微信 v2 原生按钮应显式 `size="default"`,并验证 `button.hero-cta[size="default"]` 的宽度规则实际生效,避免默认样式压窄居中。
-- 服务宫格共享一张白色面板,四列、图标 56rpx;不为八种服务分别引入色相或阴影。
-- 常用功能为「两张白色工具卡 + 一条通栏浅橙客服入口」,卡间距 16rpx。培训入口沿用现有位置,以业务名称 + chevron 呈现、不加底色、不增加宣传说明,避免与就医预约同重。
+- 培训卡放在常用功能之后,作为低频业务入口:`--brand-soft` + 2rpx `--brand-line` + 28rpx 圆角,白色图标底座 + 业务名称 +「国家开放大学培训中心 · 高级证书」副题 +「了解详情」白底描边胶囊;不增加第二个实心 CTA,也不在页脚重复入口。
+- 服务宫格共享一张白色面板(2rpx `--line` 描边 + `--shadow-card`),四列、图标 56rpx;不为八种服务分别引入色相或阴影。
+- 常用功能为「两张白色工具卡 + 一条通栏浅橙客服入口」,卡间距 16rpx。
+- 「当前预约」「陪诊服务」「常用功能」共用带 6×28rpx 暖橙竖条的 34rpx 暖墨栏目标题,不因有数据而单独降级。
- 医院、服务名等动态文本允许自然换行;不使用旧版“只让医院名缩略”的单行摘要。
### 10.3 立即预约参考
diff --git a/images/home-orange.png b/images/home-orange.png
new file mode 100644
index 0000000..cfffe4a
Binary files /dev/null and b/images/home-orange.png differ
diff --git a/pages/ai/aichat.js b/pages/ai/aichat.js
index b925b32..22e941e 100644
--- a/pages/ai/aichat.js
+++ b/pages/ai/aichat.js
@@ -42,6 +42,9 @@ Page({
// 「更多」菜单:常见问题与清空聊天收进同一个低频入口
showMoreMenu: false,
isTyping: false,
+ // 等待气泡的第二行:用已有的工具/子代理帧推断后台在做什么
+ progressLabel: '',
+ progressStep: 0,
// 登录态:先判完再渲染提示条,避免静默登录成功前闪一下「未登录」
authChecked: false,
isLoggedIn: false,
@@ -83,6 +86,8 @@ Page({
// 本轮请求现场与「已为重登重试过」的请求 id:服务端回「请先登录」时原样重发
this.activePayload = null
this.authRetriedRequestId = ''
+ // 本轮已计入步骤的帧 id:流式分片会复用同一 id,不能重复计数
+ this.progressStepIds = new Set()
this.loadChatHistory()
this.initSocketListeners()
this.initRecorder()
@@ -258,8 +263,12 @@ Page({
break
case 'connected':
case 'pong':
+ break
case 'reasoning':
+ this.noteProgress('reasoning', data)
+ break
case 'tool':
+ this.noteProgress('tool', data)
break
default:
console.warn('[AIChat] Unknown message type:', data.type)
@@ -274,6 +283,13 @@ Page({
handleAIReply(data) {
if (!this.activeRequestId) return
+ // 子代理(非主 agent)的输出不并入回答,只用来更新等待气泡的进度;
+ // 主 agent 没有子代理时这段不会触发,行为保持不变
+ if ((data.source || 'main') !== 'main') {
+ this.noteProgress('subagent', data)
+ return
+ }
+
const serverId = data.id || this.activeRequestId
const messages = this.data.messages.slice()
const lastMessage = messages[messages.length - 1]
@@ -336,6 +352,8 @@ Page({
this.activeRequestType = ''
// 请求已结束,不再保留提问现场(图片原文可能很大)
this.activePayload = null
+ this.progressStepIds = new Set()
+ this.setData({ progressLabel: '', progressStep: 0 })
},
beginRequest(requestId, userMessageId = '', type = 'chat') {
@@ -343,6 +361,39 @@ Page({
this.activeUserMessageId = userMessageId
this.activeServerId = ''
this.activeRequestType = type
+ this.resetProgress(type)
+ },
+
+ // 等待态进度:后端没有独立的进度帧,用已有的 tool / subagent / reasoning 帧
+ // 推断当前阶段;图片/语音识别有自己的文案,不在这里抢提示
+ resetProgress(type = 'chat') {
+ this.progressStepIds = new Set()
+ this.setData({
+ progressLabel: type === 'chat' ? '正在理解您的问题' : '',
+ progressStep: 0
+ })
+ },
+
+ noteProgress(kind, data) {
+ if (!this.activeRequestId) return
+
+ const labels = {
+ reasoning: '正在分析…',
+ tool: '正在查询资料…',
+ subagent: '正在处理子任务…'
+ }
+ const label = labels[kind]
+ if (!label) return
+
+ // 工具结果与子代理消息都按 id 计一步,主代理自己调工具也算
+ let step = this.data.progressStep
+ const id = data && data.id
+ if (id && (kind === 'tool' || kind === 'subagent') && !this.progressStepIds.has(id)) {
+ this.progressStepIds.add(id)
+ step += 1
+ }
+ if (label === this.data.progressLabel && step === this.data.progressStep) return
+ this.setData({ progressLabel: label, progressStep: step })
},
createMessageId(prefix = 'msg') {
diff --git a/pages/ai/aichat.wxml b/pages/ai/aichat.wxml
index c6808ee..db341c0 100644
--- a/pages/ai/aichat.wxml
+++ b/pages/ai/aichat.wxml
@@ -133,12 +133,22 @@
-
-
-
-
+
+
+ {{isRecognizing ? '正在识别,请稍候' : '正在为您整理'}}
+
+
+
+
+
+
+
+
+ {{progressLabel}}{{progressStep ? ' · 已完成 ' + progressStep + ' 步' : ''}}
- {{isRecognizing ? '正在识别,请稍候' : '正在为您整理'}}
diff --git a/pages/ai/aichat.wxss b/pages/ai/aichat.wxss
index 77ad8d5..9497ef7 100644
--- a/pages/ai/aichat.wxss
+++ b/pages/ai/aichat.wxss
@@ -75,11 +75,14 @@
.system-message { max-width: 100%; padding: 8rpx 16rpx; color: var(--muted); font-size: var(--fs-26); line-height: 1.7; text-align: center; }
.system-login-link { display: inline-block; padding: 16rpx; color: var(--brand-ink); font-size: var(--fs-28); }
.message-item.ai .typing-bubble { display: flex; align-items: center; gap: 20rpx; width: auto; min-height: 88rpx; }
-.typing-indicator { display: flex; align-items: center; gap: 8rpx; }
+.typing-main { display: flex; align-items: center; gap: 12rpx; }
+.typing-indicator { display: flex; align-items: center; gap: 8rpx; flex-shrink: 0; }
+.typing-lines { display: flex; flex-direction: column; gap: 2rpx; }
.dot { width: 10rpx; height: 10rpx; border-radius: 50%; background: var(--brand-ink); animation: typing 1.4s infinite ease-in-out both; }
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.typing-text { font-size: var(--fs-26); color: var(--muted); line-height: 1.6; }
+.typing-progress { font-size: 22rpx; color: var(--muted); line-height: 1.5; opacity: 0.85; }
/* 统一白色输入面板,语音/图片/更多在左,发送在右,所有操作横向展开。
position: relative 供「更多」菜单定位(菜单从按钮上方展开) */
diff --git a/pages/escort/itemdetail.wxml b/pages/escort/itemdetail.wxml
index cf954b5..0b1ccff 100644
--- a/pages/escort/itemdetail.wxml
+++ b/pages/escort/itemdetail.wxml
@@ -92,12 +92,8 @@
-
+
-
- 01
- 陪诊项目
-
@@ -110,12 +106,8 @@
费用仅含人工服务费,不含就医、药品及快递费用。
-
+
-
- 02
- 就诊人信息
-
选择就诊人
@@ -146,12 +138,8 @@
-
+
-
- 03
- 就诊安排
-
就诊省份
@@ -208,20 +196,15 @@
-
+
-
- 04
- 补充信息
- 选填
-
收货地址(选填)
收货人与联系电话使用所选就诊人信息
-
+
备注说明
{{remark.length}}/200
diff --git a/pages/escort/itemdetail.wxss b/pages/escort/itemdetail.wxss
index a87f039..a33b042 100644
--- a/pages/escort/itemdetail.wxss
+++ b/pages/escort/itemdetail.wxss
@@ -55,9 +55,11 @@ page {
border: none;
}
-/* ===== 下单表单分组:沿用 01–04 编号,用发丝线分隔,不叠白卡 ===== */
+/* ===== 下单表单分组:用发丝线分隔,不叠白卡 =====
+ 去掉了 01–04 编号标题,分组间距改为仅由发丝线上下各 8rpx 贡献:
+ 行内相邻字段间距 48rpx,跨分组 64rpx,靠 16rpx 差形成层级,不再靠大段留白 */
.form-section {
- padding: 24rpx 0 8rpx;
+ padding: 8rpx 0;
}
.form-section:first-child {
@@ -65,36 +67,9 @@ page {
}
.form-section + .form-section {
- margin-top: 8rpx;
border-top: 2rpx solid var(--line);
}
-.form-section-head {
- display: flex;
- align-items: baseline;
- gap: 16rpx;
- margin-bottom: 12rpx;
-}
-
-.form-section-number {
- color: var(--brand-ink);
- font-size: var(--fs-24);
- font-weight: 500;
- letter-spacing: 2rpx;
-}
-
-.form-section-title {
- color: var(--ink);
- font-size: var(--fs-32);
- font-weight: 600;
-}
-
-.form-section-optional {
- margin-left: auto;
- color: var(--muted);
- font-size: var(--fs-24);
-}
-
/* ===== 头部:短横色标 + 深墨标题 ===== */
.page-header {
padding: 32rpx 0 0;
@@ -644,9 +619,6 @@ page {
line-height: 1.6;
}
-.remark-row { padding-top: 12rpx; }
-.remark-row .order-textarea { margin-top: 0; }
-
/* ===== 就诊人选择 ===== */
.patient-scroll {
width: 100%;
diff --git a/tools/booking-ui.test.js b/tools/booking-ui.test.js
index a77ccfa..018b15e 100644
--- a/tools/booking-ui.test.js
+++ b/tools/booking-ui.test.js
@@ -132,7 +132,8 @@ test('两个预约入口仍按服务数据定价,协议、字段与提交入
assert.match(wxml, /费用仅含人工服务费,不含就医、药品及快递费用/)
}
const home = fs.readFileSync(path.join(root, 'pages/home/index.wxml'), 'utf8')
- assert.ok(home.indexOf('class="training-entry"') > home.indexOf('class="quick-list"'))
+ assert.ok(home.indexOf('class="training-card"') > home.indexOf('class="quick-list"'))
+ assert.ok(home.indexOf('class="training-card"') < home.indexOf('class="page-footer"'))
assert.doesNotMatch(home, /全程1对1陪同/)
})
diff --git a/tools/home-ui.test.js b/tools/home-ui.test.js
index 063a97e..be10d34 100644
--- a/tools/home-ui.test.js
+++ b/tools/home-ui.test.js
@@ -7,7 +7,7 @@ const root = path.resolve(__dirname, '..')
test('当前预约使用两行摘要,日期、姓名、服务及状态共用首行,不显示时间', () => {
const wxml = fs.readFileSync(path.join(root, 'pages/home/index.wxml'), 'utf8')
- assert.match(wxml, /pending-heading">当前预约/)
+ assert.match(wxml, /section-title">当前预约/)
assert.doesNotMatch(wxml, /pending-service-row/)
const match = /([\s\S]*?)<\/view>/.exec(wxml)
assert.ok(match, '预约卡片应包含首行摘要')