...
|
...
|
@@ -248,7 +248,8 @@ function schoolNum(schoolName) { |
|
|
// 立即邀请按钮
|
|
|
$(document).on('click', '.invite-now', function() {
|
|
|
if (!window.getUid()) {
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + location.href;
|
|
|
var newHref = encodeURIComponent(location.href);
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + newHref;
|
|
|
} else {
|
|
|
if ($('#s-school-tb').val()) {
|
|
|
$('.share-bg').show();
|
...
|
...
|
@@ -271,11 +272,18 @@ $(document).on('click', '.invite-now', function() { |
|
|
|
|
|
$(
|
|
|
function() {
|
|
|
var newHref = encodeURIComponent(location.href);
|
|
|
$('.reg-now').on('click', function() {
|
|
|
checkStudent();
|
|
|
});
|
|
|
$(".op-row a:first").on("click", function () {
|
|
|
if (!$(this).hasClass("user-name")) {
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + newHref;
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
$('.login-btn').on('click', function() {
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + location.href;
|
|
|
location.href = '//m.yohobuy.com/signin.html?refer=' + newHref;
|
|
|
});
|
|
|
|
|
|
var promotion = window.cookie('promotion');
|
...
|
...
|
|