...
|
...
|
@@ -43,8 +43,7 @@ var address = { |
|
|
loadAreaData: function(pCode, toDomId, defaultValue, allCode) {
|
|
|
var the = this,
|
|
|
$toDom = $('#' + toDomId),
|
|
|
i = 0,
|
|
|
point = '';
|
|
|
i = 0;
|
|
|
|
|
|
var active,
|
|
|
val,
|
...
|
...
|
@@ -76,12 +75,11 @@ var address = { |
|
|
$toDom.append('<option value="0">' + defaultValue + '</option>');
|
|
|
if (toDomId === the.streetsDomId) {
|
|
|
allCode === pCode ? selectAll = 'selected' : selectAll = '';
|
|
|
$toDom.append('<option value="' + pCode + '" ' + selectAll + '>*全部</option>');
|
|
|
$toDom.append('<option value="' + pCode + '" ' + selectAll + '>全部</option>');
|
|
|
}
|
|
|
for (i in jsonData.options) {
|
|
|
if (jsonData.options[i]) {
|
|
|
val = jsonData.options[i];
|
|
|
point = (toDomId === the.streetsDomId && val.is_support === 'Y') ? '*' : '';
|
|
|
nId = val.value;
|
|
|
selecter = '';
|
|
|
|
...
|
...
|
@@ -89,7 +87,7 @@ var address = { |
|
|
nId === allCode.substr(0, nId.length)) {
|
|
|
selecter = 'selected';
|
|
|
}
|
|
|
$toDom.append('<option value="' + nId + '" ' + selecter + '>' + point + val.text + '</option>');
|
|
|
$toDom.append('<option value="' + nId + '" ' + selecter + '>' + val.text + '</option>');
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|