/* pages/escort/recorddetail.wxss 设计方向:面向就诊人或家属的预约凭证,而非订单字段清单。 - 首屏用一张信息卡按「何时 → 给谁 → 去哪 → 什么服务 → 多少钱」的顺序作答, 时间是唯一会过期的强约束信息,放在卡内首落点,避免多张同权重卡片争抢注意力; - 摘要卡先回答本人的问题:时间作首落点(日期最大字 + 暖橙色时段), 再列「医院 / 服务 / 就诊人」,最后一行费用; 不铺自己的头像与手机号——那是商家认顾客的版式,对本人零信息量; - 陪诊师单独成卡(名 + 电话),平台分配后才出现,不与摘要行重复; - 档案、支付明细、收货和订单技术信息按需展开,只读的历史订单也能核对完整资料; - 陪诊需求、陪诊记录与就诊摘要仅在有内容时出现,已完成订单的服务结果直接展示; - 修改仍按就诊人、医院预约、陪诊需求分区,表单只存在于档案页或底部弹窗; - 配色沿用 app.wxss 暖橙令牌,状态文字与颜色共同传达信息; - 字号阶梯:36 日期 / 34 金额 / 32 姓名 · 陪诊师名 / 28 行值(医院 · 服务 · 时段 · 电话) / 24 标签 · 地址 · 辅助说明,最小 24rpx(12px) */ page { background-color: var(--paper); /* 底栏上向阴影:小偏移、小模糊,令牌不在全局色板内,故本页登记 */ --shadow-bar: 0 -2rpx 8rpx rgba(63, 43, 25, 0.06); } .page-bg { min-height: 100vh; background: var(--paper); } .container { padding: 0 32rpx 40rpx; } .page-state { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48rpx 32rpx; box-sizing: border-box; } .page-state-text { font-size: 28rpx; color: var(--muted); line-height: 1.6; } .page-retry { margin: 28rpx 0 0; padding: 12rpx 36rpx; border: 2rpx solid var(--brand-strong); border-radius: 999rpx; background: transparent; color: var(--brand-strong); font-size: 28rpx; font-weight: 500; line-height: 1.5; } .page-retry::after { border: none; } /* ===== 抬头状态 ===== */ .page-header { /* 抬头自成一区,靠空间 + 一条线立住,不引入第二套容器语言: 上方留白 40rpx(比卡间距 48rpx 略紧,让抬头贴住顶栏而非浮在中间); 左右负 margin 抵消 .container 的 32rpx 内距,使下方发丝线通栏顶到屏幕两侧, 同时用 padding 把色标与胶囊重新拉回卡片同一条左对齐线 */ margin: 0 -32rpx; padding: 40rpx 32rpx 28rpx; border-bottom: 2rpx solid var(--line); } .header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); } .status-row { margin-top: 22rpx; display: flex; align-items: center; } /* 抬头右侧客服入口:安静图标,靠位置与热区成立,不抢状态胶囊的焦点。 负 margin 把热区撑到 88rpx 而不再抬高抬头区 */ .header-support { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; min-width: 88rpx; min-height: 88rpx; margin: -20rpx -8rpx -20rpx auto; padding-left: 16rpx; } .header-support:active { opacity: 0.6; } /* 状态胶囊:底色 + 描边 + 字色三件套,颜色只做强化,文字才是信息(§三) */ .status-chip { display: inline-flex; align-items: center; padding: 4rpx 16rpx; border: 2rpx solid transparent; border-radius: 10rpx; font-size: 24rpx; font-weight: 700; letter-spacing: 1rpx; line-height: 1.4; white-space: nowrap; } .status-chip-lg { padding: 8rpx 22rpx; /* 28rpx 抬到 32rpx:与分节标题、卡片主名同档。 同字号下胶囊靠状态底色 + 2rpx 描边 + 内距压过裸字标题, 层级才回到「单据抬头 > 卡片标题」,不再是从前抬头比它统领的内容还小 */ font-size: 32rpx; } .header-subtitle { /* 说明文字吃掉剩余宽度,客服入口才被推到最右; min-width 0 让长说明正常收缩换行,不撑破抬头行 */ flex: 1; min-width: 0; margin-left: 20rpx; /* 28rpx 降到 26rpx:说明退到「次强」档,与 32rpx 的胶囊拉开一档差, 抬头内部才有焦点;此前两者同为 28rpx,只靠字重区分,谁都不是主角 */ font-size: 26rpx; color: var(--muted); line-height: 1.6; letter-spacing: 1rpx; } /* ===== 分区:纸面留白分隔,标题在纸面上、内容在白卡里 ===== */ .section { margin-top: 48rpx; } .section-head { display: flex; align-items: center; } .section-bar { flex-shrink: 0; width: 8rpx; /* 色标高度跟随标题字号,缩字号时同步收,保持「短横 + 标题」的等高一档 */ height: 32rpx; border-radius: 4rpx; background: var(--brand-strong); } /* 34rpx 降一档到 32rpx:与 attendantdetail / agreement / about 的分区标题同一档, 不新增字号档位(DESIGN.md 字号阶梯) */ .section-title { margin-left: 16rpx; font-size: 32rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; } /* 区块右侧入口:用 padding 撑热区、负 margin 抵消,保持标题行高度 */ .section-link { display: flex; align-items: center; margin: -16rpx 0 -16rpx auto; padding: 16rpx 0 16rpx 24rpx; } .section-link:active { opacity: 0.6; } /* 「修改」降为中性字:全页三处入口若都用暖橙,会和所在行的标题抢注意力, 一个分组标题下不该有两个同权重焦点。入口靠位置(标题行右端)和热区成立, 不靠颜色——颜色留给底栏主按钮 */ .section-link-text { margin-right: 4rpx; /* 26rpx 与图标同档:入口降为中性的同时留一点体量, 避免和卡片正文(26rpx)拉开层级后又退到看不清 */ font-size: 26rpx; color: var(--muted); } /* ===== 白卡:全页唯一的容器语言(§2.3 主规则) ===== 2rpx --line 发丝边、中性阴影 --shadow-card; 卡内首尾留白由卡片自己的 padding 给。 本页例外(已登记):圆角取 24rpx 而非 §2.3 的 28rpx—— 与卡内首字牌(24rpx)同档,圆角家族内部不倒挂; 注意全站其余九页的白卡仍是 28rpx,从订单列表切进本页时卡片会略方一点 */ .card { box-sizing: border-box; margin-top: 16rpx; padding: 20rpx 24rpx; background: var(--white); border: 2rpx solid var(--line); border-radius: 24rpx; box-shadow: var(--shadow-card); } /* ===== 通用元信息行:竖线分隔,空值已在 JS 整项剔除 ===== */ .meta-list { display: flex; align-items: center; flex-wrap: wrap; } .meta-item { font-size: 24rpx; color: var(--muted); letter-spacing: 1rpx; line-height: 1.6; } /* 元信息竖线:2rpx×20rpx,取 --sep(比 --line 深一档,白卡与纸面上都看得见) */ .meta-sep { flex-shrink: 0; width: 2rpx; height: 20rpx; margin: 0 14rpx; background: var(--sep); } /* ===== 预约摘要卡:就诊人本人的行程卡 ===== 这页是本人看「哪天几点去哪、谁陪我」,不是商家认顾客的订单卡, 所以不铺自己的头像与手机号:时间作首落点, 「医院 / 服务 / 陪诊师 / 就诊人」四行小标签作答,底部一行费用 */ .appointment-card { margin-top: 32rpx; padding: 28rpx; } /* 时间块:卡内首落点。日期给全卡最大字号——它是唯一会过期的 强约束信息;时段用暖橙跟在同一行,是当天要准点到的第二关键信息 */ .schedule-row { display: flex; align-items: center; } .schedule-block { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 16rpx; padding-bottom: 20rpx; } .schedule-date { flex-shrink: 0; font-size: 36rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; line-height: 1.4; } .schedule-date.is-empty { font-size: 32rpx; font-weight: 400; color: var(--muted); } .schedule-time { font-size: 28rpx; font-weight: 700; color: var(--brand-ink); letter-spacing: 1rpx; } /* 完整信息入口:卡片右上角的向下箭头,展开后翻转成向上。 负 margin 把热区撑到 88rpx,只占 40rpx 高度, 不把时间行顶高,也不与日期争字号 */ .details-expand { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-width: 88rpx; min-height: 88rpx; margin: -24rpx -8rpx -16rpx 16rpx; } .details-expand:active { opacity: 0.6; } .details-expand-icon { display: flex; align-items: center; transition: transform 0.2s ease; } .details-expand-icon.is-expanded { transform: rotate(180deg); } /* 行右入口:只留图标,靠位置与热区成立,不靠颜色。 负 margin 把热区撑到 88rpx 而不撑高行 */ .row-entry { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; min-width: 64rpx; min-height: 88rpx; margin: -24rpx -8rpx -24rpx 16rpx; padding-left: 16rpx; } .row-entry:active { opacity: 0.6; } /* 中段四行:两字小标签 + 值;标签列等宽,值的起点始终在同一竖线上 */ .appt-rows { border-top: 2rpx solid var(--line); } .appt-row { display: flex; align-items: baseline; padding: 16rpx 0; } /* 标签列按最长三字标签(陪诊师 / 就诊人)留宽,值的起点不错位 */ .appt-label { flex-shrink: 0; width: 96rpx; font-size: 24rpx; color: var(--muted); letter-spacing: 1rpx; line-height: 1.8; } .appt-value { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4rpx; flex-wrap: wrap; } .appt-text { font-size: 28rpx; color: var(--ink); letter-spacing: 1rpx; line-height: 1.6; } .appt-text.is-empty { color: var(--muted); } /* 地址:医院行下的灰色副行,换行独占 */ .appt-sub { flex-basis: 100%; font-size: 24rpx; color: var(--muted); letter-spacing: 1rpx; line-height: 1.6; } /* 费用行:标签列与上行对齐,金额主色,支付状态胶囊收行尾 */ .fee-line { display: flex; align-items: center; padding-top: 20rpx; border-top: 2rpx solid var(--line); } .fee-amount { font-size: 34rpx; font-weight: 700; color: var(--brand-strong); letter-spacing: 1rpx; line-height: 1.4; } .fee-side { margin-left: auto; display: flex; align-items: center; } /* 取消原因:--paper 底在白卡上只差 1.06:1,靠描边托形 */ .cancel-summary { margin-top: 16rpx; padding: 16rpx 20rpx; border: 2rpx solid var(--line); border-radius: 16rpx; background: var(--paper); } .cancel-summary-label { display: block; font-size: 24rpx; color: var(--muted); } .cancel-summary-value { display: block; margin-top: 6rpx; font-size: 26rpx; color: var(--ink-2); line-height: 1.5; } /* ===== 完整信息:默认折叠,展开后按资料类型分组 ===== */ .full-details { /* 展开区自带顶边:费用行不画底边,取消原因也自带边, 任一块出现都只落一条分隔线 */ margin-top: 16rpx; border-top: 2rpx solid var(--line); } /* 首个分组不再重复画顶边:它紧接 full-details 的顶边, 两者只差 8rpx,会读成一条粗线或双线 */ .full-details > .detail-group:first-child { margin-top: 0; border-top: none; } .detail-group { margin-top: 8rpx; padding: 24rpx 0 8rpx; border-top: 2rpx solid var(--line); } /* 分隔线由上方 .full-details 的顶边提供,首组不再画第二条,避免双线并行 */ .full-details .detail-group:first-child { padding-top: 12rpx; border-top: none; } .detail-group-title { display: block; font-size: 26rpx; font-weight: 700; color: var(--ink); } .detail-patient-meta { margin-top: 12rpx; } .detail-row { display: flex; align-items: flex-start; margin-top: 16rpx; } .detail-label { flex-shrink: 0; font-size: 24rpx; color: var(--muted); line-height: 1.6; } .detail-value { flex: 1; min-width: 0; margin-left: 24rpx; font-size: 26rpx; color: var(--ink-2); line-height: 1.5; text-align: right; } .shipping-recipient { display: block; margin-top: 16rpx; font-size: 26rpx; font-weight: 700; color: var(--ink); } .shipping-address { display: block; margin-top: 8rpx; font-size: 24rpx; color: var(--muted); line-height: 1.6; } /* 订单号是需要逐字核对的标识符:左对齐、允许断行,不跟随右侧值的右对齐 */ .order-no { text-align: left; letter-spacing: 1rpx; word-break: break-all; } /* ===== 陪诊师卡片:平台分配后才出现 ===== 就诊当天要联系的人单独成卡,只用「名 + 电话」两段, 名字 32rpx 立住身份,电话弱一档在右侧,扫一眼就能报出是谁 */ .attendant-section { margin-top: 32rpx; } .attendant-card { display: flex; align-items: center; gap: 20rpx; padding: 24rpx; } .attendant-name { flex-shrink: 0; font-size: 32rpx; font-weight: 700; color: var(--ink); letter-spacing: 1rpx; line-height: 1.4; } /* 电话靠右对齐:等宽数字不跳字,长号码也只会压缩自己不会挤名字 */ .attendant-phone { flex: 1; min-width: 0; text-align: right; font-size: 28rpx; color: var(--ink-2); letter-spacing: 1rpx; font-variant-numeric: tabular-nums; } /* 待分配占位:与姓名同档字号但退到灰字,读作「还没定」而不是「没有」 */ .attendant-empty { flex: 1; min-width: 0; font-size: 28rpx; color: var(--muted); letter-spacing: 1rpx; line-height: 1.5; } /* ===== 需求与服务结果:有内容才出现 ===== */ .note-section { margin-top: 32rpx; } .note-card { padding: 24rpx; } .note-block { margin-top: 20rpx; padding-top: 20rpx; border-top: 2rpx solid var(--line); } .note-block:first-child { margin-top: 0; padding-top: 0; border-top: none; } .note-label { display: block; margin-bottom: 8rpx; font-size: 24rpx; color: var(--muted); } .note-text { display: block; font-size: 28rpx; color: var(--ink-2); line-height: 1.7; letter-spacing: 1rpx; word-break: break-word; } /* 空态添加入口:整行可点,热区不依赖小图标 */ .note-add { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 88rpx; } .note-add:active { opacity: 0.6; } .note-add-text { margin-left: 8rpx; font-size: 26rpx; color: var(--brand-ink); } /* ===== 表单行:只活在编辑弹窗里 ===== 行结构仍是「标签左、值右、发丝线分隔」,但它是弹窗内的输入语境,不是页面展示语言 */ .form-row { display: flex; align-items: center; justify-content: space-between; min-height: 72rpx; padding: 12rpx 0; border-bottom: 2rpx solid var(--line); } .form-row:last-child { border-bottom: none; } .form-label { flex-shrink: 0; font-size: 26rpx; color: var(--muted); } .form-input { flex: 1; min-width: 0; margin-left: 24rpx; font-size: 28rpx; color: var(--ink); text-align: right; } .form-picker { flex: 1; min-width: 0; margin-left: 24rpx; } .form-picker-value { font-size: 28rpx; color: var(--ink); text-align: right; } .note-textarea { box-sizing: border-box; width: 100%; min-height: 200rpx; padding: 24rpx; border: 2rpx solid var(--line); border-radius: 16rpx; background: var(--paper); font-size: 28rpx; color: var(--ink-2); line-height: 1.7; } .input-placeholder { color: var(--muted); } /* ===== 底部占位与操作栏 ===== */ .bottom-placeholder { height: 160rpx; } .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; align-items: center; gap: 16rpx; padding: 20rpx 32rpx; padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); background: var(--white); border-top: 2rpx solid var(--line); box-shadow: var(--shadow-bar); } /* 首页图标按钮:底栏最左的固定位圆形按钮。 与右侧幽灵按钮同一套语言(--sep 描边 + --muted 图标 + 999rpx 圆角), 但固定宽高、不参与 flex:1 的等宽分配——它是入口,不是订单动作; 固定宽度后「取消 / 删除 / 再约」仍等宽平分剩余空间。 84rpx 见方 = 与右侧幽灵按钮同高(18rpx 上下内距 + 30rpx 文字行高 + 3rpx 描边), 圆形后上下沿齐平;内含 40rpx 图标,触控热区 42px 远高于 24px 下限 */ .home-btn { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 84rpx; height: 84rpx; border: 3rpx solid var(--sep); border-radius: 999rpx; background: transparent; } .home-btn:active { opacity: 0.7; } /* 首页图标:复用 custom-tab-bar 的同一份手绘 SVG(灰 #6F655C 档), 与 tabBar「首页」tab 造型完全一致——同一个「首页」不在两处画成两种房子。 TDesign 字体图标 home 是尖屋顶,tabBar 已弃用,此处同样不用 */ .home-icon { width: 40rpx; height: 40rpx; background-repeat: no-repeat; background-size: 100% 100%; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTkgMzEgQzkgMjMuNSAxNi41IDE2LjUgMzIgOC41IEM0Ny41IDE2LjUgNTUgMjMuNSA1NSAzMSIgc3Ryb2tlPSIjNkY2NTVDIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxyZWN0IHg9IjE0IiB5PSIyOCIgd2lkdGg9IjM2IiBoZWlnaHQ9IjI2IiByeD0iNyIgc3Ryb2tlPSIjNkY2NTVDIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMjcgNTQgVjQ2IGE1IDUgMCAwIDEgMTAgMCBWNTQiIHN0cm9rZT0iIzZGNjU1QyIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4="); } /* 按钮等宽铺满:与同页弹窗脚(.popup-btn 的 flex:1)同一套排布, 热区也更大;单个按钮时即整条通栏主操作 */ .action-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18rpx 44rpx; border-radius: 999rpx; font-size: 30rpx; line-height: 1.4; } .action-btn:active { opacity: 0.7; } .action-ghost { border: 3rpx solid var(--sep); color: var(--muted); background: transparent; } /* 破坏性动作:只换字色为状态色「已取消」档(#B4231A 已在色板内,不新增色相), 与并排的取消订单区分开——删除不可恢复,确认弹窗也已走同色 */ .action-danger { color: #B4231A; } .action-primary { background: var(--brand-strong); color: var(--white); font-weight: 700; box-shadow: var(--shadow-cta); } /* ===== 底部弹窗(编辑与取消共用一套骨架) ===== */ .popup-mask { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 200; background: rgba(43, 37, 33, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .popup-mask.show { opacity: 1; visibility: visible; } .popup-content { position: fixed; left: 0; right: 0; bottom: 0; z-index: 201; display: flex; flex-direction: column; max-height: 70vh; background: var(--white); border-radius: 32rpx 32rpx 0 0; transform: translateY(100%); transition: transform 0.3s ease-out; } /* 医院预约编辑有 9 行表单,弹窗加高 */ .popup-content.popup-tall { max-height: 86vh; } .popup-content.show { transform: translateY(0); } .popup-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 28rpx 32rpx; border-bottom: 2rpx solid var(--line); } .popup-title { font-size: 32rpx; font-weight: 700; color: var(--ink); } .popup-close { padding: 8rpx; margin: -8rpx; } .popup-close:active { opacity: 0.5; } .popup-body { flex: 1; overflow-y: auto; padding: 20rpx 32rpx 28rpx; } /* ===== 取消订单弹窗内的原因单选 ===== */ .cancel-tip { font-size: 28rpx; color: var(--muted); line-height: 1.6; } .cancel-reason-list { display: flex; flex-direction: column; margin-top: 8rpx; } .cancel-reason-item { display: flex; align-items: center; padding: 20rpx 16rpx; border-radius: 16rpx; transition: background-color 0.15s ease; } .cancel-reason-item.active { background: var(--brand-soft); } .reason-radio { display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; width: 36rpx; height: 36rpx; border: 3rpx solid var(--sep); border-radius: 50%; } .cancel-reason-item.active .reason-radio { border-color: var(--brand-strong); } .reason-radio-inner { width: 18rpx; height: 18rpx; border-radius: 50%; background: var(--brand-strong); } .reason-text { margin-left: 16rpx; font-size: 28rpx; color: var(--ink-2); } .popup-footer { display: flex; gap: 16rpx; flex-shrink: 0; padding: 20rpx 32rpx; padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); border-top: 2rpx solid var(--line); } .popup-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22rpx 0; border-radius: 999rpx; font-size: 30rpx; line-height: 1.4; } .popup-btn:active { opacity: 0.7; } .popup-btn-ghost { border: 3rpx solid var(--sep); color: var(--muted); } .popup-btn-primary { background: var(--brand-strong); color: var(--white); font-weight: 700; }