小程序全局配置app.josn增加选项:"navigationStyle": "custom",
具体如下:
原生小程序开发
打开 app.json:
{
"pages": [
"pages/index/index",
"pages/logs/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#000",
"navigationStyle": "custom",
"navigationBarTitleText": "WeChat"
}
}
mpvue方式开发小程序>
1