...
|
...
|
@@ -93,6 +93,16 @@ |
|
|
<div class="log_four_contant">
|
|
|
<div class="log_four_contant_one">
|
|
|
<div class="log_four_contant_left">
|
|
|
<if condition="$data.type eq '学龄前'">
|
|
|
<img src="__TMPL__/public/assets/images/73.png" alt="" />
|
|
|
<else/>
|
|
|
<img src="__TMPL__/public/assets/images/39_0.png" alt="" />
|
|
|
</if>
|
|
|
</div>
|
|
|
<div class="log_four_contant_right">学龄前</div>
|
|
|
</div>
|
|
|
<div class="log_four_contant_one">
|
|
|
<div class="log_four_contant_left">
|
|
|
<if condition="$data.type eq '小学'">
|
|
|
<img src="__TMPL__/public/assets/images/73.png" alt="" />
|
|
|
<else/>
|
...
|
...
|
@@ -129,6 +139,42 @@ |
|
|
<div class="log_four_contants">
|
|
|
<div class=" log_four_contant_ones">
|
|
|
<div class="log_botms">
|
|
|
<div class="log_four_contants_left xuelingqian" data-name="小班" data-class="1">
|
|
|
<img class="log_Img9" src="__TMPL__/public/assets/images/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">小班</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class=" log_four_contant_ones">
|
|
|
<div class="log_botms">
|
|
|
<div class="log_four_contants_left xuelingqian" data-name="中班" data-class="2">
|
|
|
<img class="log_Img9" src="__TMPL__/public/assets/images/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">中班</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class=" log_four_contant_ones">
|
|
|
<div class="log_botms">
|
|
|
<div class="log_four_contants_left xuelingqian" data-name="大班" data-class="3">
|
|
|
<img class="log_Img9" src="__TMPL__/public/assets/images/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">大班</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class=" log_four_contant_ones">
|
|
|
<div class="log_botms">
|
|
|
<div class="log_four_contants_left xuelingqian" data-name="学前班" data-class="4">
|
|
|
<img class="log_Img9" src="__TMPL__/public/assets/images/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">学前班</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_radios" style="display: none">
|
|
|
<div class="log_four_contants">
|
|
|
<div class=" log_four_contant_ones">
|
|
|
<div class="log_botms">
|
|
|
<div class="log_four_contants_left">
|
|
|
<img class="log_Img9" src="__TMPL__/public/assets/images/73.png" alt="" />
|
|
|
</div>
|
...
|
...
|
@@ -632,12 +678,9 @@ |
|
|
$(".log_four_contant_one").each(function() {
|
|
|
$(this).click(function() {
|
|
|
var index = $(this).index();
|
|
|
console.log(index);
|
|
|
var text1 = $(this).find(".log_four_contant_right").text();
|
|
|
console.log(text1)
|
|
|
$("#four_inp").attr("placeholder", text1).attr("value",text1);
|
|
|
xcg = $(this).find('.log_four_contant_right').text();
|
|
|
console.log(xcg)
|
|
|
$(".log_four_contant_one img").eq(index).attr("src", "__TMPL__/public/assets/images/73.png").parents(".log_four_contant_one").siblings().find("img").attr("src", "__TMPL__/public/assets/images/39_0.png");
|
|
|
if($(".log_four_contant_one img").eq(index).attr("src") == "__TMPL__/public/assets/images/73.png") {
|
|
|
$(".log_four_radios").eq(index).css({
|
...
|
...
|
@@ -679,7 +722,6 @@ |
|
|
tempData = classes + '-' + inputs[0].value + '-' + inputs[1].value
|
|
|
}
|
|
|
arr[index] = tempData;
|
|
|
console.log(arr)
|
|
|
} else {
|
|
|
tempData = ""
|
|
|
}
|
...
|
...
|
@@ -690,9 +732,7 @@ |
|
|
$('.log_four_radios').on('click','.log_botms',function() {
|
|
|
var root = $(this).parents('.log_four_radios').index();
|
|
|
var index = $(this).parent().index();
|
|
|
console.log(index)
|
|
|
index = root == 0?index:root==1?index + 6:index+9
|
|
|
console.log(index)
|
|
|
if($(this).find('.log_Img9').attr("src") == '__TMPL__/public/assets/images/39_0.png') {
|
|
|
$(this).find('.log_Img9').attr("src", "__TMPL__/public/assets/images/73.png");
|
|
|
$(this).next('.log_four_contants_input_block').slideDown();
|
...
|
...
|
@@ -701,18 +741,28 @@ |
|
|
var tempData = '';
|
|
|
var classes = index == 0 ? '一年级' : index == 1 ? '二年级' : index == 2 ? '三年级' : index == 3 ? '四年级' : index == 4 ? '五年级' : index == 5 ? '六年级' : index == 6 ? '初一' : index == 7 ? '初二' : index == 8 ? '初三' : index == 9 ? '高一' : index == 10 ? '高二' : index == 11 ? '高三' : '';
|
|
|
if($(this).parents(".log_four_contant_ones").find(".log_four_contants_left").find("img").attr("src") == "__TMPL__/public/assets/images/73.png") {
|
|
|
if(inputs[0].value && inputs[1].value) {
|
|
|
tempData = classes + '-' + inputs[0].value + '-' + inputs[1].value
|
|
|
if(inputs.length == 0) {
|
|
|
var name = $(this).find('.xuelingqian').data('name');
|
|
|
var ind = $(this).find('.xuelingqian').data('class');
|
|
|
arr[ind-1] = name;
|
|
|
} else {
|
|
|
if (inputs[0].value && inputs[1].value) {
|
|
|
tempData = classes + '-' + inputs[0].value + '-' + inputs[1].value
|
|
|
}
|
|
|
arr[index] = tempData;
|
|
|
}
|
|
|
arr[index] = tempData;
|
|
|
|
|
|
} else{
|
|
|
arr[index] = ''
|
|
|
}
|
|
|
} else {
|
|
|
$(this).find('.log_Img9').attr("src", '__TMPL__/public/assets/images/39_0.png');
|
|
|
$(this).next('.log_four_contants_input_block').slideUp();
|
|
|
arr[index] = ''
|
|
|
var ind = $(this).find('.xuelingqian').data('class');
|
|
|
if(ind) {
|
|
|
arr[ind-1] = '';
|
|
|
} else {
|
|
|
arr[index] = ''
|
|
|
}
|
|
|
}
|
|
|
console.log(arr)
|
|
|
});
|
...
|
...
|
|