Scan the code to log in, loading

Targeted phone number list from worldwide.
Post Reply
nabilislam
Posts: 1
Joined: Sat Jun 11, 2022 5:32 am

Scan the code to log in, loading

Post by nabilislam »

We can see the option of scanning code login in many software login methods, so how is it implemented? The author of this article logs in by scanning the code, bulk sms send and describes the core logic of Axure's high-fidelity prototype in detail. It is recommended for children's shoes who are doing interactive design to read. First, let's take a look at the effect we want to achieve: After seeing the effect, let's confirm that the two-dimensional code of the functions we want to achieve has an expiration time; when the two-dimensional code fails, there will be an error if the scan code is unsuccessful Prompt: When the QR code does not expire, bulk sms send the scan code is successful, and you need to confirm the login on the mobile terminal; When the scan code is successful, after the mobile terminal confirms the login, the login is successful; When the scan code is successful, the mobile terminal cancels the login , the QR code will expire immediately. Then, let's refine a few key points.

Set the time for the QR code to fail. In the prototype, it is set to 10 seconds, which can be adjusted by yourself. There is a state of scanning. When starting to scan, bulk sms send set a short scan time, and then judge whether the current QR code is invalid; when the QR code is invalid, an error message is displayed; when the QR code is not invalid, the scanning On the success page, confirm the login operation; when bulk sms send the operation "confirm login", the mobile terminal returns to the scan page, and the desktop side jumps to the home page bulk sms send; when the operation "cancel login", the mobile terminal returns to the scan page, and the second page on the desktop side The QR code will expire immediately. 1. How to achieve the effect of moving the scanning up and down Prepare a scanned picture in advance, and determine the highest and lowest points of the movement.

Image

If you want it to move continuously, you need to set a trigger point, and when an event is triggered, it will move. Here I usually use the text input box (Text Field), because it has an interaction called when the text changes. When the page switches to the page being scanned, bulk sms send we set the text of a text to change the text, and then set the interaction when the text changes as follows, so that the continuous scanning state can be achieved. 2. How to judge the current QR code status When the page jumps to the scanning status, it is set to start scanning. I also use the interaction when the text changes. When you need to scan, set the text to "scanning", and use the judgment of the content of the text box to judge the current status of the QR code when the text of the text box is being scanned. I also use a text box to store the current state of the QR code. bulk sms send There are a few points to note here, that is, many effects need to be set back to the initial state before the page is switched. Otherwise, when the process comes back, it is not in the initial state, and there will be an error effect.
Post Reply