diff --git a/novel-front/src/main/resources/static/mobile/js/common.js b/novel-front/src/main/resources/static/mobile/js/common.js index bc6a3ea..760a8de 100644 --- a/novel-front/src/main/resources/static/mobile/js/common.js +++ b/novel-front/src/main/resources/static/mobile/js/common.js @@ -109,7 +109,7 @@ if (!token) { location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href); } - $(".user_link").html("登录注册"); + // $(".user_link").html("登录注册"); } else { $.ajax({ type: "POST", @@ -118,10 +118,10 @@ if (!token) { dataType: "json", success: function (data) { if (data.code == 200) { - $(".user_link").html("" + - "\n" + - ""); + // $(".user_link").html("" + + // "\n" + + // ""); if ("/user/login.html" == window.location.pathname) { var orginUrl = getSearchString("originUrl"); window.location.href = orginUrl == undefined || orginUrl.isBlank() ? "/" : orginUrl; @@ -137,7 +137,7 @@ if (!token) { if (needLoginPath.indexOf(window.location.pathname) != -1) { location.href = '/user/login.html'; } - $(".user_link").html("登录注册"); + // $(".user_link").html("登录注册"); } }, error: function () { diff --git a/novel-front/src/main/resources/templates/mobile/common/js.html b/novel-front/src/main/resources/templates/mobile/common/js.html index e022d12..670ff69 100644 --- a/novel-front/src/main/resources/templates/mobile/common/js.html +++ b/novel-front/src/main/resources/templates/mobile/common/js.html @@ -1,3 +1,3 @@ - + diff --git a/novel-front/src/main/resources/templates/mobile/index.html b/novel-front/src/main/resources/templates/mobile/index.html index 25e1aa8..90ba611 100644 --- a/novel-front/src/main/resources/templates/mobile/index.html +++ b/novel-front/src/main/resources/templates/mobile/index.html @@ -41,18 +41,16 @@ } .user_link { - position: relative; - display: inline-block; vertical-align: middle; - line-height: 50px; - padding: 0 5px; - color: #fff; + line-height: 40px; float: right; + color: #3eaf7c; + padding: 11px 12px 0; } .user_link a { - color: #fff; + color: #3eaf7c; } @@ -64,92 +62,39 @@ - - - - -
+
-
+
-
+