当前位置:网站首页>0 foundation a literature club low code development member management applet (6)
0 foundation a literature club low code development member management applet (6)
2022-06-24 07:06:00 【Low code preacher】
1 Chapter 6 : Member query function development
This practical tutorial uses Tencent cloud micro to build low code , Quickly build a small program for member management , It is convenient for businesses to manage members through small programs . The function is divided into member information registration 、 Recharge 、 consumption 、 Invoice and member query function . The contents of historical articles are as follows :
1、 Home page and member registration function
2、 Member recharge function
3、 Member recharge record function
4、 Member consumption function
5、 Invoice management function
In this article, we continue our development , After the home page function is developed, we can add a member query function in the bottom navigation bar , It is convenient for merchants to query member information , Browse the history of recharge and consumption . The development process continues our previous
Define data sources
Define page
Development function
Preview release
1.1 Define data sources
Because we are developing the query function , So there is no need to add a new data source , Just use our member registration data source
1.2 Define page
We need two pages , One is the list page of members , One is the member details page , Let's create them in the page management .
1.3 Development function
We choose the home page , Then add one inside tab Column component
We need to download the icons on the navigation bar first , Each icon is divided into checked and unchecked states , We distinguish by color
Then we upload the icon to resource management , And set it in the component
Then we download the second icon , members , Set in the same way
What we need to pay attention to here is that the navigation component will route by itself , We choose redirection as the routing method
Then set our selected value to the home page
Of the first menu name Set to index
Of the second menu name Set to memberlist
The values we set here are and page ID One to one correspondence
Generally, the first level navigation menus can be switched to each other , We also add a navigation component to the member list page , Let the two pages switch to each other
After the navigation bar is completed , We need to develop the member list function , First add a list container component
Then add a list element component to the list container component
After the component is added, we need to add a state variable , We get a collection of members from a data source
And then show it in the loop of the list element component for Bind the variable
We bind the title to the member's name
The content on the right is bound to the mobile number of the member
Add a click event , Go to the details page , A low code method is defined here
export default function({event, data}) {
app.navigateTo({
pageId: 'memberdetail', // page Id
params: {memberid: data.target},
});
}
In this way, the list page will be developed . Then we develop the details page , On the details page, let's define variables first , Based on the incoming id To get member information , First, add a parameter variable
Then define a variable to get member details
After the variable is defined , We just need to bind variables to the components of the page
1.4 Preview release
After the development , Click preview to view the effect in real time
1.5 summary
Through six chapters , We introduced the development process of a membership management applet , In general, it is very simple to use low code development , Basically, drag and drop the page , Define the table structure in the data source and add the business logic in the background . In fact, it is consistent with the traditional development process , But the biggest advantage over traditional development is drag and drop development , Secondly, the launch is a one-off process , It doesn't feel very difficult .
And the biggest benefit is the release H5 Exemption from filing , No operation and maintenance , You can use it directly , If you think you're good at it , Now register an account to start your development journey .
边栏推荐
- Why does the remote end receive a check-out notice when the TRTC applet turns off audio and video locally
- Spark参数调优实践
- puzzle(019.1)Hook、Gear
- 多传感器融合track fusion
- Oracle SQL comprehensive application exercises
- Spark accumulators and broadcast variables
- Why use lock [readonly] object? Why not lock (this)?
- leetcode:85. 最大矩形
- 面渣逆袭:MySQL六十六问,两万字+五十图详解
- Computing power and intelligence of robot fog
猜你喜欢

Programmers use personalized Wallpapers

With a goal of 50million days' living, pwnk wants to build a "Disneyland" for the next generation of young people

leetcode:85. 最大矩形

Computing power and intelligence of robot fog

Virtual file system
![[Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core](/img/18/1576cb7bdae5740828d1db5b283aee.png)
[Yugong series] June 2022 asp Basic introduction and use of cellreport reporting tool under net core

JVM调试工具-jmap

LuChen technology was invited to join NVIDIA startup acceleration program

leetcode:84. 柱状图中最大的矩形

Oracle SQL comprehensive application exercises
随机推荐
Arduino raised $32million to enter the enterprise market
leetcode:85. 最大矩形
[problem solving] the connection to the server localhost:8080 was referred
Nine unique skills of Huawei cloud low latency Technology
NVIDIA control panel does not open what is NVIDIA control panel
What is the OSI seven layer model? What is the role of each layer?
System design: partition or data partition
leetcode:1856. Maximum value of minimum product of subarray
How do I turn off win10 automatic update? What are the good ways?
Functions in setinterval cannot have parentheses
GPU frequency of zhanrui chip
Open source and innovation
网吧管理系统与数据库
Project demo
Computing power and intelligence of robot fog
Spark累加器和廣播變量
Arduino融资3200万美元,进军企业市场
On BOM and DOM (1): overview of BOM and DOM
SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?【英文版】
How do I reinstall the system? How to install win10 system with USB flash disk?