<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('header.html'); ?>
		<div class="main-body">
			<div class="flex">
				<?php echo $this->fetch('user_side.html'); ?>
				<div class="flex-1">
					<div class="btn btn-danger mgb-10">消费记录</div>
					<?php if (! $this->_var['rscount']): ?>
						<div class="emptyData">暂无消费记录</div>
					 
					<?php else: ?>
						<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
						<div class="row-box mgb-5">
							<div class="flex bd-mp-5">
								<div class="cl1"><?php echo $this->_var['item']['timeago']; ?></div>
								<div class="flex-1"></div>
								<div class="cl-money">￥<?php echo $this->_var['item']['money']; ?></div>
							</div>
							<div class="cl3"><?php echo $this->_var['item']['content']; ?></div>
					
						</div>
						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					<?php endif; ?>
				</div>
			</div> 
			
		</div>
		<?php echo $this->fetch('footer.html'); ?>
	</body>
</html>
