<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<link href="<?php echo $this->_var['skins']; ?>s2c_user/index.css" rel="stylesheet" />
	<body>
		<div class="header">
			<a href="/module.php?m=s2c" class="header-back"></a>
			<div class="header-title">个人中心</div>

		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<div class="uhead" v-if="pageLoad">

				<image gourl="/index.php?m=user&a=user_head" class="uhead-img" src="<?php echo $this->_var['data']['user_head']; ?>.100x100.jpg"></image>

				<div class="uhead-box">
					<div class="uhead-nick"><?php echo $this->_var['data']['nickname']; ?></div>
					<div class="uhead-rnum flex flex-ai-center">
						余额 ￥
						<text class="f14 cl-money mgl-5"><?php echo $this->_var['data']['money']; ?></text>
					</div>
					 
				</div>
				<div gourl="/index.php?m=user&a=set" class="flex-center btn-small btn-link iconfont icon-settings"></div>
			</div>
			<div class="tabs-border-group">
				<?php if ($this->_var['team']): ?>
				<div class="tabs-border">
					<div class="tabs-border-item tabs-border-active js-tabs-border-item">社团</div>
					<div class="tabs-border-item js-tabs-border-item">个人</div>
				</div>
				
				<div class="tabs-border-box tabs-border-box-active">
					<div class="row-box mgb-5">
						<div class="flex pd-5">
							<img src="<?php echo $this->_var['team']['userhead']; ?>.100x100.jpg" class="w50 bd-radius-50 mgr-5" />
							<div class="flex-1">
								<div class="mgb-5 flex">
									<div><?php echo $this->_var['team']['title']; ?></div>
									<div class="flex-1"></div>
									<a href="tel:<?php echo $this->_var['team']['telephone']; ?>" class="flex iconfont icon-phone_light f12"><?php echo $this->_var['team']['telephone']; ?></a>
								</div>
								
								<div class="cl3 f12">地址：<?php echo $this->_var['team']['address']; ?></div>
							</div>
						</div>
					</div>
					<div class="row-box mgb-5">
						<div class="row-box-hd">
							<div class="flex-1">团队订单</div>
							 
						</div>
						<div class="flex pdt-10 flex-center">
							<div gourl="/module.php?m=s2c_team_order&a=my&type=unpay" class="flex-1">
								<div class="f22 iconfont icon-moneybag cl-u"></div>
								<div>待付款</div>
							</div>
							<div gourl="/module.php?m=s2c_team_order&a=my&type=unreceive" class="flex-1">
								<div class="iconfont icon-deliver cl-u"></div>
								<div>待收货</div>
							</div>
							<div gourl="/module.php?m=s2c_team_order&a=my&type=unraty" class="flex-1">
								<div class="iconfont icon-comment cl-u"></div>
								<div>待评价</div>
							</div>
						</div>
					</div>
					<div class="row-box mgb-5">
						<div class="row-box-hd">
							<div class="flex-1 f16">业绩结算</div>
						 
						</div>
						<div class="flex pdt-10 flex-center">
							<div gourl="/module.php?m=s2c_done" class="flex-1">
								<div class="f22 cl-u">￥<?php echo $this->_var['team']['total_money']; ?></div>
								<div >团队业绩</div>
							</div>
							<div gourl="/module.php?m=s2c_tixian" class="flex-1">
								<div class="f22 cl-u">￥<?php echo $this->_var['team']['money']; ?></div>
								<div >提现申请</div>
							</div>
							<div gourl="/index.php?m=bankcard" class="flex-1">
								<div class="f22 iconfont icon-moneybag cl-u"></div>
								<div >银行账户</div>
							</div>
							 
						</div>
					</div>
				</div>
				<?php endif; ?>
				<div class="<?php if ($this->_var['team']): ?>tabs-border-box<?php endif; ?>">
					<div class="row-box mgb-5">
						<div class="row-box-hd">
							<div class="flex-1">我的订单</div>
							<div gourl="/module.php?m=s2c_order&a=my&type=all" class="row-box-more">全部订单</div>
						</div>
						<div class="flex pdt-10 flex-center">
							<div gourl="/module.php?m=s2c_order&a=my&type=unpay" class="flex-1">
								<div class="f22 iconfont icon-moneybag cl-u"></div>
								<div>待付款</div>
							</div>
							<div gourl="/module.php?m=s2c_order&a=my&type=unreceive" class="flex-1">
								<div class="iconfont icon-deliver cl-u"></div>
								<div>待收货</div>
							</div>
							<div gourl="/module.php?m=s2c_order&a=my&type=unraty" class="flex-1">
								<div class="iconfont icon-comment cl-u"></div>
								<div>待评价</div>
							</div>
						</div>
					</div>
					
					<div class="row-box mgb-5">
						 
						<?php if (! $this->_var['team']): ?>
						<div gourl="/module.php?m=s2c_team_apply" class="row-item">
							<div class="row-item-icon icon-crownfill cl-u"></div>
							<div class="row-item-title">申请成为团长</div>
						</div>
						<?php endif; ?>
						<div gourl="/module.php?m=s2c_vendor_apply" class="row-item">
							<div class="row-item-icon icon-deliver cl-u"></div>
							<div class="row-item-title">申请成为供应商</div>
						</div>
						<div gourl="/index.php?m=article&a=list&catid=41" class="row-item">
							<div class="row-item-icon icon-question cl-u"></div>
							<div class="row-item-title">常见帮助</div>
						</div>
						<div gourl="/index.php?m=kefu" class="row-item">
							<div class="row-item-icon icon-service cl-u"></div>
							<div class="row-item-title">联系客服</div>
						</div>
						<div gourl="/index.php?m=html&a=aboutus" class="row-item">
							<div class="row-item-icon icon-info cl-u"></div>
							<div class="row-item-title">关于我们</div>
						</div>
					</div>
					
				</div>
			</div>
			 
			

		</div>
		<?php $this->assign('ftnav','my'); ?>
		<?php echo $this->fetch('ftnav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>
	</body>
</html>
