Showing
2 changed files
with
8 additions
and
2 deletions
@@ -75,6 +75,12 @@ var bannerMap = { | @@ -75,6 +75,12 @@ var bannerMap = { | ||
75 | }, | 75 | }, |
76 | cookieMap = {}; | 76 | cookieMap = {}; |
77 | 77 | ||
78 | +var $signinBtn = $('#signin-url'); | ||
79 | +var $regBtn = $('#reg-url'); | ||
80 | + | ||
81 | +$signinBtn.attr('href', '//www.yohobuy.com/signin.html?refer=' + window.location.href); | ||
82 | +$regBtn.attr('href', '//www.yohobuy.com/reg.html?refer=' + window.location.href); | ||
83 | + | ||
78 | // handlebars模板 | 84 | // handlebars模板 |
79 | centerFn = handlebars.compile($('#simple-account-info-tpl').html() || ''); | 85 | centerFn = handlebars.compile($('#simple-account-info-tpl').html() || ''); |
80 | loginFn = handlebars.compile($('#header-login-info-tpl').html() || ''); | 86 | loginFn = handlebars.compile($('#header-login-info-tpl').html() || ''); |
@@ -76,8 +76,8 @@ function setLoginStatus(data) { | @@ -76,8 +76,8 @@ function setLoginStatus(data) { | ||
76 | '<a href="//www.yohobuy.com/logout.html">[退出]</a>'; | 76 | '<a href="//www.yohobuy.com/logout.html">[退出]</a>'; |
77 | } else { | 77 | } else { |
78 | loginHtml = '<span>Hi~</span> ' + | 78 | loginHtml = '<span>Hi~</span> ' + |
79 | - '<a href="//www.yohobuy.com/signin.html">[请登录]</a> ' + | ||
80 | - '<a href="//www.yohobuy.com/reg.html">[免费注册]</a>'; | 79 | + '<a href="//www.yohobuy.com/signin.html?refer="' + window.location.href + '>[请登录]</a> ' + |
80 | + '<a href="//www.yohobuy.com/reg.html"' + window.location.href + '>[免费注册]</a>'; | ||
81 | } | 81 | } |
82 | $('.header-tool li').eq(0).html(loginHtml); | 82 | $('.header-tool li').eq(0).html(loginHtml); |
83 | } | 83 | } |
-
Please register or login to post a comment