A page assembly method and device

By building an element component library and judging and adjusting components during the page assembly process, the problem of single page display in the existing technology is solved, and flexible page configuration and efficiency improvement are achieved.

CN112579084BActive Publication Date: 2024-08-23SHENZHEN JIZHI DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011502931.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-08-23
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

The existing page assembly process has a single display and cannot achieve flexible configuration. As a result, small changes or additions of functions based on needs may lead to overall page modifications.

Method used

Pre-build the element component library, receive the page splicing request, obtain the target element component and the number of components, determine whether there is a corresponding preset component template, if not, select the components in the component library for assembly, and adjust the component position and container size to generate the initial page.

Benefits of technology

It realizes the flexible configuration of the page according to the needs, reduces the overall modification caused by small changes or added functions, and improves the flexibility and efficiency of the page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579084B
    Figure CN112579084B
Patent Text Reader

Abstract

The present invention discloses a page assembly method and device, which pre-builds an element component library, and the method includes: receiving a page splicing request, obtaining each target element component and the corresponding component quantity in the page splicing request; judging whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; if not, selecting each target element component in the element component library, assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page; and sending the initial page to a corresponding front-end device. The above process selects a target element component in the element component library based on the page splicing request, assembles each target element component in a preset container based on the corresponding component quantity to obtain an initial page, and can realize flexible configuration of the page according to demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a page assembling method and device. Background Art

[0002] With the development of technology, the complexity of page assembly is getting higher and higher. The existing page assembly is based on demand. Corresponding pages are generated based on specific needs. Each demand corresponds to a page. Even a small change to the demand or the addition of a small function may cause the overall modification of the page assembly.

[0003] The inventor studied the existing page assembly process and found that the page display is single and cannot be flexibly configured according to needs. Summary of the invention

[0004] In view of this, the present invention provides a page assembly method and device to solve the problem that the existing page assembly process is found to have a single page display and cannot be flexibly configured according to needs. The specific solution is as follows:

[0005] A page assembly method, pre-building element component library, including:

[0006] Receive a page splicing request, and obtain each target element component and the corresponding component quantity in the page splicing request;

[0007] Determine whether there is a target preset component template corresponding to each target element component and the corresponding component quantity;

[0008] If not, each target element component is selected from the element component library, and each target element component is assembled in a preset container based on the corresponding component quantity to obtain an initial page;

[0009] The initial page is sent to the corresponding front-end device.

[0010] The above method may optionally further include:

[0011] If so, each target element component is selected from the element component library, and each target element component is added to the target preset component template based on the corresponding component quantity to obtain an initial page.

[0012] The above method, optionally, before adding each target element component to the target preset component template based on the corresponding component quantity, further includes:

[0013] Obtain each element component to be added and the corresponding number of components to be added in the target preset component template;

[0014] Comparing the respective element components to be added and the corresponding number of components to be added with the respective target element components and the corresponding number of components;

[0015] Based on the comparison result, the corresponding element component to be added in the target preset component template is deleted and / or added.

[0016] The above method may optionally further include:

[0017] Obtaining target position information and initial position information of each target element component in the initial page;

[0018] By dragging or adjusting the file name, the horizontal distance in the initial position information is adjusted to the horizontal distance of the target position information, the vertical distance of the initial position information is adjusted to the vertical distance of the target position information, and / or, whether each target element component is centered, and / or, whether the navigation bar in the initial page satisfies the preset alignment.

[0019] The above method may optionally further include:

[0020] Determine whether the preset container can cover each target element component;

[0021] If not, the size of the preset container is adjusted.

[0022] A page assembly device, with a pre-built element component library, including:

[0023] A first acquisition module is used to receive a page splicing request, and acquire each target element component and the corresponding component quantity in the page splicing request;

[0024] A first judgment module is used to judge whether there is a target preset component template corresponding to each target element component and the corresponding component quantity;

