wx.setTabBarBadge({ index: 2, text: '1' })应该写在哪里?
发布于 4 年前 作者 fangyi 9592 次浏览 来自 问答

如图我有新通知时需要未读提示,我的wx.setTabBarBadge({ index: 2, text: ‘1’ })应该写在哪里?

wx.removeTabBarBadge({ index: 0, })又该写在哪里?

2 回复

想写在哪就写在哪

获取通知的地方set,阅读过通知的时候remove

回到顶部