|
@@ -21,8 +21,6 @@ var $sortItem = $('.sort-item'), |
|
@@ -21,8 +21,6 @@ var $sortItem = $('.sort-item'), |
21
|
$stuYearWrap = $stuYear.parent(),
|
21
|
$stuYearWrap = $stuYear.parent(),
|
22
|
$identityForm = $('#identity-form');
|
22
|
$identityForm = $('#identity-form');
|
23
|
|
23
|
|
24
|
- // $stuYearUl = $stuYear.next();
|
|
|
25
|
-
|
|
|
26
|
var $rightDia = $('#rights-dia'),
|
24
|
var $rightDia = $('#rights-dia'),
|
27
|
$couponDia = $('#coupon-dia');
|
25
|
$couponDia = $('#coupon-dia');
|
28
|
|
26
|
|
|
@@ -110,8 +108,10 @@ function submitIdentity(json) { |
|
@@ -110,8 +108,10 @@ function submitIdentity(json) { |
110
|
type: 'GET',
|
108
|
type: 'GET',
|
111
|
url: '/product/students/verify',
|
109
|
url: '/product/students/verify',
|
112
|
data: json
|
110
|
data: json
|
113
|
- }).then(function() {
|
|
|
114
|
-
|
111
|
+ }).then(function(data) {
|
|
|
112
|
+ if (data.code === 200) {
|
|
|
113
|
+ window.location.href = data.data;
|
|
|
114
|
+ }
|
115
|
});
|
115
|
});
|
116
|
}
|
116
|
}
|
117
|
|
117
|
|
|
@@ -249,11 +249,37 @@ $sortItem.on('click', function() { |
|
@@ -249,11 +249,37 @@ $sortItem.on('click', function() { |
249
|
$(this).addClass('active');
|
249
|
$(this).addClass('active');
|
250
|
});
|
250
|
});
|
251
|
|
251
|
|
|
|
252
|
+function loadSelectLi(jsonData, param) {
|
|
|
253
|
+ var $wrap = jsonData.$ul.parent(),
|
|
|
254
|
+ keyData = jsonData.keyData;
|
|
|
255
|
+
|
|
|
256
|
+ jsonData.$ul.empty();
|
|
|
257
|
+ if ($wrap.hasClass('active')) {
|
|
|
258
|
+ $wrap.removeClass('active');
|
|
|
259
|
+ } else {
|
|
|
260
|
+ closeStuSelect();
|
|
|
261
|
+ $wrap.addClass('active');
|
|
|
262
|
+ $.ajax({
|
|
|
263
|
+ type: 'GET',
|
|
|
264
|
+ url: jsonData.url,
|
|
|
265
|
+ data: param
|
|
|
266
|
+ }).then(function(data) {
|
|
|
267
|
+ if (data.code === 200) {
|
|
|
268
|
+ jsonData.$ul.html(provFn({
|
|
|
269
|
+ keyData: data.data
|
|
|
270
|
+ }));
|
|
|
271
|
+ } else if (data.code === 403) {
|
|
|
272
|
+ location.href = data.data.url;
|
|
|
273
|
+ }
|
|
|
274
|
+ });
|
|
|
275
|
+ }
|
|
|
276
|
+}
|
|
|
277
|
+
|
252
|
// 加载学校地区数据
|
278
|
// 加载学校地区数据
|
253
|
$stuProv.on('click', function() {
|
279
|
$stuProv.on('click', function() {
|
254
|
- var $provUl = $(this).next();
|
280
|
+ var $ul = $(this).next();
|
255
|
|
281
|
|
256
|
- $provUl.empty();
|
282
|
+ $ul.empty();
|
257
|
if ($stuProvWrap.hasClass('active')) {
|
283
|
if ($stuProvWrap.hasClass('active')) {
|
258
|
$stuProvWrap.removeClass('active');
|
284
|
$stuProvWrap.removeClass('active');
|
259
|
} else {
|
285
|
} else {
|
|
@@ -264,7 +290,7 @@ $stuProv.on('click', function() { |
|
@@ -264,7 +290,7 @@ $stuProv.on('click', function() { |
264
|
url: '/product/students/schoolArea'
|
290
|
url: '/product/students/schoolArea'
|
265
|
}).then(function(data) {
|
291
|
}).then(function(data) {
|
266
|
if (data.code === 200) {
|
292
|
if (data.code === 200) {
|
267
|
- $provUl.html(provFn({
|
293
|
+ $ul.html(provFn({
|
268
|
provData: data.data
|
294
|
provData: data.data
|
269
|
}));
|
295
|
}));
|
270
|
} else if (data.code === 403) {
|
296
|
} else if (data.code === 403) {
|
|
@@ -274,22 +300,6 @@ $stuProv.on('click', function() { |
|
@@ -274,22 +300,6 @@ $stuProv.on('click', function() { |
274
|
}
|
300
|
}
|
275
|
});
|
301
|
});
|
276
|
|
302
|
|
277
|
-$('#stu-province-ul').delegate('li', 'click', function() {
|
|
|
278
|
- clearSelectUl($(this), 'areacode');
|
|
|
279
|
-});
|
|
|
280
|
-
|
|
|
281
|
-$('#stu-school-ul').delegate('li', 'click', function() {
|
|
|
282
|
- clearSelectUl($(this), 'schoolCode');
|
|
|
283
|
-});
|
|
|
284
|
-
|
|
|
285
|
-$('#stu-edu-ul').delegate('li', 'click', function() {
|
|
|
286
|
- clearSelectUl($(this));
|
|
|
287
|
-});
|
|
|
288
|
-
|
|
|
289
|
-$('#stu-entrance-year-ul').delegate('li', 'click', function() {
|
|
|
290
|
- clearSelectUl($(this));
|
|
|
291
|
-});
|
|
|
292
|
-
|
|
|
293
|
//
|
303
|
//
|
294
|
$stuSchool.on('click', function() {
|
304
|
$stuSchool.on('click', function() {
|
295
|
var $ul = $(this).next();
|
305
|
var $ul = $(this).next();
|
|
@@ -316,6 +326,7 @@ $stuSchool.on('click', function() { |
|
@@ -316,6 +326,7 @@ $stuSchool.on('click', function() { |
316
|
}
|
326
|
}
|
317
|
});
|
327
|
});
|
318
|
}
|
328
|
}
|
|
|
329
|
+
|
319
|
});
|
330
|
});
|
320
|
|
331
|
|
321
|
//
|
332
|
//
|
|
@@ -381,12 +392,24 @@ $rightDia.on('click', function() { |
|
@@ -381,12 +392,24 @@ $rightDia.on('click', function() { |
381
|
$agreenShow.on('click', function() {
|
392
|
$agreenShow.on('click', function() {
|
382
|
var $ck = $(this);
|
393
|
var $ck = $(this);
|
383
|
|
394
|
|
384
|
- if ($ck.hasClass('active')) {
|
|
|
385
|
- $ck.removeClass('active');
|
|
|
386
|
- } else {
|
|
|
387
|
- $ck.addClass('active');
|
|
|
388
|
- }
|
395
|
+ $ck.hasClass('active') === true ? $ck.removeClass('active') : $ck.addClass('active');
|
|
|
396
|
+});
|
|
|
397
|
+
|
389
|
|
398
|
|
|
|
399
|
+$('#stu-province-ul').delegate('li', 'click', function() {
|
|
|
400
|
+ clearSelectUl($(this), 'areacode');
|
|
|
401
|
+});
|
|
|
402
|
+
|
|
|
403
|
+$('#stu-school-ul').delegate('li', 'click', function() {
|
|
|
404
|
+ clearSelectUl($(this), 'schoolCode');
|
|
|
405
|
+});
|
|
|
406
|
+
|
|
|
407
|
+$('#stu-edu-ul').delegate('li', 'click', function() {
|
|
|
408
|
+ clearSelectUl($(this));
|
|
|
409
|
+});
|
|
|
410
|
+
|
|
|
411
|
+$('#stu-entrance-year-ul').delegate('li', 'click', function() {
|
|
|
412
|
+ clearSelectUl($(this));
|
390
|
});
|
413
|
});
|
391
|
|
414
|
|
392
|
$('.enable .info').on('click', function(e) {
|
415
|
$('.enable .info').on('click', function(e) {
|