This commit is contained in:
lik
2026-10-06 21:19:20 +08:00
parent 40d0df3330
commit 509a10e4f1
12 changed files with 440 additions and 314 deletions
+147 -93
View File
@@ -1,166 +1,220 @@
page {
background-color: #FAF6F1;
/* 配色令牌来自 app.wxss(全站唯一来源),本页不留副本 */
background-color: var(--paper);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.container {
min-height: 100vh;
box-sizing: border-box;
/* 底部留出固定操作栏的高度 + 安全区,避免最后一条被盖住 */
padding: 40rpx 32rpx calc(180rpx + env(safe-area-inset-bottom));
}
/* 顶部说明条 */
.page-tip {
/* ===== 说明砖 =====
浅橙底走「说明砖」档:--brand-soft + 2rpx --brand-line 描边托形、不加阴影。
--paper 与 --brand-soft 明度差仅约 1.03:1,不靠描边托不出形 */
.tip-card {
display: flex;
align-items: center;
margin: 24rpx 24rpx 0;
margin-bottom: 24rpx;
padding: 20rpx 24rpx;
border-radius: 16rpx;
background: #FDF8EE;
border-radius: 20rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
}
.page-tip-text {
/* t-icon 未传 color,用 CSS 变量着色即可(读不到变量的只有 color 属性写法) */
.tip-icon {
flex-shrink: 0;
color: var(--brand-ink);
}
.tip-text {
margin-left: 12rpx;
font-size: 24rpx;
color: #A1864B;
color: var(--brand-ink);
line-height: 1.5;
}
/* 就诊人列表 */
/* ===== 通栏白块 =====
白面 + 上下各 2rpx 发丝线 + 中性阴影,圆角 0;
负向 margin 抵消容器 32rpx 内距后左右顶到屏幕两侧,
卡内再用 32rpx 内距回到同一左基线,卡间发丝线因此通到底。
圆角必须为 0,否则满宽块的圆角会切在屏幕边上 */
.profile-list {
padding: 20rpx 24rpx;
display: flex;
flex-direction: column;
gap: 20rpx;
margin: 0 -32rpx;
background: var(--white);
border-top: 2rpx solid var(--line);
border-bottom: 2rpx solid var(--line);
box-shadow: var(--shadow-card);
}
.profile-card {
background: #FFFFFF;
border-radius: 20rpx;
padding: 28rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04);
padding: 28rpx 32rpx;
border-bottom: 2rpx solid var(--line);
}
.profile-card:active {
background: #FDFCFA;
.profile-card-last {
border-bottom: none;
}
.card-header {
/* 主体整块可点进编辑,右侧 chevron 即点击暗示 */
.profile-main {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 20rpx;
margin-bottom: 20rpx;
border-bottom: 1rpx solid #F3F4F6;
}
.name-wrap {
display: flex;
align-items: center;
.profile-main-hover {
opacity: 0.7;
}
.profile-name {
font-size: 32rpx;
font-weight: 600;
color: #1F2937;
}
.sex-tag {
margin-left: 16rpx;
padding: 2rpx 14rpx;
border-radius: 8rpx;
background: #FDF8EE;
color: #D4A853;
font-size: 22rpx;
font-weight: 600;
}
.delete-btn {
padding: 8rpx 0 8rpx 24rpx;
}
.card-body {
.profile-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 16rpx;
}
.profile-top {
display: flex;
align-items: center;
margin-bottom: 12rpx;
}
/* 姓名是本页最重的字,走 --ink 700(标题档) */
.profile-name {
font-size: 32rpx;
font-weight: 700;
color: var(--ink);
}
/* 性别签:浅橙衬底档(--brand-soft + 2rpx --brand-line + --brand-ink),
字号 24rpx 是中文最小字号下限,不得再小 */
.sex-tag {
margin-left: 16rpx;
padding: 4rpx 12rpx;
border-radius: 6rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
font-size: 24rpx;
color: var(--brand-ink);
}
/* 标签走 --muted、值走 --ink-2:只表示文字层级,不给可点性上色 */
.info-row {
display: flex;
align-items: flex-start;
}
.info-row + .info-row {
margin-top: 8rpx;
}
.info-label {
font-size: 26rpx;
color: #9CA3AF;
width: 140rpx;
flex-shrink: 0;
width: 140rpx;
font-size: 26rpx;
color: var(--muted);
}
.info-value {
font-size: 26rpx;
color: #374151;
flex: 1;
min-width: 0;
font-size: 28rpx;
color: var(--ink-2);
word-break: break-all;
}
/* 空状态 */
.empty-state {
.profile-arrow {
flex-shrink: 0;
margin-left: 16rpx;
color: var(--muted);
}
/* 卡片操作行:与主体隔一条发丝线,删除靠右排(与「邮寄地址」卡同一位置) */
.profile-actions {
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 24rpx;
padding-top: 20rpx;
border-top: 2rpx solid var(--line);
}
/* 文字只有 26rpx 高,用 padding 撑热区、等量负外边距抵消,不改变行高 */
.profile-action {
display: flex;
align-items: center;
padding: 16rpx 0;
margin: -16rpx 0;
}
.profile-action-icon {
margin-right: 10rpx;
color: var(--muted);
}
.profile-action-text {
font-size: 26rpx;
color: var(--muted);
}
/* ===== 空态 ===== */
.profile-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 200rpx;
padding: 140rpx 32rpx;
}
.empty-text {
font-size: 30rpx;
color: #9CA3AF;
/* --faint 仅用于非文字装饰(空态图标),不承载信息 */
.profile-empty-icon {
color: var(--faint);
}
.profile-empty-text {
margin-top: 24rpx;
font-size: 28rpx;
color: var(--muted);
}
.empty-subtext {
font-size: 26rpx;
color: #D1D5DB;
margin-top: 12rpx;
}
/* 加载中 */
/* ===== 加载中 ===== */
.loading-wrap {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
padding: 60rpx;
}
.bottom-space {
height: 180rpx;
}
/* 底部固定新增按钮 */
/* ===== 底部固定操作栏 =====
纸面与白面填充差只有 1.05:1,靠一道小偏移小模糊的上向暖墨阴影托住边界 */
.footer-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 20rpx 24rpx calc(20rpx + env(safe-area-inset-bottom));
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 -2rpx 16rpx rgba(0, 0, 0, 0.05);
padding: 20rpx 32rpx calc(20rpx + env(safe-area-inset-bottom));
background: var(--white);
box-shadow: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07);
}
.add-btn {
display: flex;
align-items: center;
justify-content: center;
height: 88rpx;
border-radius: 44rpx;
background: #D4A853;
}
.add-btn:active {
opacity: 0.85;
}
.add-btn-text {
margin-left: 8rpx;
/* 新增是本页唯一的实心暖橙块,独占「全页同类实心块不超过一处」的额度 */
.primary-btn {
margin: 0;
padding: 24rpx 0;
border: none;
border-radius: 999rpx;
background: var(--brand-strong);
box-shadow: var(--shadow-cta);
color: var(--white);
font-size: 30rpx;
font-weight: 600;
color: #FFFFFF;
font-weight: 700;
letter-spacing: 2rpx;
line-height: 1.4;
}
.primary-btn::after {
border: none;
}