...
|
...
|
@@ -314,13 +314,17 @@ |
|
|
$.post("{:url('Order/is_my_salesman')}",{indent_id:indnet_id},function(data){
|
|
|
if(data){
|
|
|
region = $('#city_text').text();
|
|
|
school_class = $('#school_class').text();
|
|
|
// school_class = $('#school_class').text();
|
|
|
school = $('.xuexiao_name').text();
|
|
|
grade = $('.banji_name').text();
|
|
|
name = $('#name').val();
|
|
|
phone = $('#phone').val();
|
|
|
if(region == '请选择省市区'){
|
|
|
alert('地区不能为空');
|
|
|
}else if(school_class == '请选择学校和班级'){
|
|
|
alert('学校班级不能为空');
|
|
|
}else if(school == '请选择学校'){
|
|
|
alert('学校不能为空');
|
|
|
}else if(grade == '请选择班级'){
|
|
|
alert('班级不能为空');
|
|
|
}else if(name == ''){
|
|
|
alert('姓名不能为空');
|
|
|
}else if(phone == ''){
|
...
|
...
|
@@ -329,7 +333,7 @@ |
|
|
liuyan = $('#liuyan').val();
|
|
|
indet_id = {$indent_id};
|
|
|
money = {$money.0};
|
|
|
$.post("{:url('Orderpage/salesman_ty_go_pay')}",{leave_word:liuyan,id:indet_id,money:money,region:region,school_class:school_class,name:name,phone:phone},function(data){
|
|
|
$.post("{:url('Orderpage/salesman_ty_go_pay')}",{leave_word:liuyan,id:indet_id,money:money,region:region,school:school,name:name,phone:phone,grade:grade},function(data){
|
|
|
if(data){
|
|
|
window.location.href = "{:url('Pay/index',array('id'=>$indent_id))}";
|
|
|
}else{
|
...
|
...
|
@@ -371,10 +375,19 @@ |
|
|
var area = items[0].text+" "+items[1].text+" "+items[2].text;
|
|
|
|
|
|
$.get("{:url('get_school')}",{'area':area},function(res){
|
|
|
console.log(res);
|
|
|
myschool = JSON.parse(res);
|
|
|
console.log(myschool);
|
|
|
school_s(myschool);
|
|
|
$('.xuexiao_name').text('请选择学校');
|
|
|
$('.xuexiao_name').removeAttr("style");
|
|
|
$('.banji_name').text('请选择班级');
|
|
|
$('.banji_name').removeAttr("style");
|
|
|
if(res){
|
|
|
myschool = JSON.parse(res);
|
|
|
console.log(myschool);
|
|
|
school_s(myschool);
|
|
|
}else{
|
|
|
school_s('');
|
|
|
grade_s('');
|
|
|
}
|
|
|
|
|
|
});
|
|
|
});
|
|
|
}, 200);
|
...
|
...
|
|