<!--packageB/member/income/new_team_bonus/new_team_bonus.wxml-->


<view class="header_box">
	<view class="left">
		<text>{{pageData.level_name}}</text>
	</view>
	<view class="right">
		<view class="li">等级比例:{{pageData.dividend_ratio}}%</view>
		<view class="li" wx:if="{{pageData.next_dividend_ratio}}">下一等级比例:{{pageData.next_dividend_ratio}}%</view>
	</view>
</view>


<view class="money">
	<view class="moneyItem">
		<view class="price">{{pageData.unliquidated}}元</view>
		<view class="desc">未结算</view>
	</view>
	<view class="moneyItem">
		<view class="price">{{pageData.liquidated}}元</view>
		<view class="desc">已结算</view>
	</view>
</view>

<view class="hr"></view>

<view class="tags">
	<van-tabs  active="{{ active }}" bind:change="changeTags">
		<van-tab wx:for="{{list_title}}" title="{{item.name}}" name="{{item.dividend_type}}" wx:key="dividend_type"></van-tab>
	</van-tabs>
</view>

<view class="listData">
	<view class="wrapper" wx:for="{{list_data}}" wx:for-item="item1" wx:for-index="index1" wx:key="{{index1}}" >
		<view class="detail">
			<text class="month">{{item1.create_month}}</text>
			<view class="info" wx:for="{{item1.has_many_dividend}}" wx:for-item="item2" wx:for-index="index2" wx:key="{{index2}}" >
				<view bindtap="openDetail"  class="info-view" data-ind1="{{index1}}" data-ind2="{{index2}}">
					<view class="left">
						<view class="num left-item">订单号：{{item2.order_sn}}</view>
						<view class="time left-item">时间：{{item2.created_at}}</view>
					</view>
					<view class="right">
						<view class="price right-item">{{item2.dividend_amount}}</view>
						<view class="state right-item">{{ item2.status_name }}</view>
					</view>
				</view>
				<!--点击展开    ——Collapse 折叠面板   手风琴效果，每次只能展开一个面板-->
				<view class="{{(display1 == index1 && display2 == index2)?'opens':''}} order_detail" >
					<view class="team_list">
						<view class="img" wx:if="{{item2.member}}">
							<image src="{{item2.member.avatar}}"></image>
						</view>
						<view class="info1" wx:if="{{item2.member}}">
							<text class="name">{{item2.member.nickname}}</text>
							<text class="desc">微信号:{{item2.member.yz_member&&item2.member.yz_member.wechat?item2.member.yz_member.wechat:"暂无微信号"}}</text>
						</view>
					</view>
					<view class="team_goods" id="distribution-goods" wx:for="{{item2.order_goods}}" wx:for-item="goods" wx:for-index="i" >
						<view class="img">
							<image src="{{goods.thumb}}"></image>
						</view>
						<view class="inner">
							<view class="name">{{goods.title}}</view>
						</view>
						<view class="price">
							<view>
								<view class="b">{{$i18n.t('money')}} {{(goods.goods_price/goods.total)}}</view>
								<view class="b"> × {{goods.total}}</view>
							</view>
							
							<view class="total">{{$i18n.t('money')}} {{goods.goods_price}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
	<view style="color:#666;font-size:0.8rem;margin-top:2rem;text-align:center;" wx:if="{{list_data.length==0}}">没有任何数据</view>
</view>
		


