Files
wxapp_escort/pages/escort/attendantdetail.wxml
T

74 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>