Question: When using uniapp to develop a mobile app, because the application created by HBuildX is an immersive style by default, if the built-in navigation bar is removed, the page will go directly to the status bar at the top of the mobile phone. The solution is as follows:
Method 1: Use the solution provided by the official uniapp documentation https://uniapp.dcloud.io/collocation/pages?id=customnav
Method 2: Configure mainfest.json to turn off immersion. Open the manifest.json file of the application, open the source code view, add the statusbar >immersed node under app-plus and set the value to false
"app-plus" : { "statusbar": { "immersed": false }, } Method 2, the test is successful!
…
This article is reprinted from https://blog.p2hp.com/archives/8524
This site is for inclusion only, and the copyright belongs to the original author.