[0025] an assembling module, for, if not, selecting each target element component from the element component library, and assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page;

[0026] The sending module is used to send the initial page to the corresponding front-end device.

[0027] The above device may optionally further include:

[0028] An adding module is used to select each target element component in the element component library, and add each target element component to the target preset component template based on the corresponding component quantity to obtain an initial page.

[0029] The above device, optionally, the assembling device further comprises:

[0030] The second acquisition module is used to acquire each element component to be added and the corresponding number of components to be added in the target preset component template;

[0031] A comparison module, used for comparing the respective element components to be added and the corresponding number of components to be added with the respective target element components and the corresponding number of components;

[0032] The processing module is used to delete and / or add the corresponding element component to be added in the target preset component template based on the comparison result.

[0033] The above device may optionally further include:

[0034] A third acquisition module is used to acquire target position information and initial position information of each target element component in the initial page;

[0035] An adjustment module is used to adjust the horizontal distance in the initial position information to the horizontal distance of the target position information, and the vertical distance of the initial position information to the vertical distance of the target position information by dragging or file naming adjustment, and / or whether each target element component is centered, and / or whether the navigation bar in the initial page satisfies a preset alignment.

[0036] The above device may optionally further include:

[0037] A second judgment module is used to judge whether the preset container can cover each target element component;

[0038] The adjusting module is used to adjust the size of the preset container if no.

[0039] Compared with the prior art, the present invention has the following advantages:

[0040] The present invention discloses a page assembly method and device, which pre-builds an element component library, and the method includes: receiving a page splicing request, obtaining each target element component and the corresponding component quantity in the page splicing request; judging whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; if not, selecting each target element component in the element component library, assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page; and sending the initial page to a corresponding front-end device. The above process selects a target element component in the element component library based on the page splicing request, assembles each target element component in a preset container based on the corresponding component quantity to obtain an initial page, and can realize flexible configuration of the page according to demand. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a preset component template disclosed in an embodiment of the present application;

[0043] Figure 2 A flow chart of a page assembly method disclosed in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a method for intelligently splicing visual pages disclosed in an embodiment of the present application;

[0045] Figure 4 It is another schematic diagram of a method for intelligently splicing visual pages disclosed in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of a dynamic development page disclosed in an embodiment of the present application;

[0047] Figure 6 This is a structural block diagram of a splicing device for intelligently splicing visual pages disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0050] The present invention discloses a page assembly method and device, which are applied to the process of page assembly. In the prior art, a small change or the addition of a small function according to the demand may cause the overall modification of the page assembly. The present invention provides a page assembly method for solving the above method. The execution subject of the assembly method can be a processor or a controller. The specific existence form of the execution subject is not limited in the embodiment of the present invention. For the assembly method, an element component library is pre-constructed, wherein the element component library includes: each element component and a preset number of preset component templates. The each element component divides the design elements into modules based on the function. The each element component includes: ICON class component, button class component, list class component and card class component. The each element component is grouped and divided and packaged and stored in the element component library. Further, the historical pages are subjected to type extraction, typical element components are spliced ​​to obtain a preset component template, or a preset component template is set based on experience, wherein the preset number can be set based on experience or specific circumstances. In the embodiment of the present invention, the specific value of the preset number is not limited. Preferably, the element component library is updated at intervals of a preset time or other update conditions. The schematic diagram of the preset component template is shown in FIG. Figure 1 As shown, each template in Template 1, Template 2, Template 3, Template 4, Template 5, Template 6, Template 7, Template 8 and Template 9 consists of a container and a corresponding element component. Based on the element component library, the execution flow of the page assembly method is as follows: Figure 2 As shown, the steps include:

[0051] S101, receiving a page splicing request, and obtaining each target element component and the corresponding component quantity in the page splicing request;

