Authored by 周少峰

Merge branch 'release/pageCache'

... ... @@ -1390,10 +1390,10 @@ function actionSearch() {
*/
function actionLoginState(_data) {
var timestamp = new Date().getTime();
var noLoginHtml = '<span>Hi~</span>[<a href="//www.yohobuy.com/signin.html" class="list-a login-out ">' +
var noLoginHtml = '<span>Hi~</span>[<a href="//www.yohobuy.com/signin.html?refer="'+ window.location.href +' class="list-a login-out ">' +
'请登录</a>]&nbsp;' +
'[<a href="//www.yohobuy.com/reg.html" class="list-a login-out" onclick="">免费注册</a>]';
var loginHtml = '<span>Hi~<a href="//www.yohobuy.com/home?t=' + timestamp +
'[<a href="//www.yohobuy.com/reg.html?refer="'+ window.location.href +' class="list-a login-out" onclick="">免费注册</a>]';
var loginHtml = '<span>Hi~<a href="//www.yohobuy.com/home?ht=' + timestamp +
'">{{user_name}}</a></span>&nbsp;' +
'{{#if islogin}}' +
'[<a href="{{logout}}" class="list-a login-out">退出</a>]' +
... ...
... ... @@ -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);
}
... ...