<!--packageF/bonusPoolsIndex/bonusPoolsIndex/bonusPoolsIndex.wxml-->
<view id="bonusPoolsIndex">
  <view class="headTop">
    <view class="userBox">
      <view class="image">
        <image src="{{info.avatar}}" alt="" />
      </view>
      <view class="nameGrade">
        <view class="name">{{info.nickname}}</view>
        <view class="grade" wx:if="{{info.level_name}}">{{info.level_name}}</view>
      </view>
    </view>
    <view class="tips">提示：所有奖励不包含特殊商品营业额</view>
  </view>
  <view class="grandTotal">
    <view class="grand">
      <view>累计奖励</view>
      <view>{{ language['money'] }}{{info.all_amount}}</view>
    </view>
    <view class="grandList">
      <view class="gramdlis">
        <view class="price">
          <view class="smallp">{{ language['money'] }}</view>{{info.ad_amount}}
        </view>
        <view class="txt">广告屏收益</view>
      </view>
      <view class="gramdlis">
        <view class="price">
          <view class="smallp">{{ language['money'] }}</view>{{info.bonus_amount}}
        </view>
        <view class="txt">{{love}}奖励</view>
      </view>
      <view class="gramdlis">
        <view class="price">
          <view class="smallp">{{ language['money'] }}</view>{{info.team_amount}}
        </view>
        <view class="txt">团队业绩奖励</view>
      </view>
    </view>
  </view>
  <view class="line"></view>
  <view class="tramTotal" catchtap="toTeam">
    <view class="txt">团队累计业绩值</view>
    <view class="price">
      <view>{{ language['money'] }}{{info.team}}</view>
      <van-icon name="arrow" color="#000" size="32rpx" />
    </view>
  </view>
  <view class="line"></view>
  <van-tabs active="{{active}}" title-active-color="#ee2e2b" swipe-threshold="3" bind:change="bindChange">
    <van-tab title="全部"></van-tab>
    <van-tab title="广告屏收益"></van-tab>
    <van-tab title="{{love}}奖励"></van-tab>
    <van-tab title="团队业绩奖励"></van-tab>
  </van-tabs>
  <view class="list">
    <view class="statusBox">
      <view class="dNone {{tapSelect == 0?'sele':''}}" catchtap="tapSelectInd" data-ind='0'>全部</view>
      <view class="dNone {{tapSelect == 1?'sele':''}}" catchtap="tapSelectInd" data-ind='1'>已结算</view>
      <view class="dNone {{tapSelect == 2?'sele':''}}" catchtap="tapSelectInd" data-ind='2'>未结算</view>
    </view>
    <view class="lis" wx:for="{{list}}" wx:key="{{item.id}}">
      <view class="toplis">
        <view class="idClis">
          <view>ID：{{item.id}}</view>
          <view class="title">{{item.type_name}}</view>
        </view>
        <view class="price">+{{item.award_amounts}}</view>
      </view>
      <view class="bottomlis">
        <view class="time">时间：{{item.created_at}}</view>
        <view class="txt">{{item.status_name}}</view>
      </view>
    </view>
  </view>
</view>