[0052] In an embodiment of the present invention, when a page splicing request is received, the splicing request is parsed, and each target element component and the quantity of each target element component in the splicing request are obtained at a specified position or a preset mark in the splicing request. Preferably, the splicing request also includes the location information of each target element component.

[0053] S102, determining whether there is a target preset component template corresponding to each target element component and the corresponding component quantity;

[0054] In an embodiment of the present invention, each element component to be added and the number of components to be added of each element component to be added in the preset number of preset component templates are obtained, and for each element component to be added and the corresponding number of components to be added, it is determined whether there is a target preset component template corresponding to each target element component and the corresponding number of components. The judgment principle can be set based on experience or specific circumstances. For example, the judgment rule can be that the template element component to be added in the preset component template matches the target element component, then it is determined that there is a corresponding target preset component template, or the judgment rule can be that the template element component to be added in the preset component template matches the target element component and the corresponding number of element components to be added meets the corresponding number threshold, then it is determined that there is a corresponding target preset component template. In the embodiment of the present invention, the specific judgment rule is not limited.

[0055] Furthermore, the individual element components to be added and the corresponding number of element components to be added are compared with the individual target element components and the corresponding number of components. For each element component to be added and its corresponding number of element components to be added, it is determined whether the number of components of the corresponding target element component is satisfied. If the number of element components to be added is equal to the number of corresponding components, no adjustment is made. If the number of element components to be added is less than the number of corresponding components, a corresponding number of corresponding target element components are added to the target preset component template. If the number of element components to be added is greater than the number of corresponding components, a corresponding number of corresponding target element components are deleted, wherein the corresponding number is the absolute value of the difference between the number of element components to be added and the number of corresponding components.

[0056] S103, selecting each target element component in the element component library, and assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page;

[0057] In an embodiment of the present invention, in the absence of a target preset component template corresponding to the respective target element components and the corresponding component quantity, the preset container is obtained, wherein the size of the preset container has been determined, and based on the identifiers of the respective target element components, the respective target element components are selected from the element component library, wherein the identifier may be the name, number or other preferred identifier of the target element component, and for each target element component and its corresponding component quantity, in the preset container, based on the corresponding component quantity, the respective target element components are added to the preset container for splicing to obtain an initial page.

[0058] Furthermore, the size of the preset container is pre-set, and the specific size can be set based on experience or specific circumstances, which is not limited in the embodiments of the present invention. In the process of splicing the various target element components based on the preset container, it is preferably determined whether the preset container can completely cover the various target element components. If the preset container cannot completely cover the various target element components, the size of the preset container is adjusted. The principle of adjustment is to ensure that the preset container can completely cover the various target element components.

[0059] S104: Send the initial page to a corresponding front-end device.

[0060] In the embodiment of the present invention, the spliced ​​initial page is sent to the corresponding front-end device for front-end development.

[0061] The present invention discloses a page assembly method, which pre-builds an element component library, and the method includes: receiving a page splicing request, obtaining each target element component and the corresponding component quantity in the page splicing request; judging whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; if not, selecting each target element component in the element component library, assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page; and sending the initial page to a corresponding front-end device. The above process, based on the page splicing request, selects the target element component in the element component library, assembles each target element component in a preset container based on the corresponding component quantity to obtain the initial page, and can realize flexible configuration of the page according to demand.

[0062] In an embodiment of the present invention, in the above-mentioned splicing method, a target position relationship is set for the position relationship between the container and the element component in the initial page, wherein the target position relationship can be set in the splicing request or can be pre-set. After obtaining the initial page, the target position information and initial position information of each target element component in the initial page are obtained; the horizontal distance in the initial position position information is adjusted to the horizontal distance of the target position information, and the vertical distance of the initial position information is adjusted to the vertical distance of the target position information by dragging or file naming adjustment, and / or, whether each target element component is centered, and / or, whether the navigation bar in the initial page meets the preset alignment. Further, if the above adjustment still does not meet the requirements, a manual adjustment is prompted. For example, the business requires an information list that needs to be full-column and left-aligned, but the automatically adapted page is in the form of a card waterfall flow, which does not meet the business requirements, and manual adjustment is required to complete the page design.

