<!--packageH/recommend_reward/recommend_reward.wxml-->
<view class="recommend-reward">
  <view class="reward-header">
    <!--用户信息start-->
    <view class="reward-user">
      <view class="user-img">
        <image src="{{info.pic}}"></image>
      </view>
      <view class="user-info">
        <text>{{info.name}}</text>
        <text>{{info.level_name}}</text>
      </view>
    </view>
    <!--用户信息end-->

    <!--未/已结算金额start-->
    <view class="reward-price">
      <view class="prile-list">
        <text>￥{{amount.wait || 0}}</text>
        <text>未结算</text>
      </view>
      <view class="prile-list">
        <text>￥{{amount.already || 0}}</text>
        <text>已结算</text>
      </view>
    </view>
    <!--未/已结算金额end-->
  </view>

  <!--直接推荐奖列表start-->
  <view class="reward-list">
    <van-tabs active="{{ active }}" bind:change="change" title-active-color="#FB6B68">
      <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>
      <view class="total">
        <view class="list" wx:for="{{listData}}" wx:key="index">
          <view class="list-order">
            <text>{{item.order.order_sn}}</text>
            <text>￥{{item.amount | 0}}</text>
          </view>
          <view class="list-date">
            <text>{{item.created_at}}</text>
            <text>{{item.status_name}}</text>
          </view>
        </view>
      </view>

    </van-tabs>
  </view>
  <!--直接推荐奖列表end-->

</view>