|
@@ -284,6 +284,27 @@ |
|
@@ -284,6 +284,27 @@ |
284
|
$("#city_text").text((items[0] || {}).text + "," + (items[1] || {}).text + "," + (items[2] || {}).text); //该ID为接收城市ID字段
|
284
|
$("#city_text").text((items[0] || {}).text + "," + (items[1] || {}).text + "," + (items[2] || {}).text); //该ID为接收城市ID字段
|
285
|
$('#city_text').css('color', '#333333');
|
285
|
$('#city_text').css('color', '#333333');
|
286
|
$("#city_text").html((items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text);
|
286
|
$("#city_text").html((items[0] || {}).text + " " + (items[1] || {}).text + " " + (items[2] || {}).text);
|
|
|
287
|
+ var area = items[0].text+" "+items[1].text+" "+items[2].text;
|
|
|
288
|
+ $.ajax({
|
|
|
289
|
+ url:"{:url('get_school')}",
|
|
|
290
|
+ type:"GET",
|
|
|
291
|
+ data:{'area':area},
|
|
|
292
|
+ success:function(res){
|
|
|
293
|
+ if(res.code == 1){
|
|
|
294
|
+ var data = res.data;
|
|
|
295
|
+ var html = "";
|
|
|
296
|
+ $(data).each(function(key,vo){
|
|
|
297
|
+ html +="<div class=\"three_model_school_name\" onclick=\"click_school("+vo.id+")\">"+vo.school+"</div>";
|
|
|
298
|
+ })
|
|
|
299
|
+ $('.there_university').html(html);
|
|
|
300
|
+ }else{
|
|
|
301
|
+ alert(res.msg)
|
|
|
302
|
+ }
|
|
|
303
|
+ },
|
|
|
304
|
+ error:function(res){
|
|
|
305
|
+ alert('与服务器断开连接')
|
|
|
306
|
+ }
|
|
|
307
|
+ })
|
287
|
});
|
308
|
});
|
288
|
}, 200);
|
309
|
}, 200);
|
289
|
});
|
310
|
});
|
|
@@ -303,7 +324,7 @@ |
|
@@ -303,7 +324,7 @@ |
303
|
|
324
|
|
304
|
// tab 大学
|
325
|
// tab 大学
|
305
|
var $xuexiao
|
326
|
var $xuexiao
|
306
|
- $(".there_university div").click(function() {
|
327
|
+ $("body").on('click',".there_university div",function() {
|
307
|
var index = $(this).index();
|
328
|
var index = $(this).index();
|
308
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
329
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
309
|
if($(this).hasClass("there_unActive")) {
|
330
|
if($(this).hasClass("there_unActive")) {
|
|
@@ -315,7 +336,7 @@ |
|
@@ -315,7 +336,7 @@ |
315
|
$('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover');
|
336
|
$('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover');
|
316
|
}
|
337
|
}
|
317
|
});
|
338
|
});
|
318
|
- $('.there_class div').click(function() {
|
339
|
+ $("body").on("click",'.there_class div',function() {
|
319
|
console.log($xuexiao)
|
340
|
console.log($xuexiao)
|
320
|
var index2 = $(this).index();
|
341
|
var index2 = $(this).index();
|
321
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
342
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|