...
|
...
|
@@ -251,8 +251,8 @@ $(document).on('click', '.invite-now', function() { |
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + location.href;
|
|
|
} else {
|
|
|
if ($('#s-school-tb').val()) {
|
|
|
$(".share-bg").show();
|
|
|
setTimeout(function () {$('.share-bg').hide();}, 3000);
|
|
|
$('.share-bg').show();
|
|
|
setTimeout(function() { $('.share-bg').hide(); }, 3000);
|
|
|
} else {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '要先验证学生身份才可以邀请哦',
|
...
|
...
|
@@ -265,15 +265,16 @@ $(document).on('click', '.invite-now', function() { |
|
|
location.href = './student/register?shareId=' + window.queryString.uid + '&refer=' + location.href;
|
|
|
});
|
|
|
}
|
|
|
$('.dialog-right-btn').css('color', '#3084bb');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(
|
|
|
function () {
|
|
|
$(".reg-now").on("click", function () {
|
|
|
function() {
|
|
|
$('.reg-now').on('click', function() {
|
|
|
location.href = './student/register?shareId=' + window.queryString.uid + '&refer=' + location.href;
|
|
|
});
|
|
|
$(".login-btn").on("click", function () {
|
|
|
$('.login-btn').on('click', function() {
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + location.href;
|
|
|
});
|
|
|
|
...
|
...
|
@@ -283,19 +284,28 @@ $( |
|
|
case '200':
|
|
|
tip.show('邀请成功');
|
|
|
setCookie('promotion', '', { path: '/' });
|
|
|
$('.foot-fixed').hide();
|
|
|
break;
|
|
|
case '500':
|
|
|
tip.show('邀请失败');
|
|
|
setCookie('promotion', '', { path: '/' });
|
|
|
break;
|
|
|
default: ;
|
|
|
}
|
|
|
|
|
|
$(".checkMySchool").on("click", function () {
|
|
|
var sTop = $("#university").offset().top;
|
|
|
$('.checkMySchool').on('click', function() {
|
|
|
var sTop = $('#university').offset().top;
|
|
|
$(window).scrollTop(sTop);
|
|
|
});
|
|
|
$(".share-bg").on("click", function () {
|
|
|
|
|
|
$('.share-bg').on('click', function() {
|
|
|
$(this).hide();
|
|
|
})
|
|
|
});
|
|
|
|
|
|
var regSchool = $('#s-school-tb').val();
|
|
|
|
|
|
if (regSchool) {
|
|
|
schoolNum(regSchool);
|
|
|
}
|
|
|
}
|
|
|
); |
...
|
...
|
|