能自定义导航栏,不能自定义小红点?
.badge { border-radius: 200rpx; position: absolute; top: -10rpx; right: -10rpx; font-size: 20rpx; padding: 0rpx 10rpx; height: 28rpx; color: #ffffff; background-color: #dd514c; }
wx.setTabBarBadge({
index: ‘第几个tabBar’,
text: ‘你要写的内容’,
})