style(record): 预约记录与详情页统一导航与卡片样式
导航栏统一浅色并补 t-loading;列表补已结束态降级,切换筛选时清理滑动状态, 并防止旧请求覆盖新结果;详情页日期与星期拆开展示,长医院名允许换行。
This commit is contained in:
@@ -73,25 +73,21 @@ page {
|
||||
上方留白 40rpx(与分区间距一致,让抬头贴住顶栏而非浮在中间);
|
||||
左右负 margin 抵消 .container 的 32rpx 内距,使下方发丝线通栏顶到屏幕两侧,
|
||||
同时用 padding 把色标与胶囊重新拉回卡片同一条左对齐线 */
|
||||
margin: 0 -32rpx;
|
||||
padding: 40rpx 32rpx 32rpx;
|
||||
border-bottom: 2rpx solid var(--line);
|
||||
margin: 0;
|
||||
padding: 24rpx 0 8rpx;
|
||||
}
|
||||
|
||||
.header-accent {
|
||||
width: 64rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 4rpx;
|
||||
background: var(--brand-strong);
|
||||
}
|
||||
|
||||
.status-row {
|
||||
margin-top: 24rpx;
|
||||
margin-top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8rpx;
|
||||
}
|
||||
|
||||
/* 抬头右侧客服入口:安静图标,靠位置与热区成立,不抢状态胶囊的焦点。
|
||||
/* 抬头右侧客服入口:图标 + 可见文字,不只靠图形表意(普通用户未必读懂问号)。
|
||||
仍是安静入口:--muted 字与线图标,不抢状态胶囊的焦点。
|
||||
负 margin 把热区撑到 88rpx 而不再抬高抬头区 */
|
||||
.header-support {
|
||||
box-sizing: border-box;
|
||||
@@ -99,12 +95,19 @@ page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 6rpx;
|
||||
min-width: 88rpx;
|
||||
min-height: 88rpx;
|
||||
margin: -20rpx -8rpx -20rpx auto;
|
||||
margin: -20rpx 0 -20rpx auto;
|
||||
padding-left: 16rpx;
|
||||
}
|
||||
|
||||
.header-support-text {
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.header-support:active {
|
||||
opacity: 0.6;
|
||||
}
|
||||
@@ -164,11 +167,9 @@ page {
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
/* 说明文字吃掉剩余宽度,客服入口才被推到最右;
|
||||
min-width 0 让长说明正常收缩换行,不撑破抬头行 */
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 20rpx;
|
||||
/* 说明独立成行,不与状态和客服争抢横向空间。 */
|
||||
display: block;
|
||||
margin: 14rpx 0 0;
|
||||
/* 说明保持比 32rpx 的胶囊低一档,抬头内部才有焦点 */
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
@@ -199,7 +200,7 @@ page {
|
||||
.section-title {
|
||||
margin-left: 16rpx;
|
||||
font-size: var(--fs-34);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
@@ -236,7 +237,6 @@ page {
|
||||
background: var(--white);
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 28rpx;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
/* ===== 通用元信息行:竖线分隔,空值已在 JS 整项剔除 ===== */
|
||||
@@ -267,7 +267,7 @@ page {
|
||||
所以不铺自己的头像与手机号:时间作首落点,
|
||||
「医院 / 服务 / 陪诊师 / 就诊人」四行小标签作答,底部一行费用 */
|
||||
.appointment-card {
|
||||
margin-top: 32rpx;
|
||||
margin-top: 24rpx;
|
||||
padding: 24rpx;
|
||||
}
|
||||
|
||||
@@ -283,13 +283,13 @@ page {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 16rpx;
|
||||
flex-wrap: wrap;
|
||||
gap: 6rpx 16rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.schedule-date {
|
||||
flex-shrink: 0;
|
||||
font-size: 36rpx;
|
||||
font-size: var(--fs-34);
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
letter-spacing: 0;
|
||||
@@ -303,24 +303,36 @@ page {
|
||||
}
|
||||
|
||||
.schedule-time {
|
||||
font-size: var(--fs-30);
|
||||
font-size: var(--fs-34);
|
||||
font-weight: 600;
|
||||
color: var(--brand-ink);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* 完整信息入口:卡片右上角的向下箭头,展开后翻转成向上。
|
||||
负 margin 把热区撑到 88rpx,只占 40rpx 高度,
|
||||
不把时间行顶高,也不与日期争字号 */
|
||||
.schedule-weekday {
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 摘要底部完整信息入口:不再挤占日期宽度,保留独立触控热区。 */
|
||||
.details-expand {
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
justify-content: flex-end;
|
||||
gap: 6rpx;
|
||||
min-width: 88rpx;
|
||||
min-height: 88rpx;
|
||||
margin: -24rpx -8rpx -16rpx 16rpx;
|
||||
margin: 16rpx 0 -12rpx;
|
||||
border-top: 2rpx solid var(--line);
|
||||
}
|
||||
|
||||
.details-expand-text {
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.details-expand:active {
|
||||
@@ -337,21 +349,27 @@ page {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* 行右入口:只留图标,靠位置与热区成立,不靠颜色。
|
||||
行尾图标统一尺寸与负 margin,让修改、箭头、拨打三枚图标
|
||||
都落在首行文字的同一条垂直中线上(48rpx 首行:88rpx 热区上下各负 20rpx) */
|
||||
/* 行右入口:「修改」文字 + 图标,避免铅笔图标单独出现时被误读。
|
||||
行尾入口统一尺寸与负 margin,让它们都落在首行文字的同一垂直中线上 */
|
||||
.row-entry {
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
align-self: flex-start;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 72rpx;
|
||||
justify-content: flex-end;
|
||||
gap: 4rpx;
|
||||
min-width: 88rpx;
|
||||
min-height: 88rpx;
|
||||
margin: -20rpx 0 -20rpx 16rpx;
|
||||
}
|
||||
|
||||
.row-entry-text {
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.row-entry:active {
|
||||
opacity: 0.6;
|
||||
}
|
||||
@@ -387,6 +405,8 @@ page {
|
||||
}
|
||||
|
||||
.appt-text {
|
||||
min-width: 0;
|
||||
word-break: break-all;
|
||||
font-size: var(--fs-30);
|
||||
color: var(--ink);
|
||||
letter-spacing: 0;
|
||||
@@ -433,6 +453,36 @@ page {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 长医院名使用整行宽度,修改入口只占标签行,避免末字被挤成孤行。 */
|
||||
.hospital-row {
|
||||
display: block;
|
||||
padding-top: 16rpx;
|
||||
}
|
||||
|
||||
.hospital-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 56rpx;
|
||||
}
|
||||
|
||||
.hospital-heading .appt-label {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.hospital-heading .row-entry {
|
||||
align-self: center;
|
||||
margin: -16rpx 0;
|
||||
}
|
||||
|
||||
.hospital-value {
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.hospital-value .appt-text {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
/* 同一行内多值之间的细竖线分隔(如 姓名 │ 性别 │ 年龄),
|
||||
取代原先拼在文案里的中点字符。自适应换行仍由 .appt-value 的 flex-wrap 承担 */
|
||||
.appt-sep {
|
||||
@@ -833,7 +883,7 @@ page {
|
||||
|
||||
/* ===== 底部占位与操作栏 ===== */
|
||||
.bottom-placeholder {
|
||||
height: 160rpx;
|
||||
height: calc(160rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
|
||||
Reference in New Issue
Block a user