Skip to content

I want your help urgent!! #123

Closed Answered by Xuemuyang
alexmathew11 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I offer a simple idea.

Prepare three pages, page, page1 and page2. page is the home page of the application without any UI widgets.

Record the time of opening the Mini Program for the first time in page.js, and carry out persistent storage, obtain the time using the Time sensor, persistent storage refer to Data Persistence.

Then each time we enter the Mini Program, we will get the time again and compare it with the time we store to decide which page to jump to, and use reloadPage when jumping.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexmathew11
Comment options

Answer selected by alexmathew11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants