style(home): 预约卡片补充医院并允许长内容换行
首行集中日期、就诊人、服务与状态,医院单独成行;服务、医院与姓名超长时 换行展示而不是截断,详情箭头独立包裹。同步更新首页 UI 测试断言与缺省文案。
This commit is contained in:
+17
-16
@@ -108,28 +108,29 @@ button.hero-cta.action-hover { background: var(--brand-ink); }
|
||||
}
|
||||
.trust-item { display: flex; align-items: center; gap: 10rpx; }
|
||||
.trust-check { flex-shrink: 0; width: 12rpx; height: 7rpx; margin-top: -4rpx; border-bottom: 2rpx solid var(--brand-ink); border-left: 2rpx solid var(--brand-ink); transform: rotate(-45deg); }
|
||||
.pending-section { padding: 4rpx 0; }
|
||||
.pending-heading { color: var(--muted); font-size: var(--fs-26); }
|
||||
.pending-section { padding: 20rpx 0 0; }
|
||||
.pending-heading { display: block; padding: 0 4rpx; color: var(--muted); font-size: var(--fs-26); line-height: 1.5; }
|
||||
.pending-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
gap: 16rpx;
|
||||
margin-top: 16rpx;
|
||||
padding: 24rpx;
|
||||
box-sizing: border-box;
|
||||
min-height: 88rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 28rpx;
|
||||
background: var(--white);
|
||||
}
|
||||
.pending-content { flex: 1; min-width: 0; }
|
||||
/* 首行:日期居左强调,状态胶囊靠右;状态色只包文字本身 */
|
||||
.pending-top {
|
||||
/* 日期与姓名便于快速识别预约;服务吸收余量,长内容换行而不截断。 */
|
||||
.pending-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 8rpx;
|
||||
gap: 12rpx 16rpx;
|
||||
}
|
||||
.pending-when { color: var(--brand-ink); font-size: var(--fs-30); font-weight: 600; white-space: nowrap; }
|
||||
.pending-when { max-width: 100%; color: var(--brand-ink); font-size: var(--fs-30); font-weight: 600; line-height: 1.5; overflow-wrap: break-word; }
|
||||
.pending-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -144,23 +145,23 @@ button.hero-cta.action-hover { background: var(--brand-ink); }
|
||||
}
|
||||
/* 状态语气档与 recordlist / recorddetail 同一套,色值读 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-doing { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
|
||||
.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); }
|
||||
/* 第二行:服务名 + 就诊人同行;服务名过长时截断,就诊人完整保留 */
|
||||
.pending-meta { display: flex; align-items: baseline; gap: 12rpx; min-width: 0; }
|
||||
.pending-service {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
.pending-patient { flex-shrink: 0; color: var(--muted); font-size: var(--fs-24); line-height: 1.5; white-space: nowrap; }
|
||||
.pending-hospital { display: block; margin-top: 12rpx; color: var(--ink-2); font-size: var(--fs-28); line-height: 1.6; word-break: break-all; }
|
||||
.pending-patient { min-width: 0; max-width: 100%; color: var(--ink); font-size: var(--fs-28); font-weight: 600; line-height: 1.5; word-break: break-all; }
|
||||
.pending-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.section { margin-top: 32rpx; }
|
||||
.section-head {
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
Reference in New Issue
Block a user