Micro-channel routing applet の page

Page small micro-channel routing program is managed by the platform has a stack of forms.

Page letter micro applet why it is so special, because the viewing area is always only one page.

First, the applet page routing

There are six small program page routing: initialize, open a new page, the page redirects, page back, Tab switching, reload

Routing Page performance
initialization New page stack
Open a new page New page stack
Page redirects Stack the current page, a new page stack
Page Back Page constantly popping, until the target returns page, a new page stack
Tab switching All pages popped, leaving only the new Tab page
Reload All pages popped, leaving only a new page

 







Second, the switching

Routing Trigger When Before routing page After routing page
initialization A small program to open the first page  

onLoad,
onShow

Open a new page Call API wx. NavigateTo or components <navigator open-type = "navigateTo" /> onHide onLoad,
onShow
Page redirection Call API wx. RedirectTo or components <navigator open-type = "redirectTo" /> onUnload onLoad,
onShow
Page Back Call API wx. Nav igateBack or components <navigator open-type = "navigateBack"> upper left corner return button or user onUnload onLoad,
onShow
Tab switching Call API wx. SwitchTab or components <navigator open-type = "switchTab" /> Tab switching or user  

In each case, please
refer to the table

Restart Call API wx. ReLaunch or components <navigator open-type = "reLaunch" /> onUnload onLoad,
onShow



 

Guess you like

Origin www.cnblogs.com/xietianjiao/p/11940052.html