<view class="sale_commission">
	<view class="content">
		<view class="info_box">
			<view class="text">
				<view class="ul">
					<view class="li">{{WXtitle}}比例：{{commission.commission_rate}}%</view>
				</view>
			</view>
			<view class="info">
				<view class="ul">
					<view class="li">{{commission.today}}</view>
					<view class="li">今日</view>
				</view>
				<view class="ul">
					<view class="li">{{commission.yesterday}}</view>
					<view class="li">昨日</view>
				</view>
				<view class="ul">
					<view class="li">{{commission.this_week}}</view>
					<view class="li">本周</view>
				</view>
				<view class="ul">
					<view class="li">{{commission.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="sale_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="box" wx:for="{{commissionList}}" wx:key="index">
							<view class="h1">{{item.create_month}}</view>
							<view class="order" wx:for="{{item.has_many_sell}}" wx:for-index="sellindex" wx:key="{{sellindex}}">
								<view class="h2">销售ID:{{item.id}}</view>
								<view class="ul">
									<view class="li">
										<text class="span">订单号：{{item.order_sn}}</text>
										<text class="span">+{{item.royalties}}</text>
									</view>
									<view class="li">
										<text class="span">{{item.created_at}}</text>
										<text class="span">{{item.status}}</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</van-tab>
				<van-tab title="已结算">
					<view class="list_box" wx:if="{{activeName === '1'}}">
						<view class="box" wx:for="{{commissionList}}" wx:key="index">
							<view class="h1">{{item.create_month}}</view>
							<view class="order" wx:for="{{list.has_many_sell}}" wx:for-index="sellindex" wx:key="{{sellindex}}">
								<view class="h2">销售ID:{{item.id}}</view>
								<view class="ul">
									<view class="li">
										<text class="span">订单号：{{item.order_sn}}</text>
										<text class="span">+{{item.royalties}}</text>
									</view>
									<view class="li">
										<text class="span">{{item.created_at}}</text>
										<text class="span">{{item.status}}</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</van-tab>
				<van-tab title="未结算">
					<view class="list_box" wx:if="{{activeName === '0'}}">
						<view class="box" wx:for="{{commissionList}}" wx:key="index">
							<view class="h1">{{item.create_month}}</view>
							<view class="order" wx:for="{{list.has_many_sell}}" wx:for-index="sellindex" wx:key="{{sellindex}}">
								<view class="h2">销售ID:{{item.id}}</view>
								<view class="ul">
									<view class="li">
										<text class="span">订单号：{{item.order_sn}}</text>
										<text class="span">+{{item.royalties}}</text>
									</view>
									<view class="li">
										<text class="span">{{item.created_at}}</text>
										<text class="span">{{item.status}}</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</van-tab>
			</van-tabs>
		</view>
	</view>
</view>
<shopfoot></shopfoot>
