feat: 添加预约核销功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user