feat: 新增陪诊师列表与详情页,下单支持指定陪诊师

This commit is contained in:
lik
2026-11-10 15:13:59 +08:00
parent 6238f01346
commit d6d5cc732d
13 changed files with 853 additions and 3 deletions
+73
View File
@@ -0,0 +1,73 @@
<view class="page-bg">
<view class="container">
<view wx:if="{{loading}}" class="state-card">加载中...</view>
<view wx:elif="{{loadError}}" class="state-card" bindtap="onRetry">
{{ loadError }},点击重试
</view>
<block wx:elif="{{attendant}}">
<view class="profile-card">
<view class="avatar">{{ attendant.initial }}</view>
<view class="profile-info">
<view class="name-row">
<text class="attendant-name">{{ attendant.name }}</text>
<text class="order-count">已接 {{ attendant.orderCount }} 单</text>
</view>
<text class="profile-meta">{{ attendant.metaText }}</text>
<view class="tag-row" wx:if="{{attendant.specialties.length}}">
<text class="tag" wx:for="{{attendant.specialties}}" wx:for-item="tag" wx:key="*this">{{ tag }}</text>
</view>
</view>
</view>
<view class="info-card">
<view class="info-row" wx:if="{{attendant.areaText}}">
<text class="info-label">服务区域</text>
<text class="info-value">{{ attendant.areaText }}</text>
</view>
<view class="info-row" wx:if="{{attendant.languageText}}">
<text class="info-label">服务语言</text>
<text class="info-value">{{ attendant.languageText }}</text>
</view>
<view class="info-row">
<text class="info-label">资质核验</text>
<text class="info-value {{ attendant.qualificationVerified ? 'ok' : '' }}">{{ attendant.qualificationVerified ? '已核验' : '核验中' }}</text>
</view>
<view class="info-row">
<text class="info-label">健康证明</text>
<text class="info-value {{ attendant.healthCertificate.valid ? 'ok' : '' }}">
{{ attendant.healthCertificate.valid ? '有效' : '待更新' }}{{ attendant.healthCertificate.expireDate ? '(至 ' + attendant.healthCertificate.expireDate + ')' : '' }}
</text>
</view>
</view>
<view class="section-card" wx:if="{{attendant.introduction}}">
<text class="section-title">个人介绍</text>
<text class="section-text">{{ attendant.introduction }}</text>
</view>
<view class="section-card" wx:if="{{attendant.trainings.length}}">
<text class="section-title">培训与资质</text>
<view class="training-item" wx:for="{{attendant.trainings}}" wx:key="title">
<text class="training-title">{{ item.title }}</text>
<text class="training-meta">{{ item.org }}{{ item.date ? ' · ' + item.date : '' }}</text>
</view>
</view>
<view class="section-card">
<text class="section-title">服务评价</text>
<view wx:if="{{attendant.review.count}}" class="review-row">
<text class="review-score">{{ attendant.review.score ? attendant.review.score + ' 分' : '评价较少' }}</text>
<text class="review-count">共 {{ attendant.review.count }} 条评价</text>
</view>
<text wx:else class="section-text muted">暂无评价,期待您的服务反馈</text>
</view>
<view class="bottom-space"></view>
<view class="bottom-bar">
<button class="cta-btn" bindtap="onSelect">{{ selectMode ? '选择 TA' : '预约 TA' }}</button>
</view>
</block>
</view>
</view>