Authored by 周少峰

adress

... ... @@ -414,8 +414,8 @@ function getAddress(d, callback) {
data: {
id: d.id * 1
}
}).then(function(d) {
structureOption($obj, d.data, selectId, d.id);
}).then(function(resData) {
structureOption($obj, resData.data, selectId, d.id);
if (typeof callback === 'function') {
callback();
... ... @@ -456,10 +456,8 @@ function structureOption($obj, data, selectId, countryId) {
} else if ($obj.attr('name') === 'street') {
defaultOption = '<option value="0">请选择乡镇/街道</option>';
if (countyId) {
countyId += '';
countyId = countyId.substr(0, 6);
defaultOption += '<option value="' + countyId + '">全部</option>';
if (countryId) {
defaultOption += '<option value="' + countryId + '">全部</option>';
}
}
... ...