<!--pages/historyOrderAfter/historyOrderAfter.wxml-->
<view class="orderContainer">

  <!-- 日期选择器 -->
<picker mode="date" value="{{date}}" bindchange="bindDateChange">
  <view class="dataSelect" style="position: relative;">
    <view class="dateTip">
      <image src="../../images/date.png" mode="aspectFill" />
      <text>日期跳转</text>
    </view>
    <text>{{date}} ></text>
  </view>
</picker>

<view class="orderItem" wx:for="{{orders}}" wx:key="index">
      <orderItem wx:if="{{item.orderType == 0}}"
      order="{{item.order}}"
      bottonText2="{{item.bottonText2}}"
      bind:bottonEvent1="onOrderButtonClick1"
      bind:bottonEvent2="onOrderButtonClick2" />

      <prepayOrderItem wx:if="{{item.orderType == 1}}"
      order="{{item.order}}"
      buttonText1="{{item.bottonText1}}"
      buttonText2="{{item.bottonText2}}"
      bind:bottonEvent1="onOrderButtonClick1"
      bind:bottonEvent2="onOrderButtonClick2" />
      
    </view>

    
  <!-- 订单列表-后支付-->
  <!-- <view class="order" wx:if="{{paymentMode == 0}}">
    <view class="orderItem" wx:for="{{orders}}" wx:key="index">
      <orderItem 
      order="{{item.order}}"
      bottonText2="{{item.bottonText2}}"
      bind:bottonEvent1="onOrderButtonClick1"
      bind:bottonEvent2="onOrderButtonClick2" />

      <prepayOrderItem 
      order="{{item.order}}"
      buttonText1="{{item.bottonText1}}"
      buttonText2="{{item.bottonText2}}"
      bind:bottonEvent1="onOrderButtonClick1"
      bind:bottonEvent2="onOrderButtonClick2" />
      
    </view>
  </view> -->

  <!-- 订单列表-预支付-->
  <!-- <view class="order" wx:if="{{paymentMode == 1}}">
    <view class="orderItem" wx:for="{{orders}}" wx:key="index">
      <prepayOrderItem 
      order="{{item.order}}"
      buttonText1="{{item.bottonText1}}"
      buttonText2="{{item.bottonText2}}"
      bind:bottonEvent1="onOrderButtonClick1"
      bind:bottonEvent2="onOrderButtonClick2" />
    </view>
  </view> -->

  <text style="color: #a1a1a1; margin: 6%">仅保留一个月的交易记录</text>
</view>