guhongwei 5 years ago
parent
commit
3e924776a0
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/layout/live/head.vue

+ 13 - 1
src/layout/live/head.vue

@@ -12,7 +12,7 @@
           <p class="username">
           <p class="username">
             <span v-if="user.uid">
             <span v-if="user.uid">
               {{ user.name }}
               {{ user.name }}
-              <button type="text" style="color:#999999;font-weight: bold;" @click="stnmae" v-if="user.role == '2' || user.role == '3'">
+              <button type="text" class="userCenter" @click="stnmae" v-if="user.role == '2' || user.role == '3'">
                 个人中心
                 个人中心
               </button>
               </button>
               <button type="button" class="logininfo" @click="zhuxiao">注销</button>
               <button type="button" class="logininfo" @click="zhuxiao">注销</button>
@@ -130,4 +130,16 @@ export default {
 /deep/ button {
 /deep/ button {
   cursor: pointer;
   cursor: pointer;
 }
 }
+.userCenter {
+  font-size: 16px;
+  color: #fff;
+  padding: 3px 10px;
+  border-radius: 5px;
+  font-weight: bold;
+  border: 2px solid transparent;
+}
+.userCenter:hover {
+  color: #fe950e;
+  // border-color: #fe950e;
+}
 </style>
 </style>