style(ui): 统一页首/字号/圆角档位并收口状态色令牌
- 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」 - 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九) - 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值 - 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底 - 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔 - 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退 - aichat:消息时间改为距上条满 5 分钟才显示
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
],
|
||||
"window": {
|
||||
"backgroundTextStyle": "light",
|
||||
"navigationBarBackgroundColor": "#FAFAF9",
|
||||
"navigationBarBackgroundColor": "#FAF8F5",
|
||||
"navigationBarTitleText": "暖橙陪诊",
|
||||
"navigationBarTextStyle": "black"
|
||||
},
|
||||
|
||||
@@ -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、品牌印记这类小体量元素 */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+47
-8
@@ -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 复核),与本次主色调整无关。
|
||||
|
||||
---
|
||||
|
||||
@@ -270,3 +271,41 @@
|
||||
「我的」页开关 + 本地存储;开启时在页面根节点挂 `.fs-large`,在 `app.wxss` 覆写六档令牌 ×1.1(24→26 / 26→29 / 28→31 / 30→33 / 32→35 / 34→37)。
|
||||
**只放大中小字**:36rpx 以上的标题与价格不动,避免首页卡片标题折行、底部操作栏变挤。
|
||||
页面侧零改动,前提是 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`,各页本地声明(微信小程序无全局样式表可共享,复制同一份即可)。
|
||||
+31
-8
@@ -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()
|
||||
},
|
||||
|
||||
@@ -63,7 +63,9 @@
|
||||
<view wx:else class="avatar">
|
||||
<t-icon name="user-1" size="36rpx" color="#9B4508" />
|
||||
</view>
|
||||
<text class="message-time">{{item.time}}</text>
|
||||
<!-- 时间只在与上一条相隔 ≥5 分钟时出现(首条必出现),
|
||||
每条都挂时间会把对话读成日志;显隐由 stampMessageTimes 统一计算 -->
|
||||
<text class="message-time" wx:if="{{item.showTime}}">{{item.time}}</text>
|
||||
</view>
|
||||
|
||||
<view class="message-content">
|
||||
|
||||
+11
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="container">
|
||||
<view wx:if="{{loading}}" class="state-card">加载中...</view>
|
||||
|
||||
<view wx:elif="{{loadError}}" class="state-card" bindtap="onRetry">
|
||||
<view wx:elif="{{loadError}}" class="state-card" hover-class="state-card-hover" bindtap="onRetry">
|
||||
{{ loadError }},点击重试
|
||||
</view>
|
||||
|
||||
@@ -51,7 +51,11 @@
|
||||
<text class="section-title">培训与资质</text>
|
||||
<view class="training-item" wx:for="{{attendant.trainings}}" wx:key="title">
|
||||
<text class="training-title">{{ item.title }}</text>
|
||||
<text class="training-meta">{{ item.org }}{{ item.date ? ' · ' + item.date : '' }}</text>
|
||||
<view class="training-meta">
|
||||
<text>{{ item.org }}</text>
|
||||
<view class="meta-sep" wx:if="{{item.date}}"></view>
|
||||
<text wx:if="{{item.date}}">{{ item.date }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "陪诊师团队",
|
||||
"enablePullDownRefresh": true
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "tdesign-miniprogram/icon/icon"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
<view class="page-bg">
|
||||
<view class="container">
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<text class="header-title">{{ selectMode ? '选择陪诊师' : '陪诊师团队' }}</text>
|
||||
<text class="header-subtitle">{{ selectMode ? '可按擅长与服务区域挑选;不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }}</text>
|
||||
<!-- 页名已在导航栏(「陪诊师团队」/「陪诊师详情」),页内不再重复大标题;
|
||||
选择模式下的「选择陪诊师」由导语第二句承担 -->
|
||||
<view class="page-lead">
|
||||
<view class="page-accent"></view>
|
||||
<text class="page-lead-text">{{ selectMode ? '可按擅长与服务区域挑选,不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }}</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{loading && !attendants.length}}" class="state-card">加载中...</view>
|
||||
|
||||
<view wx:elif="{{loadError && !attendants.length}}" class="state-card" bindtap="onRetry">
|
||||
<view wx:elif="{{loadError && !attendants.length}}" class="state-card" hover-class="state-card-hover" bindtap="onRetry">
|
||||
{{ loadError }},点击重试
|
||||
</view>
|
||||
|
||||
@@ -29,7 +30,13 @@
|
||||
<text class="attendant-name">{{ item.name }}</text>
|
||||
<text class="order-count">已接 {{ item.orderCount }} 单</text>
|
||||
</view>
|
||||
<text class="attendant-meta">{{ item.sexText ? item.sexText + ' · ' : '' }}从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}</text>
|
||||
<view class="attendant-meta">
|
||||
<text class="meta-item" wx:if="{{item.sexText}}">{{ item.sexText }}</text>
|
||||
<view class="meta-sep" wx:if="{{item.sexText}}"></view>
|
||||
<text class="meta-item">从业 {{ item.workYears }} 年</text>
|
||||
<view class="meta-sep" wx:if="{{item.areaText}}"></view>
|
||||
<text class="meta-item" wx:if="{{item.areaText}}">{{ item.areaText }}</text>
|
||||
</view>
|
||||
<view class="tag-row" wx:if="{{item.specialties.length}}">
|
||||
<text class="tag" wx:for="{{item.specialties}}" wx:for-item="tag" wx:key="*this">{{ tag }}</text>
|
||||
</view>
|
||||
@@ -47,7 +54,10 @@
|
||||
data-item="{{item}}"
|
||||
catchtap="onSelect"
|
||||
>选择 TA</view>
|
||||
<text wx:else class="detail-link">查看详情 ›</text>
|
||||
<view wx:else class="detail-link">
|
||||
<text class="detail-link-text">查看详情</text>
|
||||
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
<view class="page-bg">
|
||||
<view class="container">
|
||||
|
||||
<!-- 头部:小色带 + 白底(内页规范,不做整块主色面板) -->
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<text class="header-title">服务指南</text>
|
||||
<text class="header-subtitle">第一次用陪诊?三分钟看懂全流程</text>
|
||||
<!-- 页名已在导航栏(「服务指南」),页内不再重复大标题 -->
|
||||
<view class="page-lead">
|
||||
<view class="page-accent"></view>
|
||||
<text class="page-lead-text">第一次用陪诊?三分钟看懂全流程</text>
|
||||
</view>
|
||||
|
||||
<!-- ① 就诊前准备:到院前建议提前办妥或备齐的事项。
|
||||
|
||||
+9
-15
@@ -17,33 +17,27 @@ page {
|
||||
padding: 32rpx 32rpx 0;
|
||||
}
|
||||
|
||||
/* ===== 头部:小色带 + 深墨标题 ===== */
|
||||
.page-header {
|
||||
padding: 24rpx 0 8rpx;
|
||||
/* ===== 页首:页面级短横 + 一句导语 =====
|
||||
大标题已删(导航栏写着「服务指南」),与 itemlist / itemorder 共用同一套页首 */
|
||||
.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;
|
||||
}
|
||||
|
||||
/* ===== 通用白卡 ===== */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
下面接说明白卡(只放城市与费用披露;两枚条款入口已下移到页尾文档行)。
|
||||
先给一句引导再读披露,首屏是"引导 → 声明 → 清单"三层,
|
||||
而不是一上来就撞条款;也让首屏从纸面上拎起一个落点,而不是三段裸字
|
||||
- 八条服务按"要办的事"分两组,每组是一块通栏白底:组头(竖条 + 36rpx 标题 +
|
||||
- 八条服务按"要办的事"分两组,每组是一块通栏白底:组头(竖条 + 34rpx 标题 +
|
||||
一句 28rpx 的副题)→ 通栏章线 → 清单,整页读起来像两张一体的价目表;
|
||||
组与组之间是 36rpx 纸面留白,卡的边界由各自的发丝边与紧阴影承担
|
||||
- 分组本轮由"通栏白底章节带"改为"组头 + 每项一张白卡":
|
||||
@@ -69,7 +69,6 @@ page {
|
||||
曾试过右移到琥珀 #A85A00 以避开"锈橙 ≈ 干血",但为凑白字 AA 压低了明度(40%→33%),
|
||||
画面变闷、失掉醒目度;故折中定在 #B8520A——微出色相、保住原亮度与饱和 */
|
||||
background-color: var(--paper);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
|
||||
.page-bg {
|
||||
@@ -87,7 +86,7 @@ page {
|
||||
记号沿用详情页页首那一支:64×8rpx 短横色标(--brand-strong)+ 22rpx 间距,
|
||||
两页共用同一套"页面级抬头"语言。短横是页面级的记号,区块级留给两个组头的竖条——
|
||||
本页原先那条 .notice-tick(48×6rpx)是同一支记号走散了的版本,已一并删掉。
|
||||
字号 32rpx/700/--ink:本页是价目单,真正的主结构是两个 36rpx 的组标题,
|
||||
字号 32rpx/700/--ink:本页是价目单,真正的主结构是两个 34rpx 的组标题,
|
||||
这行是导语,刻意压在组标题下一档、不跟它抢层级;但比 28rpx 的副题档重,
|
||||
落在纸面上仍读得出"页面从这里开始"。
|
||||
位置在披露行之上、纸面上:先给一句引导,再读那句城市与费用披露,
|
||||
@@ -172,7 +171,7 @@ page {
|
||||
}
|
||||
|
||||
/* ===== 页尾文档行 =====
|
||||
服务指南 / 用户协议两枚链接,从页首披露卡下移到这里。
|
||||
服务指南 / 陪诊服务协议两枚链接,从页首披露卡下移到这里。
|
||||
不做卡:清单已由末张服务卡收口,页尾只补一行"文档级"元信息,重量压到最低。
|
||||
细竖线分隔(2rpx 宽 × 20rpx 高,--sep #E5DACC),与首页场景行、页脚元信息行
|
||||
同一套写法,不用中点字符(一行多点违规)。
|
||||
@@ -257,25 +256,21 @@ page {
|
||||
}
|
||||
|
||||
/* 区块标识:单竖条,与首页 .section-bar 是同一支记号(8rpx 宽、圆角 4rpx)。
|
||||
规则是"竖条高 = 标题字号":首页 8×34rpx 配 34rpx 标题,本页标题 36rpx 故取 36。
|
||||
沿革:8×40 → 12×48 → 回到 8×36。中间那次放大是为了给全页补一个实心暖橙锚点
|
||||
(那时主色只出现在 8 个按钮环上,页面偏"文档感");现在有了浅橙客服卡
|
||||
(.contact-card)承担暖色锚点,竖条就还给首页那一支——
|
||||
两页标题只差 2rpx,记号若差 1.5 倍,读起来就不是同一套 */
|
||||
规则是"竖条高 = 标题字号":首页 8×34rpx 配 34rpx 标题,本页同一档。
|
||||
沿革:8×40 → 12×48 → 8×36 → 8×34(2026-11-13 并入全站区块标题 34rpx) */
|
||||
.group-bar {
|
||||
width: 8rpx;
|
||||
height: 36rpx;
|
||||
height: 34rpx;
|
||||
border-radius: 4rpx;
|
||||
background: var(--brand-strong);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 组标题 40 → 36rpx(按用户要求收小):与服务名 32rpx 拉开一档,
|
||||
页面由此保住"章 / 条"两级,而不是通篇一个字号。
|
||||
36rpx 是本页下限——再降一级只剩 2rpx 的差,章/条两层会塌成一层 */
|
||||
/* 组标题 34rpx:全站区块标题统一档(竖条高 = 标题字号),
|
||||
与服务名 32rpx 拉开一档,页面保住「章 / 条」两级 */
|
||||
.group-title {
|
||||
margin-left: 16rpx;
|
||||
font-size: 36rpx;
|
||||
font-size: var(--fs-34);
|
||||
font-weight: 700;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<!--pages/escort/itemorder.wxml-->
|
||||
<view class="page-bg">
|
||||
<view class="container" wx:if="{{service.id}}">
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<text class="header-title">立即预约</text>
|
||||
<text class="header-subtitle">选择陪诊项目,填写信息后即可提交预约</text>
|
||||
<!-- 页名已在导航栏(「立即预约」),页内不再重复一遍大标题;
|
||||
只留页面级记号 + 一句导语,与 itemlist 页首同一套语言 -->
|
||||
<view class="page-lead">
|
||||
<view class="page-accent"></view>
|
||||
<text class="page-lead-text">选择陪诊项目,填写信息后即可提交预约</text>
|
||||
</view>
|
||||
|
||||
<view class="booking-form">
|
||||
|
||||
+16
-28
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -9,10 +9,7 @@
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<view class="status-row">
|
||||
<view
|
||||
class="status-chip status-chip-lg"
|
||||
style="background: {{record.statusBg}}; color: {{record.statusColor}}; border-color: {{record.statusBorder}};"
|
||||
>{{record.statusText}}</view>
|
||||
<view class="status-chip status-chip-lg chip-tone-{{record.statusTone}}">{{record.statusText}}</view>
|
||||
<text class="header-subtitle" wx:if="{{record.status !== 'completed' && record.status !== 'cancelled'}}">{{record.statusDesc}}</text>
|
||||
<view
|
||||
class="header-support"
|
||||
@@ -86,8 +83,10 @@
|
||||
<text class="appt-label">就诊人</text>
|
||||
<view class="appt-value">
|
||||
<text class="appt-text">{{record.patientName || '--'}}</text>
|
||||
<text class="appt-text" wx:if="{{record.patientBrief.length > 0}}"> · {{record.patientBrief[0].text}}</text>
|
||||
<text class="appt-text" wx:if="{{record.patientBrief.length > 1}}"> · {{record.patientBrief[1].text}}</text>
|
||||
<view class="appt-sep" wx:if="{{record.patientBrief.length > 0}}"></view>
|
||||
<text class="appt-text" wx:if="{{record.patientBrief.length > 0}}">{{record.patientBrief[0].text}}</text>
|
||||
<view class="appt-sep" wx:if="{{record.patientBrief.length > 1}}"></view>
|
||||
<text class="appt-text" wx:if="{{record.patientBrief.length > 1}}">{{record.patientBrief[1].text}}</text>
|
||||
</view>
|
||||
<view
|
||||
class="row-entry"
|
||||
@@ -119,7 +118,7 @@
|
||||
<text class="appt-label">服务</text>
|
||||
<view class="appt-value">
|
||||
<text class="appt-text">{{record.escortServiceName || '陪诊服务'}}</text>
|
||||
<text class="appt-text" wx:if="{{record.sexRequirementText}}"> · 性别要求{{record.sexRequirementText}}</text>
|
||||
<text class="appt-sub" wx:if="{{record.sexRequirementText}}">性别要求:{{record.sexRequirementText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 备注:下单时填写的原话,与「病历与诉求」是两个字段;无备注不占行位 -->
|
||||
@@ -264,10 +263,7 @@
|
||||
<text class="fee-amount">¥{{record.totalFee}}</text>
|
||||
<view class="fee-side">
|
||||
<!-- 支付结果也给出状态:已支付与时序状态一样落在行尾,用户不必去账单里猜 -->
|
||||
<view
|
||||
class="status-chip"
|
||||
style="background: {{record.paymentStatusBg}}; color: {{record.paymentStatusColor}}; border-color: {{record.paymentStatusBorder}};"
|
||||
>{{record.paymentStatusText}}</view>
|
||||
<view class="status-chip chip-tone-{{record.paymentStatusTone}}">{{record.paymentStatusText}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -44,10 +44,7 @@
|
||||
<!-- 头部:服务类型 + 订单状态胶囊 -->
|
||||
<view class="card-head">
|
||||
<text class="record-type">{{item.typeText}}</text>
|
||||
<view
|
||||
class="status-chip"
|
||||
style="background: {{item.statusBg}}; color: {{item.statusColor}}; border-color: {{item.statusBorder}};"
|
||||
>{{item.statusText}}</view>
|
||||
<view class="status-chip chip-tone-{{item.statusTone}}">{{item.statusText}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 预约时间:卡内第一眼信息,加粗立住,不用小图标加噪点 -->
|
||||
@@ -55,17 +52,17 @@
|
||||
<text class="time-text">{{item.appointmentTime}}</text>
|
||||
</view>
|
||||
|
||||
<!-- 就诊信息 -->
|
||||
<view class="card-info">
|
||||
<view class="info-row">
|
||||
<!-- 就诊信息:空值整行剔除,不渲染「--」占位(与 health/profilelist 同规则) -->
|
||||
<view class="card-info" wx:if="{{ item.hospital || item.department || item.patientName }}">
|
||||
<view class="info-row" wx:if="{{ item.hospital }}">
|
||||
<text class="info-label">就诊医院</text>
|
||||
<text class="info-value">{{item.hospital}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<view class="info-row" wx:if="{{ item.department }}">
|
||||
<text class="info-label">就诊科室</text>
|
||||
<text class="info-value">{{item.department}}</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<view class="info-row" wx:if="{{ item.patientName }}">
|
||||
<text class="info-label">就诊人</text>
|
||||
<text class="info-value">{{item.patientName}}</text>
|
||||
</view>
|
||||
@@ -80,9 +77,8 @@
|
||||
</view>
|
||||
<view class="foot-right">
|
||||
<view
|
||||
class="pay-chip"
|
||||
class="pay-chip chip-tone-{{item.paymentStatusTone}}"
|
||||
wx:if="{{!item.canPay}}"
|
||||
style="background: {{item.paymentStatusBg}}; color: {{item.paymentStatusColor}}; border-color: {{item.paymentStatusBorder}};"
|
||||
>{{item.paymentStatusText}}</view>
|
||||
<view
|
||||
class="pay-entry"
|
||||
|
||||
@@ -99,8 +99,8 @@ page {
|
||||
}
|
||||
|
||||
/* ===== 记录列表 =====
|
||||
卡间距用相邻兄弟 margin,不用 flex 的 gap:
|
||||
gap 在部分微信基础库 / 老设备上不生效,失效后几张卡会挨成一条白条 */
|
||||
卡间距用相邻兄弟 margin:与全站卡片列表(首页、就诊人列表)同一写法,
|
||||
顺序与间距都落在选择器里,不依赖父级布局属性 */
|
||||
.record-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -233,6 +233,39 @@ page {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ===== 状态语气档 =====
|
||||
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);
|
||||
}
|
||||
|
||||
/* ===== 空 / 错误 / 骨架 / 到底 ===== */
|
||||
.error-state {
|
||||
display: flex;
|
||||
@@ -360,6 +393,13 @@ page {
|
||||
}
|
||||
}
|
||||
|
||||
/* 减弱动态效果时骨架不再呼吸,静置的浅色块仍表达「正在加载」 */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.sk-bar {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sk-type {
|
||||
width: 180rpx;
|
||||
height: 32rpx;
|
||||
|
||||
@@ -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 {
|
||||
@@ -69,7 +68,8 @@ page {
|
||||
margin-top: 12rpx;
|
||||
font-size: var(--fs-26);
|
||||
line-height: 1.5;
|
||||
color: #B4231A;
|
||||
/* 表单错误复用「已取消」档(DESIGN.md §三),字色走令牌 */
|
||||
color: var(--status-cancel-ink);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@@ -149,6 +149,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;
|
||||
|
||||
@@ -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 {
|
||||
@@ -55,8 +54,7 @@ page {
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
/* 卡间距用相邻兄弟 margin,不用 flex 的 gap:
|
||||
gap 在部分微信基础库 / 老设备上不生效,一旦失效几张卡会挨在一起连成一条白条 */
|
||||
/* 卡间距用相邻兄弟 margin:与预约记录、首页卡列表同一写法 */
|
||||
.profile-card + .profile-card {
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
|
||||
@@ -65,14 +65,12 @@
|
||||
数据按预约时间正序取最近三条;无未完成预约时整块不渲染,新用户首屏不受影响 -->
|
||||
<view class="pending-card" wx:for="{{ pendingRecords }}" wx:key="id" data-id="{{ item.id }}" bindtap="goToRecordDetail">
|
||||
<!-- 一条预约压成一行:日期 · 就诊人 · 医院 · 服务项目。
|
||||
四项之间用留白切分,不再插中点字符(全站分隔语言统一为留白 / 细竖线);
|
||||
行内不换行,医院名过长时只省略医院,日期、就诊人和项目始终可见 -->
|
||||
<view class="pending-line">
|
||||
<text class="pending-when">{{ item.whenText }}</text>
|
||||
<text class="pending-dot">·</text>
|
||||
<text class="pending-patient">{{ item.patientName }}</text>
|
||||
<text class="pending-dot">·</text>
|
||||
<text class="pending-hospital">{{ item.hospitalName }}</text>
|
||||
<text class="pending-dot">·</text>
|
||||
<text class="pending-service">{{ item.serviceName }}</text>
|
||||
</view>
|
||||
<view class="pending-arrow">
|
||||
@@ -138,7 +136,7 @@
|
||||
<view class="footer-sep"></view>
|
||||
<text class="footer-link" data-section="sec-train" bindtap="goToBusiness">陪诊师考证</text>
|
||||
</view>
|
||||
<text class="footer-note">WARM ESCORT · 用心陪好每一步</text>
|
||||
<text class="footer-note">用心陪好每一步</text>
|
||||
</view>
|
||||
|
||||
<!-- 底部留白 -->
|
||||
|
||||
+6
-11
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
<view class="page-bg">
|
||||
<view class="container">
|
||||
|
||||
<!-- 头部:小色带 + 白底(内页规范,不做整块主色面板) -->
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<text class="header-title">联系我们</text>
|
||||
<text class="header-subtitle">人工客服在线,有问题随时找我们</text>
|
||||
<!-- 页名已在导航栏(「联系我们」),页内不再重复大标题 -->
|
||||
<view class="page-lead">
|
||||
<view class="page-accent"></view>
|
||||
<text class="page-lead-text">人工客服在线,有问题随时找我们</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{orderContext}}" class="order-context">
|
||||
|
||||
+9
-15
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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); }
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">培训与考试</text>
|
||||
<text class="section-en">PROGRAM</text>
|
||||
</view>
|
||||
<view class="list-card spec-card">
|
||||
<view class="spec-row">
|
||||
@@ -64,7 +63,10 @@
|
||||
</view>
|
||||
<view class="spec-row spec-row-link" bindtap="copyCertificateUrl" aria-role="button" aria-label="复制证书查询网址">
|
||||
<text class="spec-label">证书查询</text>
|
||||
<text class="spec-value spec-link">国开享学吧</text>
|
||||
<view class="spec-value spec-link-wrap">
|
||||
<text class="spec-link">国开享学吧</text>
|
||||
<text class="spec-action">复制</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="card-note">具体考位与证书安排以客服和培训单位通知为准。</text>
|
||||
</view>
|
||||
@@ -75,7 +77,6 @@
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">报考联系</text>
|
||||
<text class="section-en">CONTACT</text>
|
||||
</view>
|
||||
<view class="list-card contact-card">
|
||||
<view class="contact-main">
|
||||
@@ -94,7 +95,6 @@
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">报名流程</text>
|
||||
<text class="section-en">PROCESS</text>
|
||||
</view>
|
||||
<view class="list-card step-card">
|
||||
<view class="step" wx:for="{{steps}}" wx:key="title">
|
||||
@@ -115,7 +115,6 @@
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">常见问题</text>
|
||||
<text class="section-en">FAQ</text>
|
||||
</view>
|
||||
<view class="list-card faq-card">
|
||||
<view class="faq-item" wx:for="{{faqs}}" wx:key="q">
|
||||
@@ -133,7 +132,6 @@
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">证书样本</text>
|
||||
<text class="section-en">SAMPLE</text>
|
||||
</view>
|
||||
<view class="list-card sample-card">
|
||||
<view class="sample-frame">
|
||||
|
||||
+12
-16
@@ -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 {
|
||||
|
||||
+13
-11
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user