From 17a64f10bc746e98a0537c075e241667e1f7581e Mon Sep 17 00:00:00 2001 From: lik Date: Fri, 13 Nov 2026 17:10:55 +0800 Subject: [PATCH] =?UTF-8?q?style(ui):=20=E7=BB=9F=E4=B8=80=E9=A1=B5?= =?UTF-8?q?=E9=A6=96/=E5=AD=97=E5=8F=B7/=E5=9C=86=E8=A7=92=E6=A1=A3?= =?UTF-8?q?=E4=BD=8D=E5=B9=B6=E6=94=B6=E5=8F=A3=E7=8A=B6=E6=80=81=E8=89=B2?= =?UTF-8?q?=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」 - 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九) - 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值 - 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底 - 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔 - 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退 - aichat:消息时间改为距上条满 5 分钟才显示 --- app.json | 2 +- app.wxss | 14 ++++++ components/hospital-select/index.wxss | 27 ++++++----- doc/DESIGN.md | 57 +++++++++++++++++++---- pages/ai/aichat.js | 39 ++++++++++++---- pages/ai/aichat.wxml | 4 +- pages/ai/aichat.wxss | 12 ++++- pages/escort/agreement.wxss | 4 +- pages/escort/attendantdetail.wxml | 8 +++- pages/escort/attendantdetail.wxss | 31 ++++++++++--- pages/escort/attendants.json | 5 +- pages/escort/attendants.wxml | 24 +++++++--- pages/escort/attendants.wxss | 67 ++++++++++++++++++++------- pages/escort/guide.wxml | 9 ++-- pages/escort/guide.wxss | 24 ++++------ pages/escort/itemlist.wxss | 23 ++++----- pages/escort/itemorder.wxml | 9 ++-- pages/escort/itemorder.wxss | 44 +++++++----------- pages/escort/recorddetail.js | 12 ++--- pages/escort/recorddetail.wxml | 18 +++---- pages/escort/recorddetail.wxss | 66 ++++++++++++++++++++++---- pages/escort/recordlist.js | 19 ++++---- pages/escort/recordlist.wxml | 18 +++---- pages/escort/recordlist.wxss | 44 +++++++++++++++++- pages/health/profileedit.wxss | 11 +++-- pages/health/profilelist.wxss | 6 +-- pages/home/index.wxml | 6 +-- pages/home/index.wxss | 17 +++---- pages/mine/about.wxss | 13 +++--- pages/mine/business.wxss | 2 +- pages/mine/contact.wxml | 9 ++-- pages/mine/contact.wxss | 24 ++++------ pages/mine/mine.wxss | 3 +- pages/mine/profileedit.wxss | 8 +++- pages/train/apply.wxss | 8 ++-- pages/train/index.wxml | 10 ++-- pages/train/index.wxss | 28 +++++------ utils/order.js | 24 +++++----- 38 files changed, 472 insertions(+), 277 deletions(-) diff --git a/app.json b/app.json index 8346985..cdf509f 100644 --- a/app.json +++ b/app.json @@ -23,7 +23,7 @@ ], "window": { "backgroundTextStyle": "light", - "navigationBarBackgroundColor": "#FAFAF9", + "navigationBarBackgroundColor": "#FAF8F5", "navigationBarTitleText": "暖橙陪诊", "navigationBarTextStyle": "black" }, diff --git a/app.wxss b/app.wxss index 0010ac0..4ea1518 100644 --- a/app.wxss +++ b/app.wxss @@ -44,6 +44,20 @@ page { (L* 97.0 → 97.7),暖白身份保留 */ --white: #FFFFFF; + /* ===== 状态色四档(DESIGN.md §三)===== + 只给订单、记录这类「有明确状态字段」处用,不得用于标题、图标衬底、按钮、装饰条; + 状态胶囊必须带文字,颜色只做强化。JS 里读不到这些变量(recordlist / recorddetail + 的胶囊色走内联 style),改色时需同步那两个文件的常量 */ + --status-wait-bg: #ECF7F4; /* 待确认 / 待服务 */ + --status-wait-line: #C7E5DF; + --status-wait-ink: #0F766E; + --status-done-bg: #EAF6EE; /* 已完成 */ + --status-done-line: #CDE9D7; + --status-done-ink: #1F7A4D; + --status-cancel-bg: #FCF0EE; /* 已取消 / 表单错误 */ + --status-cancel-line: #F2D6D1; + --status-cancel-ink: #B4231A; + /* 阴影:偏移与模糊半径都保持"小偏移、小模糊"的锐利档 */ --shadow-card: 0 2rpx 10rpx rgba(63, 43, 25, 0.07); /* 白面一律走中性阴影 */ --shadow-cta: 0 2rpx 8rpx rgba(184, 82, 10, 0.16); /* 只给实心 CTA、品牌印记这类小体量元素 */ diff --git a/components/hospital-select/index.wxss b/components/hospital-select/index.wxss index d890e95..87e45b1 100644 --- a/components/hospital-select/index.wxss +++ b/components/hospital-select/index.wxss @@ -28,7 +28,7 @@ align-items: center; justify-content: space-between; padding: 24rpx 0; - border-bottom: 2rpx dotted var(--line-soft, #E9DECB); + border-bottom: 2rpx solid var(--line); } .is-compact .hospital-row { @@ -40,8 +40,11 @@ opacity: 0.6; } -/* 行标签与取值统一 30rpx,与页面表单(.order-label / .order-value)同档 */ +/* 行标签与取值统一 30rpx,与页面表单(.order-label / .order-value)同档。 + 标签走裸字 muted:表单里浅橙底只留给可选项,标签不冒充控件 + (与 itemorder / itemdetail 的 .order-label、health/profileedit 的标签同一口径) */ .hospital-label { + flex-shrink: 0; color: var(--muted, #6F655C); font-size: var(--fs-30, 30rpx); letter-spacing: 1rpx; @@ -61,16 +64,6 @@ margin-left: 24rpx; } -/* 行标题:浅橙底 tag,与页面表单 .order-label 同款(同宽对齐) */ -.hospital-label { - box-sizing: border-box; - min-width: 190rpx; - padding: 8rpx 20rpx; - text-align: center; - background: var(--brand-soft, #FFF4E8); - border-radius: 12rpx; -} - .hospital-value-text { min-width: 0; overflow: hidden; @@ -122,10 +115,13 @@ .hospital-manual-input { flex: 1; min-width: 0; + box-sizing: border-box; padding: 16rpx 20rpx; color: var(--ink, #2B2521); font-size: var(--fs-30, 30rpx); - background: #E6F4EA; + /* 字段填充走暖白纸面 + 发丝边(与 .order-textarea 同款);原 #E6F4EA 是旧绿主题残留 */ + background: var(--paper); + border: 2rpx solid var(--line); border-radius: 12rpx; } @@ -177,10 +173,13 @@ .hospital-search-input { flex: 1; min-width: 0; + box-sizing: border-box; padding: 16rpx 20rpx; color: var(--ink, #2B2521); font-size: var(--fs-30, 30rpx); - background: #E6F4EA; + /* 字段填充走暖白纸面 + 发丝边(与 .order-textarea 同款);原 #E6F4EA 是旧绿主题残留 */ + background: var(--paper); + border: 2rpx solid var(--line); border-radius: 12rpx; } diff --git a/doc/DESIGN.md b/doc/DESIGN.md index 9fe6e0e..687b3b4 100644 --- a/doc/DESIGN.md +++ b/doc/DESIGN.md @@ -1,6 +1,6 @@ # 陪诊小程序 配色规范 -适用范围:`ui/wxapp_escort/` 全部页面。本文只规定**颜色**;布局、间距、圆角、触控尺寸属界面规范,另行处理。 +适用范围:`ui/wxapp_escort/` 全部页面。本文规定**颜色**(§一至§七)、**字号阶梯**(§八)与**版式档位**(§九,页标题 / 圆角 / 容器内距);其余布局与间距节奏仍由各页自行说明。 --- @@ -20,7 +20,7 @@ **`t-icon` 的 `name` 必须命中 tdesign 图标名表**(`miniprogram_npm/tdesign-miniprogram/icon/icon.wxss` 里的 `.t-icon-{name}`),写错不报错、只是渲染为空:`list` 并不存在(只有 `list-numbered`、`list-bug` 等),`info-circle`、`error-circle`、`user-business`、`chart-bar` 等均存在。 -迁移进度:`home/index`、`escort/itemlist`、`escort/guide`、`attendant/*` 副本已删;`itemdetail`、`mine/contact` 两页仍各带副本(停在旧值 `#C2410C`),待重构时按同一方式删。 +迁移进度:全部页面已删除 `page{}` 里的令牌副本,统一消费 `app.wxss`(2026-11-13 复核:`itemdetail`、`mine/contact` 的旧副本也已清除)。 ### 2.1 第一色:暖橙色阶 @@ -89,6 +89,8 @@ 用法边界: +- 上表四档已在 `app.wxss` 的 `page{}` 落为令牌:`--status-wait-bg/line/ink`、`--status-done-bg/line/ink`、`--status-cancel-bg/line/ink`(「服务中」复用 `--brand-soft/--brand-line/--brand-strong`)。页面不再写字面量;`home/index` 的整卡底色已改为指向待确认档。 +- `recordlist` / `recorddetail` 的状态胶囊不再由 JS 给色值:`utils/order.js` 只映射语气档(`tone: wait / doing / done / cancel / neutral`),页面类名拼 `.chip-tone-{tone}`,色值读上表令牌。改色只改 `app.wxss`。 - **不得仅用颜色传达状态**(WCAG 1.4.1):状态胶囊必须带文字,颜色只做强化。 - 青绿(待服务)是全站唯一冷色,只给"等你去处理"这一个语义。 - 服务中复用主色浅档,字色跟随该页 `--brand-strong`(已迁移页 `#B8520A`,未迁移页 `#C2410C`)。 @@ -144,10 +146,9 @@ | 位置 | 现状 | 应改为 | |---|---|---| -| `app.json` tabBar 选中图标 | `home-green.png` / `ai-green.png` / `mine-green.png`(绿色图片) | 暖橙 `#B8520A` 版本,与 `selectedColor` 一致 | -| `app.json` tabBar `color` | `#999999` | `--muted` 等价色 `#6F655C` | -| `app.wxss` 全局变量 | `--td-brand-color-1..10` 整套翠绿(基准 `#22A45D`)、`--c-ink #1c1917` | 已确认业务页面零引用,是死代码,可整体重写或删除 | -| `custom-tab-bar/index.wxss`、`index.js` | 未选中色硬编码 `#7A7068` | `#6F655C` | +| `app.json` tabBar 图标 | `home-green.png` / `ai-green.png` / `mine-green.png`(绿色图片) | 暖橙 `#B8520A` 版本,与 `selectedColor` 一致。注:`tabBar.custom: true` 时这三张图实际不渲染,可随自定义 tabBar 一起清理 | + +已完成(2026-11-13):`app.json` 的 `tabBar.color` 已为 `#6F655C`;`custom-tab-bar` 未选中灰已为 `#6F655C`;`app.wxss` 的 `--td-brand-color-1..10` 已整体映射到暖橙令牌,不再引入第二套色板。 ### 5.3 通用色值映射表 @@ -208,9 +209,9 @@ | 10 | `images/ai-ink.png` | 整图纯色(陪诊助手 tab 选中态位图) | `#9B4508` | `#8A4B08`(位图需重上色,不能按文本替换) | | 11 | `images/home-ink.png` | 整图纯色(「我的」默认头像位图,由灰色 `home.png` 重上色) | `#9B4508` | `#8A4B08`(同上) | -**无需回滚**:其余页面从未迁移。仍定义旧值 `#C2410C` / `#9A3412` 的是 `itemdetail`、`mine/contact` 两页四文件(各含 `.wxss` 令牌与 `.wxml` 里 `t-icon` 硬编码),本就是回滚后的目标态(`guide` 已于 2026-10-06 迁移,`attendant/*` 于同日迁移并新增详情页,见 §5.1);`agreement`、`recordlist`、`recorddetail`、`mine/*` 等页走更早的金色体系(`#D4A853`),见 §5.1。 +**无需回滚**:页面层已全部改用 `app.wxss` 的令牌(`itemdetail`、`mine/contact` 的旧副本已删,见 §5.1)。仍写死色值、需按上表逐项手改的只有 `custom-tab-bar`(独立组件读不到 `page` 变量)、`app.json`、内嵌 SVG 的 `stroke` 与两张位图。 -注:`custom-tab-bar` 未选中灰硬编码 `#7A7068` 是独立历史遗留项(应改 `#6F655C`,见 §5.2),与本次主色调整无关。 +注:`custom-tab-bar` 未选中灰已改 `#6F655C`(2026-11-13 复核),与本次主色调整无关。 --- @@ -269,4 +270,42 @@ 「我的」页开关 + 本地存储;开启时在页面根节点挂 `.fs-large`,在 `app.wxss` 覆写六档令牌 ×1.1(24→26 / 26→29 / 28→31 / 30→33 / 32→35 / 34→37)。 **只放大中小字**:36rpx 以上的标题与价格不动,避免首页卡片标题折行、底部操作栏变挤。 -页面侧零改动,前提是 8.1 的令牌替换已做完;固定高度文本容器实施时需改 `min-height`。 \ No newline at end of file +页面侧零改动,前提是 8.1 的令牌替换已做完;固定高度文本容器实施时需改 `min-height`。 + +--- + +## 九、版式档位(2026-11-13 裁定) + +此前页标题、圆角、容器内距都是「每页自证其合理」——每页的注释都成立,页与页之间却没有统一档,同一层级在三页里能出现三种尺寸。本节只裁定这三处,其余间距节奏仍归各页。 + +### 9.1 展示字号(36rpx 以上) + +| 角色 | 字号 | 现状 | +|---|---|---| +| 页面主标题(导航栏同名处不写) | **44rpx** | `agreement` / `business` / `itemdetail` / `train/index` / `train/apply` / `about` / `aichat`(空会话标题)/ `attendantdetail`(姓名即标题) | +| 区块标题(带竖条) | **34rpx**(`--fs-34`) | 首页 / 清单页 / 详情页 / 记录详情 / 培训页 | +| 卡内标题 | **32rpx**(`--fs-32`) | guide / business / about / attendantdetail / agreement | +| 页首导语 | **32rpx**(`--fs-32`) | itemlist / itemorder / guide / contact / attendants | + +- **竖条高 = 标题字号**:8×34rpx 配 34rpx 标题,8×32 配 32rpx。 +- **导航栏已有页名时,页内不写同名大标题**:页首只留「短横 + 一句导语」。已执行:itemlist、itemorder、guide、contact、attendants;itemdetail(写服务名)、business(写「与我们合作」)、train(写证书名)不属于重复。 +- 首页 hero 50rpx、价格 34–64rpx 属「营销标题 / 数值」档,不在此表。 + +### 9.2 圆角 + +| 层级 | 半径 | +|---|---| +| 卡片、状态卡、整块可点面 | **28rpx** | +| 字段、小容器、图标衬底 | 16rpx(标签 10–12rpx) | +| 胶囊按钮 | 999rpx | +| 底部弹层(sheet)顶部 | 32rpx | + +例外(已登记,不再扩散):`itemlist` 服务项卡 24rpx、`home` 未完成预约卡 24rpx,见 §2.3 与 §三 的对应条目。 + +### 9.3 容器内距 + +左右一律 **32rpx**(`about` 的 22rpx、`train/index` 的 28rpx 已并入)。 + +### 9.4 页首 + +页首 = 64×8rpx 短横(`--brand-strong`)+ 22rpx 间距 + 32rpx/700/`--ink` 导语。类名为 `.page-lead` / `.page-accent` / `.page-lead-text`,各页本地声明(微信小程序无全局样式表可共享,复制同一份即可)。 \ No newline at end of file diff --git a/pages/ai/aichat.js b/pages/ai/aichat.js index 6087f5c..6a39a84 100644 --- a/pages/ai/aichat.js +++ b/pages/ai/aichat.js @@ -25,6 +25,10 @@ const MAX_IMAGE_CLIENT_BYTES = 6 * 1024 * 1024 // 微信相册/相机原图常有好几兆,超过这个体积先压一档再转 base64 const IMAGE_COMPRESS_THRESHOLD = 2 * 1024 * 1024 +// 消息时间的显示间隔:首条必显示,之后只有与上一条相隔 ≥5 分钟才再挂一行时间。 +// 每条都挂时间会把气泡读成「日志」,这是聊天界面最常见的噪音来源之一 +const MESSAGE_TIME_GAP = 5 * 60 * 1000 + // OCR 返回的原文已是 markdown(表格、分段由服务端按原图排版)。 // 这里不再让 agent 二次整理:咨询提示词会把它压缩成 1-3 句,服务端输出护栏还有字符上限, // 长报告必然丢行;原文直接作为这一轮 AI 回复投递,既完整也少一次生成。 @@ -284,13 +288,14 @@ Page({ type: 'ai', contentType: 'text', content: data.content || '', + ts: Date.now(), time: this.formatTime(new Date()) }) } this.activeServerId = serverId this.setData({ - messages, + messages: this.stampMessageTimes(messages), // 正文出现后隐藏等待动画,activeRequestId 仍保留到 end,期间不允许并发提问。 isTyping: false }) @@ -344,6 +349,18 @@ Page({ return `${prefix}_${time}_${random}_${++this.messageIdCounter}` }, + // 给消息补上「这一条要不要显示时间」:首条显示,之后按与上一条的时间差判断。 + // ts 缺失的是本改动之前存下的历史,无法判断间隔,沿用原行为显示时间。 + stampMessageTimes(list = []) { + let prevTs = 0 + return list.map((item) => { + const ts = Number(item.ts) || 0 + const showTime = !prevTs || !ts || ts - prevTs >= MESSAGE_TIME_GAP + if (ts) prevTs = ts + return { ...item, showTime } + }) + }, + loadChatHistory() { try { const history = wx.getStorageSync('ai_chat_history') @@ -369,7 +386,7 @@ Page({ return message }) - this.setData({ messages }) + this.setData({ messages: this.stampMessageTimes(messages) }) this.saveChatHistory(messages) this.scrollToBottom() } catch (e) { @@ -430,10 +447,11 @@ Page({ type: 'ai', contentType: 'questions', content: this.createQuestionItems(questions.map(item => item.text)), + ts: Date.now(), time: this.formatTime(new Date()) } - const messages = [...this.data.messages, questionMessage] + const messages = this.stampMessageTimes([...this.data.messages, questionMessage]) this.setData({ messages }) this.saveChatHistory(messages) this.scrollToBottom() @@ -1141,10 +1159,11 @@ Page({ contentType: 'image', content: file.tempFilePath, status: '', + ts: Date.now(), time: this.formatTime(new Date()) } const requestId = this.createMessageId('req') - const messages = [...this.data.messages, userMessage] + const messages = this.stampMessageTimes([...this.data.messages, userMessage]) this.beginRequest(requestId, userMessage.id, 'image') this.setData({ @@ -1343,10 +1362,11 @@ Page({ contentType: 'text', content, status: '', + ts: Date.now(), time: this.formatTime(new Date()) } const requestId = this.createMessageId('req') - const messages = [...this.data.messages, userMessage] + const messages = this.stampMessageTimes([...this.data.messages, userMessage]) this.beginRequest(requestId, userMessage.id) this.setData({ @@ -1500,13 +1520,15 @@ Page({ type: 'system', contentType: 'login', content, + ts: Date.now(), time: this.formatTime(new Date()) }) + const nextMessages = this.stampMessageTimes(messages) this.resetActiveRequest() this.setData(markLoggedOut - ? { messages, isTyping: false, authChecked: true, isLoggedIn: false } - : { messages, isTyping: false }) + ? { messages: nextMessages, isTyping: false, authChecked: true, isLoggedIn: false } + : { messages: nextMessages, isTyping: false }) this.flushChatHistory() this.scrollToBottom() }, @@ -1523,11 +1545,12 @@ Page({ type: 'system', contentType: 'text', content: errorMessage, + ts: Date.now(), time: this.formatTime(new Date()) }) this.resetActiveRequest() - this.setData({ messages, isTyping: false }) + this.setData({ messages: this.stampMessageTimes(messages), isTyping: false }) this.flushChatHistory() this.scrollToBottom() }, diff --git a/pages/ai/aichat.wxml b/pages/ai/aichat.wxml index 1e8000a..2744c67 100644 --- a/pages/ai/aichat.wxml +++ b/pages/ai/aichat.wxml @@ -63,7 +63,9 @@ - {{item.time}} + + {{item.time}} diff --git a/pages/ai/aichat.wxss b/pages/ai/aichat.wxss index f0f5e0c..741d6e7 100644 --- a/pages/ai/aichat.wxss +++ b/pages/ai/aichat.wxss @@ -152,7 +152,8 @@ .welcome-title { margin-bottom: 12rpx; - font-size: 40rpx; + /* 空会话的主标题:走全站「页面主标题 44rpx」档 */ + font-size: 44rpx; font-weight: 700; color: var(--ink); } @@ -530,6 +531,15 @@ animation: record-pulse 1.2s infinite ease-in-out; } +/* 两处无限循环动画(AI 等待点、录音脉冲)在系统开启「减弱动态效果」时停住, + 状态仍由静态图形与文字承担,不靠动画传达 */ +@media (prefers-reduced-motion: reduce) { + .dot, + .voice-dot.recording { + animation: none; + } +} + .voice-status-main { flex: 1; min-width: 0; diff --git a/pages/escort/agreement.wxss b/pages/escort/agreement.wxss index 0e87fbe..abb6e27 100644 --- a/pages/escort/agreement.wxss +++ b/pages/escort/agreement.wxss @@ -67,11 +67,11 @@ page { } .header-icon { - color: #FFFFFF; + color: var(--white); } .header-title { - font-size: 40rpx; + font-size: 44rpx; font-weight: 700; color: var(--ink); margin-top: 24rpx; diff --git a/pages/escort/attendantdetail.wxml b/pages/escort/attendantdetail.wxml index d1961bb..3d821c4 100644 --- a/pages/escort/attendantdetail.wxml +++ b/pages/escort/attendantdetail.wxml @@ -2,7 +2,7 @@ 加载中... - + {{ loadError }},点击重试 @@ -51,7 +51,11 @@ 培训与资质 {{ item.title }} - {{ item.org }}{{ item.date ? ' · ' + item.date : '' }} + + {{ item.org }} + + {{ item.date }} + diff --git a/pages/escort/attendantdetail.wxss b/pages/escort/attendantdetail.wxss index 5019b34..7e6c519 100644 --- a/pages/escort/attendantdetail.wxss +++ b/pages/escort/attendantdetail.wxss @@ -15,7 +15,7 @@ page { margin-top: 40rpx; padding: 80rpx 32rpx; border: 2rpx solid var(--line); - border-radius: 24rpx; + border-radius: 28rpx; background: var(--white); box-shadow: var(--shadow-card); color: var(--muted); @@ -23,6 +23,11 @@ page { text-align: center; } +/* 失败态整卡可点重试:补按下反馈(.attendant-card 同手法) */ +.state-card-hover { + opacity: 0.7; +} + .profile-card { display: flex; align-items: flex-start; @@ -64,7 +69,8 @@ page { min-width: 0; overflow: hidden; color: var(--ink); - font-size: 42rpx; + /* 本页没有页内标题,姓名即页面主标题:44rpx(全站统一档) */ + font-size: 44rpx; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; @@ -106,7 +112,7 @@ page { margin-top: 20rpx; padding: 24rpx 28rpx; border: 2rpx solid var(--line); - border-radius: 24rpx; + border-radius: 28rpx; background: var(--white); box-shadow: var(--shadow-card); } @@ -120,7 +126,7 @@ page { } .info-row + .info-row { - border-top: 2rpx dashed var(--line-soft, #E9DECB); + border-top: 2rpx solid var(--line); } .info-label { @@ -144,7 +150,8 @@ page { .section-title { display: block; color: var(--ink); - font-size: var(--fs-30); + /* 卡内标题统一 32rpx(与 guide / business / about 的卡标题同档) */ + font-size: var(--fs-32); font-weight: 700; } @@ -163,7 +170,7 @@ page { .training-item { margin-top: 18rpx; padding-top: 18rpx; - border-top: 2rpx dashed var(--line-soft, #E9DECB); + border-top: 2rpx solid var(--line); } .training-title { @@ -174,12 +181,22 @@ page { } .training-meta { - display: block; + display: flex; + align-items: center; margin-top: 6rpx; color: var(--muted); font-size: var(--fs-24); } +/* 单位与日期之间用细竖线(全站分隔语言),不拼中点 */ +.meta-sep { + width: 2rpx; + height: 16rpx; + margin: 0 12rpx; + background: var(--sep); + flex-shrink: 0; +} + .review-row { display: flex; align-items: baseline; diff --git a/pages/escort/attendants.json b/pages/escort/attendants.json index b8735b9..29a4d64 100644 --- a/pages/escort/attendants.json +++ b/pages/escort/attendants.json @@ -1,4 +1,7 @@ { "navigationBarTitleText": "陪诊师团队", - "enablePullDownRefresh": true + "enablePullDownRefresh": true, + "usingComponents": { + "t-icon": "tdesign-miniprogram/icon/icon" + } } diff --git a/pages/escort/attendants.wxml b/pages/escort/attendants.wxml index efcae2e..dddd21d 100644 --- a/pages/escort/attendants.wxml +++ b/pages/escort/attendants.wxml @@ -1,14 +1,15 @@ - - - {{ selectMode ? '选择陪诊师' : '陪诊师团队' }} - {{ selectMode ? '可按擅长与服务区域挑选;不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }} + + + + {{ selectMode ? '可按擅长与服务区域挑选,不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }} 加载中... - + {{ loadError }},点击重试 @@ -29,7 +30,13 @@ {{ item.name }} 已接 {{ item.orderCount }} 单 - {{ item.sexText ? item.sexText + ' · ' : '' }}从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }} + + {{ item.sexText }} + + 从业 {{ item.workYears }} 年 + + {{ item.areaText }} + {{ tag }} @@ -47,7 +54,10 @@ data-item="{{item}}" catchtap="onSelect" >选择 TA - 查看详情 › + + 查看详情 + + diff --git a/pages/escort/attendants.wxss b/pages/escort/attendants.wxss index 0a21a07..740e668 100644 --- a/pages/escort/attendants.wxss +++ b/pages/escort/attendants.wxss @@ -11,40 +11,34 @@ page { padding: 0 32rpx calc(48rpx + env(safe-area-inset-bottom)); } -.page-header { +/* 页首:页面级短横 + 一句导语(大标题已删,导航栏已有页名)。 + 与 itemlist / guide / contact / itemorder 共用同一套页首语言 */ +.page-lead { padding: 32rpx 0 8rpx; } -.header-accent { +.page-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); } -.header-title { +.page-lead-text { display: block; margin-top: 22rpx; color: var(--ink); - font-size: 48rpx; + font-size: var(--fs-32); font-weight: 700; letter-spacing: 1rpx; - line-height: 1.3; -} - -.header-subtitle { - display: block; - margin-top: 12rpx; - color: var(--muted); - font-size: var(--fs-28); - line-height: 1.6; + line-height: 1.5; } .state-card { margin-top: 40rpx; padding: 80rpx 32rpx; border: 2rpx solid var(--line); - border-radius: 24rpx; + border-radius: 28rpx; background: var(--white); box-shadow: var(--shadow-card); color: var(--muted); @@ -52,6 +46,10 @@ page { text-align: center; } +.state-card-hover { + opacity: 0.7; +} + .attendant-list { margin-top: 28rpx; } @@ -60,9 +58,15 @@ page { margin-bottom: 20rpx; padding: 26rpx 28rpx 22rpx; border: 2rpx solid var(--line); - border-radius: 24rpx; + border-radius: 28rpx; background: var(--white); box-shadow: var(--shadow-card); + transition: opacity 0.15s ease; +} + +/* 整卡可点进详情:补按下反馈,与 recordlist / profilelist 的整卡手法一致(整体淡出) */ +.attendant-card:active { + opacity: 0.7; } .card-main { @@ -115,14 +119,24 @@ page { font-weight: 600; } +/* 元信息行:三项用细竖线分隔(全站分隔语言),不再拼中点字符 */ .attendant-meta { - display: block; + display: flex; + align-items: center; margin-top: 8rpx; color: var(--muted); font-size: var(--fs-26); line-height: 1.5; } +.meta-sep { + width: 2rpx; + height: 18rpx; + margin: 0 12rpx; + background: var(--sep); + flex-shrink: 0; +} + .tag-row { display: flex; flex-wrap: wrap; @@ -146,7 +160,7 @@ page { gap: 16rpx; margin-top: 20rpx; padding-top: 18rpx; - border-top: 2rpx dashed var(--line-soft, #E9DECB); + border-top: 2rpx solid var(--line); } .badges { @@ -176,8 +190,21 @@ page { font-weight: 600; } +.select-btn:active { + opacity: 0.7; +} + .detail-link { flex-shrink: 0; + display: flex; + align-items: center; + gap: 4rpx; + color: var(--brand-ink); + font-size: var(--fs-26); + font-weight: 600; +} + +.detail-link-text { color: var(--brand-ink); font-size: var(--fs-26); font-weight: 600; @@ -194,10 +221,14 @@ page { margin-top: 28rpx; padding: 26rpx 0; border: 2rpx solid var(--line); - border-radius: 24rpx; + border-radius: 28rpx; background: var(--white); color: var(--ink-2); font-size: var(--fs-28); font-weight: 600; text-align: center; } + +.skip-entry:active { + opacity: 0.7; +} diff --git a/pages/escort/guide.wxml b/pages/escort/guide.wxml index 6f17fb3..7a5b060 100644 --- a/pages/escort/guide.wxml +++ b/pages/escort/guide.wxml @@ -2,11 +2,10 @@ - - - - 服务指南 - 第一次用陪诊?三分钟看懂全流程 + + + + 第一次用陪诊?三分钟看懂全流程 - - - 立即预约 - 选择陪诊项目,填写信息后即可提交预约 + + + + 选择陪诊项目,填写信息后即可提交预约 diff --git a/pages/escort/itemorder.wxss b/pages/escort/itemorder.wxss index f3c0e0a..9a9333b 100644 --- a/pages/escort/itemorder.wxss +++ b/pages/escort/itemorder.wxss @@ -15,33 +15,29 @@ page { padding: 0 32rpx calc(40rpx + env(safe-area-inset-bottom)); } -.page-header { - padding-top: 32rpx; +/* 页首:页面级短横 + 一句导语。 + 大标题已删——导航栏写着「立即预约」,页内再写一遍是同一屏两遍标题; + 导语沿用 itemlist 的 .page-lead 口径(32rpx/700/--ink), + 四页由此共用一套页首语言 */ +.page-lead { + margin-top: 32rpx; } -.header-accent { +.page-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); } -.header-title { +.page-lead-text { display: block; margin-top: 22rpx; color: var(--ink); - font-size: 48rpx; + font-size: var(--fs-32); font-weight: 700; letter-spacing: 1rpx; - line-height: 1.3; -} - -.header-subtitle { - display: block; - margin-top: 12rpx; - color: var(--muted); - font-size: var(--fs-28); - line-height: 1.6; + line-height: 1.5; } .booking-form { @@ -55,7 +51,7 @@ page { /* 陪诊项目:展示沿用原项目卡片,点击卡片展开下拉列表 */ .service-picker-row { padding: 24rpx 0; - border-bottom: 2rpx dotted var(--line-soft, #E9DECB); + border-bottom: 2rpx solid var(--line); } .service-picker { @@ -231,7 +227,7 @@ page { align-items: center; justify-content: space-between; padding: 24rpx 0; - border-bottom: 2rpx dotted var(--line-soft, #E9DECB); + border-bottom: 2rpx solid var(--line); } .order-row:last-child { @@ -244,23 +240,15 @@ page { justify-content: flex-start; } +/* 字段标签:裸字 muted,与 itemdetail 弹窗、health/profileedit 同一口径。 + 沿革:浅橙药丸(定宽 190rpx 居中)→ 现在去底去内距。 + 改因:本页同行里「陪诊项目卡」「就诊人可选胶囊」都是浅橙底, + 标签再用浅橙底就没有「哪个能点」的分界;标签是纯说明,不该长得像控件 */ .order-label { flex-shrink: 0; - box-sizing: border-box; - /* 统一宽度:容纳 5 字标题(5×30 + 40 内边距),短标题居中补齐 */ - min-width: 190rpx; - padding: 8rpx 20rpx; color: var(--muted); font-size: var(--fs-30); letter-spacing: 1rpx; - text-align: center; - background: var(--brand-soft, #FFF4E8); - border-radius: 12rpx; -} - -/* 竖排行标题不随 stretch 撑满整行,保持 tag 宽度 */ -.order-row.column .order-label { - align-self: flex-start; } .order-input, diff --git a/pages/escort/recorddetail.js b/pages/escort/recorddetail.js index a804927..6f39095 100644 --- a/pages/escort/recorddetail.js +++ b/pages/escort/recorddetail.js @@ -24,8 +24,8 @@ const PAYMENT_METHOD_MAP = { const WEEKDAYS = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] -// 取消后的未支付订单不再有待办,胶囊用中性灰,避免仍像在催付 -const INACTIVE_PAYMENT_STYLE = { color: '#6F655C', bg: 'transparent', border: '#E5DACC' } +// 取消后的未支付订单不再有待办,胶囊退回中性语气档(颜色见 app.wxss 的 .chip-tone-*) +const INACTIVE_PAYMENT_STYLE = { tone: 'neutral' } Page({ data: { @@ -300,9 +300,7 @@ Page({ showPaidFee: Number(item.payment?.paidFee) > 0, paymentStatus, paymentStatusText, - paymentStatusColor: paymentStyle.color, - paymentStatusBg: paymentStyle.bg, - paymentStatusBorder: paymentStyle.border, + paymentStatusTone: paymentStyle.tone, cancelFlowTip, refundNote, paymentMethodText: PAYMENT_METHOD_MAP[item.payment?.method] || '', @@ -318,9 +316,7 @@ Page({ medicalSummary: item.notes?.medicalSummary || '', status: displayStatus, statusText: statusInfo.text, - statusColor: statusInfo.color, - statusBg: statusInfo.bg, - statusBorder: statusInfo.border, + statusTone: statusInfo.tone, statusDesc: statusInfo.desc, canCancel, canRebook, diff --git a/pages/escort/recorddetail.wxml b/pages/escort/recorddetail.wxml index 7fb25a7..fdfeef8 100644 --- a/pages/escort/recorddetail.wxml +++ b/pages/escort/recorddetail.wxml @@ -9,10 +9,7 @@ - {{record.statusText}} + {{record.statusText}} {{record.statusDesc}} 就诊人 {{record.patientName || '--'}} - · {{record.patientBrief[0].text}} - · {{record.patientBrief[1].text}} + + {{record.patientBrief[0].text}} + + {{record.patientBrief[1].text}} 服务 {{record.escortServiceName || '陪诊服务'}} - · 性别要求{{record.sexRequirementText}} + 性别要求:{{record.sexRequirementText}} @@ -264,10 +263,7 @@ ¥{{record.totalFee}} - {{record.paymentStatusText}} + {{record.paymentStatusText}} diff --git a/pages/escort/recorddetail.wxss b/pages/escort/recorddetail.wxss index 3c94c71..96d1dd0 100644 --- a/pages/escort/recorddetail.wxss +++ b/pages/escort/recorddetail.wxss @@ -125,12 +125,44 @@ page { .status-chip-lg { padding: 8rpx 22rpx; - /* 28rpx 抬到 32rpx:与分节标题、卡片主名同档。 + /* 28rpx 抬到 32rpx:与卡片主名同档(分节标题已于 2026-11-13 并入全站 34rpx)。 同字号下胶囊靠状态底色 + 2rpx 描边 + 内距压过裸字标题, 层级才回到「单据抬头 > 卡片标题」,不再是从前抬头比它统领的内容还小 */ font-size: var(--fs-32); } +/* ===== 状态语气档 ===== + JS 只产出 tone 名(utils/order.js),色值全部来自 app.wxss 的令牌 */ +.chip-tone-wait { + background: var(--status-wait-bg); + border-color: var(--status-wait-line); + color: var(--status-wait-ink); +} + +.chip-tone-doing { + background: var(--brand-soft); + border-color: var(--brand-line); + color: var(--brand-strong); +} + +.chip-tone-done { + background: var(--status-done-bg); + border-color: var(--status-done-line); + color: var(--status-done-ink); +} + +.chip-tone-cancel { + background: var(--status-cancel-bg); + border-color: var(--status-cancel-line); + color: var(--status-cancel-ink); +} + +.chip-tone-neutral { + background: transparent; + border-color: var(--sep); + color: var(--muted); +} + .header-subtitle { /* 说明文字吃掉剩余宽度,客服入口才被推到最右; min-width 0 让长说明正常收缩换行,不撑破抬头行 */ @@ -157,17 +189,17 @@ page { .section-bar { flex-shrink: 0; width: 8rpx; - /* 色标高度跟随标题字号,缩字号时同步收,保持「短横 + 标题」的等高一档 */ - height: 32rpx; + /* 色标高度跟随标题字号(全站规则:条高 = 标题字号) */ + height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); } -/* 分区标题 32rpx,色标等高跟随 */ +/* 分区标题 34rpx(= --fs-34,全站区块标题统一档),色标等高跟随 */ .section-title { margin-left: 16rpx; - font-size: var(--fs-32); - font-weight: 600; + font-size: var(--fs-34); + font-weight: 700; color: var(--ink); letter-spacing: 0; } @@ -401,6 +433,17 @@ page { line-height: 1.6; } +/* 同一行内多值之间的细竖线分隔(如 姓名 │ 性别 │ 年龄), + 取代原先拼在文案里的中点字符。自适应换行仍由 .appt-value 的 flex-wrap 承担 */ +.appt-sep { + align-self: center; + width: 2rpx; + height: 24rpx; + margin: 0 6rpx; + background: var(--sep); + flex-shrink: 0; +} + /* 费用与支付:独立分区,排在陪诊需求之后 */ .pay-section { margin-top: 40rpx; @@ -497,6 +540,13 @@ page { animation: details-in 0.24s ease-out; } +/* 减弱动态效果时直接呈现,不做淡入下落 */ +@media (prefers-reduced-motion: reduce) { + .full-details { + animation: none; + } +} + /* 首个分组不再重复画顶边:它紧接 full-details 的顶边, 两者只差 8rpx,会读成一条粗线或双线 */ .full-details > .detail-group:first-child { @@ -859,10 +909,10 @@ page { background: transparent; } -/* 破坏性动作:只换字色为状态色「已取消」档(#B4231A 已在色板内,不新增色相), +/* 破坏性动作:只换字色为状态色「已取消」档(--status-cancel-ink 已在色板内,不新增色相), 与并排的取消订单区分开——删除不可恢复,确认弹窗也已走同色 */ .action-danger { - color: #B4231A; + color: var(--status-cancel-ink); } .action-primary { diff --git a/pages/escort/recordlist.js b/pages/escort/recordlist.js index 82ba9a9..d21b141 100644 --- a/pages/escort/recordlist.js +++ b/pages/escort/recordlist.js @@ -133,7 +133,8 @@ Page({ // 取消中/已取消的订单不再催付,与详情页保持同一口径 if (cancelStatus !== 'none') { paymentStatusText = cancelStatus === 'cancelled' ? '无需支付' : '未支付' - paymentStatusStyle = { color: '#6F655C', bg: 'transparent', border: '#E5DACC' } + // 取消后不再催付:语气档退回中性(颜色由 .chip-tone-neutral 承担) + paymentStatusStyle = { tone: 'neutral' } } else if (payChannel === 'offline') paymentStatusText = '线下支付' else if (paymentExpired) paymentStatusText = '支付已超时' else paymentStatusText = '待支付' @@ -146,14 +147,14 @@ Page({ return { _id: item._id, - patientName: item.patient?.name || '--', - hospital: item.hospital?.name || '--', - department: item.hospital?.department || '--', + /* 空值留空字符串、由 WXML 整行剔除(与 health/profilelist「空值整项不出」同一规则), + 不塞 '--' 占位符 */ + patientName: item.patient?.name || '', + hospital: item.hospital?.name || '', + department: item.hospital?.department || '', typeText: item.escort?.serviceName || '陪诊服务', statusText: statusInfo.text, - statusColor: statusInfo.color, - statusBg: statusInfo.bg, - statusBorder: statusInfo.border, + statusTone: statusInfo.tone, appointmentTime, fee: fee.toFixed(2), payChannel, @@ -161,9 +162,7 @@ Page({ paymentExpired, canPay, paymentStatusText, - paymentStatusColor: paymentStatusStyle.color, - paymentStatusBg: paymentStatusStyle.bg, - paymentStatusBorder: paymentStatusStyle.border + paymentStatusTone: paymentStatusStyle.tone } }, diff --git a/pages/escort/recordlist.wxml b/pages/escort/recordlist.wxml index 717a4eb..0970ba3 100644 --- a/pages/escort/recordlist.wxml +++ b/pages/escort/recordlist.wxml @@ -44,10 +44,7 @@ {{item.typeText}} - {{item.statusText}} + {{item.statusText}} @@ -55,17 +52,17 @@ {{item.appointmentTime}} - - - + + + 就诊医院 {{item.hospital}} - + 就诊科室 {{item.department}} - + 就诊人 {{item.patientName}} @@ -80,9 +77,8 @@ {{item.paymentStatusText}} {{ item.whenText }} - · {{ item.patientName }} - · {{ item.hospitalName }} - · {{ item.serviceName }} @@ -138,7 +136,7 @@ 陪诊师考证 - WARM ESCORT · 用心陪好每一步 + 用心陪好每一步 diff --git a/pages/home/index.wxss b/pages/home/index.wxss index 475703a..44ee299 100644 --- a/pages/home/index.wxss +++ b/pages/home/index.wxss @@ -9,11 +9,11 @@ page { /* 配色令牌已上移到 app.wxss(全站唯一来源,改配色只改那一处),本页不再留副本。 - 这里只剩本页专属的一样:「未完成预约」逐条卡的状态色——全页唯一的冷色面。 + 这里只把「未完成预约」的状态色指向 §三 的待确认档——全页唯一的冷色面。 语义由 DESIGN.md §3 管(只给「等你去处理」),且已登记为整卡底色的例外; 其余卡片仍走中性填充 */ - --status-soft: #ECF7F4; - --status-line: #C7E5DF; + --status-soft: var(--status-wait-bg); + --status-line: var(--status-wait-line); } .page-bg { @@ -323,6 +323,7 @@ page { color: var(--ink); flex-shrink: 0; white-space: nowrap; + margin-left: 16rpx; } .pending-patient { @@ -331,14 +332,7 @@ page { color: var(--ink); flex-shrink: 0; white-space: nowrap; -} - -.pending-dot { - margin: 0 8rpx; - /* 24rpx:跟随全站最小字号档(硬约束 1),不再单列 22rpx 的小一号特例 */ - font-size: var(--fs-24); - color: var(--muted); - flex-shrink: 0; + margin-left: 16rpx; } /* 医院名按内容宽度排,只有整行放不下时才收缩并省略; @@ -347,6 +341,7 @@ page { .pending-hospital { flex: 0 1 auto; min-width: 0; + margin-left: 16rpx; font-size: var(--fs-26); color: var(--ink-2); white-space: nowrap; diff --git a/pages/mine/about.wxss b/pages/mine/about.wxss index 0492117..dbc7527 100644 --- a/pages/mine/about.wxss +++ b/pages/mine/about.wxss @@ -40,7 +40,7 @@ page { } .app-name { - font-size: 40rpx; + font-size: 44rpx; font-weight: 700; color: var(--ink); margin-top: 24rpx; @@ -55,7 +55,7 @@ page { /* 简介区:白卡走「2rpx --line 发丝边 + 中性阴影 + 28rpx 圆角」(DESIGN.md §2.3) */ .intro-section { - margin: 24rpx 22rpx 0; + margin: 24rpx 32rpx 0; background: var(--white); border: 2rpx solid var(--line); border-radius: 28rpx; @@ -99,7 +99,7 @@ page { 卡里不再平铺四项——那四项与「联系我们」页完全重合,这里只留一个入口, 否则同一意图出现两个入口;行内也不再有点击,整块点击行为交给整卡 */ .contact-section { - margin: 24rpx 22rpx 0; + margin: 24rpx 32rpx 0; background: var(--brand-soft); border: 2rpx solid var(--brand-line); border-radius: 28rpx; @@ -125,10 +125,11 @@ page { color: var(--ink); } -/* t-icon 的 color 读不到 CSS 变量,只能硬编码,须与令牌同步(DESIGN.md §2.2); - 此处对应 --muted #6F655C。项目里 chevron 一律 muted,不抢暖橙焦点 */ +/* chevron 一律 muted,不抢暖橙焦点。 + t-icon 的 color「属性」读不到 CSS 变量,但 CSS 的 color 可以—— + 这里走令牌,与 mine 页 .menu-icon 同法 */ .contact-arrow { - color: #6F655C; + color: var(--muted); margin-left: 16rpx; flex-shrink: 0; } diff --git a/pages/mine/business.wxss b/pages/mine/business.wxss index 7fcb1d3..a5a56ac 100644 --- a/pages/mine/business.wxss +++ b/pages/mine/business.wxss @@ -29,7 +29,7 @@ page { .header-title { display: block; margin-top: 20rpx; - font-size: 46rpx; + font-size: 44rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; diff --git a/pages/mine/contact.wxml b/pages/mine/contact.wxml index c09fdd0..da62356 100644 --- a/pages/mine/contact.wxml +++ b/pages/mine/contact.wxml @@ -2,11 +2,10 @@ - - - - 联系我们 - 人工客服在线,有问题随时找我们 + + + + 人工客服在线,有问题随时找我们 diff --git a/pages/mine/contact.wxss b/pages/mine/contact.wxss index 7232a07..839f871 100644 --- a/pages/mine/contact.wxss +++ b/pages/mine/contact.wxss @@ -14,33 +14,27 @@ page { padding: 32rpx 32rpx 0; } -/* ===== 头部:小色带 + 深墨标题 ===== */ -.page-header { - padding: 24rpx 0 8rpx; +/* ===== 页首:页面级短横 + 一句导语 ===== + 大标题已删(导航栏写着「联系我们」),与 itemlist / guide 共用同一套页首 */ +.page-lead { + margin-top: 24rpx; } -.header-accent { +.page-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); } -.header-title { +.page-lead-text { display: block; - margin-top: 20rpx; - font-size: 46rpx; + margin-top: 22rpx; + font-size: var(--fs-32); font-weight: 700; color: var(--ink); letter-spacing: 1rpx; -} - -.header-subtitle { - display: block; - margin-top: 12rpx; - font-size: var(--fs-26); - color: var(--muted); - letter-spacing: 1rpx; + line-height: 1.5; } .order-context { diff --git a/pages/mine/mine.wxss b/pages/mine/mine.wxss index 7324eda..81da5b7 100644 --- a/pages/mine/mine.wxss +++ b/pages/mine/mine.wxss @@ -1,8 +1,7 @@ page { - /* 配色令牌来自 app.wxss(全站唯一来源),本页不再留副本; + /* 配色与字体均来自 app.wxss(全站唯一来源),本页不再留副本; 页面底色改用暖白纸面,与首页一致 */ background-color: var(--paper); - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } .container { diff --git a/pages/mine/profileedit.wxss b/pages/mine/profileedit.wxss index 262f716..747414d 100644 --- a/pages/mine/profileedit.wxss +++ b/pages/mine/profileedit.wxss @@ -1,7 +1,6 @@ page { - /* 配色令牌来自 app.wxss(全站唯一来源),本页不留副本 */ + /* 配色与字体均来自 app.wxss 的 page{}(全站唯一来源),本页不再写字面量字体栈 */ background-color: var(--paper); - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } .container { @@ -144,6 +143,11 @@ page { border-color: var(--brand-strong); } +/* 性别是整块可点的选择项,补按下反馈 */ +.sex-tag:active { + opacity: 0.7; +} + .sex-tag-active .sex-text { color: var(--brand-ink); font-weight: 700; diff --git a/pages/train/apply.wxss b/pages/train/apply.wxss index b3fd1c3..2905987 100644 --- a/pages/train/apply.wxss +++ b/pages/train/apply.wxss @@ -35,12 +35,12 @@ page { background-color: var(--paper); } .form-error { display: block; margin-top: 8rpx; font-size: var(--fs-24); color: var(--danger); line-height: 1.5; text-align: right; } .section-head { display: flex; align-items: center; margin-top: 40rpx; } -.section-bar { width: 8rpx; height: 36rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; } -.section-title { margin-left: 16rpx; font-size: 36rpx; font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: 1rpx; } +.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; } +.section-title { margin-left: 16rpx; font-size: var(--fs-34); font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: 1rpx; } .material-tip { margin-top: 12rpx; font-size: var(--fs-24); color: var(--muted); line-height: 1.6; } .material-grid { display: flex; gap: 24rpx; margin-top: 20rpx; } .material-item { flex: 1; min-width: 0; } -.upload-box { height: 300rpx; border-radius: 24rpx; border: 2rpx dashed var(--brand-strong); background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; } +.upload-box { height: 300rpx; border-radius: 28rpx; border: 2rpx dashed var(--brand-strong); background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; } .upload-box:active { transform: scale(0.99); } .upload-box.has-image { border-style: solid; border-color: var(--line); background: var(--white); } .upload-image { width: 100%; height: 100%; } @@ -60,7 +60,7 @@ page { background-color: var(--paper); } /* 提交回执 */ .success-page { display: flex; flex-direction: column; align-items: center; padding-top: 100rpx; } .success-mark { width: 112rpx; height: 112rpx; border-radius: 50%; background: var(--brand-soft); border: 2rpx solid var(--brand-line); display: flex; align-items: center; justify-content: center; } -.success-title { margin-top: 28rpx; font-size: 42rpx; font-weight: 700; color: var(--ink); } +.success-title { margin-top: 28rpx; font-size: 44rpx; font-weight: 700; color: var(--ink); } .success-desc { margin-top: 16rpx; max-width: 580rpx; font-size: var(--fs-26); color: var(--muted); line-height: 1.7; text-align: center; } .success-card { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 6rpx 26rpx; } .success-row { display: flex; padding: 22rpx 0; border-bottom: 2rpx solid var(--line); } diff --git a/pages/train/index.wxml b/pages/train/index.wxml index 31c5736..9a7d86a 100644 --- a/pages/train/index.wxml +++ b/pages/train/index.wxml @@ -35,7 +35,6 @@ 培训与考试 - PROGRAM @@ -64,7 +63,10 @@ 证书查询 - 国开享学吧 + + 国开享学吧 + 复制 + 具体考位与证书安排以客服和培训单位通知为准。 @@ -75,7 +77,6 @@ 报考联系 - CONTACT @@ -94,7 +95,6 @@ 报名流程 - PROCESS @@ -115,7 +115,6 @@ 常见问题 - FAQ @@ -133,7 +132,6 @@ 证书样本 - SAMPLE diff --git a/pages/train/index.wxss b/pages/train/index.wxss index 778d196..cd12261 100644 --- a/pages/train/index.wxss +++ b/pages/train/index.wxss @@ -16,22 +16,20 @@ .page-bg { min-height: 100vh; background: var(--paper); - font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; /* 四档字号:语义令牌可以复用,但不增加新的字体尺寸 */ --t-display: 64rpx; - --t-h1: 40rpx; + --t-h1: 44rpx; /* 页面主标题:全站统一 44rpx */ --t-title: var(--fs-32); --t-body: var(--fs-28); - --t-h2: var(--t-title); + --t-h2: var(--fs-34); /* 区块标题:全站统一 34rpx */ --t-caption: var(--t-body); --tracking-tight: -1rpx; --tracking-title: 1rpx; - --tracking-label: 2rpx; } -.container { padding: 28rpx 28rpx calc(48rpx + env(safe-area-inset-bottom)); } +.container { padding: 28rpx 32rpx calc(48rpx + env(safe-area-inset-bottom)); } /* ===== 页首 ===== */ .page-header { padding: 20rpx 4rpx 4rpx; } @@ -57,7 +55,7 @@ box-shadow: var(--shadow-card); } .intro-card { - margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 24rpx; + margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 28rpx; background: var(--brand-soft); border-color: var(--brand-line); } @@ -96,24 +94,18 @@ } /* ===== 区块标题 ===== - 竖条高 = 标题字号(32rpx),与首页 / itemlist 同一支记号; - 右侧英文小标只做节奏与秩序感,宽字距 + muted,不与中文标题争层级 */ + 竖条高 = 标题字号(34rpx),与首页 / 清单页 / 记录详情同一支记号 */ .section { margin-top: 36rpx; } .section-head { display: flex; align-items: baseline; margin-bottom: 16rpx; padding: 0 4rpx; } -.section-bar { width: 8rpx; height: 32rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; } +.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; } .section-title { margin-left: 16rpx; font-size: var(--t-h2); font-weight: 700; line-height: 1.4; letter-spacing: var(--tracking-title); color: var(--ink); } -.section-en { - margin-left: 14rpx; - font-size: var(--t-caption); font-weight: 700; line-height: 1.4; - letter-spacing: var(--tracking-label); color: var(--muted); -} /* ===== 白卡 ===== */ -.list-card { padding: 4rpx 24rpx; border-radius: 24rpx; } +.list-card { padding: 4rpx 24rpx; border-radius: 28rpx; } /* ===== 培训与考试:规格表 ===== 左标签 muted 小字、右取值 ink 粗体,一行一条,横向扫读最快 */ @@ -134,7 +126,11 @@ .spec-row-link { transition: background-color 0.15s ease; } .spec-row-link:active { background: var(--brand-soft); } .spec-link { color: var(--brand-ink); } -.spec-link::after { content: ' ↗'; font-size: var(--t-caption); } + +/* 证书查询是可复制的动作行:动作词走 muted 小字(与 contact 页「拨打 / 复制」同一口径), + 不再用字符箭头 ↗ 粘在网址后面 */ +.spec-link-wrap { display: flex; align-items: baseline; justify-content: flex-end; gap: 12rpx; } +.spec-action { font-size: var(--t-caption); font-weight: 400; color: var(--muted); } /* 卡片尾部说明:--muted 注释字号,比正文轻一档,是"以…为准"的免责声明 */ .card-note { diff --git a/utils/order.js b/utils/order.js index b3f0327..2b50323 100644 --- a/utils/order.js +++ b/utils/order.js @@ -1,11 +1,13 @@ // 订单与支付状态的唯一前端映射,列表和详情只按展示需要读取不同扩展字段。 +// 颜色不在这里:每个状态只给一个语气档(tone),色值由 app.wxss 的 --status-* 令牌 +// 与 .chip-tone-* 类承担(DESIGN.md §三),改色只改 CSS。 const STATUS_MAP = { - pending: { text: '待确认', color: '#0F766E', bg: '#ECF7F4', border: '#C7E5DF', desc: '订单已提交,等待陪诊师确认' }, - confirmed: { text: '已确认', color: '#0F766E', bg: '#ECF7F4', border: '#C7E5DF', desc: '订单已确认,陪诊师将准时为您服务' }, - cancel_requested: { text: '待取消', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', desc: '取消申请已提交,等待陪诊师确认' }, - in_progress: { text: '进行中', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', desc: '陪诊服务正在进行中' }, - completed: { text: '已完成', color: '#1F7A4D', bg: '#EAF6EE', border: '#CDE9D7', desc: '陪诊服务已完成,感谢您的使用' }, - cancelled: { text: '已取消', color: '#B4231A', bg: '#FCF0EE', border: '#F2D6D1', desc: '该订单已取消' } + pending: { text: '待确认', tone: 'wait', desc: '订单已提交,等待陪诊师确认' }, + confirmed: { text: '已确认', tone: 'wait', desc: '订单已确认,陪诊师将准时为您服务' }, + cancel_requested: { text: '待取消', tone: 'doing', desc: '取消申请已提交,等待陪诊师确认' }, + in_progress: { text: '进行中', tone: 'doing', desc: '陪诊服务正在进行中' }, + completed: { text: '已完成', tone: 'done', desc: '陪诊服务已完成,感谢您的使用' }, + cancelled: { text: '已取消', tone: 'cancel', desc: '该订单已取消' } } // 取消与 status 解耦:展示层优先按 cancelStatus 映射为「待取消/已取消」, @@ -19,11 +21,11 @@ function resolveOrderStatus(item) { const PAYMENT_STATUS_MAP = { // 未支付的展示文案由页面按 payChannel / 支付窗口派生,这里不再固定「联系客服」 - unpaid: { text: '未支付', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2' }, - partial: { text: '部分支付', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', hint: '请联系客服补齐剩余费用' }, - paid: { text: '已支付', color: '#1F7A4D', bg: '#EAF6EE', border: '#CDE9D7' }, - refunding: { text: '退款中', color: '#B8520A', bg: '#FFF4E8', border: '#FFE0C2', hint: '退款处理中,如需了解进度请联系客服' }, - refunded: { text: '已退款', color: '#6F655C', bg: 'transparent', border: '#E5DACC' } + unpaid: { text: '未支付', tone: 'doing' }, + partial: { text: '部分支付', tone: 'doing', hint: '请联系客服补齐剩余费用' }, + paid: { text: '已支付', tone: 'done' }, + refunding: { text: '退款中', tone: 'doing', hint: '退款处理中,如需了解进度请联系客服' }, + refunded: { text: '已退款', tone: 'neutral' } } module.exports = {