<view class="flex-col page">
  <view class="flex-col section">
    <view class="flex-row equal-division group">
      <view class="flex-col items-center group_2 group_1">
        <text class="font text">直接代理人数</text>
        <text class="font_2 text_13 mt-14">{{directAgentSize}}</text>
      </view>
      <view class="flex-col items-center group_2 group_3">
        <text class="font text_2">团队总人数</text>
        <text class="font_2 text_4 mt-12">{{teamSize}}</text>
      </view>
      <view class="flex-col items-start group_2 group_4">
        <text class="font text_3">团队总收益</text>
        <text class="font_2 text_1 mt-13">{{teamEarnings ? '￥' + teamEarnings : '￥0'}}</text>
      </view>
    </view>
    <view class="flex-row justify-between items-center self-stretch section_2" bind:tap="gotoCommissionSetting">
      <view class="flex-row items-center">
        <image
          class="shrink-0 image"
          src="./images/qi.png"
          mode="aspectFill"
        />
        <text class="font_3 text_5 ml-5">请设置邀请下级抽成比例如：0%</text>
      </view>
      <image
        class="image_2"
        src="./images/yjt.png"
        mode="aspectFill"
      />
    </view>
    <view class="flex-row justify-end items-center self-center section_3" bindtap="copyInvitationCode">
      <image
        class="shrink-0 image_3"
        src="./images/fuzhi.png"
      />
      <text class="font text_6">我的邀请码：{{invitationCode}}</text>
    </view>
  </view>
  <view class="flex-row justify-between items-center mt-13">
    <text class="text_7">成员列表</text>
    <view class="flex-row items-center section_4">
      <image
        class="image_4"
        src="./images/ss.png"
      />
      <input class="font text_8 ml-4" placeholder="请输入关键字" bindinput="onInput" confirm-type="search" bindconfirm="onSearch" value="{{searchText}}"/>
    </view>
  </view>
  <view class="flex-col list mt-13">
    <view
      class="flex-row items-center relative group_6"
      wx:for="{{tempUserMemberInfoVOList}}"
      wx:for-item="item"
      wx:for-index="index"
      wx:key="index"
    >
      <view class="shrink-0 section_5"></view>
      <view class="shrink-0 section_6 pos_2" style="{{index === 0 ? 'top:0rpx;' : ''}}"></view>
      <view class="flex-col flex-1 relative section_1" style="{{index === 0 ? 'margin-top:0rpx;' : ''}}">
        <text class="self-start font_3 text_9">{{item.nickName}}</text>
        <view class="flex-col self-stretch section_7">
          <text class="self-start font_4">手机号：{{item.phoneNumber}}</text>
          <view class="flex-row justify-between self-stretch mt-19">
            <text class="font_5">团队人数：{{item.teamSize}}</text>
            <text class="font_6 text_15">给我创造的收益：￥{{item.parentEarnings}}</text>
          </view>
        </view>
        <view class="flex-row items-center self-end group_5">
          <text class="shrink-0 font_7">注册时间：</text>
          <text class="flex-1 font_8 ml-3">{{item.registerTime}}</text>
        </view>
      </view>
    </view>
  </view>
</view>
