AI 3 недель назад
Родитель
Сommit
3d7bcd4a61
1 измененных файлов с 42 добавлено и 2 удалено
  1. 42 2
      src/layout/components/Navbar.vue

+ 42 - 2
src/layout/components/Navbar.vue

@@ -29,10 +29,10 @@
         </div>
 
         <el-dropdown-menu slot="dropdown" style="width: 200px;">
-          <router-link to="/examine">
+          <router-link to="/examine" v-if="msg.apply_articale.length > 0">
             <div class="userMenuDownItem">
               <el-dropdown-item>
-                <span style="display:block;">审核列表</span>
+                <span style="display:block; text-align: center; width: 100%; color: #409EFF;">审核列表</span>
               </el-dropdown-item>
             </div>
           </router-link>
@@ -46,6 +46,46 @@
             </div>
           </router-link>
 
+          <router-link to="/hall" v-if="msg.chat.length > 0">
+            <div class="userMenuDownItem">
+              <el-dropdown-item>
+                <span style="display:block;  color: #409EFF;">未读单聊</span>
+              </el-dropdown-item>
+            </div>
+          </router-link>
+
+          <router-link to="/hall" v-for="item in msg.chat" :key="item.id">
+            <div class="userMenuDownItem" style="width: 200px;">
+              <el-dropdown-item divided style="width: 200px;">
+                <el-tooltip :content="item.content" effect="dark" placement="top">
+                  <span style="display:block;width: 150px;" :alt="item.content">{{ item.content.substring(0, 10)
+                  }}</span>
+                </el-tooltip>
+              </el-dropdown-item>
+            </div>
+          </router-link>
+
+
+
+          <router-link to="/hall" v-if="msg.chat_group.length > 0">
+            <div class="userMenuDownItem">
+              <el-dropdown-item>
+                <span style="display:block; color: #409EFF;">未读群聊</span>
+              </el-dropdown-item>
+            </div>
+          </router-link>
+
+
+          <router-link to="/hall" v-for="item in msg.chat_group" :key="item.id">
+            <div class="userMenuDownItem" style="width: 200px;">
+              <el-dropdown-item divided style="width: 200px;">
+                <el-tooltip :content="item.content" effect="dark" placement="top">
+                  <span style="display:block;width: 150px;" :alt="item.content">{{ item.content.substring(0, 10)
+                  }}</span>
+                </el-tooltip>
+              </el-dropdown-item>
+            </div>
+          </router-link>
 
         </el-dropdown-menu>
       </el-dropdown>