address.phtml
4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{{> layout/header}}
<div class="user-me-page me-page yoho-page clearfix">
{{# address}}
{{> home/path}}
{{> home/navigation}}
<div class="me-main">
<div class="address block">
<div class="title">
<h2 ></h2>
</div>
<div class="main">
<ul class="address-list">
{{#each addressList}}
<li class="address-content {{#if isPreferred}}preferred{{/if}}" addressId={{id}}>
<div class="address-detail">
<strong>收货人:{{addressee}}</strong>
<br>
收货地址:{{address}}
<br>
联系电话:{{phone}}
<br>
</div>
<div class="address-edit">
<a href="javascript:void(0);" class="address-modify">修改</a>
<a href="javascript:void(0);" class="address-del">删除</a>
<br>
{{#if isPreferred}}
<a href="javascript:void(0);" class="btn-c2 default-btn">
<span>
已设为常用地址
</span>
</a>
{{else}}
<a href="javascript:void(0);" class="btn-c3 set-default-btn">
<span>
设为常用地址
</span>
</a>
{{/if}}
</div>
</li>
{{#if @last}}
<li class="clear"></li>
{{/if}}
{{/each}}
</ul>
<form id="address-form" name="address-form">
<div class="add-address">
<h2>
<span id="form-status">添加新地址</span>
</h2>
<div class="add-address-detail">
{{#each data}}
<div class="form-group">
{{#if isSelect}}
<label>{{labelText}}</label>
{{#each selects}}
<select id="{{key}}" name="{{key}}">
</select>
{{/each}}
{{else}}
<label for="{{key}}">{{labelText}}</label>
<input type="text" name='{{key}}' id="{{key}}" class="input-1 width-150" value="{{value}}">
{{/if}}
<span class="form-prompt form-info" id="{{key}}-tip">
{{tips}}
{{#isSelect}}
<a href="{{tipsUrl}}" class="a-underline" target="_blank">
查看货到付款地区
</a>
{{/isSelect}}
</span>
</div>
{{/each}}
</div>
<div class="dzgl-form-submit">
<input type="hidden" name="addrId" id="addrId" value="">
<input type="button" value="提交信息" class="btn-b1" id="{{submitId}}">
<input type="button" value="重置" class="btn-b1" id="btn-reset" style="display:none">
</div>
</div>
</form>
</div>
</div>
</div>
{{/ address}}
</div>
{{> layout/footer}}