|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
|
<title>学考无忧-添加学校</title>
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css">
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css">
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" />
|
|
|
<style>
|
|
|
.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;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<div class="log_top_co">
|
|
|
<!-- 顶部 -->
|
|
|
<div class=" order_top log_top_co">
|
|
|
<a href="">
|
|
|
<img src="img/left.png" alt="" />
|
|
|
</a>
|
|
|
<p>添加学校</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 地址信息 -->
|
|
|
<div class="log_four_input">
|
|
|
<div class="log_four_input_one">
|
|
|
<div class="log_four_input_one_left">
|
|
|
地区
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<input type="text" placeholder="请选择" id="city_text"/>
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right">
|
|
|
<img src="./img/29.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_input_one">
|
|
|
<div class="log_four_input_one_left">
|
|
|
学校
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<input type="text" placeholder="请录入" />
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right">
|
|
|
<img src="./img/29.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_input_one">
|
|
|
<div class="log_four_input_one_left">
|
|
|
类型
|
|
|
</div>
|
|
|
<div class="log_four_input_one_center">
|
|
|
<input type="text" id="four_inp" placeholder="小学" />
|
|
|
</div>
|
|
|
<div class="log_four_input_one_right log_four_input_select_type">
|
|
|
<img src="./img/29.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 选择框 -->
|
|
|
<div class="log_four_radio">
|
|
|
<div class="log_four_contant">
|
|
|
<div class="log_four_contant_one">
|
|
|
<div class="log_four_contant_left">
|
|
|
<img src="./img/73.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contant_right">小学</div>
|
|
|
</div>
|
|
|
<div class="log_four_contant_one">
|
|
|
<div class="log_four_contant_left">
|
|
|
<img src="./img/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contant_right">初中</div>
|
|
|
</div>
|
|
|
<div class="log_four_contant_one">
|
|
|
<div class="log_four_contant_left">
|
|
|
<img src="./img/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contant_right">高中</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_radios">
|
|
|
<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>
|
|
|
<div class="log_four_contants_right">一年级</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block" style="display: block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_ooo">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">选择班级</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_li">
|
|
|
<ul>
|
|
|
<li>小一班</li>
|
|
|
<li>小二班</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_ooo">
|
|
|
<div class="log_four_xian_ban2">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_li2">
|
|
|
<ul>
|
|
|
<li>小一班</li>
|
|
|
<li>小二班</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<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/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">
|
|
|
二年级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<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/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">
|
|
|
三年级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<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/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">
|
|
|
四年级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<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/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">
|
|
|
五年级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<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/39_0.png" alt="" />
|
|
|
</div>
|
|
|
<div class="log_four_contants_right">
|
|
|
六年级
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_contants_input_block">
|
|
|
<div class="log_four_contants_input ">
|
|
|
<div class="log_four_xian_ban">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="log_four_xian_wife">——</div>
|
|
|
<div class="log_four_xian_ban2">
|
|
|
<div class="log_four_xian_nei">
|
|
|
选择班级
|
|
|
</div>
|
|
|
<div class="log_four_xian_icon">
|
|
|
<img src="__TMPL__/public/assets/images/down.png" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 按钮 -->
|
|
|
<div class="log_seven_btn">
|
|
|
<div class="log_seven_btn_contant">
|
|
|
确定
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="__TMPL__/public/assets/js/jquery.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/base.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/mui.min.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
|
|
|
<script>
|
|
|
$(".log_four_input_select_type").click(function() {
|
|
|
var block = $(".log_four_radio").css("display");
|
|
|
if (block == "none") {
|
|
|
$(".log_four_input_select_type")
|
|
|
.find("img")
|
|
|
.attr("src", "../images/75.png");
|
|
|
$(".log_four_radio").css({
|
|
|
display: "block"
|
|
|
});
|
|
|
} else {
|
|
|
$(".log_four_input_select_type")
|
|
|
.find("img")
|
|
|
.attr("src", "../images/29.png");
|
|
|
$(".log_four_radio").css({
|
|
|
display: "none"
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
$(".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();
|
|
|
$("#four_inp").attr("placeholder", text1);
|
|
|
$(".log_four_contant_one img")
|
|
|
.eq(index)
|
|
|
.attr("src", "../images/73.png")
|
|
|
.parents(".log_four_contant_one")
|
|
|
.siblings()
|
|
|
.find("img")
|
|
|
.attr("src", "../images/39_0.png");
|
|
|
if (
|
|
|
$(".log_four_contant_one img")
|
|
|
.eq(index)
|
|
|
.attr("src") == "../images/73.png"
|
|
|
) {
|
|
|
$(".log_four_radios").css({
|
|
|
display: "block"
|
|
|
});
|
|
|
$(".log_four_radio").css({
|
|
|
display: "none"
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
$(".log_four_contant_ones").each(function() {
|
|
|
var indexs = $(this).index();
|
|
|
$(this).click(function() {
|
|
|
var index = $(this).index();
|
|
|
$(".log_four_contant_ones .log_Img9")
|
|
|
.eq(index)
|
|
|
.attr("src", "../images/73.png")
|
|
|
.parents(".log_four_contant_ones")
|
|
|
.siblings()
|
|
|
.find(".log_Img9")
|
|
|
.attr("src", "../images/39_0.png");
|
|
|
$(".log_four_contant_ones .log_four_contants_input_block")
|
|
|
.eq(index)
|
|
|
.slideDown()
|
|
|
.parents(".log_four_contant_ones")
|
|
|
.siblings()
|
|
|
.find(".log_four_contants_input_block")
|
|
|
.slideUp();
|
|
|
});
|
|
|
$(this)
|
|
|
.find(".log_four_xian_ban")
|
|
|
.click(function() {
|
|
|
$(this)
|
|
|
.next(".log_four_li")
|
|
|
.slideToggle();
|
|
|
console.log($(this).next(".log_four_li"));
|
|
|
});
|
|
|
console.log($(this).find(".log_four_li li"));
|
|
|
$(this);
|
|
|
$(this)
|
|
|
.find(".log_four_li li")
|
|
|
.click(function() {
|
|
|
console.log(
|
|
|
$(this)
|
|
|
.parents(".log_four_li")
|
|
|
.prev(".log_four_xian_ban")
|
|
|
.find(".log_four_xian_nei")
|
|
|
);
|
|
|
$(this)
|
|
|
.parents(".log_four_li")
|
|
|
.prev(".log_four_xian_ban")
|
|
|
.find(".log_four_xian_nei")
|
|
|
.text($(this).text());
|
|
|
});
|
|
|
|
|
|
$(this)
|
|
|
.find(".log_four_xian_ban2")
|
|
|
.click(function() {
|
|
|
$(this)
|
|
|
.next(".log_four_li2")
|
|
|
.slideToggle();
|
|
|
// console.log(
|
|
|
// $(this)
|
|
|
// .next(".log_four_li li")
|
|
|
// .text()
|
|
|
// );
|
|
|
});
|
|
|
$(this)
|
|
|
.find(".log_four_li2 li")
|
|
|
.click(function() {
|
|
|
console.log(
|
|
|
$(this)
|
|
|
.parents(".log_four_li2")
|
|
|
.prev(".log_four_xian_ban2")
|
|
|
.find(".log_four_xian_nei")
|
|
|
);
|
|
|
$(this)
|
|
|
.parents(".log_four_li2")
|
|
|
.prev(".log_four_xian_ban2")
|
|
|
.find(".log_four_xian_nei")
|
|
|
.text($(this).text());
|
|
|
});
|
|
|
});
|
|
|
//添加地址
|
|
|
var city_picker = new mui.PopPicker({
|
|
|
layer: 3
|
|
|
});
|
|
|
city_picker.setData(cityData3);
|
|
|
$("#city_text").on("tap", function() {
|
|
|
setTimeout(function() {
|
|
|
city_picker.show(function(items) {
|
|
|
$("#city_text").text((items[0] || {}).text + "," + (items[1] || {}).text + "," + (items[2] || {}).text); //该ID为接收城市ID字段
|
|
|
$('#city_text').css('color', '#333');
|
|
|
$("#city_text").attr("placeholder",((items[0] || {}).text + ' ' + (items[1] || {}).text + ' ' + (items[2] || {}).text))
|
|
|
});
|
|
|
}, 200);
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|