guhongwei 5 rokov pred
rodič
commit
3e924776a0
1 zmenil súbory, kde vykonal 13 pridanie a 1 odobranie
  1. 13 1
      src/layout/live/head.vue

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

@@ -12,7 +12,7 @@
           <p class="username">
             <span v-if="user.uid">
               {{ 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 type="button" class="logininfo" @click="zhuxiao">注销</button>
@@ -130,4 +130,16 @@ export default {
 /deep/ button {
   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>