<view id='referral_officer'>
  <view class="member_info">
    <image src="{{info.avatar}}" alt="" class="avatar" />
    <view class="text">
      <view class="name">{{ info.nickname }}</view>
      <view style="display: flex;">
        <view class="grade">{{ info.level_name||'暂无等级' }}</view>
      </view>
    </view>
  </view>

  <view class="total_list">
    <view class="total_child">
      <view class="num">{{ info.acount ? info.acount[1].total : '-' }}</view>
      <view class="num_name">累计金额(元)</view>
    </view>
    <view class="total_child">
      <view class="num">{{ info.acount ? info.acount[0].total : '-' }}</view>
      <view class="num_name">未结算(元)</view>
    </view>
  </view>

  <van-tabs active="{{ active }}" bind:change="onChange">
    <van-tab title="全部">
      <view class="list_child" wx:for="{{list}}" catchtap="gotoDetail" data-id="{{item.id}}">
        <view class="childs">
          <view class="order_sn">提成ID:{{ item.id }}</view>
          <view class="money">{{language['money']}} {{ item.reward_money }}</view>
        </view>
        <view class="childs">
          <view class="time">时间:{{ item.created_at }}</view>
          <view class="status">{{ item.state_name }}</view>
        </view>
      </view>
    </van-tab>
    <van-tab title="未结算">
      <view class="list_child" wx:for="{{list}}" catchtap="gotoDetail" data-id="{{item.id}}">
        <view class="childs">
          <view class="order_sn">提成ID:{{ item.id }}</view>
          <view class="money">{{language['money']}} {{ item.reward_money }}</view>
        </view>
        <view class="childs">
          <view class="time">时间:{{ item.created_at }}</view>
          <view class="status">{{ item.state_name }}</view>
        </view>
      </view>
    </van-tab>
    <van-tab title="已结算">
      <view class="list_child" wx:for="{{list}}" catchtap="gotoDetail" data-id="{{item.id}}">
        <view class="childs">
          <view class="order_sn">提成ID:{{ item.id }}</view>
          <view class="money">{{language['money']}} {{ item.reward_money }}</view>
        </view>
        <view class="childs">
          <view class="time">时间:{{ item.created_at }}</view>
          <view class="status">{{ item.state_name }}</view>
        </view>
      </view>
    </van-tab>
  </van-tabs>
  <view wx:if="{{list.length ==0}}" class="blank">暂无记录...</view>
</view>