<view class="award_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">
					<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="getTab">
				<van-tab title="全部">
					<view class="list_box" wx:if="{{activeName === '-1'}}">
						<view class="ul" wx:for="{{recordsList}}" wx:key="index" data-item="{{item}}" catchtap="toDetail">
							<view class="li">
								<text class="span" wx:if="{{item.log_id}}">销售佣金ID：{{item.log_id}}</text>
								<text class="span" wx:if="{{!item.log_id}}">{{item.has_one_source_member.nickname}}</text>
								<text class="span">{{item.amount}}</text>
							</view>
							<view class="span" style="display:flex;justify-content:space-between;">
								<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" data-item="{{item}}" catchtap="toDetail">
							<view class="li">
								<text class="span" wx:if="{{item.log_id}}">销售佣金ID：{{item.log_id}}</text>
								<text class="span" wx:if="{{!item.log_id}}">{{item.has_one_source_member.nickname}}</text>
								<text class="span">{{item.amount}}</text>
							</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" data-item="{{item}}" catchtap="toDetail">
							<view class="li">
								<text class="span" wx:if="{{item.log_id}}">销售佣金ID：{{item.log_id}}</text>
								<text class="span" wx:if="{{!item.log_id}}">{{item.has_one_source_member.nickname}}</text>
								<text class="span">{{item.amount}}</text>
							</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>
