Authored by htoooth

link change

... ... @@ -75,6 +75,12 @@ var bannerMap = {
},
cookieMap = {};
var $signinBtn = $('#signin-url');
var $regBtn = $('#reg-url');
$signinBtn.attr('href', '//www.yohobuy.com/signin.html?refer=' + window.location.href);
$regBtn.attr('href', '//www.yohobuy.com/reg.html?refer=' + window.location.href);
// handlebars模板
centerFn = handlebars.compile($('#simple-account-info-tpl').html() || '');
loginFn = handlebars.compile($('#header-login-info-tpl').html() || '');
... ...
... ... @@ -76,8 +76,8 @@ function setLoginStatus(data) {
'<a href="//www.yohobuy.com/logout.html">[退出]</a>';
} else {
loginHtml = '<span>Hi~</span>&nbsp;' +
'<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;' +
'<a href="//www.yohobuy.com/reg.html">[免费注册]</a>';
'<a href="//www.yohobuy.com/signin.html?refer="' + window.location.href + '>[请登录]</a>&nbsp;' +
'<a href="//www.yohobuy.com/reg.html"' + window.location.href + '>[免费注册]</a>';
}
$('.header-tool li').eq(0).html(loginHtml);
}
... ...