|
@@ -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
|
+// } |