Authored by wenjiekong

身份验证

... ... @@ -3,7 +3,6 @@
<div class="stu-rights-item">
<img class="" src="{{image src 300 300}}">
</img>
<p>{{title}}</p>
</div>
{{/rightsItem}}
</div>
\ No newline at end of file
... ...
... ... @@ -28,7 +28,8 @@ var $sortItem = $('.sort-item'),
var $rightDia = $('#rights-dia'),
$couponDia = $('#coupon-dia');
var provFn;
var provFn,
identityFn;
var alertConfig,
makeAlert;
... ... @@ -98,7 +99,7 @@ function clearSelectUl($li, code) {
if (arguments.length === 2) {
$show.attr(code, $a.attr(code));
$input.val($a.attr(code));
}else {
} else {
$input.val($a.html());
}
$ul.empty();
... ... @@ -108,11 +109,11 @@ function clearSelectUl($li, code) {
/**
* 最终提交表单
*/
function submitIdentity(data) {
function submitIdentity(json) {
$.ajax({
type: 'GET',
url: '/product/students/verify',
data: data
data: json
}).then(function(data) {
if (data.code === 200) {
$identity.remove('.identity-back-wrap');
... ... @@ -125,7 +126,7 @@ function submitIdentity(data) {
fail: true
}));
$('#backForm').on('click',function(){
$('#backForm').on('click', function() {
$identity.remove('.identity-back-wrap');
$identityForm.removeClass('hide');
});
... ... @@ -420,7 +421,7 @@ $('#identity-Btn').on('click', function() {
collegeName: $('#stu-school').val(),
educationDegree: $('#stu-edu').val(),
enrollmentYear: $('#stu-entrance-year').val()
}
};
var $prompt = $('#prompt'),
$agreen = $('#agreen-show');
... ... @@ -463,8 +464,8 @@ $('#identity-Btn').on('click', function() {
$identityForm.addClass('hide');
$identity.remove('.identity-back-wrap');
$identity.append(identityFn({
fail: true
wait: true
}));
});
\ No newline at end of file
});
... ...
... ... @@ -105,8 +105,8 @@
}
.stu-rights-item img {
width: 124px;
height: 124px;
width: 196px;
height: 162px;
margin: 20px 0;
}
}
... ... @@ -312,7 +312,7 @@
}
.ck-sel.active {
color: #03C503;
color: #03c503;
}
}
... ...