<view class="enterprise">
	<view class="content">
		<van-tabs active="{{ active }}" tab-active-class="ative" bind:click="enterpriseBaseHandleClick">
			<van-tab title="{{merchant_people}}">
				<view class="share_holder">
					<view class="header_box">
						<view class="left ul">
							<view class="lf li" style="line-height:3rem;text-align:center;">
								{{erchants_name}}
							</view>
						</view>
						<view class="right ul">
							<view class="rt li" wx:if="{{enterprise_level_title}}">
								<view class="span">{{enterprise_level_title}}</view>
								<view class="span">{{merchant_reward}}比例:{{enterprise_level_li}}%</view>
							</view>
							<view class="li" wx:if="{{!enterprise_level_li}}" style="margin-top: 15px;">
								<text class="span">{{merchant_reward}}比例:{{erchants_ratio}}%</text>
							</view>
						</view>
					</view>
					<!-- 跳转enterprise_supplier -->
					<view>
						<view class="list1 code" catchtap="goTosupper" data-num="1">
							<view class="left">
								<view class="lf span">我的供应商</view>
							</view>
							<view class="right">
								<view class="rt span">{{enterpriseSupplier}}人</view>
								<van-icon name="arrow"></van-icon>
							</view>
						</view>
					</view>
					<view class="list1 code" catchtap="gotoStoreList" data-num="1">
						<view class="left">
							<view class="lf span">我的门店</view>
						</view>
						<view class="right">
							<view class="rt span">{{enterprise_store_number}}人</view>
							<van-icon name="arrow"></van-icon>
						</view>
					</view>
					<view class="today_bonus ul">
						<view wx:for="{{enterpriseRatioDatas}}" wx:key="index" style=" display: flex; flex-direction: column;" class="{{item.name}} li">
							<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="contentDetail">
					<van-tabs active="{{ active1 }}" tab-active-class="ative" bind:click="enterpriseHandleClick">
						<van-tab title="全部">
							<view class='rationList ul'>
								<view class="li" wx:for="{{enterprise_first_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
						<van-tab title="已结算">
							<view class='rationList ul'>
								<view class="li" wx:for="{{enterprise_second_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
						<van-tab title="未结算">
							<view class='rationList ul'>
								<view wx:for="{{enterprise_third_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
					</van-tabs>
				</view>
			</van-tab>
			<van-tab title="{{merchant_center}}">
				<view class="share_holder">
					<view class="header_box">
						<view class="left ul">
							<view class="lf li" style="line-height:3rem;text-align:center;" wx:if="{{enterpriseCenterInfo_1.has_one_level}}">
								{{enterpriseCenterInfo_1.realname}}
							</view>
						</view>
						<view class="right ul">
							<view class="rt li" wx:if="{{enterpriseCenterInfo_1.has_one_level}}">
								{{enterpriseCenterInfo_1.has_one_level.level_name}}
								<view>
									{{merchant_reward}}比例:{{enterpriseCenterInfo_1.has_one_level.bonus_ratio}}%
								</view>
							</view>
						</view>
					</view>
					<!-- 跳转enterprise_center_supplier -->
					<view>
						<view class="list1 code" catchtap="goTosupper" data-num="2">
							<view class="left">
								<view class="lf span">我的供应商</view>
							</view>
							<view class="right">
								<view class="rt span">{{enterpriseCenterSupplier}}人</view>
								<van-icon name="arrow"></van-icon>
							</view>
						</view>
					</view>
					<view class="list1 code" catchtap="gotoStoreList" data-num="2">
						<view class="left">
							<view class="lf span">我的门店</view>
						</view>
						<view class="right">
							<view class="rt span">{{store_number}}人</view>
							<van-icon name="arrow"></van-icon>
						</view>
					</view>
					<view class="today_bonus ul">
						<view wx:for="{{enterpriseCenterRatioDatas}}" class="{{item.name}} li" wx:key="index">
							<view class="span">{{item.money}}</view>
							<view class="b">{{item.data}}</view>
						</view>
						<view class="line li">
							<view class="careat"></view>
						</view>
					</view>
				</view>
				<view class="contentDetail" wx:if="{{active2show}}">
					<van-tabs active="{{ active2 }}" bind:click="enterpriseCenterHandleClick">
						<van-tab title="全部">
							<view class='rationList ul'>
								<view class="li" wx:for="{{enterprise_center_first_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
						<van-tab title="已结算">
							<view class='rationList ul'>
								<view class="li" wx:for="{{enterprise_center_second_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
						<van-tab title="未结算">
							<view class='rationList ul'>
								<view wx:for="{{enterprise_center_third_content}}" wx:key="index">
									<view class="detail">
										<text class="month span">{{item.create_month}}</text>
										<view class="info" wx:for="{{item.item}}" wx:for-index="merchantidx" wx:key="id">
											<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.bonus_money}}</view>
												<view class="state li">{{item.status_name}}</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</van-tab>
					</van-tabs>
				</view>
			</van-tab>
		</van-tabs>
	</view>
</view>
<shopfoot></shopfoot>
