<view class="teamAgentCenter">
	<view class="share_holder">
		<view class="header_box">
			<view class="left">
				<text class="span">{{ dataList[activeName].level.level_name||'' }}</text>
			</view>
			<view class="right ul">
				<view class="li">提成比例:{{ dataList[activeName].level.dividend_ratio||'' }}%</view>
				<view class="li">下级提成比例:{{ dataList[activeName].level.next_dividend_ratio||'' }}%</view>
			</view>
		</view>
		<view class="code_box">
			<view class="list1 code" catchtap="teamCode">
				<view class="ico extension">
					手动提现</view>
				<van-icon name="arrow"></van-icon>
			</view>
		</view>
	</view>
	<view class="money">
		<view class="gongge ul">
			<view class="li">
				<icon class="iconfont icon-weitixian"></icon>
				<text class="span">未结算佣金</text>
				<text class="b"><text class="em">{{ dataList[activeName].statistics.wait_amount_total||'0' }}{{language['元']}}</text></text>
			</view>
			<view class="li">
				<icon class="iconfont icon-yijiesuan"></icon>
				<text class="span">已结算佣金</text>
				<text class="b"><text class="em">{{ dataList[activeName].statistics.settled_amount_total||'0' }}{{language['元']}}</text></text>
			</view>
		</view>
	</view>
	<view class="content">
		<van-tabs active="{{activeName}}" tab-active-class="ative" bind:change="getData" sticky>
			<van-tab title="提成">
				<view class="rationList ul a">
					<block wx:for="{{dataList[0].list}}" wx:for-index="first_idx" wx:for-item="first_item" wx:key="first_idx">
						<view class="li">
							<view class="detail">
								<text class="month span">{{ first_item.create_month }}</text>
								<view class="info" wx:for="{{first_item.has_many_dividend}}" wx:for-index="dividendidx" wx:key="dividendidx" catchtap="openDetail"
								 data-ind2="{{dividendidx}}">
									<view class="left ul">
										<view class="li">订单号：{{ item.order_sn }}</view>
										<view class="time li">时间：{{ item.created_at }}</view>
									</view>
									<view class="right ul">
										<view class="li">{{ item.dividend_amount }}</view>
										<view class="state li">{{ item.status_name }}</view>
									</view>
								</view>
							</view>
						</view>
					</block>
					<view wx:if="{{!loading&&dataList[0].list.length ==0}}" class="noDataText">暂无数据</view>
				</view>
			</van-tab>
			<van-tab title="平级奖">
				<view class="rationList ul">
					<block wx:for="{{dataList[1].list}}" wx:for-index="second_idx"  wx:key="second_idx">
						<view class="li" >
							<view class="detail">
								<text class="month span">{{ item.create_month }}</text>
								<view class="info" wx:for="{{item.has_many_dividend}}" wx:for-index="dividendidx" wx:key="dividendidx">
									<view class="left ul">
										<view class="li">订单号：{{ item.order_sn }}</view>
										<view class="time li">时间：{{ item.created_at }}</view>
									</view>
									<view class="right ul">
										<view class="li">{{ item.dividend_amount }}</view>
										<view class="state li">{{ item.status_name }}</view>
									</view>
								</view>
							</view>
						</view>
					</block>
					<view wx:if="{{!loading&&dataList[1].list.length==0}}" class="noDataText">暂无数据</view>
				</view>
			</van-tab>
		</van-tabs>
	</view>
</view>

