Commit 54ad8ef335248b22854929e7a0fa63caa0b85a9b

Authored by 史婷婷
1 parent edcf6eae

feat: 首页-消息&待审批&我发起的-数据兼容 0

Showing 1 changed file with 3 additions and 3 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">{{ toReadCount > 99 ? '99+' : toReadCount }}</view> 9 + <view class="badge">{{ toReadCount > 99 ? '99+' : toReadCount || 0 }}</view>
10 </view> 10 </view>
11 </view> 11 </view>
12 <view class="header-title">首页</view> 12 <view class="header-title">首页</view>
@@ -20,14 +20,14 @@ @@ -20,14 +20,14 @@
20 <image class="card-bg" src="/static/images/index/card_wait.png" mode="aspectFill" /> 20 <image class="card-bg" src="/static/images/index/card_wait.png" mode="aspectFill" />
21 <view class="card-content"> 21 <view class="card-content">
22 <text class="card-title">待审批的</text> 22 <text class="card-title">待审批的</text>
23 - <text class="card-num">{{ todoCount }}</text> 23 + <text class="card-num">{{ todoCount || 0 }}</text>
24 </view> 24 </view>
25 </view> 25 </view>
26 <view class="stat-card" @click="navigateTo('/pages/flow/myflow')"> 26 <view class="stat-card" @click="navigateTo('/pages/flow/myflow')">
27 <image class="card-bg" src="/static/images/index/card_launch.png" mode="aspectFill" /> 27 <image class="card-bg" src="/static/images/index/card_launch.png" mode="aspectFill" />
28 <view class="card-content"> 28 <view class="card-content">
29 <text class="card-title">我发起的</text> 29 <text class="card-title">我发起的</text>
30 - <text class="card-num">{{ myCreateCount }}</text> 30 + <text class="card-num">{{ myCreateCount || 0 }}</text>
31 </view> 31 </view>
32 </view> 32 </view>
33 </view> 33 </view>