uni.setTabBarBadge(OBJECT)
显示数字
uni.removeTabBarBadge(OBJECT)
移除数字
uni.showTabBarRedDot(OBJECT)
显示红点
uni.hideTabBarRedDot(OBJECT)
隐藏红点
uni.setTabBarBadge({
index: 2,
text: '5'
})
uni.removeTabBarBadge({
index:2
uni.setTabBarBadge(OBJECT)
显示数字
uni.removeTabBarBadge(OBJECT)
移除数字
uni.showTabBarRedDot(OBJECT)
显示红点
uni.hideTabBarRedDot(OBJECT)
隐藏红点
uni.setTabBarBadge({
index: 2,
text: '5'
})
uni.removeTabBarBadge({
index:2