<!--packageI/commissionExtraIndex/commissionExtraIndex.wxml-->
<view class="recommend-reward">
  <view class="reward-header">
    <!--用户信息start-->
    <view class="reward-user">
      <view class="user-img">
        <image src="{{info.avatar}}"></image>
      </view>
      <view class="user-info">
        <text>{{info.nickname}}</text>
      </view>
    </view>
    <!--用户信息end-->

    <!--未/已结算金额start-->
    <view class="reward-price">
      <view class="prile-list">
        <text>￥{{info.total_unsettle || "--" }}</text>
        <text>未结算</text>
      </view>
      <view class="prile-list">
        <text>￥{{info.total_settle || "--"}}</text>
        <text>已结算</text>
      </view>
    </view>
    <!--未/已结算金额end-->
  </view>

  <view class="reward-list">
    <van-tabs active="{{ active }}" bind:change="change" sticky swipeable>
      <van-tab title="全部" name="2"></van-tab>
      <van-tab title="未结算" name="0"></van-tab>
      <van-tab title="已结算" name="1"></van-tab>
      <van-tab title="失效" name="-1"></van-tab>
    </van-tabs>
    <view class="total">
      <view class="list" wx:for="{{listData}}" wx:key="index">
        <view class="list-order">
          <text>{{item.order_sn}}</text>
          <text>￥{{item.dividend_amount || "--"}}</text>
        </view>
        <view class="list-date">
          <text>{{item.created_at}}</text>
          <text style="color: {{ item.status == 0 ? '#999' : '#333' }}">{{item.status_name}}</text>
        </view>
      </view>
    </view>

    <yzblank datas="{{listData}}"></yzblank>
  </view>
</view>