Authored by 郭成尧

'address-select-bug'

@@ -189,12 +189,12 @@ function bindAddressListEvent(html) { @@ -189,12 +189,12 @@ function bindAddressListEvent(html) {
189 } 189 }
190 190
191 // 读取省市区列表缓存 191 // 读取省市区列表缓存
192 -if (window.localStorage && window.localStorage.getItem) {  
193 - chinaAddressList = window.localStorage.getItem('chinaAddressList');  
194 -}  
195 -if (chinaAddressList) {  
196 - bindAddressListEvent(chinaAddressList);  
197 -} else { 192 +// if (window.localStorage && window.localStorage.getItem) {
  193 +// chinaAddressList = window.localStorage.getItem('chinaAddressList');
  194 +// }
  195 +// if (chinaAddressList) {
  196 +// bindAddressListEvent(chinaAddressList);
  197 +// } else {
198 198
199 // 省市区列表异步加载 199 // 省市区列表异步加载
200 $.ajax({ 200 $.ajax({
@@ -203,10 +203,10 @@ if (chinaAddressList) { @@ -203,10 +203,10 @@ if (chinaAddressList) {
203 timeout: 60000 203 timeout: 60000
204 }).then(function(html) { 204 }).then(function(html) {
205 bindAddressListEvent(html); 205 bindAddressListEvent(html);
206 - if (window.localStorage && window.localStorage.setItem) {  
207 - window.localStorage.setItem('chinaAddressList', html);  
208 - } 206 + // if (window.localStorage && window.localStorage.setItem) {
  207 + // window.localStorage.setItem('chinaAddressList', html);
  208 + // }
209 }).fail(function() { 209 }).fail(function() {
210 tip.show('获取省市区列表失败'); 210 tip.show('获取省市区列表失败');
211 }); 211 });
212 -} 212 +// }
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <ul class="address-list"> 11 <ul class="address-list">
12 {{# sub}} 12 {{# sub}}
13 <li class="address-last" data-id="{{code}}"> 13 <li class="address-last" data-id="{{code}}">
14 - <span class="caption">{{caption}}</span> 14 + <span class="caption" data-id="{{code}}">{{caption}}</span>
15 </li> 15 </li>
16 {{/ sub}} 16 {{/ sub}}
17 </ul> 17 </ul>