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:
lik
2026-11-13 17:10:55 +08:00
parent 79464ce12a
commit 17a64f10bc
38 changed files with 472 additions and 277 deletions
+2 -2
View File
@@ -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;
+6 -2
View File
@@ -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>
+24 -7
View File
@@ -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;
+4 -1
View File
@@ -1,4 +1,7 @@
{
"navigationBarTitleText": "陪诊师团队",
"enablePullDownRefresh": true
"enablePullDownRefresh": true,
"usingComponents": {
"t-icon": "tdesign-miniprogram/icon/icon"
}
}
+17 -7
View File
@@ -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>
+49 -18
View File
@@ -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;
}
+4 -5
View File
@@ -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
View File
@@ -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;
}
/* ===== 通用白卡 ===== */
+9 -14
View File
@@ -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);
}
+5 -4
View File
@@ -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
View File
@@ -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,
+4 -8
View File
@@ -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,
+7 -11
View File
@@ -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>
+58 -8
View File
@@ -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 {
+9 -10
View File
@@ -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
}
},
+7 -11
View File
@@ -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"
+42 -2
View File
@@ -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;