style(train): 培训页去装饰并统一字重

删除页内重复页名色带与区块竖条,课程信息卡并入页首说明,
标题与主操作字重统一 600、表单值 500,错误色改用状态令牌。
This commit is contained in:
lik
2026-11-16 19:31:00 +08:00
parent 3a863fa9c1
commit 6099158313
4 changed files with 25 additions and 52 deletions
+1 -11
View File
@@ -21,19 +21,10 @@
<view class="container" wx:else>
<view class="page-header">
<view class="header-accent"></view>
<text class="header-title">考位信息表</text>
<text class="header-subtitle">2026 年国开培训中心 · 医疗陪诊顾问(高级)</text>
</view>
<view class="course-card">
<view class="course-mark"><t-icon name="education" size="34rpx" color="#9B4508" /></view>
<view class="course-body">
<text class="course-name">医疗陪诊顾问(高级)</text>
<text class="course-issuer">培训单位:国家开放大学培训中心</text>
</view>
</view>
<!-- 通栏白表单块:行距、标签与错误态沿用就诊人表单的排版基准 -->
<view class="form-card">
<view class="form-row">
@@ -87,7 +78,6 @@
</view>
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报名材料</text>
</view>
<view class="material-tip">请上传清晰的 JPG/PNG 图片,单张不超过 5MB</view>
@@ -117,7 +107,7 @@
</view>
<view class="privacy-tip">
<t-icon name="lock-on" size="26rpx" color="#A89684" />
<t-icon name="lock-on" size="26rpx" color="#6F655C" />
<text class="privacy-text">以上信息仅用于考位报名、资料审核与证书办理,我们会严格保密。</text>
</view>
+10 -19
View File
@@ -4,23 +4,15 @@ page { background-color: var(--paper); }
.container { padding: 32rpx 32rpx 0; }
.page-header { padding: 24rpx 0 8rpx; }
.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
.header-title { display: block; margin-top: 20rpx; font-size: 44rpx; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: 1rpx; }
.header-title { display: block; margin-top: 0; font-size: 44rpx; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: 1rpx; }
.header-subtitle { display: block; margin-top: 10rpx; font-size: var(--fs-26); color: var(--muted); line-height: 1.6; }
.course-card,
.form-card,
.success-card {
background: var(--white);
border: 2rpx solid var(--line);
border-radius: 28rpx;
box-shadow: var(--shadow-card);
}
.course-card { display: flex; align-items: center; margin-top: 32rpx; padding: 24rpx 26rpx; }
.course-mark { width: 64rpx; height: 64rpx; border-radius: 18rpx; background: var(--brand-soft); border: 2rpx solid var(--brand-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.course-body { flex: 1; min-width: 0; margin-left: 20rpx; }
.course-name { display: block; font-size: var(--fs-30); font-weight: 700; color: var(--ink); }
.course-issuer { display: block; margin-top: 6rpx; font-size: var(--fs-24); color: var(--muted); }
.form-card { margin-top: 24rpx; padding: 6rpx 26rpx; }
.form-row { display: flex; align-items: flex-start; padding: 24rpx 0; border-bottom: 2rpx solid var(--line); }
@@ -29,14 +21,13 @@ page { background-color: var(--paper); }
.form-control { flex: 1; min-width: 0; }
.form-input { height: 48rpx; font-size: var(--fs-28); color: var(--ink); text-align: right; }
.form-picker { min-height: 48rpx; font-size: var(--fs-28); color: var(--ink); text-align: right; line-height: 48rpx; }
.form-picker.placeholder { color: var(--faint); }
.form-picker.placeholder { color: var(--muted); }
.field-tip { display: block; margin-top: 8rpx; font-size: var(--fs-24); color: var(--muted); line-height: 1.5; text-align: right; }
.form-static { flex: 1; min-width: 0; padding-top: 8rpx; font-size: var(--fs-28); font-weight: 700; color: var(--ink); text-align: right; line-height: 1.6; }
.form-error { display: block; margin-top: 8rpx; font-size: var(--fs-24); color: var(--danger); line-height: 1.5; text-align: right; }
.form-static { flex: 1; min-width: 0; padding-top: 8rpx; font-size: var(--fs-28); font-weight: 500; color: var(--ink); text-align: right; line-height: 1.6; }
.form-error { display: block; margin-top: 8rpx; font-size: var(--fs-24); color: var(--status-cancel-ink); line-height: 1.5; text-align: right; }
.section-head { display: flex; align-items: center; margin-top: 40rpx; }
.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; }
.section-title { margin-left: 16rpx; font-size: var(--fs-34); font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: 1rpx; }
.section-title { margin-left: 0; font-size: var(--fs-34); font-weight: 600; color: var(--ink); line-height: 1.4; letter-spacing: 1rpx; }
.material-tip { margin-top: 12rpx; font-size: var(--fs-24); color: var(--muted); line-height: 1.6; }
.material-grid { display: flex; gap: 24rpx; margin-top: 20rpx; }
.material-item { flex: 1; min-width: 0; }
@@ -45,7 +36,7 @@ page { background-color: var(--paper); }
.upload-box.has-image { border-style: solid; border-color: var(--line); background: var(--white); }
.upload-image { width: 100%; height: 100%; }
.upload-plus { font-size: 52rpx; font-weight: 300; color: var(--brand-ink); line-height: 1; }
.upload-action { margin-top: 16rpx; font-size: var(--fs-26); font-weight: 700; color: var(--brand-ink); }
.upload-action { margin-top: 16rpx; font-size: var(--fs-26); font-weight: 600; color: var(--brand-ink); }
.material-name { display: block; margin-top: 14rpx; font-size: var(--fs-26); color: var(--ink-2); text-align: center; }
.material-error { text-align: center; }
@@ -53,19 +44,19 @@ page { background-color: var(--paper); }
.privacy-text { flex: 1; font-size: var(--fs-24); color: var(--muted); line-height: 1.6; }
.bottom-placeholder { height: calc(170rpx + env(safe-area-inset-bottom)); }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 20rpx 32rpx calc(20rpx + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07); }
.btn-primary { width: 100%; padding: 26rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: var(--fs-32); font-weight: 700; color: var(--white); letter-spacing: 2rpx; border: none; line-height: 1.5; }
.btn-primary { width: 100%; padding: 26rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: var(--fs-32); font-weight: 600; color: var(--white); letter-spacing: 2rpx; border: none; line-height: 1.5; }
.btn-primary::after { border: none; }
.btn-primary:active { transform: scale(0.99); }
/* 提交回执 */
.success-page { display: flex; flex-direction: column; align-items: center; padding-top: 100rpx; }
.success-mark { width: 112rpx; height: 112rpx; border-radius: 50%; background: var(--brand-soft); border: 2rpx solid var(--brand-line); display: flex; align-items: center; justify-content: center; }
.success-title { margin-top: 28rpx; font-size: 44rpx; font-weight: 700; color: var(--ink); }
.success-title { margin-top: 28rpx; font-size: 44rpx; font-weight: 600; color: var(--ink); }
.success-desc { margin-top: 16rpx; max-width: 580rpx; font-size: var(--fs-26); color: var(--muted); line-height: 1.7; text-align: center; }
.success-card { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 6rpx 26rpx; }
.success-row { display: flex; padding: 22rpx 0; border-bottom: 2rpx solid var(--line); }
.success-row:last-child { border-bottom: none; }
.success-label { width: 160rpx; flex-shrink: 0; font-size: var(--fs-26); color: var(--muted); }
.success-value { flex: 1; font-size: var(--fs-28); font-weight: 700; color: var(--ink); text-align: right; }
.success-primary { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 24rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: var(--fs-30); font-weight: 700; color: var(--white); text-align: center; }
.success-value { flex: 1; font-size: var(--fs-28); font-weight: 500; color: var(--ink); text-align: right; }
.success-primary { width: 100%; box-sizing: border-box; margin-top: 40rpx; padding: 24rpx 0; border-radius: 999rpx; background: var(--brand-strong); box-shadow: var(--shadow-cta); font-size: var(--fs-30); font-weight: 600; color: var(--white); text-align: center; }
.success-secondary { margin-top: 24rpx; padding: 16rpx 32rpx; font-size: var(--fs-28); color: var(--muted); }
-6
View File
@@ -1,7 +1,6 @@
<view class="page-bg">
<view class="container">
<view class="page-header">
<view class="header-accent"></view>
<text class="header-title">医疗陪诊顾问(高级)</text>
<text class="header-subtitle">国家开放大学培训中心 · 2026 年考位报名</text>
</view>
@@ -33,7 +32,6 @@
<!-- 培训与考试:合并三张长卡为一张规格表,左标签右取值 -->
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">培训与考试</text>
</view>
<view class="list-card spec-card">
@@ -75,7 +73,6 @@
<!-- 报考联系:紧接培训与考试,先联系老师再走流程 -->
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报考联系</text>
</view>
<view class="list-card contact-card">
@@ -93,7 +90,6 @@
<!-- 报名流程:三步收口,去掉单独一步的客服审核 -->
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报名流程</text>
</view>
<view class="list-card step-card">
@@ -113,7 +109,6 @@
<!-- 常见问题 -->
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">常见问题</text>
</view>
<view class="list-card faq-card">
@@ -130,7 +125,6 @@
<!-- 证书样本:限宽居中,避免整幅图占满一屏 -->
<view class="section">
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">证书样本</text>
</view>
<view class="list-card sample-card">
+14 -16
View File
@@ -7,7 +7,8 @@
===== 字体系统 =====
字体栈与 app.wxss 一致,不加载外部字体。
全页只保留四档字号:价格 64 / 页面标题 40 / 区块与卡片标题 32 / 正文与注释 28。
辅助信息通过颜色和字重区分,不再额外增加字号;中文只用 400、700 两档字重。
辅助信息通过颜色和字重区分,不再额外增加字号;
字重按新版规范:400 正文、500 局部强调、600 标题与主操作,价格等强调数值保留 700。
价格等数字统一 tabular-nums,避免位数变化时左右跳动。
===== 行高 =====
@@ -34,10 +35,9 @@
/* ===== 页首 ===== */
.page-header { padding: 20rpx 4rpx 4rpx; }
/* 短横色标:页面级记号(首页 .page-accent 同一支),区块级留给竖条 */
.header-accent { width: 64rpx; height: 8rpx; border-radius: 4rpx; background: var(--brand-strong); }
.header-title {
display: block; margin-top: 20rpx;
font-size: var(--t-h1); font-weight: 700; line-height: 1.35;
display: block; margin-top: 0;
font-size: var(--t-h1); font-weight: 600; line-height: 1.35;
letter-spacing: 0; color: var(--ink);
}
.header-subtitle {
@@ -52,7 +52,6 @@
.list-card {
background: var(--white);
border: 2rpx solid var(--line);
box-shadow: var(--shadow-card);
}
.intro-card {
margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 28rpx;
@@ -65,7 +64,7 @@
.plan-divider { width: 2rpx; flex-shrink: 0; background: var(--brand-line); }
.plan-tag {
display: block;
font-size: var(--t-body); font-weight: 700; line-height: 1.4;
font-size: var(--t-body); font-weight: 600; line-height: 1.4;
letter-spacing: 0; color: var(--muted);
}
.plan-price { display: flex; align-items: baseline; justify-content: center; margin-top: 18rpx; }
@@ -97,10 +96,9 @@
竖条高 = 标题字号(34rpx),与首页 / 清单页 / 记录详情同一支记号 */
.section { margin-top: 36rpx; }
.section-head { display: flex; align-items: baseline; margin-bottom: 16rpx; padding: 0 4rpx; }
.section-bar { width: 8rpx; height: 34rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; }
.section-title {
margin-left: 16rpx;
font-size: var(--t-h2); font-weight: 700; line-height: 1.4;
margin-left: 0;
font-size: var(--t-h2); font-weight: 600; line-height: 1.4;
letter-spacing: var(--tracking-title); color: var(--ink);
}
@@ -119,7 +117,7 @@
}
.spec-value {
flex: 1; min-width: 0; margin-left: 32rpx; text-align: right;
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
font-size: var(--t-body); font-weight: 500; line-height: 1.5;
letter-spacing: 0; color: var(--ink); word-break: break-word;
font-variant-numeric: tabular-nums;
}
@@ -147,7 +145,7 @@
width: 44rpx; height: 44rpx; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
background: var(--brand-soft); border: 2rpx solid var(--brand-line);
font-size: var(--t-caption); font-weight: 700; line-height: 1;
font-size: var(--t-caption); font-weight: 600; line-height: 1;
color: var(--brand-ink);
}
.step-dot-active { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); box-shadow: var(--shadow-cta); }
@@ -156,7 +154,7 @@
.step:last-child .step-body { padding-bottom: 0; }
.step-title {
display: block;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
.step-desc {
@@ -171,13 +169,13 @@
.contact-main { flex: 1; min-width: 0; padding-right: 20rpx; }
.contact-lead {
display: block;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
/* 客服入口:暖橙文字 + chevron 点击暗示,与本站其他入口同一口径 */
.contact-link { display: flex; align-items: center; margin-top: 20rpx; }
.contact-link-text {
font-size: var(--t-body); font-weight: 700; line-height: 1.5;
font-size: var(--t-body); font-weight: 600; line-height: 1.5;
letter-spacing: 0; color: var(--brand-ink);
}
.contact-qr { width: 240rpx; height: 220rpx; flex-shrink: 0; border-radius: 16rpx; }
@@ -192,12 +190,12 @@
flex-shrink: 0; width: 44rpx; height: 44rpx; margin-right: 16rpx; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: var(--brand-soft); border: 2rpx solid var(--brand-line);
font-size: var(--t-caption); font-weight: 700; line-height: 1;
font-size: var(--t-caption); font-weight: 600; line-height: 1;
color: var(--brand-ink);
}
.faq-q {
flex: 1;
font-size: var(--t-title); font-weight: 700; line-height: 1.45;
font-size: var(--t-title); font-weight: 600; line-height: 1.45;
letter-spacing: 0; color: var(--ink);
}
/* 答案缩进 60rpx:与问句正文左缘对齐(徽标 44 + 间距 16),读成一问一答 */