当前位置:网站首页>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 .
边栏推荐
- 应用配置管理,基础原理分析
- Do you want to research programming? I got six!
- How to register the cloud service platform and what are the advantages of cloud server
- C language student management system - can check the legitimacy of user input, two-way leading circular linked list
- How to operate the little red book account: making good use of the theory of long tail words
- JVM debugging tool -jvisualvm
- You have a chance, here is a stage
- Multi sensor fusion track fusion
- Record -- about the problem of garbled code when JSP foreground passes parameters to the background
- [JUC series] completionfuture of executor framework
猜你喜欢

Programmers use personalized Wallpapers

Computing power and intelligence of robot fog

Rockscache schematic diagram of cache operation

.NET7之MiniAPI(特别篇) :Preview5优化了JWT验证(上)

JVM调试工具-jvisualvm

About Stacked Generalization

Arduino融资3200万美元,进军企业市场

Counter attack of flour dregs: MySQL 66 questions, 20000 words + 50 pictures

leetcode:剑指 Offer 26:判断t1中是否含有t2的全部拓扑结构

面渣逆袭:MySQL六十六问,两万字+五十图详解
随机推荐
About Stacked Generalization
RealNetworks vs. 微软:早期流媒体行业之争
[JUC series] completionfuture of executor framework
Record -- about the method of adding report control to virtual studio2017 -- reportview control
You have a chance, here is a stage
应用配置管理,基础原理分析
Become TD hero, a superhero who changes the world with Technology | invitation from tdengine community
雲監控系統 HertzBeat v1.1.0 發布,一條命令開啟監控之旅!
How do I check the IP address? What is an IP address
Let's talk about BOM and DOM (5): dom of all large Rovers and the pits in BOM compatibility
华为云低时延技术的九大绝招
Spark项目打包优化实践
年中了,准备了少量的自动化面试题,欢迎来自测
.NET7之MiniAPI(特别篇) :Preview5优化了JWT验证(上)
mysql中的 ON UPDATE CURRENT_TIMESTAMP
展锐芯片之GPU频率
Virtual file system
Cloud native high availability and Disaster Recovery Series (I): pod break up scheduling
Laravel文档阅读笔记-Laravel Str slug() Function Example
c#:互斥锁的使用