A white screen appears when the uniapp page jumps (APP and applet)

1、APP

Set the background color of the page in the project pages.json to be consistent with the background color of the page or container in the page to solve this problem



    "path": "pages/index/index", 

    "style": { 

         "navigationBarTitleText": "生态", 

         "app-plus": { 

                 "background":"#212121" //此处背景色与页面中一致

         }

     } 

}

2. WeChat Mini Program

The background color setting in the WeChat applet-page.json does not take effect, and a white screen still appears when the page jumps

Change the style globally on the App.vue page

<style>

	/*每个页面公共css */

	/* #ifdef MP-WEIXIN */

	page{

		background: #212121;

	}

	/* #endif */

</style>

Guess you like

Origin blog.csdn.net/fbqgdxw/article/details/122236795