1.设置角标,例如给第一个导航设置接收到10个消息的提示:
uni.setTabBarBadge({
index: 0,
text: '10'
})
2.移除角标
uni.removeTabBarBadge({
index: 0
})
3.显示右上角的红点,给第一个导航显示红点
uni.showTabBarRedDot({
index: 0
})
4.移除右上角的红点
uni.hideTabBarRedDot({
index: 0
})
5.隐藏tabbar
uni.hideTabBar()
6.显示tabbar
uni.showTabBar()