huangb 7 years ago
parent
commit
7c3ad101ea

+ 7 - 7
jpress-web-template-mallcms/src/main/webapp/templates/mallcms/_layout.html

@@ -40,13 +40,13 @@
                     <a href="https://www.usoftchina.com/"><img src="${CTPATH}/assets/images/logo_uas_01.png" alt=""/></a>
                 </div>
                 <div class="menu fr">
-                <ul>
-                <!--未登录状态-->
-                <li class="unLogin" style="margin-left: -10px;"><a class="a_login">登录</a></li>
-                <li class="unLogin"><a class="a_register">注册</a></li>
-                <!--已登录状态-->
-                <li class="login"><div>欢迎您,<span id="username">SUPER_WING</span><a class="a_logout">【退出】</a></div></li>
-                </ul>
+                    <ul>
+                        <!--未登录状态-->
+                        <li class="unLogin"><a class="a_login">登录</a></li>
+                        <li class="unLogin"><a class="a_register">注册</a></li>
+                        <!--已登录状态-->
+                        <li class="login"><div>欢迎您,<span id="username">SUPER_WING</span><a class="a_logout">【退出】</a></div></li>
+                    </ul>
                 </div>
             </div>
             <div class="bottom">

+ 27 - 0
jpress-web-template-mallcms/src/main/webapp/templates/mallcms/assets/css/index.css

@@ -73,6 +73,33 @@ body{
     width: 100%;
     height: 50px;
     line-height: 50px;
+    overflow: hidden;
+}
+.header .container .top .login{
+    font-size: 14px;
+    color: #e1e1e1;
+}
+ .header .container .top .login a{
+    font-size: 14px;
+    color: #e1e1e1;
+    cursor: pointer;
+}
+.header .container .top ul li a:hover{
+    color: #e41f2b;
+}
+.header .container .top .unLogin{
+    float: left;
+    cursor: pointer;
+}
+.header .container .top .unLogin a{
+    font-size: 14px;
+    color: #e1e1e1;
+}
+.header .container .top .unLogin a:first-child {
+    margin-right: 20px;
+}
+.header .container .top .menu .login{
+    display: none;
 }
 .header .container .bottom{
     width: 100%;

+ 3 - 5
jpress-web-template-mallcms/src/main/webapp/templates/mallcms/assets/js/index.js

@@ -76,10 +76,8 @@ $(function () {
         });
 
     })
-    $(document).ready(function(){
-        $('.case_indus_list:first-child').addClass('active')
-        $('.u_items:nth-child(2)').addClass('active')
-    });
+    $('.case_indus_list:first-child').addClass('active')
+    $('.u_items:nth-child(2)').addClass('active')
     // u客论坛
     // $('.k_item_list').on('click', function () {
     //     $(this).addClass('active').siblings().removeClass('active');
@@ -165,7 +163,7 @@ $(function () {
         dataType: "json",
         success: function (data) {
             if (data.success && data.userAccount) {
-                $('#username').html(data.userAccount.vipName + ',' + data.userAccount.spaceName);
+                $('#username').html(data.userAccount.vipName + '&nbsp;&nbsp;|&nbsp;&nbsp;' + data.userAccount.spaceName);
                 $('.login').show();
                 $('.unLogin').hide();
             } else {