未登錄狀態(tài)下
分別點擊著三個button跳轉到登錄界面 登錄成功后怎么分別跳轉不同的頁面?
謝謝
歡迎選擇我的課程,讓我們一起見證您的進步~~
You can give each button a tag. I guess you have the same click method for all three buttons. Write an attribute for the login page. When you click to log in, the tag is passed to the login page when it jumps, and then on the login page To distinguish which page you enter after logging in, the block mentioned above is also feasible
With a block, the block jumps to different pages respectively. After the login is completed, execute the block
It is convenient to use sb, there is a jump method, get a mark of the jump line, and judge which page to jump to based on the mark
Three button click events can be written in one method and use tags to distinguish each button. When not logged in, jump directly to the login page; after logging in, jump to different pages based on tags.