<!--index.wxml-->
<view class="MainPage" bindtouchmove="ResetDeleteIndex">
  <view class="list">
    <view wx:for="{{List}}" wx:for-item="item" wx:for-index="idx" wx:key="key">
      <view class="line flex-h">
        <text>{{item.Name}}</text>
        <text class="flex-item">{{item.PhoneNum}}</text>
      </view>
      <view class="line flex-h">
        <text>预约项目：</text>
        <text class="flex-item">{{item.CaseName}}</text>
      </view>
      <view class="line flex-h">
        <text>预约时间：</text>
        <text class="flex-item">{{item.AppointmentDate}}</text>
      </view>
      <view class="line">
        <text>备注信息：</text>
        <text style="line-height: 35rpx;">{{item.Remark}}</text>
      </view>
      <view class="delete" hidden="{{DeleteIndex !== idx}}">
        <view class="centerLabel" data-index="{{idx}}" bindtap="DeleteItem">
          <image mode="widthFix" src="/assets/images/icon27.png" class="centerLabel"></image>
        </view>
      </view>
      <view class="layer" data-index="{{idx}}" bindlongpress="ShowDeleteItem"></view>
    </view>
  </view>
</view>