From a0925a4ec74f3f8c47fb7bb1b6c49a5e91f2db7b Mon Sep 17 00:00:00 2001 From: lr Date: Fri, 21 Feb 2025 17:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/App.vue | 37 ------- jiuyi2/common/js/config.js | 2 +- jiuyi2/common/js/util.js | 1 + jiuyi2/components/footerMenu/footerMenu.vue | 49 +++++---- jiuyi2/components/news/groupList.vue | 2 +- jiuyi2/components/news/msgList.vue | 115 +++++++++++++------- jiuyi2/components/shop/detail/makeOrder.vue | 4 +- jiuyi2/pages/mine/setting/usePay.vue | 2 +- jiuyi2/pages/mine/switch-accounts/index.vue | 2 +- jiuyi2/pages/news/chatGroup.vue | 2 +- jiuyi2/pages/news/news.vue | 22 +++- jiuyi2/vite.config.js | 4 +- 12 files changed, 134 insertions(+), 108 deletions(-) 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) -}