uniapp隐藏顶部title

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

{
    "path" : "pages/housing_resource/index",
    "style" :                                                                                {
        "navigationBarTitleText": "房源",
        "app-plus":{
            "titleNView":false
        }
				
    }
            
}

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

// #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