...
|
...
|
@@ -46,22 +46,14 @@ |
|
|
</div>
|
|
|
<div>
|
|
|
<div class="three_model_school_data there_university" style="display: block;">
|
|
|
<div class="three_model_school_name">天津科技大学</div>
|
|
|
<div class="three_model_school_name">天津科技大学</div>
|
|
|
<div class="three_model_school_name there_unActive">天津科技大学</div>
|
|
|
<div class="three_model_school_name">天津科技大学2</div>
|
|
|
<div class="three_model_school_name">天津科技大学3</div>
|
|
|
<div class="three_model_school_name">天津科技大学4</div>
|
|
|
<div class="three_model_school_name">天津科技大学5</div>
|
|
|
<div class="three_model_school_name">天津科技大学6</div>
|
|
|
<volist name="school" id="vo">
|
|
|
<div class="three_model_school_name <eq name='key' value='0'>there_unActive</eq>" onclick="click_school({$vo.id})">{$vo.school}</div>
|
|
|
</volist>
|
|
|
</div>
|
|
|
<div class="three_model_school_data there_class">
|
|
|
<div class="three_model_school_name">G1-11</div>
|
|
|
<div class="three_model_school_name">G1-12</div>
|
|
|
<div class="three_model_school_name">G1-13</div>
|
|
|
<div class="three_model_school_name">G1-14</div>
|
|
|
<div class="three_model_school_name">G1-15</div>
|
|
|
<div class="three_model_school_name">G1-16</div>
|
|
|
<div class="three_model_school_data there_class banjiadd">
|
|
|
<volist name="grade_class_show" id="vo">
|
|
|
<div class="three_model_school_name banji">{$vo}</div>
|
|
|
</volist>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -98,7 +90,7 @@ |
|
|
地区
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<div id="city_text">请选择省市区</div>
|
|
|
<div id="city_text" >请选择省市区</div>
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right">
|
|
|
<img src="__TMPL__/public/assets/images/29.png" alt="" />
|
...
|
...
|
@@ -109,7 +101,7 @@ |
|
|
学校
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<div class="city_text">请选择学校和班级</div>
|
|
|
<div class="city_text school_grade_class" id="school_class">请选择学校和班级</div>
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right">
|
|
|
<img src="__TMPL__/public/assets/images/29.png" alt="" />
|
...
|
...
|
@@ -122,7 +114,7 @@ |
|
|
姓名
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<input type="text" placeholder="请输入姓名" />
|
|
|
<input type="text" placeholder="请输入姓名" id="name"/>
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right">
|
|
|
<img src="__TMPL__/public/assets/images/29.png" alt="" />
|
...
|
...
|
@@ -133,7 +125,7 @@ |
|
|
手机号
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<input type="text" placeholder="输入手机号" maxlength="11"/>
|
|
|
<input type="text" placeholder="输入手机号" maxlength="11" id="phone"/>
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right" style="opacity: 0;">
|
|
|
<img src="__TMPL__/public/assets/images/29.png" alt="" />
|
...
|
...
|
@@ -184,7 +176,7 @@ |
|
|
买家留言
|
|
|
</div>
|
|
|
<div class="log_four_pash_bottom_two">
|
|
|
<textarea name="" id="" cols="20" rows="3" placeholder="在此填写您的留言"></textarea>
|
|
|
<textarea cols="20" rows="3" placeholder="在此填写您的留言" id="liuyan"></textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -194,7 +186,7 @@ |
|
|
<div class="log_four_zong_qian">合计金额:</div>
|
|
|
<div class="log_four_zong_shu"><span>¥</span>{$money.0}.<span>{$money.1}</span></div>
|
|
|
</div>
|
|
|
<div class="log_three_fixed_right">
|
|
|
<div class="log_three_fixed_right" onclick="go_pay()">
|
|
|
立即支付
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -210,6 +202,63 @@ |
|
|
function go_courier(){
|
|
|
window.location.href = "{:url('Orderpage/order_salesman_kd')}?indet_id="+{$indent_id};
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*当点击学校时
|
|
|
*/
|
|
|
function click_school(id){
|
|
|
$.post("{:url('Orderpage/get_grade_class')}",{id:id},function(data){
|
|
|
if(data){
|
|
|
grade = JSON.parse(data);
|
|
|
$('.banji').remove();
|
|
|
for(i=0;i<grade.length;i++){
|
|
|
$('.banjiadd').append("<div class='three_model_school_name banji'>"+grade[i]+"</div>");
|
|
|
}
|
|
|
}else{
|
|
|
$('.banji').remove();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*点击班级时
|
|
|
*/
|
|
|
$(document).on('click','.banji',function(){
|
|
|
grade = $(this).text();
|
|
|
$('.school_grade_class').text($xuexiao+" "+grade);
|
|
|
})
|
|
|
|
|
|
/**
|
|
|
*点击去支付
|
|
|
*/
|
|
|
function go_pay(){
|
|
|
region = $('#city_text').text();
|
|
|
school_class = $('#school_class').text();
|
|
|
name = $('#name').val();
|
|
|
phone = $('#phone').val();
|
|
|
if(region == '请选择省市区'){
|
|
|
alert('地区不能为空');
|
|
|
}else if(school_class == '请选择学校和班级'){
|
|
|
alert('学校班级不能为空');
|
|
|
}else if(name == ''){
|
|
|
alert('姓名不能为空');
|
|
|
}else if(phone == ''){
|
|
|
alert('手机号不能为空');
|
|
|
}else{
|
|
|
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){
|
|
|
if(data){
|
|
|
window.location.href = "{:url('Pay/index',array('id'=>$indent_id))}";
|
|
|
}else{
|
|
|
alert('更新订单失败');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<script>
|
|
|
$(".log_four_top_right>div").click(function() {
|
...
|
...
|
|