Traditional Culture Encyclopedia - Travel guide - UniApp development app guide page
UniApp development app guide page
take the project developed by uniapp as an example: in the onLaunch function, check whether the flag is false. If it is false, jump to the guidance page, where you can set the jump to the home page. Note that it is best to use reLaunch to avoid the user's physical key return; If true, the flag is stored locally. This is the principle; However, in actual development, it will be found that there is a splashscreen phenomenon, so the user's experience is not very good, so the key point lies in this piece. Take uniapp as an example, you need to modify the splash screen settings in the source view of uniapp, change autoclose to false, and call the plus. navigator.closesplash screen method in onLaunch to close the startup diagram by setting a delay time. Delay is set to . In this way, the setting of the startup diagram is ok.
The following method of checking whether to enter the boot page is encapsulated for reference only:
Tip: In many applications, it is found that if the mobile phone itself compares cards, the home page will still appear before the boot page when the user opens the app for the first time. The way to deal with this situation is to set the boot page as the home page by default, that is, in routing management, write the boot page first, and then judge whether to jump to the home page by flag;
The above development of the guide page only provides an idea, and there are many other ways, such as the back-end controlling whether the guide page is displayed or not, and the dynamic changes of the guide page. Of course, the problem itself is not difficult to realize, and the key lies in the problems existing in practical application.
- Previous article:Is there any interesting place in Fenshui Town, Tonglu?
- Next article:东方明珠的英文文章
- Related articles
- Introduction of Jiangxi tourist attractions
- Introduction to the United StatesGoing to the United States to clear customs
- Northwest Normal University Tourism College Organization
- So close, so beautiful. Who said you went to Hebei at the weekend?
- Tourist attractions in eighteen counties in Ganzhou
- What other niche tourist destinations in Italy are worth recommending?
- Traveling alone for the first time, see if you are worried about the five things you are most worried about.
- 20 18 mangosteen, what is the impact on the closure of scenic spots in Guangxi?
- Analysis and Interpretation of the Employment Situation of Language Majors in Laos
- What is the capital of Belize? What are those famous cities? What language is used?