[0063] In the embodiment of the present invention, the above-mentioned splicing method is exemplified, and the splicing process may include intelligent splicing of visual pages and dynamic development pages. Among them, for the splicing process of intelligent splicing of visual pages, the free splicing form 1 is as follows: Figure 3 As shown, suppose the components in the container are a1, a2, a3, a4, and a5. If needed, add a1+a2+a3+n*a4+a3+n*a5 to generate the product design page. The free splicing form 2 is as follows Figure 4 As shown, suppose the components in the container are a1, a2, a3, b1, b2, a4, and a5. If a1+a2+a3+b1+b2+a4+n*a5 are added as needed, the product design page can be generated. The schematic diagram of the dynamic development page is as follows Figure 5 As shown, by clicking to check at least one of 2.0+3.0-0821 Sprint 12, 2.0+3.0-0903 Sprint 13, 2.0+3.0-0915 Sprint 14, 2.0+3.0-1012 Sprint 15 / 2.0-0422 Sprint 2, 2.0-0427 Sprint 3, 2.0-0510 Sprint 5, 2.0-0602 Sprint 6, 2.0-0605 Sprint 6 and 2.0-0609 Sprint 6, a visualization page is generated. Dynamic development is more automated than intelligent splicing. Intelligent splicing can adjust the page while previewing. Dynamic development requires the overall completion of page splicing before previewing.

[0064] In the embodiment of the present invention, in the above-mentioned splicing method, the design elements are modularized and assembled in the form of Lego components. Components can be assembled flexibly and efficiently. New services and new scenarios can be quickly matched with demand and standardized platform output. The human resource allocation method and new working mode are changed to dynamically solve design requirements and maximize the value of the business.

[0065] Based on the above-mentioned page assembly method, an embodiment of the present invention further provides a page assembly device, in which an element component library is pre-built, and its structural block diagram is as follows: Figure 6 As shown, including:

[0066] A first acquisition module 201 , a first judgment module 202 , an assembling module 203 and a sending module 204 .

[0067] in,

[0068] The first acquisition module 201 is used to receive a page splicing request, and acquire each target element component and the corresponding component quantity in the page splicing request;

[0069] The first determination module 202 is used to determine whether there is a target preset component template corresponding to each target element component and the corresponding component quantity;

[0070] The assembling module 203 is used to select each target element component from the element component library, and assemble each target element component in a preset container based on the corresponding component quantity to obtain an initial page;

[0071] The sending module 204 is used to send the initial page to the corresponding front-end device.

[0072] The present invention discloses a page assembly device, which pre-builds an element component library, and the method includes: receiving a page splicing request, obtaining each target element component and the corresponding component quantity in the page splicing request; judging whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; if not, selecting each target element component in the element component library, assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page; and sending the initial page to a corresponding front-end device. The above process selects a target element component in the element component library based on the page splicing request, assembles each target element component in a preset container based on the corresponding component quantity to obtain an initial page, and can realize flexible configuration of the page according to demand.

[0073] In the embodiment of the present invention, the assembling device further includes: an adding module 205 .

[0074] in,

[0075] The adding module 205 is used to select each target element component in the element component library, add each target element component to the target preset component template based on the corresponding component quantity, and obtain an initial page.

[0076] In an embodiment of the present invention, the assembling device further includes:

[0077] A second acquisition module 206 , a comparison module 207 and a processing module 208 .

[0078] in,

[0079] The second acquisition module 206 is used to acquire each element component to be added and the corresponding number of components to be added in the target preset component template;

[0080] The comparison module 207 is used to compare the various element components to be added and the corresponding number of components to be added with the various target element components and the corresponding number of components;

