Commit 9e287e4f985c1cb3f2853a211a140edc5a2d612f

Authored by 史婷婷
1 parent 66d28d85

feat: 首页增加消息提醒未读数字显示

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