style(ui): 统一页首/字号/圆角档位并收口状态色令牌

- 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」
- 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九)
- 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值
- 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底
- 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔
- 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退
- aichat:消息时间改为距上条满 5 分钟才显示
This commit is contained in:
lik
2026-11-13 17:10:55 +08:00
parent 79464ce12a
commit 17a64f10bc
38 changed files with 472 additions and 277 deletions
+4 -4
View File
@@ -35,12 +35,12 @@ page { background-color: var(--paper); }
.form-error { display: block; margin-top: 8rpx; font-size: var(--fs-24); color: var(--danger); line-height: 1.5; text-align: right; }
.section-head { display: flex; align-items: center; margin-top: 40rpx; }
.section-bar { width: 8rpx; height: 36rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; }
.section-title { margin-left: 16rpx; font-size: 36rpx; font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: 1rpx; }
.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; }
.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; }
.upload-box { height: 300rpx; border-radius: 24rpx; border: 2rpx dashed var(--brand-strong); background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.upload-box { height: 300rpx; border-radius: 28rpx; border: 2rpx dashed var(--brand-strong); background: var(--brand-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.upload-box:active { transform: scale(0.99); }
.upload-box.has-image { border-style: solid; border-color: var(--line); background: var(--white); }
.upload-image { width: 100%; height: 100%; }
@@ -60,7 +60,7 @@ page { background-color: var(--paper); }
/* 提交回执 */
.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: 42rpx; font-weight: 700; color: var(--ink); }
.success-title { margin-top: 28rpx; font-size: 44rpx; font-weight: 700; 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); }
+4 -6
View File
@@ -35,7 +35,6 @@
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">培训与考试</text>
<text class="section-en">PROGRAM</text>
</view>
<view class="list-card spec-card">
<view class="spec-row">
@@ -64,7 +63,10 @@
</view>
<view class="spec-row spec-row-link" bindtap="copyCertificateUrl" aria-role="button" aria-label="复制证书查询网址">
<text class="spec-label">证书查询</text>
<text class="spec-value spec-link">国开享学吧</text>
<view class="spec-value spec-link-wrap">
<text class="spec-link">国开享学吧</text>
<text class="spec-action">复制</text>
</view>
</view>
<text class="card-note">具体考位与证书安排以客服和培训单位通知为准。</text>
</view>
@@ -75,7 +77,6 @@
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报考联系</text>
<text class="section-en">CONTACT</text>
</view>
<view class="list-card contact-card">
<view class="contact-main">
@@ -94,7 +95,6 @@
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">报名流程</text>
<text class="section-en">PROCESS</text>
</view>
<view class="list-card step-card">
<view class="step" wx:for="{{steps}}" wx:key="title">
@@ -115,7 +115,6 @@
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">常见问题</text>
<text class="section-en">FAQ</text>
</view>
<view class="list-card faq-card">
<view class="faq-item" wx:for="{{faqs}}" wx:key="q">
@@ -133,7 +132,6 @@
<view class="section-head">
<view class="section-bar"></view>
<text class="section-title">证书样本</text>
<text class="section-en">SAMPLE</text>
</view>
<view class="list-card sample-card">
<view class="sample-frame">
+12 -16
View File
@@ -16,22 +16,20 @@
.page-bg {
min-height: 100vh;
background: var(--paper);
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
-webkit-font-smoothing: antialiased;
/* 四档字号:语义令牌可以复用,但不增加新的字体尺寸 */
--t-display: 64rpx;
--t-h1: 40rpx;
--t-h1: 44rpx; /* 页面主标题:全站统一 44rpx */
--t-title: var(--fs-32);
--t-body: var(--fs-28);
--t-h2: var(--t-title);
--t-h2: var(--fs-34); /* 区块标题:全站统一 34rpx */
--t-caption: var(--t-body);
--tracking-tight: -1rpx;
--tracking-title: 1rpx;
--tracking-label: 2rpx;
}
.container { padding: 28rpx 28rpx calc(48rpx + env(safe-area-inset-bottom)); }
.container { padding: 28rpx 32rpx calc(48rpx + env(safe-area-inset-bottom)); }
/* ===== 页首 ===== */
.page-header { padding: 20rpx 4rpx 4rpx; }
@@ -57,7 +55,7 @@
box-shadow: var(--shadow-card);
}
.intro-card {
margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 24rpx;
margin-top: 28rpx; padding: 32rpx 16rpx; border-radius: 28rpx;
background: var(--brand-soft); border-color: var(--brand-line);
}
@@ -96,24 +94,18 @@
}
/* ===== 区块标题 =====
竖条高 = 标题字号(32rpx),与首页 / itemlist 同一支记号;
右侧英文小标只做节奏与秩序感,宽字距 + muted,不与中文标题争层级 */
竖条高 = 标题字号(34rpx),与首页 / 清单页 / 记录详情同一支记号 */
.section { margin-top: 36rpx; }
.section-head { display: flex; align-items: baseline; margin-bottom: 16rpx; padding: 0 4rpx; }
.section-bar { width: 8rpx; height: 32rpx; border-radius: 4rpx; background: var(--brand-strong); flex-shrink: 0; align-self: center; }
.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;
letter-spacing: var(--tracking-title); color: var(--ink);
}
.section-en {
margin-left: 14rpx;
font-size: var(--t-caption); font-weight: 700; line-height: 1.4;
letter-spacing: var(--tracking-label); color: var(--muted);
}
/* ===== 白卡 ===== */
.list-card { padding: 4rpx 24rpx; border-radius: 24rpx; }
.list-card { padding: 4rpx 24rpx; border-radius: 28rpx; }
/* ===== 培训与考试:规格表 =====
左标签 muted 小字、右取值 ink 粗体,一行一条,横向扫读最快 */
@@ -134,7 +126,11 @@
.spec-row-link { transition: background-color 0.15s ease; }
.spec-row-link:active { background: var(--brand-soft); }
.spec-link { color: var(--brand-ink); }
.spec-link::after { content: ' ↗'; font-size: var(--t-caption); }
/* 证书查询是可复制的动作行:动作词走 muted 小字(与 contact 页「拨打 / 复制」同一口径),
不再用字符箭头 ↗ 粘在网址后面 */
.spec-link-wrap { display: flex; align-items: baseline; justify-content: flex-end; gap: 12rpx; }
.spec-action { font-size: var(--t-caption); font-weight: 400; color: var(--muted); }
/* 卡片尾部说明:--muted 注释字号,比正文轻一档,是"以…为准"的免责声明 */
.card-note {