|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div title="消息" @click="showMessageLayer">
|
|
|
- <el-badge :hidden="unreadCount === 0" :value="unreadCount" :max="99" type="danger">
|
|
|
+ <el-badge :hidden="unreadCount <= 0" :value="unreadCount" :max="99" type="danger">
|
|
|
<i class="sfont el-icon-message"></i>
|
|
|
</el-badge>
|
|
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
<div style="position: absolute; top: 8px; left: 520px"><el-button circle type="info" plain icon="el-icon-close" @click="messageLayerVisible = false"></el-button></div>
|
|
|
<div class="sender">
|
|
|
<div v-for="(item, index) in allSenders" :key="index" :style="activated(item.sender)" @click="handleClickSender(item)">
|
|
|
- <el-badge :value="item.unreadCount" :max="99" type="danger" :hidden="item.unreadCount === 0">
|
|
|
+ <el-badge :value="item.unreadCount" :max="99" type="danger" :hidden="item.unreadCount <= 0">
|
|
|
<div class="sender-info">{{ item.senderName }}</div>
|
|
|
</el-badge>
|
|
|
</div>
|