This commit is contained in:
张良(004796)
2024-02-05 10:30:25 +08:00
parent ef3a7792d3
commit 862455ff7f
9 changed files with 317 additions and 13 deletions

View File

@@ -6,6 +6,7 @@
<svg-icon icon-class="message" @click="getList"/>
</el-badge>
<!-- 弹出列表 -->
<el-empty v-if="unreadAllCount === 0" description="所有数据已审核"></el-empty>
<el-row class="message-fid" v-show="unreadInfo.accountCashCount > 0">
<el-col :span="14">
<el-link @click="goToAudit('accountCash')" type="warning">提现待审核</el-link>
@@ -103,7 +104,7 @@ export default {
userGreetCount: 0,
userAvatarCount: 0,
},
// 未读数量,
unreadAllCount: 0,
unreadCount: 1,
}
},
@@ -120,6 +121,14 @@ export default {
this.loading = true;
getUnreadNotifyMessageList().then(response => {
this.unreadInfo = response.data;
let allNum = 0;
for (const i in this.unreadInfo){
let val = this.unreadInfo[i]
if(val){
allNum = allNum + val
}
}
this.unreadAllCount = allNum
this.loading = false;
});
},