...
|
...
|
@@ -21,8 +21,6 @@ var $sortItem = $('.sort-item'), |
|
|
$stuYearWrap = $stuYear.parent(),
|
|
|
$identityForm = $('#identity-form');
|
|
|
|
|
|
// $stuYearUl = $stuYear.next();
|
|
|
|
|
|
var $rightDia = $('#rights-dia'),
|
|
|
$couponDia = $('#coupon-dia');
|
|
|
|
...
|
...
|
@@ -110,8 +108,10 @@ function submitIdentity(json) { |
|
|
type: 'GET',
|
|
|
url: '/product/students/verify',
|
|
|
data: json
|
|
|
}).then(function() {
|
|
|
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
window.location.href = data.data;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -249,11 +249,37 @@ $sortItem.on('click', function() { |
|
|
$(this).addClass('active');
|
|
|
});
|
|
|
|
|
|
function loadSelectLi(jsonData, param) {
|
|
|
var $wrap = jsonData.$ul.parent(),
|
|
|
keyData = jsonData.keyData;
|
|
|
|
|
|
jsonData.$ul.empty();
|
|
|
if ($wrap.hasClass('active')) {
|
|
|
$wrap.removeClass('active');
|
|
|
} else {
|
|
|
closeStuSelect();
|
|
|
$wrap.addClass('active');
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: jsonData.url,
|
|
|
data: param
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
jsonData.$ul.html(provFn({
|
|
|
keyData: data.data
|
|
|
}));
|
|
|
} else if (data.code === 403) {
|
|
|
location.href = data.data.url;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 加载学校地区数据
|
|
|
$stuProv.on('click', function() {
|
|
|
var $provUl = $(this).next();
|
|
|
var $ul = $(this).next();
|
|
|
|
|
|
$provUl.empty();
|
|
|
$ul.empty();
|
|
|
if ($stuProvWrap.hasClass('active')) {
|
|
|
$stuProvWrap.removeClass('active');
|
|
|
} else {
|
...
|
...
|
@@ -264,7 +290,7 @@ $stuProv.on('click', function() { |
|
|
url: '/product/students/schoolArea'
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$provUl.html(provFn({
|
|
|
$ul.html(provFn({
|
|
|
provData: data.data
|
|
|
}));
|
|
|
} else if (data.code === 403) {
|
...
|
...
|
@@ -274,22 +300,6 @@ $stuProv.on('click', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$('#stu-province-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this), 'areacode');
|
|
|
});
|
|
|
|
|
|
$('#stu-school-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this), 'schoolCode');
|
|
|
});
|
|
|
|
|
|
$('#stu-edu-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this));
|
|
|
});
|
|
|
|
|
|
$('#stu-entrance-year-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this));
|
|
|
});
|
|
|
|
|
|
//
|
|
|
$stuSchool.on('click', function() {
|
|
|
var $ul = $(this).next();
|
...
|
...
|
@@ -316,6 +326,7 @@ $stuSchool.on('click', function() { |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
//
|
...
|
...
|
@@ -381,12 +392,24 @@ $rightDia.on('click', function() { |
|
|
$agreenShow.on('click', function() {
|
|
|
var $ck = $(this);
|
|
|
|
|
|
if ($ck.hasClass('active')) {
|
|
|
$ck.removeClass('active');
|
|
|
} else {
|
|
|
$ck.addClass('active');
|
|
|
}
|
|
|
$ck.hasClass('active') === true ? $ck.removeClass('active') : $ck.addClass('active');
|
|
|
});
|
|
|
|
|
|
|
|
|
$('#stu-province-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this), 'areacode');
|
|
|
});
|
|
|
|
|
|
$('#stu-school-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this), 'schoolCode');
|
|
|
});
|
|
|
|
|
|
$('#stu-edu-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this));
|
|
|
});
|
|
|
|
|
|
$('#stu-entrance-year-ul').delegate('li', 'click', function() {
|
|
|
clearSelectUl($(this));
|
|
|
});
|
|
|
|
|
|
$('.enable .info').on('click', function(e) {
|
...
|
...
|
|