<!--packageI/newGroup/contribution/contribution.wxml-->
<view id="group-contribution">
  <view class="group-contribution-main">
    <view class="main-box">
      <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/pearl_img3.png" alt=""></image>
      <view class="main-box-position">
        <view class="box-left" catchtap="tapUrl">下级{{gxz_name}}明细</view>
        <view class="box-h2">今日{{gxz_name}}</view>
        <view class="box-h1">{{contribution_today?contribution_today:'0.00'}}</view>
        <view class="box-h3" catchtap="tapUrl" data-url="pastLog">往日{{gxz_name}}数量 <icon class="iconfont icon-advertise-next ico-arrow"></icon></view>
      </view>
    </view>
    <view class="total-box">累计奖励金额：￥{{countAmount?countAmount:'0.00'}}</view>
  </view>

  <van-tabs show="{{activeName}}" bind:click="handleClick" sticky :ellipsis="true" swipeable>
    <van-tab title="奖励记录">
      <view class="content ul">
        <view class="li" wx:for="{{info}}" wx:key="index">
          <view class="p">
            <view class="left time" style="color: #8c8c8c;">{{item.created_at}}</view>
            <view class="red right" style="color: #f15353;">{{item.dividend_amount}}</view>
          </view>
          <view class="p">
            <view class="left member">
              <image class="avator" src="{{item.avatar}}" alt=""></image>
              <view class="member-name">{{item.nickname || ''}}</view>
            </view>
            <view class="right" style="font-size: 24rpx;color: #666666;">{{item.type_name}}</view>
          </view>
        </view>
        <view wx:if="{{info.length == 0}}"
          style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
          <image mode="widthFix" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_blank@2x.png"></image>
          <text style="color: #6666;font-size: 30rpx;">暂无更多</text>
        </view>
      </view>
    </van-tab>
  </van-tabs>
</view>