...
|
...
|
@@ -371,34 +371,12 @@ |
|
|
$('#city_text').css('color', '#333333');
|
|
|
$("#city_text").html((items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text);
|
|
|
var area = items[0].text+" "+items[1].text+" "+items[2].text;
|
|
|
/* $.ajax({
|
|
|
url:"{:url('get_school')}",
|
|
|
type:"GET",
|
|
|
data:{'area':area},
|
|
|
success:function(res){
|
|
|
if(res.code == 1){
|
|
|
var data = res.data;
|
|
|
var html = "";
|
|
|
var arr = [];
|
|
|
for(i=0;i<data.length;i++){
|
|
|
arr['']
|
|
|
}
|
|
|
console.log(data);
|
|
|
console.log(myschool);
|
|
|
school_s(myschool,mygrade);
|
|
|
}else{
|
|
|
alert(res.msg)
|
|
|
}
|
|
|
},
|
|
|
error:function(res){
|
|
|
alert('与服务器断开连接')
|
|
|
}
|
|
|
})*/
|
|
|
|
|
|
$.get("{:url('get_school')}",{'area':area},function(res){
|
|
|
console.log(res);
|
|
|
myschool = JSON.parse(res);
|
|
|
console.log(myschool);
|
|
|
school_s(myschool,mygrade);
|
|
|
school_s(myschool);
|
|
|
});
|
|
|
});
|
|
|
}, 200);
|
...
|
...
|
|