小程序预约详情支持图片预览、编辑预约与完成收款拆分
自动发布开发环境 Nacos 配置 / publish (push) Successful in 34s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 11s

This commit is contained in:
2026-11-09 15:18:27 +08:00
parent 6f6625bc0d
commit 69ea01eaa4
18 changed files with 801 additions and 61 deletions
@@ -22,7 +22,10 @@
</view>
</view>
</view>
<text class="status-tag {{appointment.status === 2 ? 'completed' : appointment.status === 3 ? 'cancelled' : ''}}">{{appointment.historicalBackfill ? '历史补单 · ' : ''}}{{appointment.statusText}}</text>
<view class="head-actions">
<button wx:if="{{showEdit}}" class="edit-btn" size="mini" bindtap="goEdit">编辑</button>
<text class="status-tag {{appointment.status === 2 ? 'completed' : appointment.status === 3 ? 'cancelled' : ''}}">{{appointment.historicalBackfill ? '历史补单 · ' : ''}}{{appointment.statusText}}</text>
</view>
</view>
<view class="detail-grid">
<view class="detail-field">
@@ -49,6 +52,10 @@
<text class="label">成交金额</text>
<text class="value">{{appointment.amountText}}</text>
</view>
<view class="detail-field">
<text class="label">收款状态</text>
<text class="value">{{appointment.paymentStatusText}}</text>
</view>
</view>
<view wx:if="{{appointment.cancelReasonText}}" class="cancel-reason">
<text class="label">取消原因</text>
@@ -64,14 +71,35 @@
<view class="cover-card">
<swiper class="cover-swiper" circular="{{coverImages.length > 1}}" bindchange="onCoverChange">
<swiper-item wx:for="{{coverImages}}" wx:key="*this">
<image class="cover-image" src="{{item}}" mode="aspectFill" />
<image
class="cover-image"
src="{{item}}"
mode="aspectFill"
data-index="{{index}}"
bindtap="previewCoverImage"
binderror="onCoverImageError"
/>
</swiper-item>
</swiper>
<view class="cover-dots">
<view wx:for="{{coverImages}}" wx:key="*this" class="cover-dot {{index === coverIndex ? 'active' : ''}}"></view>
</view>
</view>
<text class="cover-hint">左滑查看更多项目图</text>
<scroll-view class="cover-thumbs" scroll-x>
<view class="cover-thumb-list">
<image
wx:for="{{coverImages}}"
wx:key="*this"
class="cover-thumb {{index === coverIndex ? 'active' : ''}}"
src="{{item}}"
mode="aspectFill"
data-index="{{index}}"
bindtap="previewCoverImage"
binderror="onCoverImageError"
/>
</view>
</scroll-view>
<text class="cover-hint">点击图片可放大查看</text>
</view>
<view wx:if="{{!loadError}}" class="section">
@@ -79,10 +107,11 @@
<view class="card note-card">{{appointment.remarkText}}</view>
</view>
<view wx:if="{{!loadError && (showTransfer || showConfirm || showComplete || showCancel)}}" class="fixed-bottom action-row">
<view wx:if="{{!loadError && (showTransfer || showConfirm || showCollect || showComplete || showCancel)}}" class="fixed-bottom action-row">
<button wx:if="{{showTransfer}}" class="primary-btn transfer-action" loading="{{updating}}" disabled="{{updating}}" bindtap="goTransfer">{{isUnassigned ? '分配美甲师' : '改派美甲师'}}</button>
<button wx:if="{{showConfirm}}" class="secondary-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="confirm">确认预约</button>
<button wx:if="{{showComplete}}" class="secondary-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="complete">{{appointment.historicalBackfill ? '完成补单' : '完成服务'}}</button>
<button wx:if="{{showCollect}}" class="secondary-btn" loading="{{paying}}" disabled="{{paying || updating}}" bindtap="collect">完成收款</button>
<button wx:if="{{showComplete}}" class="secondary-btn" loading="{{updating}}" disabled="{{updating || paying}}" bindtap="complete">{{appointment.historicalBackfill ? '完成补单' : '完成服务'}}</button>
<button wx:if="{{showCancel}}" class="danger-btn" loading="{{updating}}" disabled="{{updating}}" bindtap="cancel">取消预约</button>
</view>
<action-modal id="actionModal" />