Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | <!-- name:MsgCenter 消息中心权限--> | 6 | <!-- name:MsgCenter 消息中心权限--> |
| 7 | <view class="bell-wrap" v-if="hasMenu('MsgCenter')"> | 7 | <view class="bell-wrap" v-if="hasMenu('MsgCenter')"> |
| 8 | <image class="icon" src="/static/images/index/bell.png" mode="widthFix" /> | 8 | <image class="icon" src="/static/images/index/bell.png" mode="widthFix" /> |
| 9 | - <view class="badge">99+</view> | 9 | + <view class="badge">{{ toReadCount > 99 ? '99+' : toReadCount }}</view> |
| 10 | </view> | 10 | </view> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="header-title">首页</view> | 12 | <view class="header-title">首页</view> |
| @@ -55,6 +55,7 @@ export default { | @@ -55,6 +55,7 @@ export default { | ||
| 55 | return { | 55 | return { |
| 56 | todoCount: '', | 56 | todoCount: '', |
| 57 | myCreateCount: '', | 57 | myCreateCount: '', |
| 58 | + toReadCount: '', | ||
| 58 | sectionList: [{ | 59 | sectionList: [{ |
| 59 | title: '客户开发管理', | 60 | title: '客户开发管理', |
| 60 | items: [{ | 61 | items: [{ |
| @@ -163,6 +164,7 @@ export default { | @@ -163,6 +164,7 @@ export default { | ||
| 163 | statisticsCountApi().then((res) => { | 164 | statisticsCountApi().then((res) => { |
| 164 | this.todoCount = res.data.todoCount || ''; | 165 | this.todoCount = res.data.todoCount || ''; |
| 165 | this.myCreateCount = res.data.myCreateCount || ''; | 166 | this.myCreateCount = res.data.myCreateCount || ''; |
| 167 | + this.toReadCount = res.data.toReadCount || ''; | ||
| 166 | }); | 168 | }); |
| 167 | }, | 169 | }, |
| 168 | async loadMenusAndFilter() { | 170 | async loadMenusAndFilter() { |