<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<style>
		.uhead {
			display: flex;
			flex-direction: row;
			padding: 10px;
			background-color: #fff;
			margin-bottom: 5px;
		}
	
		.uhead-img {
			width: 80px;
			height: 80px;
			margin-right: 10px;
			display: block;
			border-radius: 50%;
		}
	
		.uhead-box {
			flex: 1;
		}
	
		.uhead-nick {
			margin-bottom: 5px;
			font-size: 16px;
		}
	
		.uhead-rnum {
			color: #999;
			margin-bottom: 10px;
			line-height: 14px;
			display: flex;
			font-size: 14px;
		}
		 
	</style>
	<body>
		<div class="header">
			<a href="/" 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="mgb-10 f16 flex">
						<div><?php echo $this->_var['user']['nickname']; ?></div>
						<div class="flex-1"></div>
						<?php if ($this->_var['invitecode']): ?>
						<div class="cl2 mgr-5">邀请码</div>
						<div class="cl-num"><?php echo $this->_var['invitecode']; ?></div>
						<?php endif; ?>
					</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 class="uhead-rnum flex  flex-ai-center">
						金币
						<text class="cl-money mgl-5 mgr-5"><?php echo $this->_var['data']['gold']; ?></text>

						积分
						<text class="cl-money mgl-5"><?php echo $this->_var['data']['grade']; ?></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="row-box mgb-10">
				<div class="row-box-hd">		
					<div class="flex-1">我的订单</div>
					<div gourl="/index.php?m=shop_order&a=my" class="row-box-more">全部订单</div>
				</div>
			<div class="flex pdt-10 flex-center">
				<div gourl="/index.php?m=shop_order&a=my" class="flex-1">
					<div class="f22 iconfont icon-moneybag"></div> 
					<div>待付款</div>
				</div>
				<div gourl="/index.php?m=shop_order&amp;a=my" class="flex-1">
					<div class="iconfont icon-deliver"></div> 
					<div>待收货</div>
				</div>
				<div gourl="/index.php?m=shop_order&amp;a=my" class="flex-1">
					<div class="iconfont icon-comment"></div> 
					<div>待评价</div>	
				</div>
			</div>
		</div>
		<?php $_from = $this->_var['navList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
			<div class="m-navPic mgb-10">
				<?php $_from = $this->_var['c']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'cc');if (count($_from)):
    foreach ($_from AS $this->_var['cc']):
?>
				<div gourl="<?php echo $this->_var['cc']['link_url']; ?>" class="m-navPic-item">
					<div class="m-navPic-icon <?php echo $this->_var['cc']['icon']; ?>"></div>
					<div class="m-navPic-title"><?php echo $this->_var['cc']['title']; ?></div>
				</div>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</div>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>	
			
		</div>
		<?php echo $this->fetch('footer-nav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>	
	</body>
</html>
