我要在标题栏的位置加一个搜索框怎么不显示标题栏
3***@qq.com
- 发布:2018-08-23 16:00
- 更新:2018-08-24 08:23
- 阅读:18250
custom是全局的,配置后微信和app都是所有页面都没有原生头了。
如果只是app的首页不要原生标题栏,可以在pages.json里这样配:
"path": "pages/index/index", //首页
"style": {
"app-plus": {
"titleNView": false //禁用原生导航栏
}
}
{
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTextStyle": "light",
"app-plus": {
"titleNView": false //打包app 要加上这个 禁用原生导航栏
}
}
},{
"path": "pages/city/city",
"style": {
"navigationBarTitleText": "选择城市",
"enablePullDownRefresh": false
}
},{
"path": "pages/entry/login",
"style": {
"navigationBarTitleText": "登陆"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fbf9fe",
"navigationStyle": "custom",
"enablePullDownRefresh": true
}
}
dolphin的phin
这样设置没有效果啊
2018-08-24 08:19
DCloud_heavensoft
“只是app的首页”
2018-08-24 10:12