重构完大部分页面了

This commit is contained in:
lik
2026-10-06 17:58:18 +08:00
parent 530135fce3
commit 40d0df3330
28 changed files with 412 additions and 537 deletions
+45 -118
View File
@@ -1,6 +1,12 @@
/* pages/escort/agreement.wxss */
/* pages/escort/agreement.wxss
配色走 app.wxss 的暖橙令牌(DESIGN.md §二)。
原 #FAF6F1 底、#D4A853 系(含三处同色渐变与同色大阴影)、
#1F2937/#4B5563/#6B7280/#9CA3AF/#E5E7EB 冷灰文字、#F0E6D8 冷线,
已按 §5.1 与 §四(禁渐变、禁灰金亮橙)收口。
另删除死规则 .flow-steps/.flow-step/.step-badge/.step-info/.step-title/
.step-desc/.step-line——WXML 里没有任何元素引用(本页无流程步骤) */
page {
background-color: #FAF6F1;
background-color: var(--paper);
}
.container {
@@ -8,24 +14,25 @@ page {
padding-bottom: 48rpx;
}
/* 顶部标题区 */
/* 顶部标题区:不铺卡面、直接落纸面(同首页 hero),去掉原白→暖白渐变 */
.header-section {
background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F0 100%);
display: flex;
flex-direction: column;
align-items: center;
padding: 48rpx 32rpx 40rpx;
}
/* 文件图标是全页唯一实心块:白色图标需要深底才看得见,
故走 --brand-strong(同首页品牌印记的白色线稿),阴影用 --shadow-cta */
.header-icon-wrap {
width: 96rpx;
height: 96rpx;
background: linear-gradient(135deg, #D4A853 0%, #D4A853 100%);
background: var(--brand-strong);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8rpx 24rpx rgba(212, 168, 83, 0.25);
box-shadow: var(--shadow-cta);
}
.header-icon {
@@ -35,23 +42,26 @@ page {
.header-title {
font-size: 40rpx;
font-weight: 700;
color: #1F2937;
color: var(--ink);
margin-top: 24rpx;
}
.header-subtitle {
font-size: 26rpx;
color: #9CA3AF;
color: var(--muted);
margin-top: 12rpx;
}
/* 协议内容卡片 */
/* 协议正文:通栏白底块(上下各 2rpx 发丝线 + 圆角 0),
与陪诊服务列表页的分组、我的页菜单组同一语言 */
.agreement-card {
background: #FFFFFF;
background: var(--white);
border-top: 2rpx solid var(--line);
border-bottom: 2rpx solid var(--line);
box-shadow: var(--shadow-card);
padding: 32rpx;
}
/* 章节 */
.section {
margin-bottom: 40rpx;
}
@@ -64,18 +74,21 @@ page {
display: flex;
align-items: center;
font-size: 32rpx;
font-weight: 600;
color: #1F2937;
font-weight: 700;
color: var(--ink);
margin-bottom: 20rpx;
}
/* 序号走「浅橙衬底 + 2rpx 描边 + 暖陶土字」,与全站图标衬底同语言;
不用实心主色——全页实心块只留顶部那一个(DESIGN.md §2.1) */
.section-number {
width: 40rpx;
height: 40rpx;
background: linear-gradient(135deg, #D4A853 0%, #D4A853 100%);
color: #FFFFFF;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
color: var(--brand-ink);
font-size: 24rpx;
font-weight: 600;
font-weight: 700;
border-radius: 50%;
display: flex;
align-items: center;
@@ -91,11 +104,10 @@ page {
.paragraph {
display: block;
font-size: 28rpx;
color: #4B5563;
color: var(--ink-2);
line-height: 1.8;
}
/* 列表项 */
.list-item {
display: flex;
align-items: flex-start;
@@ -109,7 +121,7 @@ page {
.list-dot {
width: 12rpx;
height: 12rpx;
background: #D4A853;
background: var(--brand-strong);
border-radius: 50%;
margin-top: 14rpx;
margin-right: 16rpx;
@@ -118,128 +130,44 @@ page {
.list-text {
font-size: 28rpx;
color: #4B5563;
color: var(--ink-2);
line-height: 1.7;
flex: 1;
}
/* 流程步骤 */
.flow-steps {
display: flex;
flex-direction: column;
}
.flow-step {
display: flex;
align-items: flex-start;
}
.step-badge {
width: 44rpx;
height: 44rpx;
background: linear-gradient(135deg, #D4A853 0%, #D4A853 100%);
color: #FFFFFF;
font-size: 24rpx;
font-weight: 600;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 20rpx;
}
.step-info {
flex: 1;
padding-bottom: 8rpx;
}
.step-title {
display: block;
font-size: 28rpx;
font-weight: 600;
color: #1F2937;
margin-bottom: 4rpx;
}
.step-desc {
display: block;
font-size: 26rpx;
color: #6B7280;
line-height: 1.5;
}
.step-line {
width: 2rpx;
height: 40rpx;
background: #E5E7EB;
margin-left: 21rpx;
margin-top: 4rpx;
margin-bottom: 4rpx;
}
/* 联系信息 */
.contact-info {
margin-top: 20rpx;
background: #FAF6F1;
border-radius: 16rpx;
padding: 24rpx;
}
.contact-row {
display: flex;
align-items: center;
margin-bottom: 16rpx;
}
.contact-row:last-child {
margin-bottom: 0;
}
.contact-icon {
color: #D4A853;
margin-right: 12rpx;
flex-shrink: 0;
}
.contact-text {
font-size: 28rpx;
color: #4B5563;
}
/* 退订违约金表格 */
/* 违约金表:卡内的浅橙块,靠 2rpx --brand-line 描边托形、不加阴影 */
.refund-table {
margin-top: 20rpx;
background: #FAF6F1;
border-radius: 16rpx;
background: var(--brand-soft);
border: 2rpx solid var(--brand-line);
border-radius: 20rpx;
/* 表格行自带内距,容器不再重复给 */
padding: 0;
overflow: hidden;
border: 1rpx solid #F0E6D8;
}
/* 浅橙底上的分隔线必须用 --sep(--brand-line 落浅橙底只有 1.16:1,看不见) */
.table-row {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
border-bottom: 1rpx solid #F0E6D8;
border-bottom: 2rpx solid var(--sep);
}
.table-row:last-child {
border-bottom: none;
}
.table-row.header {
background: #FFF8F0;
}
/* 表头不铺色(--brand-line 只作描边,不当填充),靠字重与主色区分 */
.table-row.header .table-cell {
font-weight: 600;
color: #1F2937;
font-weight: 700;
color: var(--brand-ink);
}
.table-cell {
flex: 1;
font-size: 26rpx;
color: #4B5563;
color: var(--ink-2);
line-height: 1.5;
text-align: center;
}
@@ -248,7 +176,6 @@ page {
flex: 1.2;
}
/* 底部信息 */
.footer-section {
display: flex;
flex-direction: column;
@@ -259,6 +186,6 @@ page {
.footer-text {
font-size: 24rpx;
color: #9CA3AF;
color: var(--muted);
line-height: 1.6;
}