Training registration applet registration list page development

In this section, we will develop the registration list function, first look at the prototype
insert image description here

1 Create a page

For functionality to be rendered on a page, the page needs to be created first. Open our training registration applet, in the page area, click the icon to create a page,
insert image description here
enter the name of the page registration list page
insert image description here

2 components to build

You can use the data list component to build the list page, and add the data list component to the page.
insert image description here
Modify the data source and select it as training content. Modify
insert image description here
the component, change the icon on the right to a text component, and modify the text content to be the
insert image description here
default component for registration. A certain amount has been set style, we need to modify it. Modify the width of the normal container, set it to 50px,
insert image description here
switch to CSS code mode, and remove our opacity
insert image description here

3 Set URL parameters

If we come in from the home page, we should filter the data under this category according to different categories. The incoming parameters need to set the URL parameters first. Select the page in the outline tree, click the new URL parameter on the right,
insert image description here
and enter the parameter name categoryid
insert image description here

4 Set filter conditions

After the page parameters are set, select the data list component and set the filter conditions, so that the classification field of our training content is equal to the parameters passed in on our page. Note that the incoming value here is selected as fx binding, and the corresponding variable is selected when
insert image description here
binding can
insert image description here

5 home page jump

After the list page is set, we need to set the page jump. Go back to the home page and select the components of our data list
insert image description here
to set events for the components. For the events, we choose page jump. When jumping, we need to pass in the ID of the current data
insert image description here
insert image description here
here. The URL parameters we set on the list page appear here. Use fx to bind OK, select our ID
insert image description here
insert image description here
and the page will be built

6 The final effect

Now when you click on the home page, you can filter the data according to the classification
insert image description here

Summarize

In this article, we take you to realize the function of the list page. The list function needs to use the data list component, and needs to set URL parameters and filter conditions. When the page jumps, the incoming ID must be set correctly to achieve data filtering.

Guess you like

Origin blog.csdn.net/u012877217/article/details/131568539
Recommended