<view class="management_record">
    <view class="content">
        <view class="info_box">
            <view class="info">
                <view class="ul">
                    <view class="li">{{ rewardsData.today }}</view>
                    <view class="li">今日</view>
                </view>
                <view class="ul">
                    <view class="li">{{ rewardsData.yesterday }}</view>
                    <view class="li">昨日</view>
                </view>
                <view class="ul">
                    <view class="li">{{ rewardsData.this_week }}</view>
                    <view class="li">本周</view>
                </view>
                <view class="ul" style="text-align: center;">
                    <view class="li">{{ rewardsData.this_month }}</view>
                    <view class="li">本月累计分红</view>
                </view>
            </view>
            <view class="img">
                <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/sale_img.png" />
            </view>
        </view>
        <view class="award_box">
            <van-tabs active="{{ active }}" tab-active-class="ative" bind:change="handleClick">
                <van-tab title="全部">
                    <view class="list_box" wx:if="{{activeName === '-1'}}">
                        <view class="ul" wx:for="{{recordsList}}" wx:key="index">
                            <view class="li">
                                <view class="span" wx:if="{{type !== 'TeamPerformance'}}">
                                    {{ item.source_member.nickname }}
                                </view>
                                <view class="span" wx:if="{{type === 'TeamPerformance'}}">
                                    {{ item.member.nickname }}
                                </view>
                                <view class="span">{{ item.amount }}</view>
                            </view>
                            <view class="li">
                                <text class="span">{{ item.created_at }}</text>
                                <text class="span">{{ item.status_name }}</text>
                            </view>
                        </view>
                    </view>
                </van-tab>
                <van-tab title="已发放">
                    <view class="list_box" wx:if="{{activeName === '1'}}">
                        <view class="ul" wx:for="{{recordsList}}" wx:key="index">
                            <view class="li">
                                <view class="span" wx:if="{{type !== 'TeamPerformance'}}">
                                    {{ item.source_member.nickname }}
                                </view>
                                <view class="span" wx:if="{{type === 'TeamPerformance'}}">
                                    {{ item.member.nickname }}
                                </view>
                                <view class="span">{{ item.amount }}</view>
                            </view>
                            <view class="li">
                                <text class="span">{{ item.created_at }}</text>
                                <text class="span">{{ item.status_name }}</text>
                            </view>
                        </view>
                    </view>
                </van-tab>
                <van-tab title="未发放">
                    <view class="list_box" wx:if="{{activeName === '0'}}">
                        <view class="ul" wx:for="{{recordsList}}" wx:key="index">
                            <view class="li">
                                <view class="span" wx:if="{{type !== 'TeamPerformance'}}">
                                    {{ item.source_member.nickname }}
                                </view>
                                <view class="span" wx:if="{{type === 'TeamPerformance'}}">
                                    {{ item.member.nickname }}
                                </view>
                                <view class="span">{{ item.amount }}</view>
                            </view>
                            <view class="li">
                                <text class="span">{{ item.created_at }}</text>
                                <text class="span">{{ item.status_name }}</text>
                            </view>
                        </view>
                    </view>
                </van-tab>
                <van-tab title="已失效">
                    <view class="list_box" wx:if="{{activeName === '2'}}">
                        <view class="ul" wx:for="{{recordsList}}" wx:key="index">
                            <view class="li">
                                <view class="span" wx:if="{{type !== 'TeamPerformance'}}">
                                    {{ item.source_member.nickname }}
                                </view>
                                <view class="span" wx:if="{{type === 'TeamPerformance'}}">
                                    {{ item.member.nickname }}
                                </view>
                                <view class="span">{{ item.amount }}</view>
                            </view>
                            <view class="li">
                                <text class="span">{{ item.created_at }}</text>
                                <text class="span">{{ item.status_name }}</text>
                            </view>
                        </view>
                    </view>
                </van-tab>
            </van-tabs>
        </view>
    </view>
</view>
<shopfoot></shopfoot>