72 lines
3.1 KiB
Plaintext
72 lines
3.1 KiB
Plaintext
<view class="page-bg">
|
|
<view class="container">
|
|
<!-- 页名已在导航栏(「陪诊师团队」/「陪诊师详情」),页内不再重复大标题;
|
|
选择模式下的「选择陪诊师」由导语第二句承担 -->
|
|
<view class="page-lead">
|
|
<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>
|