63 lines
2.7 KiB
Plaintext
63 lines
2.7 KiB
Plaintext
<view class="page-bg">
|
||
<view class="container">
|
||
<view class="page-header">
|
||
<view class="header-accent"></view>
|
||
<text class="header-title">{{ selectMode ? '选择陪诊师' : '陪诊师团队' }}</text>
|
||
<text class="header-subtitle">{{ selectMode ? '可按擅长与服务区域挑选;不选则由平台安排' : '仅展示在岗且已转正的陪诊师' }}</text>
|
||
</view>
|
||
|
||
<view wx:if="{{loading && !attendants.length}}" class="state-card">加载中...</view>
|
||
|
||
<view wx:elif="{{loadError && !attendants.length}}" class="state-card" 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>
|
||
<text class="attendant-meta">{{ item.sexText ? item.sexText + ' · ' : '' }}从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}</text>
|
||
<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>
|
||
<text wx:else class="detail-link">查看详情 ›</text>
|
||
</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>
|