uniapp隐藏顶部title

在package.json里找到对应page的style添加

1
2
3
4
5
6
7
8
9
10
11
{
    "path" "pages/housing_resource/index",
    "style" :                                                                                {
        "navigationBarTitleText""房源",
        "app-plus":{
            "titleNView":false
        }
                 
    }
             
}

如果全局都不要展示就在globalStyle里添加app-plus titleNView:false就可以了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// #ifdef H5
        {
            "path" "pages/housing_resource/index",
            "style" :                                                                                    
            {
                "navigationBarTitleText""房源",
                "app-plus":{
                    "titleNView":false
                }
                 
            }
        },
        // #ifndef
        {
            "path" "pages/housing_resource/index",
            "style" :                                                                                    
            {
                "navigationBarTitleText""房源",
                "app-plus":{
                    "titleNView":false
                }
                 
            }
        },
        // #endif