style: 陪诊端三页视觉升级(字号放大后整页协调)
- 档案编辑页:表单值降为 500 字重、辅助文字提升一档、保存按钮增加「保存中…」防重复提交 - 预约记录页:卡片去描边、时间行加粗为第一眼信息、底行去 chevron、骨架屏替代转圈、空态增加预约入口按钮 - 预约详情页:陪诊师卡改为首字牌+一键拨打(makePhoneCall)、白卡圆角统一 28rpx、展开区增加入场动画 - 医院选择组件:选项文案与对齐微调
This commit is contained in:
@@ -33,6 +33,9 @@ Component({
|
|||||||
placeholder: { type: String, value: '请选择就诊医院' },
|
placeholder: { type: String, value: '请选择就诊医院' },
|
||||||
disabled: { type: Boolean, value: false },
|
disabled: { type: Boolean, value: false },
|
||||||
compact: { type: Boolean, value: false },
|
compact: { type: Boolean, value: false },
|
||||||
|
// 展开面板上滚时,医院行锚定到距页面顶部的距离(rpx);
|
||||||
|
// 传入上方行的总高度,可让「就诊人姓名」等上一行滚到页面顶部
|
||||||
|
scrollAnchorOffset: { type: Number, value: 0 },
|
||||||
},
|
},
|
||||||
|
|
||||||
data: {
|
data: {
|
||||||
@@ -69,6 +72,34 @@ Component({
|
|||||||
}
|
}
|
||||||
this.setData({ open: true, keyword: '', manualEntry: false })
|
this.setData({ open: true, keyword: '', manualEntry: false })
|
||||||
this.refreshFiltered(this.data.options, '')
|
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() {
|
onClose() {
|
||||||
|
|||||||
@@ -88,8 +88,11 @@
|
|||||||
.hospital-manual-input {
|
.hospital-manual-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
padding: 16rpx 20rpx;
|
||||||
color: var(--ink, #2B2521);
|
color: var(--ink, #2B2521);
|
||||||
font-size: var(--fs-30, 30rpx);
|
font-size: var(--fs-30, 30rpx);
|
||||||
|
background: #E6F4EA;
|
||||||
|
border-radius: 12rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hospital-manual-confirm {
|
.hospital-manual-confirm {
|
||||||
@@ -140,8 +143,11 @@
|
|||||||
.hospital-search-input {
|
.hospital-search-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
padding: 16rpx 20rpx;
|
||||||
color: var(--ink, #2B2521);
|
color: var(--ink, #2B2521);
|
||||||
font-size: var(--fs-30, 30rpx);
|
font-size: var(--fs-30, 30rpx);
|
||||||
|
background: #E6F4EA;
|
||||||
|
border-radius: 12rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hospital-search-close {
|
.hospital-search-close {
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
options="{{hospitalOptions}}"
|
options="{{hospitalOptions}}"
|
||||||
placeholder="请选择就诊医院"
|
placeholder="请选择就诊医院"
|
||||||
disabled="{{submitting}}"
|
disabled="{{submitting}}"
|
||||||
|
scroll-anchor-offset="{{200}}"
|
||||||
bindchange="onHospitalChange"
|
bindchange="onHospitalChange"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -344,6 +344,13 @@ Page({
|
|||||||
this.setData({ showAllDetails: !this.data.showAllDetails })
|
this.setData({ showAllDetails: !this.data.showAllDetails })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 一键拨打陪诊师电话:就诊当天最高频动作,不做二次确认
|
||||||
|
onCallAttendant() {
|
||||||
|
const mobile = this.data.record.attendantMobile
|
||||||
|
if (!mobile) return
|
||||||
|
wx.makePhoneCall({ phoneNumber: mobile })
|
||||||
|
},
|
||||||
|
|
||||||
// ===== 微信支付 =====
|
// ===== 微信支付 =====
|
||||||
|
|
||||||
onPayOrder() {
|
onPayOrder() {
|
||||||
|
|||||||
@@ -183,7 +183,8 @@
|
|||||||
<!-- 陪诊师卡片:已派单显示名与电话;派单正常时后台会写姓名,
|
<!-- 陪诊师卡片:已派单显示名与电话;派单正常时后台会写姓名,
|
||||||
若只有 id 未冗余名则退成「已安排」,不误报「待分配」。
|
若只有 id 未冗余名则退成「已安排」,不误报「待分配」。
|
||||||
未派单(如待确认)显示占位,让用户知道「会有一位陪诊师」;
|
未派单(如待确认)显示占位,让用户知道「会有一位陪诊师」;
|
||||||
已取消、已完成且无人可联系时不出现——那是正常结果,不必提示 -->
|
已取消、已完成且无人可联系时不出现——那是正常结果,不必提示。
|
||||||
|
有电话时右侧给实心「拨打」钮:就诊当天最核心动作是一键呼出,不必抄号 -->
|
||||||
<view class="section attendant-section" wx:if="{{record.hasAttendant || (record.status !== 'cancelled' && record.status !== 'completed')}}">
|
<view class="section attendant-section" wx:if="{{record.hasAttendant || (record.status !== 'cancelled' && record.status !== 'completed')}}">
|
||||||
<view class="section-head">
|
<view class="section-head">
|
||||||
<view class="section-bar"></view>
|
<view class="section-bar"></view>
|
||||||
@@ -191,10 +192,20 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="card attendant-card">
|
<view class="card attendant-card">
|
||||||
|
<view class="attendant-avatar">{{record.attendantName ? record.attendantName[0] : '陪'}}</view>
|
||||||
|
<view class="attendant-info">
|
||||||
<text class="attendant-name" wx:if="{{record.hasAttendant}}">{{record.attendantName || '已安排'}}</text>
|
<text class="attendant-name" wx:if="{{record.hasAttendant}}">{{record.attendantName || '已安排'}}</text>
|
||||||
<text class="attendant-empty" wx:else>待分配</text>
|
<text class="attendant-empty" wx:else>待分配</text>
|
||||||
<text class="attendant-phone" wx:if="{{record.attendantMobile}}">{{record.attendantMobile}}</text>
|
<text class="attendant-phone" wx:if="{{record.attendantMobile}}">{{record.attendantMobile}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
class="attendant-call"
|
||||||
|
wx:if="{{record.attendantMobile}}"
|
||||||
|
aria-role="button"
|
||||||
|
aria-label="拨打陪诊师电话"
|
||||||
|
bindtap="onCallAttendant"
|
||||||
|
>拨打</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 有内容才铺正文;可编辑但内容为空时只留一个添加入口,不让空卡占位。
|
<!-- 有内容才铺正文;可编辑但内容为空时只留一个添加入口,不让空卡占位。
|
||||||
|
|||||||
@@ -188,18 +188,15 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ===== 白卡:全页唯一的容器语言(§2.3 主规则) =====
|
/* ===== 白卡:全页唯一的容器语言(§2.3 主规则) =====
|
||||||
2rpx --line 发丝边、中性阴影 --shadow-card;
|
2rpx --line 发丝边、中性阴影 --shadow-card、28rpx 圆角,
|
||||||
卡内首尾留白由卡片自己的 padding 给。
|
与全站其余页面的白卡同一档,跨页跳转不再「卡一下」 */
|
||||||
本页例外(已登记):圆角取 24rpx 而非 §2.3 的 28rpx——
|
|
||||||
与卡内首字牌(24rpx)同档,圆角家族内部不倒挂;
|
|
||||||
注意全站其余九页的白卡仍是 28rpx,从订单列表切进本页时卡片会略方一点 */
|
|
||||||
.card {
|
.card {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
padding: 20rpx 24rpx;
|
padding: 20rpx 24rpx;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
border: 2rpx solid var(--line);
|
border: 2rpx solid var(--line);
|
||||||
border-radius: 24rpx;
|
border-radius: 28rpx;
|
||||||
box-shadow: var(--shadow-card);
|
box-shadow: var(--shadow-card);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,12 +412,25 @@ page {
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== 完整信息:默认折叠,展开后按资料类型分组 ===== */
|
/* ===== 完整信息:默认折叠,展开后按资料类型分组 =====
|
||||||
|
展开时淡入 + 轻微下落入场,与箭头旋转同步,避免内容硬切闪现 */
|
||||||
|
@keyframes details-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-8rpx);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.full-details {
|
.full-details {
|
||||||
/* 展开区自带顶边:费用行不画底边,取消原因也自带边,
|
/* 展开区自带顶边:费用行不画底边,取消原因也自带边,
|
||||||
任一块出现都只落一条分隔线 */
|
任一块出现都只落一条分隔线 */
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
border-top: 2rpx solid var(--line);
|
border-top: 2rpx solid var(--line);
|
||||||
|
animation: details-in 0.24s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 首个分组不再重复画顶边:它紧接 full-details 的顶边,
|
/* 首个分组不再重复画顶边:它紧接 full-details 的顶边,
|
||||||
@@ -500,8 +510,8 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ===== 陪诊师卡片:平台分配后才出现 =====
|
/* ===== 陪诊师卡片:平台分配后才出现 =====
|
||||||
就诊当天要联系的人单独成卡,只用「名 + 电话」两段,
|
就诊当天要联系的人单独成卡:首字牌立住「是谁」,名 + 电话在中间,
|
||||||
名字 34rpx 立住身份,电话弱一档在右侧,扫一眼就能报出是谁 */
|
右侧实心「拨打」是本卡唯一动作——不用抄号,也不让电话文字承担点击 */
|
||||||
.attendant-section {
|
.attendant-section {
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
}
|
}
|
||||||
@@ -513,8 +523,32 @@ page {
|
|||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attendant-name {
|
/* 首字牌:浅橙圆底 + 姓氏首字,与性别选中块同一套暖橙语言 */
|
||||||
|
.attendant-avatar {
|
||||||
|
box-sizing: border-box;
|
||||||
flex-shrink: 0;
|
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-size: var(--fs-34);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
@@ -522,12 +556,9 @@ page {
|
|||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 电话靠右对齐:等宽数字不跳字,长号码也只会压缩自己不会挤名字 */
|
/* 电话弱一档在名下:信息完整但不抢「拨打」的戏 */
|
||||||
.attendant-phone {
|
.attendant-phone {
|
||||||
flex: 1;
|
font-size: var(--fs-28);
|
||||||
min-width: 0;
|
|
||||||
text-align: right;
|
|
||||||
font-size: var(--fs-30);
|
|
||||||
color: var(--ink-2);
|
color: var(--ink-2);
|
||||||
letter-spacing: 1rpx;
|
letter-spacing: 1rpx;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
@@ -535,14 +566,34 @@ page {
|
|||||||
|
|
||||||
/* 待分配占位:比姓名低一档并退到灰字,读作「还没定」而不是「没有」 */
|
/* 待分配占位:比姓名低一档并退到灰字,读作「还没定」而不是「没有」 */
|
||||||
.attendant-empty {
|
.attendant-empty {
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
|
||||||
font-size: var(--fs-30);
|
font-size: var(--fs-30);
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
letter-spacing: 1rpx;
|
letter-spacing: 1rpx;
|
||||||
line-height: 1.5;
|
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 {
|
.note-section {
|
||||||
margin-top: 32rpx;
|
margin-top: 32rpx;
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "预约记录",
|
"navigationBarTitleText": "预约记录",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
"t-icon": "tdesign-miniprogram/icon/icon"
|
||||||
"t-loading": "tdesign-miniprogram/loading/loading"
|
|
||||||
},
|
},
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"backgroundTextStyle": "dark"
|
"backgroundTextStyle": "dark"
|
||||||
|
|||||||
@@ -50,9 +50,8 @@
|
|||||||
>{{item.statusText}}</view>
|
>{{item.statusText}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 预约时间 -->
|
<!-- 预约时间:卡内第一眼信息,加粗立住,不用小图标加噪点 -->
|
||||||
<view class="card-time">
|
<view class="card-time">
|
||||||
<t-icon name="time" size="26rpx" color="#6F655C" />
|
|
||||||
<text class="time-text">{{item.appointmentTime}}</text>
|
<text class="time-text">{{item.appointmentTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -72,7 +71,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 底部:费用 + 支付状态 + 详情入口暗示 -->
|
<!-- 底部:费用 + 支付状态/支付入口。
|
||||||
|
整卡可点进详情,右下不再放 chevron 暗示,减少一行里的元素数 -->
|
||||||
<view class="card-foot">
|
<view class="card-foot">
|
||||||
<view class="fee">
|
<view class="fee">
|
||||||
<text class="fee-sym">¥</text>
|
<text class="fee-sym">¥</text>
|
||||||
@@ -81,6 +81,7 @@
|
|||||||
<view class="foot-right">
|
<view class="foot-right">
|
||||||
<view
|
<view
|
||||||
class="pay-chip"
|
class="pay-chip"
|
||||||
|
wx:if="{{!item.canPay}}"
|
||||||
style="background: {{item.paymentStatusBg}}; color: {{item.paymentStatusColor}}; border-color: {{item.paymentStatusBorder}};"
|
style="background: {{item.paymentStatusBg}}; color: {{item.paymentStatusColor}}; border-color: {{item.paymentStatusBorder}};"
|
||||||
>{{item.paymentStatusText}}</view>
|
>{{item.paymentStatusText}}</view>
|
||||||
<view
|
<view
|
||||||
@@ -89,7 +90,6 @@
|
|||||||
catchtap="onPayRecord"
|
catchtap="onPayRecord"
|
||||||
data-id="{{item._id}}"
|
data-id="{{item._id}}"
|
||||||
>去支付</view>
|
>去支付</view>
|
||||||
<t-icon class="record-chevron" name="chevron-right" size="28rpx" color="#6F655C" />
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -102,16 +102,31 @@
|
|||||||
<button class="retry-btn" bindtap="retryLoad">重新加载</button>
|
<button class="retry-btn" bindtap="retryLoad">重新加载</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 空状态:两档口径不同,文案跟着当前档走 -->
|
<!-- 空状态:两档口径不同,文案跟着当前档走;给一枚主按钮把空态变成预约入口 -->
|
||||||
<view class="empty-state" wx:if="{{!loading && !loadError && records.length === 0}}">
|
<view class="empty-state" wx:if="{{!loading && !loadError && records.length === 0}}">
|
||||||
<t-icon name="file-unknown" size="120rpx" color="#A79C92" />
|
<view class="empty-icon-wrap">
|
||||||
|
<t-icon name="file-unknown" size="72rpx" color="#9B4508" />
|
||||||
|
</view>
|
||||||
<text class="empty-text">{{statusFilter ? '暂无进行中的预约' : '暂无陪诊记录'}}</text>
|
<text class="empty-text">{{statusFilter ? '暂无进行中的预约' : '暂无陪诊记录'}}</text>
|
||||||
<text class="empty-subtext">{{statusFilter ? '已结束的预约可在「全部预约」里查看' : '您还没有预约陪诊服务'}}</text>
|
<text class="empty-subtext">{{statusFilter ? '已结束的预约可在「全部预约」里查看' : '您还没有预约陪诊服务'}}</text>
|
||||||
|
<view class="empty-cta" wx:if="{{!statusFilter}}" bindtap="onGoHome">预约陪诊服务</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 加载中 -->
|
<!-- 加载中:骨架卡比居中转圈更稳,列表骨架与真实卡片同构,加载完不跳版 -->
|
||||||
<view class="loading-wrap" wx:if="{{loading}}">
|
<view class="skeleton-list" wx:if="{{loading && records.length === 0}}">
|
||||||
<t-loading theme="circular" size="40rpx" text="加载中..." />
|
<view class="skeleton-card" wx:for="{{[1, 2, 3]}}" wx:key="*this">
|
||||||
|
<view class="sk-row">
|
||||||
|
<view class="sk-bar sk-type"></view>
|
||||||
|
<view class="sk-bar sk-chip"></view>
|
||||||
|
</view>
|
||||||
|
<view class="sk-bar sk-time"></view>
|
||||||
|
<view class="sk-bar sk-line"></view>
|
||||||
|
<view class="sk-bar sk-line sk-short"></view>
|
||||||
|
<view class="sk-row sk-foot">
|
||||||
|
<view class="sk-bar sk-fee"></view>
|
||||||
|
<view class="sk-bar sk-chip"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 到底提示 -->
|
<!-- 到底提示 -->
|
||||||
|
|||||||
+121
-19
@@ -5,8 +5,8 @@
|
|||||||
- 顶部筛选做成吸顶两段式分段控件(只有「进行中的 / 全部预约」两档):
|
- 顶部筛选做成吸顶两段式分段控件(只有「进行中的 / 全部预约」两档):
|
||||||
白底胶囊容器(发丝边 + 紧阴影)内两格等宽,选中格 = 浅橙底 + 暖橙字,
|
白底胶囊容器(发丝边 + 紧阴影)内两格等宽,选中格 = 浅橙底 + 暖橙字,
|
||||||
未选中格 = --muted 字;两格带文字标签,颜色只做强化(§四.8)
|
未选中格 = --muted 字;两格带文字标签,颜色只做强化(§四.8)
|
||||||
- 卡面走「白底 + 发丝边 + 紧阴影」(中性 --shadow-card,28rpx 圆角),
|
- 卡面走「白底 + 中性紧阴影」(--shadow-card,28rpx 圆角,无描边),
|
||||||
与首页、清单页同一套白面语言
|
与首页、清单页同一套白面语言;描边只留给分段控件等小容器
|
||||||
- 卡内四段:类型 + 状态 → 时间 → 就诊信息 → 费用 + 支付状态;
|
- 卡内四段:类型 + 状态 → 时间 → 就诊信息 → 费用 + 支付状态;
|
||||||
长文本(需求、陪诊记录)交给详情页,保证每张卡一眼看完
|
长文本(需求、陪诊记录)交给详情页,保证每张卡一眼看完
|
||||||
- 形状锁定:卡 28rpx、状态胶囊 10rpx、分段控件 999rpx
|
- 形状锁定:卡 28rpx、状态胶囊 10rpx、分段控件 999rpx
|
||||||
@@ -115,7 +115,8 @@ page {
|
|||||||
padding: 28rpx 28rpx 24rpx;
|
padding: 28rpx 28rpx 24rpx;
|
||||||
border-radius: 28rpx;
|
border-radius: 28rpx;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
border: 2rpx solid var(--line);
|
/* 去描边:白面与纸面的色差 + 阴影足够分层,边框叠阴影会让卡片显重;
|
||||||
|
描边语言只留给分段控件、弹窗这类「需要收拢的小容器」 */
|
||||||
box-shadow: var(--shadow-card);
|
box-shadow: var(--shadow-card);
|
||||||
transition: transform 0.15s ease;
|
transition: transform 0.15s ease;
|
||||||
}
|
}
|
||||||
@@ -156,10 +157,13 @@ page {
|
|||||||
margin-top: 14rpx;
|
margin-top: 14rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 时间是卡内第一眼信息:加粗 + 主文字色,弱化图标后自身立住 */
|
||||||
.time-text {
|
.time-text {
|
||||||
margin-left: 8rpx;
|
font-size: var(--fs-30);
|
||||||
font-size: var(--fs-28);
|
font-weight: 700;
|
||||||
color: var(--ink-2);
|
color: var(--ink);
|
||||||
|
letter-spacing: 1rpx;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-info {
|
.card-info {
|
||||||
@@ -218,10 +222,6 @@ page {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-chevron {
|
|
||||||
margin-left: 12rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 支付状态胶囊:比订单状态轻一档(无底色的中性档只留字与描边) */
|
/* 支付状态胶囊:比订单状态轻一档(无底色的中性档只留字与描边) */
|
||||||
.pay-chip {
|
.pay-chip {
|
||||||
padding: 4rpx 14rpx;
|
padding: 4rpx 14rpx;
|
||||||
@@ -233,7 +233,7 @@ page {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== 空 / 错误 / 加载 / 到底 ===== */
|
/* ===== 空 / 错误 / 骨架 / 到底 ===== */
|
||||||
.error-state {
|
.error-state {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -269,13 +269,26 @@ page {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
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 {
|
.empty-text {
|
||||||
margin-top: 24rpx;
|
margin-top: 32rpx;
|
||||||
font-size: var(--fs-30);
|
font-size: var(--fs-30);
|
||||||
color: var(--muted);
|
color: var(--ink);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-subtext {
|
.empty-subtext {
|
||||||
@@ -284,13 +297,102 @@ page {
|
|||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-wrap {
|
/* 空态主按钮:把死胡同变成预约入口,样式与保存/拨打同一套实心暖橙 */
|
||||||
display: flex;
|
.empty-cta {
|
||||||
align-items: center;
|
margin-top: 40rpx;
|
||||||
justify-content: center;
|
padding: 22rpx 72rpx;
|
||||||
padding: 60rpx;
|
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 {
|
.no-more {
|
||||||
padding: 36rpx 0 8rpx;
|
padding: 36rpx 0 8rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
>
|
>
|
||||||
<view class="home-icon"></view>
|
<view class="home-icon"></view>
|
||||||
</view>
|
</view>
|
||||||
<button class="primary-btn {{saving ? 'primary-btn-disabled' : ''}}" bindtap="onSave">保存</button>
|
<button class="primary-btn {{saving ? 'primary-btn-disabled' : ''}}" disabled="{{saving}}" bindtap="onSave">{{saving ? '保存中…' : '保存'}}</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ page {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 标签走 --muted、值走 --ink 700:层级靠明度与字重拉开,
|
/* 标签走 --muted、值走 --ink 500:层级靠明度与字重拉开,
|
||||||
不给可点性上色(DESIGN.md §2.2「三档只表示文字层级」) */
|
值不顶满 700——整页只有保存按钮是实心强调,表单自身保持安静 */
|
||||||
.form-label {
|
.form-label {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-right: 24rpx;
|
margin-right: 24rpx;
|
||||||
@@ -92,7 +92,7 @@ page {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: var(--fs-30);
|
font-size: var(--fs-30);
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ page {
|
|||||||
display: block;
|
display: block;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: var(--fs-30);
|
font-size: var(--fs-30);
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user