Jing 1 өдөр өмнө
parent
commit
310bf20e41

+ 4 - 4
src/layout/components/Navbar.vue

@@ -38,17 +38,17 @@
             <div :class="{ 'noticeTabs': true, 'active': tabsIndex == 4 }" @click="changeTabs(4)">
               <div class="noticeTabsItem">
                 书刊
-                <span class="noticeMessageNew"></span>
+                <span class="noticeMessageNew" v-if="msg.book.length > 0"></span>
               </div>
             </div>
             <div :class="{ 'noticeTabs': true, 'active': tabsIndex == 3 }" @click="changeTabs(3)">
               <div class="noticeTabsItem">
                 求职招聘
-                <span class="noticeMessageNew"></span>
+                <span class="noticeMessageNew"
+                  v-if="msg.job_hunting.length > 0 || msg.job_recruiting.length > 0 || msg.job_apply.length > 0 || msg.job_resume.length > 0">
+                </span>
               </div>
             </div>
-
-
           </div>
           <div class="noticeTabsLine" v-if="tabsIndex == 3" style="height: 20px; margin: 0px; margin-top: -20px;">
             <ul class="noticeTabsLink">