<!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/js/address_update_mobile.js"></script>
    <script src="{{kg['tpl_url']}}mobile/layer_mobile/layer.js"></script>
    <script src="{{kg['tpl_url']}}mobile/js/area.js"></script>
    <script>
		$(function() {
			region_init('areap', 'areac', 'aread', '{{kg["address"]["areap"]}}', '{{kg["address"]["areac"]}}', '{{kg["address"]["aread"]}}');
		});
	</script>
</head>
<body ontouchstart>
	{% include 'component_header_mobile.tpl' %}
	<div class="box" >
		<div class="weui-tab__panel">
			<form class="weui-cells weui-cells_form" method="POST"  action="" name="f1" >
				<input type="hidden" name="action" value="submit">
				<div class="weui-cell" >
					<div class="weui-cell__hd"><label class="weui-label">收货人姓名</label></div>
					<div class="weui-cell__bd">
						<input id="" name="consignee" class="weui-input"  type="text"  placeholder="请输入收货人姓名"  value="{{kg['address']['consignee']}}" maxlength="15">
					</div>
				</div>

                <div class="weui-cell" >
					<div class="weui-cell__hd"><label class="weui-label">联系电话</label></div>
					<div class="weui-cell__bd">
						<input id="" name="tel" class="weui-input"  type="text" pattern="[0-9]*" placeholder="请输入联系电话"  value="{{kg['address']['tel']}}" maxlength="11">
					</div>
                </div>
                
                <div class="weui-cell" >
					<div class="weui-cell__hd"><label class="weui-label">收货地址</label></div>
					<div class="weui-cell__bd">
                        <select class="weui-select" id="areap" name="areap"></select>
                        <select class="weui-select" id="areac" name="areac"></select>
                        <select class="weui-select" id="aread" name="aread"> </select>
                    </div>
               
				</div>
                <div class="weui-cell" >					
					<div class="weui-cell__bd">
						<input id="" name="address" class="weui-input"  type="text"  placeholder="请输入详细地址" value="{{kg['address']['address']}}" maxlength="50">
					</div>
                </div>
                <div class="weui-cell" >
					<div class="weui-cell__hd"><label class="weui-label">邮政编码</label></div>
					<div class="weui-cell__bd">
						<input id="" name="zipcode" class="weui-input"  pattern="[0-9]*" type="text"  placeholder="请输入邮政编码" value="{{kg['address']['zipcode']}}" maxlength="6">
					</div>
                </div>
       
             


                <div class="weui-cell" >
					<div class="weui-cell__hd"><label class="weui-label">收货人手机号</label></div>
					<div class="weui-cell__bd">
						<input id="" name="mobile" class="weui-input" pattern="[0-9]*"  type="text"  placeholder="请输入收货人手机号" value="{{kg['address']['mobile']}}"  maxlength="11">
					</div>
                </div>

                <div class="weui-cell  weui-cells_checkbox" >
					<div class="weui-cell__hd"><label class="weui-label">默认地址</label></div>
					<div class="weui-cell__bd" style="display: -webkit-inline-box;">
						<label class="weui-cell" for="default2" style="padding: 0;">
							<div class="weui-cell__hd">
								<input type="radio" class="weui-check" name="default" id="default2" {% if kg['address']['default']==1%}checked="checked"{%endif %} value="1">
								<i class="weui-icon-checked"></i>
							</div>
							<div class="weui-cell__bd">
								<p>是</p>
							</div>
						</label>
						<label class="weui-cell" for="default3" style="padding: 0;"style="padding: 0;">
							<div class="weui-cell__hd">
								<input type="radio" class="weui-check" name="default" id="default3" {% if kg['address']['default']==0%}checked="checked"{%endif %} value="0">
								<i class="weui-icon-checked"></i>
							</div>
							<div class="weui-cell__bd">
								<p>否</p>
							</div>
						</label>
					</div>
				</div>

				<div class="button-sp-area" style="margin: 15px auto;width: 150px;">
					<button type="button"  class="weui-btn weui-btn_primary update_btn">提交</button>
				</div>
			</form>
		</div>
    </div>
    {% include 'component_footer_mobile.tpl' %}
 </body>