diff --git a/jiuyi2/App.vue b/jiuyi2/App.vue index 7b35e690..edff6b17 100644 --- a/jiuyi2/App.vue +++ b/jiuyi2/App.vue @@ -14,8 +14,6 @@ onLaunch(() => { getUserinfo() // 获取系统配置 getConfig() - // 获取未读消息数量 - getNoReadNum() }) // 获取用户信息 @@ -53,41 +51,6 @@ function getConfig() { } }) } - -// 获取未读消息数量 -async function getNoReadNum() { - // uni.removeTabBarBadge({ - // index: 2, - // text: "", - // }); - // api.getNoReadNum().then(rs => { - // if (rs.code == 200) { - // uni.setTabBarBadge({ - // index: 0, - // text: "11", - // }); - // } - // }) - - // uni.setTabBarBadge({ - // index: 2, - // text: "11", - // }); - - // const res = await uni.request({ url: 'API_URL' }); - // const count = res.data.unread; - - - // setTimeout(() => { - // uni.setTabBarBadge({ - // index: 1, - // text: '10', - // success: function () { - // console.log(11111); - // }, - // }) - // }, 1000) -}