<wxs src="../../../utils/filter.wxs" module="filters" />

<view class="container">
    <view class="message">被邀请用户为首次登录的用户</view>
    <view class="total">
        <view class="box">
            <view class="label">统计日期</view>
            <picker mode="date" value="{{dateTime}}" fields="month" start="2023-09" end="2100-09"
                bindchange="bindDateChange">
                <view class="picker">
                    {{dateTime}} >
                </view>
            </picker>
        </view>
        <view class="box">
            <view class="label">成功邀请</view>
            <view>{{totalSize}}人</view>
        </view>
    </view>
    <scroll-view class="historyList" scroll-y="true" enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
        bindscrolltolower='loadMore' wx:if="{{!nullList}}">
        <view class="user" wx:for="{{list}}" wx:key='index'>
            <image src="{{item.avatar}}" class="avatar" />
            <view class="info">
                <view class="nickName">{{item.nickName||item.eid}}</view>
                <view class="addTime">
                    加入时间 ：{{filters.formatDate(item.gmtCreated,1)}}
                </view>
            </view>
        </view>
    </scroll-view>
    <view class="bottom">
        <button class="resetBtn btn" bindtap="openInvite">
            邀请用户
        </button>
    </view>
    <emptyBg wx:if="{{nullList}}" message="暂无成功邀请记录"></emptyBg>
    <InvitePop id="InvitePop"></InvitePop>
</view>