...
|
...
|
@@ -63,7 +63,7 @@ |
|
|
}
|
|
|
$('#city').html(mydata);
|
|
|
$('#county').html("<option value=''>请选择</option>");
|
|
|
}else if(result.code==40005){
|
|
|
}else {
|
|
|
alert('获取失败!');
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -78,14 +78,14 @@ |
|
|
data:{'pid':city_id},
|
|
|
success:function(data) {
|
|
|
var result = data;
|
|
|
if(result.code==20000){
|
|
|
if(result.code==1){
|
|
|
var mydata = "<option value=''>请选择</option>";
|
|
|
for (var i = 0; i < result.data.length; i++) {
|
|
|
var data = result.data[i];
|
|
|
mydata += '<option value="'+data.name+'">'+data.name+'</option>';
|
|
|
}
|
|
|
$('#county').html(mydata);
|
|
|
}else if(result.code==40005){
|
|
|
}else {
|
|
|
alert('获取失败!');
|
|
|
}
|
|
|
}
|
...
|
...
|
|