作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

... ... @@ -310,7 +310,8 @@ class OrderpageController extends WeChatBaseController{
$datas['value'] = $val['id'];
$datas['school'] = $val['school'];
}
$this->success('SUCCESS','',$datas);
return json_encode($datas);
// $this->success('SUCCESS','',$datas);
}
/**
... ...
... ... @@ -380,7 +380,7 @@
$('#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({
/* $.ajax({
url:"{:url('get_school')}",
type:"GET",
data:{'area':area},
... ... @@ -388,6 +388,10 @@
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);
... ... @@ -398,7 +402,11 @@
error:function(res){
alert('与服务器断开连接')
}
})
})*/
$.get("{:url('get_school')}",{'area':area},function(data){
myschool = JSON.parse(data);
school_s(myschool,mygrade);
});
});
}, 200);
});
... ...