效果图:
为 tabBar 某一项的右上角添加文本。
eg:
uni.setTabBarBadge({ index: 0, text: '1' })
更多设置TabBar,参考:https://uniapp.dcloud.io/api/ui/tabbar?id=settabbaritem