71 lines
2.9 KiB
Plaintext
71 lines
2.9 KiB
Plaintext
<view class="page no-tab">
|
||
<view wx:if="{{loadError}}" class="empty card detail-error">
|
||
<text>{{loadError}}</text>
|
||
<button class="secondary-btn retry-btn" bindtap="loadDetail">重试</button>
|
||
</view>
|
||
|
||
<view wx:else class="card detail-card">
|
||
<view class="detail-head">
|
||
<view class="detail-person">
|
||
<view class="avatar">{{avatarText}}</view>
|
||
<view>
|
||
<text class="customer">{{appointment.customerName}}</text>
|
||
<text class="phone">{{appointment.customerPhone}}</text>
|
||
</view>
|
||
</view>
|
||
<view class="detail-actions">
|
||
<text class="tag">{{appointment.statusText}}</text>
|
||
<button wx:if="{{canTransferAppointment && appointment.canEdit}}" class="small-action" bindtap="goTransfer">改派</button>
|
||
</view>
|
||
</view>
|
||
<view class="detail-grid">
|
||
<view>
|
||
<text class="label">项目</text>
|
||
<text class="value">{{appointment.productTitle}}</text>
|
||
</view>
|
||
<view>
|
||
<text class="label">美甲师</text>
|
||
<text class="value">{{appointment.artistName}}</text>
|
||
</view>
|
||
<view>
|
||
<text class="label">时间</text>
|
||
<text class="value">{{timeText}}</text>
|
||
</view>
|
||
<view>
|
||
<text class="label">时长</text>
|
||
<text class="value">{{appointment.durationMinutes}}分钟</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view wx:if="{{!loadError}}" class="section">
|
||
<view class="section-head">
|
||
<view class="section-title">作品图片</view>
|
||
<button class="text-btn image-action" loading="{{imageUploading}}" disabled="{{imageUploading}}" bindtap="replaceAppointmentImages">{{productImageUrls.length ? '重新上传' : '上传图片'}}</button>
|
||
</view>
|
||
<view class="card image-card">
|
||
<view wx:if="{{productImageUrls.length}}" class="detail-image-list">
|
||
<view wx:for="{{productImageUrls}}" wx:key="*this" class="detail-image-item">
|
||
<image class="detail-image" src="{{item}}" mode="aspectFill" data-index="{{index}}" bindtap="previewProductImage"></image>
|
||
<view class="detail-image-remove" data-index="{{index}}" catchtap="removeAppointmentImage">×</view>
|
||
</view>
|
||
<view wx:if="{{productImageUrls.length < 9}}" class="detail-image-add {{imageUploading ? 'disabled' : ''}}" bindtap="chooseAppointmentImages">
|
||
<text>{{imageUploading ? '...' : '+'}}</text>
|
||
</view>
|
||
</view>
|
||
<view wx:else class="detail-image-empty">暂无图片</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view wx:if="{{!loadError}}" class="section">
|
||
<view class="section-title">备注</view>
|
||
<view class="card note-card">{{appointment.remark || '暂无备注'}}</view>
|
||
</view>
|
||
|
||
<view wx:if="{{!loadError}}" class="fixed-bottom action-row">
|
||
<button class="secondary-btn" bindtap="confirm">确认</button>
|
||
<button class="primary-btn" bindtap="complete">完成</button>
|
||
<button class="danger-btn" bindtap="cancel">取消</button>
|
||
</view>
|
||
</view>
|