微信小程序的头部标题颜色只支#ffffff(注意不能写成#FFFFFF,否则不生效)和#000000,单独设置背景色是不生效的,一定要把字体颜色一起带上
let titleColor = "#ffffff",backgroundColor = "#c9e5fd"
uni.setNavigationBarColor({
frontColor: titleColor,
backgroundColor: backgroundColor
})