setBadege() {
uni.setTabBarBadge({
//第几个图标
index: 2,
//设置文本不能是number
text: this.total + ''
})
}
小程序如何设置tabBar 某一项的右上角添加文本
最新推荐文章于 2023-08-01 17:40:21 发布
setBadege() {
uni.setTabBarBadge({
//第几个图标
index: 2,
//设置文本不能是number
text: this.total + ''
})
}