<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>收货地址管理 - KGCMS</title>
	<link rel="stylesheet" href="{{kg['tpl_url']}}mobile/css/my_address_mobile.css">
	<script src="{{kg['tpl_url']}}mobile/js/jquery-3.2.1.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/weui.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/zepto.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/common.js"></script>
	<script src="{{kg['tpl_url']}}mobile/layer_mobile/layer.js"></script>
</head>
<body ontouchstart>
	{% include 'component_header_mobile.tpl' %}
	<div class="box" >
		<div class="weui-tab__panel">
			<div class="weui-cells_form">
				{%if  kg['address']%}
				{% for row in kg['address'] %}
				<div class="weui-cells" >
					<div class="weui-cell" style="display: block;" >
						<div class="weui-cell__hd" >
							<label >{{row['consignee']}}</label><label style="margin-left: 20px;">{{row['mobile']}}</label>						
							<label style="float: right;font-size: 14px;">
								{% if row['default'] == 0 %} <a class="btn btn-primary" href="my_address_mobile?action=default&id={{row['id']}}"><i class="fa fa-cog"></i>默认</a>{% endif %}
								<a class="btn btn-success" href="address_update_mobile?id={{row['id']}}"><i class="fa fa-pencil-square-o"></i>修改</a>
								<a class="btn btn-danger" href="my_address_mobile?action=del&id={{row['id']}}"><i class="fa fa-trash-o"></i>删除</a>
							</label>
					
						</div>
						<div class="weui-cell__hd" style="margin-top: 10px;">
							<span><i class="fa fa-map-marker" style="margin-right: 5px;color: #10aeff;font-size: 18px;"></i></span> {{row['areap']}} {{row['areac']}} {{row['aread']}} {{row['address']}}</div>				

					</div>
				</div>
				{% endfor %}
				{%else%}
				<div class="weui-cells" >
					<div class="weui-cell" >
						<div class="weui-cell__hd" >你没有收货地址，请添加收</div>
					</div>
				</div>
				{%endif%}
				<div class="button-sp-area" style="margin: 15px auto;width: 150px;">
					<a href="address_update_mobile" class="weui-btn weui-btn_primary"><i class="fa fa-plus">&nbsp;</i>添加收货地址</a>
				</div>
			</div>
		</div>
    </div>
    {% include 'component_footer_mobile.tpl' %}
 </body>