<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>MEMBER CENTER</title>
<script src="<?= base_url() ?>assets/front/js/jquery-1.8.3.min.js"></script>  
<link href="<?= base_url() ?>assets/front/css/style.css" rel="stylesheet" type="text/css" /> 
<script src="<?= base_url() ?>assets/front/js/common.js"></script> 
</head>

<body> 
<!---->
<div class="placeholder-head"></div>
<div class="head"><a href="javascript:history.back(-1)" class="return"></a>消费明细</div> 
<div class="warp">
    <?php foreach($result as $k=>$v) { ?>
	<dl class="consume">
    	<!--<dt><?= $v['tran_date'] ?></dt>-->
		 <dt><?= $v['month_zh'] ?>月 <?= $v['tran_year'] ?></dt>
        <?php foreach($v['list'] as $key=>$val) { ?>
    	    <dd><a href="<?= site_url('index.php/member/consume_info?check_no='.$val['check_no']) ?>">
                <?= $val['shop_name'] ?><span><?= date("Y-m-d",strtotime($val['tran_date'])) ?>&nbsp;&nbsp;&nbsp;&nbsp;
				<?= $val['check_no'] ?></span><p>￥<?= number_format($val['total_amount'],2) ?></p></a></dd>
        <?php } ?>
    </dl>
    <?php } ?>
</div>
<!----> 

</body>
</html>