<!--packageA/member/order/cpsOrder/cpsOrder.wxml-->
<view class="cps-oreder">
  <van-tabs
        active="{{activeName}}"
        bind:change="switchTab"
        title-inactive-color="#777777"
        title-active-color="#414141"
      >
        <van-tab title="全部" name="{{0}}"></van-tab>
        <van-tab title="待结算" name="{{1}}"></van-tab>
        <van-tab title="已结算" name="{{2}}"></van-tab>
        <van-tab title="失效" name="{{-1}}"></van-tab>
  </van-tabs>
  <view class="list-content" wx:if="{{orderList.length > 0}}">
        <cps-order-item
          wx:for="{{orderList}}" wx:key="index"
          orderData="{{item}}"
          isCoupon="{{isCoupon}}"
        ></cps-order-item>
        <view class="finished" wx:if="{{finished}}" style="text-align: center; margin: 20rpx;">没有更多了哦</view>
  </view>
  <van-empty wx:else description="还没有记录哦" ></van-empty>
</view>
