当前位置:网站首页>The sign in function completes 03 "IVX low code sign in system production"
The sign in function completes 03 "IVX low code sign in system production"
2022-06-25 03:37:00 【1_ bit】
Make iVX Low code projects need to go online IDE:https://editor.ivx.cn/
One 、 Sign in page production
The previous section completed the release of sign in content , Then how do we make a check-in page and check in ?
At this point, we first create a page called the check-in QR code page :
Then preview the page directly , You will see that there will be a pid, This pid Namely ivx On this page id value :
Let's directly copy this string of values to the corresponding link generated after the release check-in in the previous section :
Then go to this page and make the page content , The page is as follows :
This page is very simple , Similar top content , Then here is a two-dimensional code , At this point, we will not repeat this part .
At this point, the current page needs to receive the parameters passed in , Then add parameter acquisition in the display event of the current page , Get parameters. You can use the application system to get :
This id In the last section, we have learned that , It means which sign in ID, So now I get this id It must be necessary to get the current ID Check in content of , At this point, you need to create a service term to get this one ID Corresponding data , Create a service called search check-in information :
Then write the current service , Receive a parameter as sign in ID, Then through this ID Value to find the corresponding check-in in the database :
Because this time is through id Find value , Then the value must be a piece of data , It can't be multiple pieces of data , because ID Value is unique , So here I return a certain line of output results , This line is 0,0 Indicates the first line because the index is from 0 Start :
Then we return to the display event of the page , In the access to id Call the service directly after the parameter :
After completion, directly use an object variable to assign values :
Then you need to create an object variable , This object variable needs to correspond to the transmitted data one by one , Fields of this object variable :
At this point, you also need to create a check-in name string variable , When the value of the sign in information is obtained , Give the sign in name directly , And the sign in name variable is bound to the title of the current page :
Then let's create an action below to assign a value to the QR code in the current page :
At this point, you can see that I used a time variable here :
This time variable needs to be created , And named the current time :
Two 、 Transformed QR code
In the current time mentioned in the first point, in order to make the two-dimensional code discover the transformation , The time stamp parameter of the QR code we need to sign in is 2 In seconds , So every 2 Seconds will give this QR code a new url value , But I personally don't like this operation , Here I will demonstrate how to transform QR code , However, I will not use this value for sign in entry , I will directly use the timestamp after the jump page .
At this point we create a timer —— trigger :
At this point, I change the trigger to automatically change the verification code , This trigger is automatically responsive :
every other 3 Seconds to trigger , What triggers it ? We can view events :
That is, assign a value to the time variable , Because the current value obtained by the time variable will be the content of the current time by default , Then we preview the current page :
Remember to bring id, Otherwise, you will be prompted that there is no current check-in content , At this point, we find that the current QR code every 3 Seconds to switch .
3、 ... and 、 Complete the check-in function
You need to complete the check-in function and create a page , Use this page to respond to seat check-in :
This check-in page is divided into two functions , One is the success prompt , There is also a failure prompt :

At this time, the login function is reserved , Because the previous articles have done , Just take it as a hint here .
Preview the page's url, Copy the corresponding uid Go to the QR code , So you can scan the code to this page , Then we write the content of parameter acquisition in the event of this page :
After the thin spot area receives the results, it will be copied to the sign in ID Currently signed in id value , Then search the current id The content of , Why search ? Because we need to judge the corresponding start and end time from the database , Here we must pay attention to , Data input externally “ It's not safe ”, If we can use internal data, we can use internal .
Then after the search , Let's create corresponding time variables and object variables , And return values to these variables :
Then we directly determine whether the value of the current time is within the range of the database timestamp , Because it's the number of seconds , So just make a direct judgment :
After judging the success, the successful block can be displayed :
Otherwise, the failed block is displayed :
These two blocks are hidden by default :
Such a core function of check-in is realized .
边栏推荐
- XML建模
- The era of copilot free is over! Student party and defenders of popular open source projects can prostitute for nothing
- TCC mode explanation and code implementation of Seata's four modes
- 股票在网上开户安全吗?在线等答案
- Unity archive system - file in JSON format
- 大咖说*计算讲谈社|如何提出关键问题?
- 14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
- Computer wechat user picture decoded into picture in DAT format (TK version)
- Tell you about mvcc sequel
- Leetcode 210: curriculum II (topological sorting)
猜你喜欢
随机推荐
Egg 服务搭建微信公众号的基础服务
left join on和 join on的区别
后台页制作01《ivx低代码签到系统制作》
Self cultivation and learning encouragement
Leetcode 210: curriculum II (topological sorting)
怎么开户打新债 开户是安全的吗
DSPACE设置斑马线和道路箭头
Tell you about mvcc sequel
做自媒体不知道怎样变现?7大变现方法分享
Skywalking implements cross thread trace delivery
Cloud native database vs traditional database
ACM. Hj75 common substring calculation ●●
浏览器下载的文件属性里都有保护,如何去掉
Can the polardb database be connected to the data source through MySQL
Refresh mechanism of vie
love
Is it safe for Guoxin golden sun to open an account in the steps of opening new bonds
Randla net: efficient semantic segmentation of large scale point clouds
Advanced usage of groovy
股票开户用客户经理发的开户链接安全吗?知道的给说一下吧








