<t-navbar title="核销记录" left-arrow />
<scroll-view class="page-container" scroll-y>
  <!-- 预约成功卡片 -->
    <view class="appointment-success-card" wx:if="{{showAppointmentInfo}}">
      <!-- 标题 -->
      <view class="appointment-success-title">预约成功</view>
      
      <!-- 二维码 -->
      <view class="qr-code-container" wx:if="{{qrCodeUrl}}">
        <image 
          class="qr-code-image" 
          src="{{qrCodeUrl}}" 
          mode="aspectFit"
        />
      </view>
      
      <!-- 预约详情 -->
      <view class="appointment-info">
        <view class="info-item" wx:if="{{appointmentInfo.arrangeTime}}">
          <text class="info-label">开始服务时间:</text>
          <text class="info-value">{{appointmentInfo.arrangeTime}}</text>
        </view>
        <view class="info-item" wx:if="{{appointmentInfo.arrangeDuration}}">
          <text class="info-label">服务时长:</text>
          <text class="info-value">{{appointmentInfo.arrangeDuration}}分钟</text>
        </view>
        <view class="info-item" wx:if="{{appointmentInfo.conditioningProgramSupplierName}}">
          <text class="info-label">服务机构:</text>
          <text class="info-value" wx:if="{{appointmentInfo.pieTime}}">{{appointmentInfo.conditioningProgramSupplierName}}</text>
          <text class="info-value" wx:else>待分配</text>
        </view>
        <view class="info-item" wx:if="{{appointmentInfo.cpSupplierDetailAddress}}">
          <text class="info-label">服务地址:</text>
          <text class="info-value">{{appointmentInfo.cpSupplierDetailAddress}}</text>
        </view>
        <view class="info-item" wx:if="{{appointmentInfo.cpSupplierPhone}}">
          <text class="info-label">联系电话:</text>
          <text class="info-value">{{appointmentInfo.cpSupplierPhone}}</text>
        </view>
      </view>
      
      <!-- 提示信息 -->
      <view class="appointment-tip">
        <text class="tip-text">为了保证您的服务体验,请提前5分钟到达门店</text>
      </view>
    </view>
<view class="verify-record-page" wx:if="{{recordList.length>0}}">
  <block wx:for="{{recordList}}" wx:key="id">
    <view class="record-card">
      <view class="record-header">
        <text class="record-index">{{index + 1}}、</text>
        <text class="record-time">{{item.operateTime}}</text>
      </view>
      <view class="record-row" wx:if="{{item.operateBy}}">
        <text class="label">操作人：</text>
        <text style="color:black">{{item.operateBy}}</text>
      </view>
       <!-- 新增加的一列--机构 -->
        <view class="record-row" wx:if="{{item.operateBy}}">
        <text class="label">机构：</text>
        <text style="color:black">{{item.operateBy}}</text>
      </view>
       <!-- end -->
      <view class="record-row" wx:if="{{item.feedback}}">
        <text class="label">治疗备注：</text>
        <text style="color:black">{{item.feedback}}</text>
      </view>
      <view class="record-row" wx:if="{{item.acuPointNames}}">
        <text class="label">穴位：</text>
        <text style="color:black">{{item.acuPointNames}}</text>
      </view>
       <view class="record-row opt-img" wx:if="{{item.photo}}">
        <text class="label">操作照片：</text>
     <image src="{{item.photo}}" class="img-box" />
      </view>
    </view>
  </block>
</view>
 <view wx:else class="empty-state">
    <text class="empty-text">暂无核销数据</text>
  </view>
</scroll-view>