<view class="teamAgentCenter">
	<view class="share_holder">
		<view class="header_box">
			<view class="left">
				<text class="span">{{ level_name }}</text>
			</view>
			<view class="right ul">
				<view class="li">{{ mailDividend }}比例:{{ dividend_ratio }}%</view>
				<view class="li">下级{{ mailDividend }}比例:{{ next_dividend_ratio }}%</view>
			</view>
		</view>
		<view class="code_box">
			<view class="list1 code" catchtap="teamCode" wx:if="{{is_activation_code=='1'}}">
				<view class="ico extension">
					我的激活码</view>
				<van-icon name="arrow"></van-icon>
			</view>
			<view class="list1 code" catchtap="TeamClient" wx:if="{{is_customer !=1}}">
				<view class="ico extension">
					{{team_agent}}<text class="span">({{ peopleCount }}人)</text></view>
				<van-icon name="arrow"></van-icon>
			</view>
			<view wx:if="{{showRed === '1'}}" catchtap="FranchiserRed" class="list1 code">
				<view class="ico extension">
					红包奖励</view>
				<van-icon name="arrow"></van-icon>
			</view>
			<view class="list1 code" catchtap="teamPerformance" wx:if="{{is_team_data != 1}}">
				<view class="ico extension">
					团队业绩(订单金额：{{
              teamPerformance.team_order_price || 0
            }}
					商品销量：{{ teamPerformance.team_goods_total || 0 }})</view>
				<van-icon name="arrow"></van-icon>
			</view>
		</view>
		<view class="today_bonus ul">
			<view wx:for="{{ratioDatas}}" class="{{item.name }} li" wx:key="index">
				<text class="span">{{ item.money }}</text>
				<text class="b">{{ item.data }}</text>
			</view>
			<view class="line li">
				<view class="careat"></view>
			</view>
		</view>
	</view>
	<view class="money">
		<view class="gongge ul">
			<view class="li">
				<icon class="iconfont icon-weitixian"></icon>
				<text class="span">{{teamDividendLang.wait_dividend || '未结算'}}{{ dividend_amount }}</text>
				<text class="b" wx:if="{{activeName === 0}}">{{ dividend.unliquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 1}}">{{ flat_prize.unliquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 2}}">{{ award_gratitude.unliquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 3}}">{{ extra_award.unliquidated || 0 }}<text class="em">{{language['元']}}</text></text>
			</view>
			<view class="li">
				<icon class="iconfont icon-yijiesuan"></icon>
				<text class="span">{{teamDividendLang.settle_dividend || '已结算'}}{{ dividend_amount }}</text>
				<text class="b" wx:if="{{activeName === 0}}">{{ dividend.liquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 1}}">{{ flat_prize.liquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 2}}">{{ award_gratitude.liquidated || 0 }}<text class="em">{{language['元']}}</text></text>
				<text class="b" wx:if="{{activeName === 3}}">{{ extra_award.liquidated || 0 }}<text class="em">{{language['元']}}</text></text>
			</view>
		</view>
	</view>
	<view class="content">
		<van-tabs active="{{ activeName }}" tab-active-class="ative" bind:change="handleClick" >
			<van-tab wx:if="{{bonus_active}}" title="{{bonus_lable}}" name='1'  >
				<view class="rationList ul a" wx:if="{{bonus_active}}">
					<block wx:for="{{first_content}}" wx:for-index="first_idx" wx:for-item="first_item" wx:key="first_idx">
						<view class="li" wx:for="{{first_item}}" wx:key="index">
							<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" 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>
									<!-- :class="{'opens':index1==display1&&index2==display2}" -->
									<view class="{{display1 == dividendidx?'opens':''}} order_detail" wx:if="{{is_team_order_details==1||is_team_buyer==1}}">
										<view class="team_list" wx:if="{{is_team_buyer==1}}">
											<view class="img" wx:if="{{item.member}}">
												<image src="{{item.member.avatar}}"></image>
											</view>
											<view class="info1" wx:if="{{item.member}}">{{item.member.nickname}}
												<!-- <br> -->
												<view class='span'>微信号:{{item.member.yz_member&&item.member.yz_member.wechat?item.member.yz_member.wechat:"暂无微信号"}}</view>
											</view>
										</view>
										<view class="team_goods" id="distribution-goods" :key='i' wx:for="{{item.order_goods}}" wx:if="{{is_team_order_details==1}}"
										 wx:for-item="goods" wx:key="ind">
											<view class="img">
												<image src="{{goods.thumb}}"></image>
											</view>
											<view class="inner">
												<view class="name">{{goods.title}}</view>
											</view>
											<view class="price">
												<view class="b">{{language['money']}}{{(goods.goods_price/goods.total)}}
													×{{goods.total}}</view>
												<view class="Total">{{language['money']}}{{goods.goods_price}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</view>
					</block>
				</view>
			</van-tab>
			<van-tab wx:if="{{leveling_active}}" title="{{leveling_label}}" name='2' >
				<view class="rationList ul" wx:if="{{leveling_active}}">
					<block wx:for="{{second_content}}" wx:for-index="second_idx" wx:for-item="second_item" wx:key="second_idx">
						<view class="li" wx:for="{{second_item}}" wx:key="index">
							<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 class="{{display1 == dividendidx?'opens':''}} order_detail" wx:if="{{is_team_order_details==1||is_team_buyer==1}}">
										<view class="team_list" wx:if="{{is_team_buyer==1}}">
											<view class="img" wx:if="{{item.member}}">
												<image src="{{item.member.avatar}}"></image>
											</view>
											<view class="info1" wx:if="{{item.member}}">{{item.member.nickname}}
												<!-- <br> -->
												<view class='span'>微信号:{{item.member.yz_member&&item.member.yz_member.wechat?item.member.yz_member.wechat:"暂无微信号"}}</view>
											</view>
										</view>
										<view class="team_goods" id="distribution-goods" :key='i' wx:for="{{item.order_goods}}" wx:if="{{is_team_order_details==1}}"
										 wx:for-item="goods">
											<view class="img">
												<image src="{{goods.thumb}}"></image>
											</view>
											<view class="inner">
												<view class="name">{{goods.title}}</view>
											</view>
											<view class="price">
												<b>{{language['money']}}{{(goods.goods_price/goods.total)}}
													×{{goods.total}}</b>
												<view class="Total">{{language['money']}}{{goods.goods_price}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</view>
					</block>
				</view>
			</van-tab>
			<van-tab wx:if="{{prize_active}}" title="{{prize_label}}" name='3' >
				<view class="rationList ul" wx:if="{{goload}}">
					<block wx:for="{{third_content}}" wx:for-index="third_idx" wx:for-item="third_item" wx:key="third_idx">
						<view class="li" wx:for="{{third_item}}" wx:key="index">
							<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 class="{{display1 == dividendidx?'opens':''}} order_detail" wx:if="{{is_team_order_details==1||is_team_buyer==1}}">
										<view class="team_list" wx:if="{{is_team_buyer==1}}">
											<view class="img" wx:if="{{item.member}}">
												<image src="{{item.member.avatar}}"></image>
											</view>
											<view class="info1" wx:if="{{item.member}}">{{item.member.nickname}}
												<!-- <br> -->
												<view class='span'>微信号:{{item.member.yz_member&&item.member.yz_member.wechat?item.member.yz_member.wechat:"暂无微信号"}}</view>
											</view>
										</view>
										<view class="team_goods" id="distribution-goods" :key='i' wx:for="{{item.order_goods}}" wx:if="{{is_team_order_details==1}}"
										 wx:for-item="goods">
											<view class="img">
												<image src="{{goods.thumb}}"></image>
											</view>
											<view class="inner">
												<view class="name">{{goods.title}}</view>
											</view>
											<view class="price">
												<b>{{language['money']}}{{(goods.goods_price/goods.total)}}
													×{{goods.total}}</b>
												<view class="Total">{{language['money']}}{{goods.goods_price}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</view>
					</block>
				</view>
			</van-tab>
			<van-tab wx:if="{{extra_active}}" title="{{ extra_award_label }}" name='4' >
				<view class="rationList ul" wx:if="{{goload}}">
					<block wx:for="{{four_content}}" wx:for-index="four_idx" wx:for-item="four_item" wx:key="four_idx">
						<view class="li" wx:for="{{four_item}}" wx:key="index">
							<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 class="{{display1 == dividendidx?'opens':''}} order_detail" wx:if="{{is_team_order_details==1||is_team_buyer==1}}">
										<view class="team_list" wx:if="{{is_team_buyer==1}}">
											<view class="img" wx:if="{{item.member}}">
												<image src="{{item.member.avatar}}"></image>
											</view>
											<view class="info1" wx:if="{{item.member}}">{{item.member.nickname}}
												<!-- <br> -->
												<view class='span'>微信号:{{item.member.yz_member&&item.member.yz_member.wechat?item.member.yz_member.wechat:"暂无微信号"}}</view>
											</view>
										</view>
										<view class="team_goods" id="distribution-goods" :key='i' wx:for="{{item.order_goods}}" wx:if="{{is_team_order_details==1}}"
										 wx:for-item="goods">
											<view class="img">
												<image src="{{goods.thumb}}"></image>
											</view>
											<view class="inner">
												<view class="name">{{goods.title}}</view>
											</view>
											<view class="price">
												<b>{{language['money']}}{{(goods.goods_price/goods.total)}}
													×{{goods.total}}</b>
												<view class="Total">{{language['money']}}{{goods.goods_price}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</view>
					</block>
				</view>
			</van-tab>
		</van-tabs>
		<!-- <view class="rationList ul">
          <view wx:for="{{third_content}}">
            <view class="detail">
              <view class="info">
                <view class="left">
                  <view class="h4">
                    下级 <text class="b">{{ item.subordinate_name }}</text
                    >{{ item.level_name }}
                  </view>
                  <text class="created span">{{ item.created_at }}</text>
                </view>
                <view class="right">
                  <view class="created b">+{{ item.reward_amount }}</view>
                </view>
              </view>
            </view>
          </view>
        </view> -->
	</view>
</view>
<shopfoot></shopfoot>
