diff --git a/components/hospital-select/index.js b/components/hospital-select/index.js
index 47a9665..94c20b7 100644
--- a/components/hospital-select/index.js
+++ b/components/hospital-select/index.js
@@ -33,6 +33,9 @@ Component({
placeholder: { type: String, value: '请选择就诊医院' },
disabled: { type: Boolean, value: false },
compact: { type: Boolean, value: false },
+ // 展开面板上滚时,医院行锚定到距页面顶部的距离(rpx);
+ // 传入上方行的总高度,可让「就诊人姓名」等上一行滚到页面顶部
+ scrollAnchorOffset: { type: Number, value: 0 },
},
data: {
@@ -69,6 +72,34 @@ Component({
}
this.setData({ open: true, keyword: '', manualEntry: false })
this.refreshFiltered(this.data.options, '')
+ // 面板展开后若被页面底部遮挡,自动上滚页面,保证下拉列表完整可见
+ wx.nextTick(() => this.scrollPanelIntoView())
+ },
+
+ scrollPanelIntoView() {
+ const query = this.createSelectorQuery()
+ query.select('.hospital-row').boundingClientRect()
+ query.select('.hospital-panel').boundingClientRect()
+ query.selectViewport().scrollOffset()
+ query.exec((res) => {
+ const rowRect = res && res[0]
+ const panelRect = res && res[1]
+ const scroll = res && res[2]
+ if (!rowRect || !scroll) return
+ const rpx = wx.getSystemInfoSync().windowWidth / 750
+ const margin = 20
+ // 目标1:医院行上滚到距顶部 scrollAnchorOffset 处(默认页面顶部)
+ let delta = rowRect.top - this.data.scrollAnchorOffset * rpx
+ // 目标2:面板完整可见,两者取滚动量更大的一方
+ if (panelRect) {
+ delta = Math.max(delta, panelRect.bottom + margin - wx.getSystemInfoSync().windowHeight)
+ }
+ if (Math.abs(delta) < 1) return
+ wx.pageScrollTo({
+ scrollTop: scroll.scrollTop + delta,
+ duration: 300,
+ })
+ })
},
onClose() {
diff --git a/components/hospital-select/index.wxss b/components/hospital-select/index.wxss
index a5aba88..30e0cf7 100644
--- a/components/hospital-select/index.wxss
+++ b/components/hospital-select/index.wxss
@@ -88,8 +88,11 @@
.hospital-manual-input {
flex: 1;
min-width: 0;
+ padding: 16rpx 20rpx;
color: var(--ink, #2B2521);
font-size: var(--fs-30, 30rpx);
+ background: #E6F4EA;
+ border-radius: 12rpx;
}
.hospital-manual-confirm {
@@ -140,8 +143,11 @@
.hospital-search-input {
flex: 1;
min-width: 0;
+ padding: 16rpx 20rpx;
color: var(--ink, #2B2521);
font-size: var(--fs-30, 30rpx);
+ background: #E6F4EA;
+ border-radius: 12rpx;
}
.hospital-search-close {
diff --git a/pages/escort/itemorder.wxml b/pages/escort/itemorder.wxml
index 8f114ef..49b1e93 100644
--- a/pages/escort/itemorder.wxml
+++ b/pages/escort/itemorder.wxml
@@ -73,6 +73,7 @@
options="{{hospitalOptions}}"
placeholder="请选择就诊医院"
disabled="{{submitting}}"
+ scroll-anchor-offset="{{200}}"
bindchange="onHospitalChange"
/>
diff --git a/pages/escort/recorddetail.js b/pages/escort/recorddetail.js
index c57beb7..0217a8b 100644
--- a/pages/escort/recorddetail.js
+++ b/pages/escort/recorddetail.js
@@ -344,6 +344,13 @@ Page({
this.setData({ showAllDetails: !this.data.showAllDetails })
},
+ // 一键拨打陪诊师电话:就诊当天最高频动作,不做二次确认
+ onCallAttendant() {
+ const mobile = this.data.record.attendantMobile
+ if (!mobile) return
+ wx.makePhoneCall({ phoneNumber: mobile })
+ },
+
// ===== 微信支付 =====
onPayOrder() {
diff --git a/pages/escort/recorddetail.wxml b/pages/escort/recorddetail.wxml
index 1275272..85cddc9 100644
--- a/pages/escort/recorddetail.wxml
+++ b/pages/escort/recorddetail.wxml
@@ -183,7 +183,8 @@
+ 已取消、已完成且无人可联系时不出现——那是正常结果,不必提示。
+ 有电话时右侧给实心「拨打」钮:就诊当天最核心动作是一键呼出,不必抄号 -->
@@ -191,9 +192,19 @@
- {{record.attendantName || '已安排'}}
- 待分配
- {{record.attendantMobile}}
+ {{record.attendantName ? record.attendantName[0] : '陪'}}
+
+ {{record.attendantName || '已安排'}}
+ 待分配
+ {{record.attendantMobile}}
+
+ 拨打
diff --git a/pages/escort/recorddetail.wxss b/pages/escort/recorddetail.wxss
index 97bb727..fe20b31 100644
--- a/pages/escort/recorddetail.wxss
+++ b/pages/escort/recorddetail.wxss
@@ -188,18 +188,15 @@ page {
}
/* ===== 白卡:全页唯一的容器语言(§2.3 主规则) =====
- 2rpx --line 发丝边、中性阴影 --shadow-card;
- 卡内首尾留白由卡片自己的 padding 给。
- 本页例外(已登记):圆角取 24rpx 而非 §2.3 的 28rpx——
- 与卡内首字牌(24rpx)同档,圆角家族内部不倒挂;
- 注意全站其余九页的白卡仍是 28rpx,从订单列表切进本页时卡片会略方一点 */
+ 2rpx --line 发丝边、中性阴影 --shadow-card、28rpx 圆角,
+ 与全站其余页面的白卡同一档,跨页跳转不再「卡一下」 */
.card {
box-sizing: border-box;
margin-top: 16rpx;
padding: 20rpx 24rpx;
background: var(--white);
border: 2rpx solid var(--line);
- border-radius: 24rpx;
+ border-radius: 28rpx;
box-shadow: var(--shadow-card);
}
@@ -415,12 +412,25 @@ page {
line-height: 1.5;
}
-/* ===== 完整信息:默认折叠,展开后按资料类型分组 ===== */
+/* ===== 完整信息:默认折叠,展开后按资料类型分组 =====
+ 展开时淡入 + 轻微下落入场,与箭头旋转同步,避免内容硬切闪现 */
+@keyframes details-in {
+ from {
+ opacity: 0;
+ transform: translateY(-8rpx);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
.full-details {
/* 展开区自带顶边:费用行不画底边,取消原因也自带边,
任一块出现都只落一条分隔线 */
margin-top: 16rpx;
border-top: 2rpx solid var(--line);
+ animation: details-in 0.24s ease-out;
}
/* 首个分组不再重复画顶边:它紧接 full-details 的顶边,
@@ -500,8 +510,8 @@ page {
}
/* ===== 陪诊师卡片:平台分配后才出现 =====
- 就诊当天要联系的人单独成卡,只用「名 + 电话」两段,
- 名字 34rpx 立住身份,电话弱一档在右侧,扫一眼就能报出是谁 */
+ 就诊当天要联系的人单独成卡:首字牌立住「是谁」,名 + 电话在中间,
+ 右侧实心「拨打」是本卡唯一动作——不用抄号,也不让电话文字承担点击 */
.attendant-section {
margin-top: 32rpx;
}
@@ -513,8 +523,32 @@ page {
padding: 24rpx;
}
-.attendant-name {
+/* 首字牌:浅橙圆底 + 姓氏首字,与性别选中块同一套暖橙语言 */
+.attendant-avatar {
+ box-sizing: border-box;
flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 88rpx;
+ height: 88rpx;
+ border-radius: 50%;
+ background: var(--brand-soft);
+ border: 2rpx solid var(--brand-line);
+ color: var(--brand-ink);
+ font-size: var(--fs-34);
+ font-weight: 700;
+}
+
+.attendant-info {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 4rpx;
+}
+
+.attendant-name {
font-size: var(--fs-34);
font-weight: 700;
color: var(--ink);
@@ -522,12 +556,9 @@ page {
line-height: 1.4;
}
-/* 电话靠右对齐:等宽数字不跳字,长号码也只会压缩自己不会挤名字 */
+/* 电话弱一档在名下:信息完整但不抢「拨打」的戏 */
.attendant-phone {
- flex: 1;
- min-width: 0;
- text-align: right;
- font-size: var(--fs-30);
+ font-size: var(--fs-28);
color: var(--ink-2);
letter-spacing: 1rpx;
font-variant-numeric: tabular-nums;
@@ -535,14 +566,34 @@ page {
/* 待分配占位:比姓名低一档并退到灰字,读作「还没定」而不是「没有」 */
.attendant-empty {
- flex: 1;
- min-width: 0;
font-size: var(--fs-30);
color: var(--muted);
letter-spacing: 1rpx;
line-height: 1.5;
}
+/* 拨打:卡内唯一实心小块,暖橙 + 白字,热区 72rpx 见方 */
+.attendant-call {
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 112rpx;
+ min-height: 72rpx;
+ padding: 0 28rpx;
+ border-radius: 999rpx;
+ background: var(--brand-strong);
+ box-shadow: var(--shadow-cta);
+ color: var(--white);
+ font-size: var(--fs-28);
+ font-weight: 700;
+ letter-spacing: 2rpx;
+}
+
+.attendant-call:active {
+ opacity: 0.7;
+}
+
/* ===== 需求与服务结果:有内容才出现 ===== */
.note-section {
margin-top: 32rpx;
diff --git a/pages/escort/recordlist.json b/pages/escort/recordlist.json
index 16b16e8..b4c64ab 100644
--- a/pages/escort/recordlist.json
+++ b/pages/escort/recordlist.json
@@ -1,8 +1,7 @@
{
"navigationBarTitleText": "预约记录",
"usingComponents": {
- "t-icon": "tdesign-miniprogram/icon/icon",
- "t-loading": "tdesign-miniprogram/loading/loading"
+ "t-icon": "tdesign-miniprogram/icon/icon"
},
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark"
diff --git a/pages/escort/recordlist.wxml b/pages/escort/recordlist.wxml
index d8ab3dc..717a4eb 100644
--- a/pages/escort/recordlist.wxml
+++ b/pages/escort/recordlist.wxml
@@ -50,9 +50,8 @@
>{{item.statusText}}
-
+
-
{{item.appointmentTime}}
@@ -72,7 +71,8 @@
-
+
@@ -102,16 +102,31 @@
-
+
-
+
+
+
{{statusFilter ? '暂无进行中的预约' : '暂无陪诊记录'}}
{{statusFilter ? '已结束的预约可在「全部预约」里查看' : '您还没有预约陪诊服务'}}
+ 预约陪诊服务
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/escort/recordlist.wxss b/pages/escort/recordlist.wxss
index 6ff03ee..92bdd68 100644
--- a/pages/escort/recordlist.wxss
+++ b/pages/escort/recordlist.wxss
@@ -5,8 +5,8 @@
- 顶部筛选做成吸顶两段式分段控件(只有「进行中的 / 全部预约」两档):
白底胶囊容器(发丝边 + 紧阴影)内两格等宽,选中格 = 浅橙底 + 暖橙字,
未选中格 = --muted 字;两格带文字标签,颜色只做强化(§四.8)
- - 卡面走「白底 + 发丝边 + 紧阴影」(中性 --shadow-card,28rpx 圆角),
- 与首页、清单页同一套白面语言
+ - 卡面走「白底 + 中性紧阴影」(--shadow-card,28rpx 圆角,无描边),
+ 与首页、清单页同一套白面语言;描边只留给分段控件等小容器
- 卡内四段:类型 + 状态 → 时间 → 就诊信息 → 费用 + 支付状态;
长文本(需求、陪诊记录)交给详情页,保证每张卡一眼看完
- 形状锁定:卡 28rpx、状态胶囊 10rpx、分段控件 999rpx
@@ -115,7 +115,8 @@ page {
padding: 28rpx 28rpx 24rpx;
border-radius: 28rpx;
background: var(--white);
- border: 2rpx solid var(--line);
+ /* 去描边:白面与纸面的色差 + 阴影足够分层,边框叠阴影会让卡片显重;
+ 描边语言只留给分段控件、弹窗这类「需要收拢的小容器」 */
box-shadow: var(--shadow-card);
transition: transform 0.15s ease;
}
@@ -156,10 +157,13 @@ page {
margin-top: 14rpx;
}
+/* 时间是卡内第一眼信息:加粗 + 主文字色,弱化图标后自身立住 */
.time-text {
- margin-left: 8rpx;
- font-size: var(--fs-28);
- color: var(--ink-2);
+ font-size: var(--fs-30);
+ font-weight: 700;
+ color: var(--ink);
+ letter-spacing: 1rpx;
+ font-variant-numeric: tabular-nums;
}
.card-info {
@@ -218,10 +222,6 @@ page {
align-items: center;
}
-.record-chevron {
- margin-left: 12rpx;
-}
-
/* 支付状态胶囊:比订单状态轻一档(无底色的中性档只留字与描边) */
.pay-chip {
padding: 4rpx 14rpx;
@@ -233,7 +233,7 @@ page {
white-space: nowrap;
}
-/* ===== 空 / 错误 / 加载 / 到底 ===== */
+/* ===== 空 / 错误 / 骨架 / 到底 ===== */
.error-state {
display: flex;
flex-direction: column;
@@ -269,13 +269,26 @@ page {
display: flex;
flex-direction: column;
align-items: center;
- padding-top: 180rpx;
+ padding-top: 140rpx;
+}
+
+/* 空态图标垫浅橙圆底:灰图标孤零零挂在纸面上显得「坏了」,
+ 品牌色圆底让它读作「这里将来有内容」 */
+.empty-icon-wrap {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 160rpx;
+ height: 160rpx;
+ border-radius: 50%;
+ background: var(--brand-soft);
}
.empty-text {
- margin-top: 24rpx;
+ margin-top: 32rpx;
font-size: var(--fs-30);
- color: var(--muted);
+ color: var(--ink);
+ font-weight: 500;
}
.empty-subtext {
@@ -284,13 +297,102 @@ page {
color: var(--muted);
}
-.loading-wrap {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 60rpx;
+/* 空态主按钮:把死胡同变成预约入口,样式与保存/拨打同一套实心暖橙 */
+.empty-cta {
+ margin-top: 40rpx;
+ padding: 22rpx 72rpx;
+ border-radius: 999rpx;
+ background: var(--brand-strong);
+ box-shadow: var(--shadow-cta);
+ color: var(--white);
+ font-size: var(--fs-30);
+ font-weight: 700;
+ letter-spacing: 2rpx;
}
+.empty-cta:active {
+ opacity: 0.7;
+}
+
+/* ===== 骨架屏:与真实卡片同构,加载完成不跳版 ===== */
+.skeleton-list {
+ display: flex;
+ flex-direction: column;
+ margin-top: 12rpx;
+}
+
+.skeleton-card {
+ padding: 28rpx 28rpx 24rpx;
+ border-radius: 28rpx;
+ background: var(--white);
+ box-shadow: var(--shadow-card);
+}
+
+.skeleton-card + .skeleton-card {
+ margin-top: 24rpx;
+}
+
+.sk-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.sk-foot {
+ margin-top: 24rpx;
+ padding-top: 22rpx;
+ border-top: 2rpx solid var(--paper);
+}
+
+/* 微光扫过:底色微微呼吸即可,不做复杂扫光动画 */
+.sk-bar {
+ border-radius: 8rpx;
+ background: var(--paper);
+ animation: sk-breathe 1.2s ease-in-out infinite;
+}
+
+@keyframes sk-breathe {
+ 0%, 100% {
+ opacity: 1;
+ }
+ 50% {
+ opacity: 0.55;
+ }
+}
+
+.sk-type {
+ width: 180rpx;
+ height: 32rpx;
+}
+
+.sk-chip {
+ width: 96rpx;
+ height: 32rpx;
+ border-radius: 999rpx;
+}
+
+.sk-time {
+ width: 320rpx;
+ height: 30rpx;
+ margin-top: 24rpx;
+}
+
+.sk-line {
+ width: 60%;
+ height: 28rpx;
+ margin-top: 20rpx;
+}
+
+.sk-short {
+ width: 45%;
+}
+
+.sk-fee {
+ width: 140rpx;
+ height: 34rpx;
+}
+
+/* ===== 到底提示 ===== */
.no-more {
padding: 36rpx 0 8rpx;
text-align: center;
diff --git a/pages/health/profileedit.wxml b/pages/health/profileedit.wxml
index 5f8e817..c64c531 100644
--- a/pages/health/profileedit.wxml
+++ b/pages/health/profileedit.wxml
@@ -98,7 +98,7 @@
>
-
+
diff --git a/pages/health/profileedit.wxss b/pages/health/profileedit.wxss
index 01af1d3..fe1ecca 100644
--- a/pages/health/profileedit.wxss
+++ b/pages/health/profileedit.wxss
@@ -77,8 +77,8 @@ page {
border-bottom: none;
}
-/* 标签走 --muted、值走 --ink 700:层级靠明度与字重拉开,
- 不给可点性上色(DESIGN.md §2.2「三档只表示文字层级」) */
+/* 标签走 --muted、值走 --ink 500:层级靠明度与字重拉开,
+ 值不顶满 700——整页只有保存按钮是实心强调,表单自身保持安静 */
.form-label {
flex-shrink: 0;
margin-right: 24rpx;
@@ -92,7 +92,7 @@ page {
min-width: 0;
text-align: right;
font-size: var(--fs-30);
- font-weight: 700;
+ font-weight: 500;
color: var(--ink);
}
@@ -111,7 +111,7 @@ page {
display: block;
text-align: right;
font-size: var(--fs-30);
- font-weight: 700;
+ font-weight: 500;
color: var(--ink);
}