...
|
...
|
@@ -77,6 +77,24 @@ |
|
|
border-left: none;
|
|
|
border-right: none;
|
|
|
}
|
|
|
.mui-poppicker-header,
|
|
|
.mui-picker {
|
|
|
background-color: white;
|
|
|
}
|
|
|
|
|
|
.mui-btn-blue,
|
|
|
.mui-btn-primary,
|
|
|
input[type=submit] {
|
|
|
background-color: #FF7700;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.mui-pciker-list li.highlight {
|
|
|
color: #FF7700;
|
|
|
}
|
|
|
.mui-dtpicker-header,.mui-dtpicker-title h5{
|
|
|
background-color: white;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
...
|
...
|
@@ -91,11 +109,7 @@ |
|
|
选择学校
|
|
|
</div>
|
|
|
<div class="three_model_school_data there_university" style="display: block;">
|
|
|
<foreach name="$school" item="s">
|
|
|
<div class="three_model_school_name <if condition='$key eq 0'>there_unActive</if> school"
|
|
|
data-id="{$s.id}" style="cursor: pointer;">{$s.school}
|
|
|
</div>
|
|
|
</foreach>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -113,36 +127,7 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!--
|
|
|
<div class="tx_mask_school">
|
|
|
<div class="tx_maskCon_school">
|
|
|
<div class="three_model_school">
|
|
|
<div class="three_model_school_title">
|
|
|
选择学校-班级
|
|
|
</div>
|
|
|
<div class="three_model_school_tab">
|
|
|
<div class="three_model_school_left three_model_school_hover word" style="cursor:pointer">
|
|
|
学校
|
|
|
</div>
|
|
|
<div class="three_model_school_left" style="cursor:pointer">
|
|
|
班级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<div class="three_model_school_data there_university" style="display: block;cursor: pointer">
|
|
|
<foreach name="$school" item="s">
|
|
|
<div class="three_model_school_name <if condition='$key eq 0'>there_unActive</if> school"
|
|
|
data-id="{$s.id}" style="cursor: pointer;">{$s.school}
|
|
|
</div>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<div class="three_model_school_data there_class grade" style="cursor: pointer">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>-->
|
|
|
<!--统一配送-->
|
|
|
<div class="tx_mask_tongyi" onclick="$(this).hide()">
|
|
|
<div class="tx_maskCon_tongyi" onclick="zZFun(this)">
|
...
|
...
|
@@ -224,12 +209,6 @@ |
|
|
<input type="text" id="end_time" value="" placeholder="请输入结束配送时间"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--<div class="log_three_model_one logistic" style="padding-bottom: 0;">-->
|
|
|
<!--<div class="log_three_model_left" style="margin-top: -0.3rem;">快递公司</div>-->
|
|
|
<!--<div class="log_three_model_right">-->
|
|
|
<!--<input type="text" id="logistic_name" placeholder="请输入快递公司"/>-->
|
|
|
<!--</div>-->
|
|
|
<!--</div>-->
|
|
|
<div class="log_three_model_one logistic">
|
|
|
<div class="log_three_model_left">选择快递</div>
|
|
|
<div class="log_psong log_psong_select">
|
...
|
...
|
@@ -576,34 +555,51 @@ |
|
|
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
|
|
|
<script>
|
|
|
//选择学校
|
|
|
var schoolpicker = new mui.PopPicker();
|
|
|
var classpicker = new mui.PopPicker();
|
|
|
var class_arr = '';
|
|
|
zujian();
|
|
|
function zujian(data_class_arr){
|
|
|
(function($, doc) {
|
|
|
$.init();
|
|
|
school_arr = {$school};
|
|
|
console.log(data_class_arr,'dfdfds');
|
|
|
$.ready(function() {
|
|
|
schoolpicker.setData(school_arr);
|
|
|
classpicker.setData(data_class_arr);
|
|
|
});
|
|
|
})(mui, document);
|
|
|
}
|
|
|
var school_name;
|
|
|
$(".log_three_select_school2").click(function() {
|
|
|
$(".tx_mask_school").css("display", "block")
|
|
|
});
|
|
|
$(".three_model_school_name").click(function() {
|
|
|
var str = $(this).text();
|
|
|
$('#school').val(str);
|
|
|
console.log(str);
|
|
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
|
|
$(".log_three_select_school2").text(str);
|
|
|
$(".tx_mask_school").css("display", "none")
|
|
|
});
|
|
|
//选择班级
|
|
|
schoolpicker.show(function(e) {
|
|
|
school_name = e[0].value;
|
|
|
school_names = e[0].text;
|
|
|
$('school').val(school_names);
|
|
|
$(".log_three_select_school2").text(e[0].text);
|
|
|
$('.log_three_select_school2').css('color', '#333333');
|
|
|
$.post("{:url('Personalcenter/get_grade_class')}",{id:school_name},function(data){
|
|
|
if(data){
|
|
|
data = JSON.parse(data);
|
|
|
zujian(data);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
});
|
|
|
|
|
|
})
|
|
|
$(".log_three_select_class2").click(function() {
|
|
|
$(".tx_mask_class").css("display", "block")
|
|
|
});
|
|
|
$("body .grade").on('click', '.three_model_class_name', function () {
|
|
|
var str = $(this).text();
|
|
|
console.log(str);
|
|
|
$('#grade').val(str)
|
|
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
|
|
$(".log_three_select_class2").text(str);
|
|
|
$(".tx_mask_class").css("display", "none")
|
|
|
if(school_name != undefined) {
|
|
|
classpicker.show(function(e) {
|
|
|
class_name=e[0].text;
|
|
|
$('grade').val(class_name);
|
|
|
$(".log_three_select_class2").text(e[0].text);
|
|
|
$('.log_three_select_class2').css('color', '#333333');
|
|
|
});
|
|
|
} else {
|
|
|
alert("请先选择学校")
|
|
|
}
|
|
|
})
|
|
|
|
|
|
function zZFun(e) {
|
|
|
window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
|
|
|
}
|
|
|
</script>
|
|
|
<script>
|
|
|
function zZFun(e) {
|
...
|
...
|
@@ -713,26 +709,6 @@ |
|
|
display: "block"
|
|
|
});
|
|
|
});
|
|
|
|
|
|
//学校/弹窗
|
|
|
// $(".log_three_select_school").click(function () {
|
|
|
// $(".tx_mask_school").css({
|
|
|
// display: "block"
|
|
|
// });
|
|
|
// });
|
|
|
// tab 大学
|
|
|
// var $xuexiao
|
|
|
// $(".there_university div").click(function () {
|
|
|
// var index = $(this).index();
|
|
|
// $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
|
|
// if ($(this).hasClass("there_unActive")) {
|
|
|
// $xuexiao = $(this).text();
|
|
|
// $(".there_university").hide();
|
|
|
// $(".there_class").show();
|
|
|
// $('.three_model_school_left').eq(0).removeClass('word_color').removeClass('three_model_school_hover');
|
|
|
// $('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover');
|
|
|
// }
|
|
|
// });
|
|
|
$('body').on('click', ".there_class div", function () {
|
|
|
var index2 = $(this).index();
|
|
|
$(this).addClass("there_unActive").siblings().removeClass("there_unActive");
|
...
|
...
|
@@ -760,11 +736,7 @@ |
|
|
var grade = $('#grade').val();
|
|
|
var state = $('.log_three_tab_top .aaa').attr('data-state');
|
|
|
var is_courier = $('#is_courier').val();
|
|
|
// if (school == '') {
|
|
|
// alert('请选择学校')
|
|
|
// } else if (grade == '') {
|
|
|
// alert('请选择班级')
|
|
|
// } else {
|
|
|
|
|
|
$.ajax({
|
|
|
'url': "{:url('order_salesman/getOrderSalesman')}",
|
|
|
'type': "GET",
|
...
|
...
|
|