[0081] The processing module 208 is used to delete and / or add the corresponding element component to be added in the target preset component template based on the comparison result.

[0082] In an embodiment of the present invention, the assembling device further includes:

[0083] The third acquisition module 209 and the adjustment module 210 .

[0084] in,

[0085] The third acquisition module 209 is used to acquire the target position information and initial position information of each target element component in the initial page;

[0086] The adjustment module 210 is used to adjust the horizontal distance in the initial position information to the horizontal distance of the target position information, and the vertical distance of the initial position information to the vertical distance of the target position information by dragging or file naming adjustment, and / or whether each target element component is centered, and / or whether the navigation bar in the initial page satisfies the preset alignment.

[0087] In an embodiment of the present invention, the assembling device further includes:

[0088] A second judging module 211 and an adjusting module 212 .

[0089] in,

[0090] The second judging module 211 is used to judge whether the preset container can cover each target element component;

[0091] The adjusting module 212 is used to adjust the size of the preset container if no.

[0092] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0093] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0094] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0095] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0096] The above is a detailed introduction to a page assembly method and device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for assembling pages. It is characterized in that A library of pre-built element components, including: Receive a page splicing request, and obtain each target element component and the corresponding component quantity in the page splicing request; Determine whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; If not, each target element component is selected from the element component library, and each target element component is assembled in a preset container based on the corresponding component quantity to obtain an initial page; If so, select each target element component in the element component library, obtain each element component to be added and the corresponding number of components to be added in the target preset component template; compare each element component to be added and the corresponding number of components to be added with each target element component and the corresponding number of components; based on the comparison result, delete and / or add the corresponding element component to be added in the target preset component template; add each target element component to the target preset component template based on the corresponding number of components to obtain an initial page; The initial page is sent to the corresponding front-end device.

2. The method according to claim 1, It is characterized in that Also includes: Obtaining target position information and initial position information of each target element component in the initial page; By dragging or adjusting the file name, the horizontal distance in the initial position information is adjusted to the horizontal distance of the target position information, the vertical distance of the initial position information is adjusted to the vertical distance of the target position information, and / or, whether each target element component is centered, and / or, whether the navigation bar in the initial page satisfies the preset alignment.

3. The method according to claim 1, It is characterized in that Also includes: Determine whether the preset container can cover each target element component; If not, the size of the preset container is adjusted.

4. A device for assembling pages, It is characterized in that A library of pre-built element components, including: A first acquisition module is used to receive a page splicing request, and acquire each target element component and the corresponding component quantity in the page splicing request; A first judgment module is used to judge whether there is a target preset component template corresponding to each target element component and the corresponding component quantity; an assembling module, for, if not, selecting each target element component from the element component library, and assembling each target element component in a preset container based on the corresponding component quantity to obtain an initial page; Adding module, for selecting each target element component in the element component library; The second acquisition module is used to acquire each element component to be added and the corresponding number of components to be added in the target preset component template; A comparison module, used for comparing the respective element components to be added and the corresponding number of components to be added with the respective target element components and the corresponding number of components; A processing module, configured to delete and / or add a corresponding element component to be added in the target preset component template based on the comparison result; The adding module is further used to add each target element component to the target preset component template based on the corresponding component quantity to obtain an initial page; The sending module is used to send the initial page to the corresponding front-end device.

5. The device according to claim 4, It is characterized in that Also includes: A third acquisition module is used to acquire target position information and initial position information of each target element component in the initial page; An adjustment module is used to adjust the horizontal distance in the initial position information to the horizontal distance of the target position information, and the vertical distance of the initial position information to the vertical distance of the target position information by dragging or file naming adjustment, and / or whether each target element component is centered, and / or whether the navigation bar in the initial page satisfies a preset alignment.

6. The device according to claim 4, It is characterized in that Also includes: A second judgment module is used to judge whether the preset container can cover each target element component; The adjusting module is used to adjust the size of the preset container if no.