...
|
...
|
@@ -189,12 +189,12 @@ function bindAddressListEvent(html) { |
|
|
}
|
|
|
|
|
|
// 读取省市区列表缓存
|
|
|
if (window.localStorage && window.localStorage.getItem) {
|
|
|
chinaAddressList = window.localStorage.getItem('chinaAddressList');
|
|
|
}
|
|
|
if (chinaAddressList) {
|
|
|
bindAddressListEvent(chinaAddressList);
|
|
|
} else {
|
|
|
// if (window.localStorage && window.localStorage.getItem) {
|
|
|
// chinaAddressList = window.localStorage.getItem('chinaAddressList');
|
|
|
// }
|
|
|
// if (chinaAddressList) {
|
|
|
// bindAddressListEvent(chinaAddressList);
|
|
|
// } else {
|
|
|
|
|
|
// 省市区列表异步加载
|
|
|
$.ajax({
|
...
|
...
|
@@ -203,10 +203,10 @@ if (chinaAddressList) { |
|
|
timeout: 60000
|
|
|
}).then(function(html) {
|
|
|
bindAddressListEvent(html);
|
|
|
if (window.localStorage && window.localStorage.setItem) {
|
|
|
window.localStorage.setItem('chinaAddressList', html);
|
|
|
}
|
|
|
// if (window.localStorage && window.localStorage.setItem) {
|
|
|
// window.localStorage.setItem('chinaAddressList', html);
|
|
|
// }
|
|
|
}).fail(function() {
|
|
|
tip.show('获取省市区列表失败');
|
|
|
});
|
|
|
} |
|
|
// } |
...
|
...
|
|