feat: 添加预约核销功能

This commit is contained in:
ws
2026-04-29 18:24:34 +08:00
parent f1d1c9b460
commit 98f5c7bc49
7 changed files with 125 additions and 77 deletions
+12 -7
View File
@@ -66,16 +66,21 @@
</view>
</view>
<!-- 核销状态与操作 -->
<view class="detail-section">
<!-- 核销状态 -->
<view class="check-section">
<view class="detail-row">
<text class="detail-label">核销状态</text>
<text class="detail-value {{record.checkStatus === '1' ? 'text-success' : 'text-warning'}}">{{record.checkStatusText}}</text>
<text class="check-status {{record.isChecked ? 'checked' : 'unchecked'}}">{{record.checkStatusText}}</text>
</view>
<view class="verify-btn-wrap" wx:if="{{record.checkStatus === '0'}}">
<view class="verify-btn {{verifying ? 'verify-btn-disabled' : ''}}" bindtap="onVerify">
{{verifying ? '核销中...' : '确认核销'}}
</view>
<button
wx:if="{{!record.isChecked && record.status === 'approved'}}"
class="verify-btn"
bindtap="handleVerify"
loading="{{verifying}}"
disabled="{{verifying}}"
>核销到访</button>
<view wx:elif="{{record.isChecked}}" class="verified-tip">
<text>该预约记录已核销</text>
</view>
</view>
</view>