Files
wxapp_escort/pages/escort/attendants.wxml
T
lik 17a64f10bc style(ui): 统一页首/字号/圆角档位并收口状态色令牌
- 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」
- 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九)
- 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值
- 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底
- 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔
- 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退
- aichat:消息时间改为距上条满 5 分钟才显示
2026-11-13 17:10:55 +08:00

73 lines
3.2 KiB
Plaintext

<view class="page-bg">
<view class="container">
<!-- 页名已在导航栏(「陪诊师团队」/「陪诊师详情」),页内不再重复大标题;
选择模式下的「选择陪诊师」由导语第二句承担 -->
<view class="page-lead">
<view class="page-accent"></view>
<text class="page-lead-text">{{ selectMode ? '可按擅长与服务区域挑选,不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }}</text>
</view>
<view wx:if="{{loading && !attendants.length}}" class="state-card">加载中...</view>
<view wx:elif="{{loadError && !attendants.length}}" class="state-card" hover-class="state-card-hover" bindtap="onRetry">
{{ loadError }},点击重试
</view>
<view wx:elif="{{!attendants.length}}" class="state-card">暂无在岗陪诊师,平台会尽快为您安排</view>
<view class="attendant-list" wx:else>
<view
class="attendant-card"
wx:for="{{attendants}}"
wx:key="id"
data-id="{{item.id}}"
bindtap="goToDetail"
>
<view class="card-main">
<view class="avatar">{{ item.initial }}</view>
<view class="card-info">
<view class="name-row">
<text class="attendant-name">{{ item.name }}</text>
<text class="order-count">已接 {{ item.orderCount }} 单</text>
</view>
<view class="attendant-meta">
<text class="meta-item" wx:if="{{item.sexText}}">{{ item.sexText }}</text>
<view class="meta-sep" wx:if="{{item.sexText}}"></view>
<text class="meta-item">从业 {{ item.workYears }} 年</text>
<view class="meta-sep" wx:if="{{item.areaText}}"></view>
<text class="meta-item" wx:if="{{item.areaText}}">{{ item.areaText }}</text>
</view>
<view class="tag-row" wx:if="{{item.specialties.length}}">
<text class="tag" wx:for="{{item.specialties}}" wx:for-item="tag" wx:key="*this">{{ tag }}</text>
</view>
</view>
</view>
<view class="card-footer">
<view class="badges">
<text class="badge {{ item.qualificationVerified ? 'ok' : '' }}">{{ item.qualificationVerified ? '资质已核验' : '资质待核验' }}</text>
<text class="badge {{ item.healthCertificate.valid ? 'ok' : '' }}">{{ item.healthCertificate.valid ? '健康证有效' : '健康证待更新' }}</text>
</view>
<view
wx:if="{{selectMode}}"
class="select-btn"
data-item="{{item}}"
catchtap="onSelect"
>选择 TA</view>
<view wx:else class="detail-link">
<text class="detail-link-text">查看详情</text>
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
</view>
</view>
</view>
<view wx:if="{{loading}}" class="list-tip">加载更多...</view>
<view wx:elif="{{!hasMore && attendants.length > 3}}" class="list-tip">已经到底了</view>
</view>
<view wx:if="{{selectMode && attendants.length}}" class="skip-entry" bindtap="onSkip">
不指定,平台安排
</view>
</view>
</view>