Page generation method and device, computer equipment and storage medium
Through a page generation method, filtering and combining field modules, determining the association relationship model, and building a page structure, the problem of high complexity in the page development process is solved and efficient page customization and maintenance is achieved.
Patent Information
- Application Number
- CN202411550481.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-07
AI Technical Summary
Currently, the widely used system solutions are more complex in the page development process, which requires close cooperation between multiple parties and increases communication costs and labor costs.
A page generation method is proposed. By obtaining the input page display type, filtering the field module combinations that need to be displayed from the predefined field module dataset, obtaining configuration information, determining the association relationship model between field modules, and according to this The model builds the page structure to render the generated target page.
This method can highly meet users' page customization needs, reduce the interaction complexity and communication needs of the development process, improve development efficiency, reduce the workload of repeated coding, and facilitate post-maintenance of pages.
Smart Images

Figure CN119397119A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence and research and development technology, and in particular to a page generation method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of science and technology, the Internet has penetrated into every aspect of our lives. More and more companies are beginning to realize the importance of the Internet and integrate it into their daily operations to improve efficiency and expand the market. The popularity of the Internet has brought unlimited opportunities to companies: through the Internet, companies can easily cross geographical boundaries and establish connections with global customers, suppliers and partners, greatly expanding their business scope; at the same time, the Internet enables companies to quickly and accurately obtain market information, thereby making more scientific and effective decisions.
[0003] At present, many WAN WEB systems have emerged, which greatly facilitates information sharing and collaborative work among team members. However, the currently widely used system solutions often require a large amount of human resources to carry out customized page development. With the increase in interaction complexity and the need for multi-terminal access, the subsequent changes to the page not only require close cooperation from multiple parties, but also face the challenge of difficult maintenance, which significantly increases communication costs and labor costs. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a page generation method, apparatus, computer equipment and storage medium, which can solve the problem of high complexity in the page development process.
[0005] In order to solve the above technical problems, the present application embodiment provides a page generation method, which adopts the following technical solution:
[0006] Obtaining an input page display type, and filtering a field module combination to be displayed from a predefined field module data set according to the page display type;
[0007] Acquire configuration information for the field module combination, the configuration information including inter-module relationship and attribute information;
[0008] Determining an association relationship model between each field module in the field module combination according to the relationship between the modules;
[0009] A page structure of the field module combination is constructed according to the association relationship model and the attribute information, and a target page is generated by rendering according to the page structure.
[0010] In order to solve the above technical problems, the embodiment of the present application further provides a page generation device, which adopts the following technical solution:
[0011] A screening module, used to obtain an input page display type, and screen the field module combination to be displayed from a predefined field module data set according to the page display type;
[0012] A configuration module, used to obtain configuration information for the field module combination, wherein the configuration information includes inter-module relationship and attribute information;
[0013] An association module, used for determining an association relationship model between each field module in the field module combination according to the relationship between the modules;
[0014] A generation module is used to construct a page structure of the field module combination according to the association relationship model and the attribute information, and to render and generate a target page according to the page structure.
[0015] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, which adopts the following technical solution: the computer device includes a memory and a processor, the memory stores computer-readable instructions, and the processor implements the steps of the page generation method described in any one of the above items when executing the computer-readable instructions.
[0016] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, which adopts the following technical solution: the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the page generation method described in any one of the above items are implemented.
[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0018] The embodiment of the present application obtains the input page display type, and filters out the field module combination that needs to be displayed from the predefined field module data set according to the page display type, which can highly meet the user's page customization needs; by determining the association relationship model between each field module according to the module relationship between the field module combination, the page layout and interaction logic can be defined through configuration information, reducing the interaction complexity and communication requirements of the development process; by building a page structure according to the association relationship model and the attribute information of the field module, and generating the target page according to the page structure rendering, the page structure can be managed through configuration information to ensure the orderliness and predictability of page construction. This structured page construction method not only improves development efficiency and reduces the workload of repeated coding, but also can update the page structure by modifying the configuration information when the page layout and style need to be adjusted, making the later maintenance of the page more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0021] Figure 2 It is a flowchart of an embodiment of the page generation method of the present application;
[0022] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S201;
[0023] Figure 4 yes Figure 2 A flowchart of a specific implementation of step S204;
[0024] Figure 5 It is a structural schematic diagram of an embodiment of a page generating device of the present application;
[0025] Figure 6 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0029] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.
[0030] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0031] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to a laptop computer 1011, a tablet computer 1012 or a mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.
[0032] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .
[0033] It should be noted that the page generation method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the page generation device is generally set in the server / terminal device.
[0034] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0035] Continue to refer Figure 2 , shows a flow chart of an embodiment of a method for generating a page according to the present application. The page generating method comprises the following steps:
[0036] Step S201, obtaining an input page display type, and screening a field module combination to be displayed from a predefined field module data set according to the page display type;
[0037] In this embodiment, the electronic device (eg, Figure 1 The server / terminal device shown in the figure) can obtain the input page display type through a wired connection method or a wireless connection method. It should be noted that the above wireless connection method may include but is not limited to 2G / 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0038] In this embodiment, the page display type refers to the display form with specific layout, style and functional characteristics presented by the page in the user interface under specific business scenarios, target user groups or page function requirements. For example, in the business scenario of corporate property insurance, it is necessary to display complex insurance terms and rate calculations, so the page display type can be set to a display form that focuses on the clarity and readability of the information; in the agricultural insurance business scenario, it is necessary to display real-time monitoring data and meteorological information of farmland, so the page display type can be set to a display form that focuses on the real-time and visualization effects of the data. In this embodiment, one or more page display types are set in advance for users to choose according to different business scenarios, target user groups or page function requirements.
[0039] In this embodiment, the field module is the basic unit that constitutes the page content, and is composed of a series of fields with specific attributes. These fields may include but are not limited to input boxes, drop-down menus, buttons and other controls, which are used to collect user input or display page information. The field module data set is composed of a series of pre-defined field modules.
[0040] Specifically, obtain the page display type input by the user or a specific program. Obtain a predefined field module data set, which contains all field modules and their identifiers, and the data set can be stored in a specific database, configuration file or memory. According to the input page display type, filter out the field module combination that needs to be displayed from the field module data set. More specifically, predefine the field module combination that needs to be displayed for each page display type, for example, record the mapping relationship between each page display type and the identifiers of multiple field modules that need to be displayed through a mapping table or configuration file. For the page display type input by the user, filter out the field module combination required for the input page display type from the field module data set according to the mapping relationship recorded in the mapping table or configuration file.
[0041] In some optional implementations, reference Figure 3 The above-mentioned screening of the field module combination to be displayed from the predefined field module data set according to the page display type may include the following steps:
[0042] Step S2011, obtaining a module display condition according to the page display type analysis, wherein the module display condition includes a mapping relationship between a specific page display type and a field module identifier required to be displayed;
[0043] Specifically, the module display condition refers to the mapping relationship between a specific page display type and a field module to be displayed. That is, the module display condition defines the field module to be used when constructing page display content corresponding to different page display types. When a page display type input by a user or a specific program is received, the page display type is parsed to obtain the module display condition, which contains the mapping relationship between the specific page display type and the field module identifier to be displayed.
[0044] Step S2012, obtaining the field identifier of each field module in the predefined field module data set;
[0045] Specifically, a predefined field module data set is obtained, the field module data set includes all field modules, and a field identifier of each field module is extracted from the field module data set, the field identifier being a unique identifier of the field module.
[0046] Step S2013, matching the module display condition with the field identifier to obtain a target field identifier;
[0047] Specifically, the module display conditions obtained through parsing are matched with the field identifier of each field module. For example, the field module identifier required to be displayed contained in the module display conditions is matched with the field identifier of each field module extracted from the field module data set, and the matched field identifier is used as the target field identifier.
[0048] Step S2014: determining the field module corresponding to the target field identifier from the field module data set, and integrating the field modules corresponding to the target field identifier into a field module combination.
[0049] In this embodiment, according to the target field identifier, the field module corresponding to the target field identifier is searched from the field module data set, and the field modules corresponding to the target field identifier are integrated into a field module combination. The field module combination includes at least one field module required to be displayed for the page display type.
[0050] The embodiment of the present application obtains the module display condition by parsing the page display type, obtains the field identifier of each field module in the predefined field module data set, matches the parsed module display condition with the obtained field identifier, obtains the target field identifier and integrates the field module combination, thereby achieving an accurate match between the page display type and the required field module, ensuring that the field module that meets the page display type requirements is accurately selected. By using the field identifier as a unique identifier, it is possible to quickly find a field module that meets the conditions in a huge field module data set, thereby improving the screening efficiency.
[0051] Step S202, obtaining configuration information for the field module combination, the configuration information including inter-module relationship and attribute information;
[0052] In this embodiment, configuration information for a field module combination input by a user or a specific program is obtained, and the configuration information may include inter-module relationship and attribute information.
[0053] Specifically, the relationship between modules refers to the logical connection between different field modules. The relationship between modules can include display dependency and attribute influence relationship. Display dependency means that the state of a specific field module (such as whether it is selected, input value, etc.) determines whether other field modules are displayed. For example, when module A is set to display, module B is displayed. Attribute influence relationship means that the state or value change of a specific field module will affect the attributes or options of other field modules. For example, when module A selects the "Fire" option, module B will display drop-down options related to fire.
[0054] Specifically, attribute information refers to the characteristics of the smallest component (i.e., field module) that constitutes the page. The attribute information defines the basic functions of the field module. The attribute information of the field module may include, but is not limited to, the control name, control type, default value, enumeration value, maximum length, value range, gray background prompt, etc.
[0055] Step S203, determining an association relationship model between each field module in the field module combination according to the relationship between the modules;
[0056] In this embodiment, a selected association relationship model framework is obtained to store the association information between field modules and field modules. The association relationship model framework can be a relationship diagram, a tree structure, a nested hierarchical structure, a mapping table, etc. Each field module in the field module combination is added to the association relationship model framework, and each field module constitutes a node of the association relationship model framework. According to the relationship between modules, directed edges or links of each field module are established in the association relationship model framework. The established directed edges or links are used to represent the association relationship between each field module, and the association relationship model between each field module is obtained.
[0057] In some optional implementations, the step of determining the association relationship model between each field module in the field module combination according to the relationship between the modules may include the following steps:
[0058] Obtaining a conditional expression and a target module identifier corresponding to the conditional expression according to the inter-module relationship analysis, wherein the conditional expression is a logical expression for defining an association relationship between field modules;
[0059] According to the target module identifier, a target field module is obtained by matching the field module combination;
[0060] An association relationship model is constructed according to the target field module and the conditional expression.
[0061] In this embodiment, a logical expression, i.e., a conditional expression, is parsed for the relationship between modules to define the association relationship between field modules. The field module identifier involved is extracted from the conditional expression as the target module identifier. A traversal method is adopted to obtain field modules from the field module combination in sequence, and the field modules obtained from the field module combination are matched with the target module identifier to obtain a matched field module as the target field module. Afterwards, an association relationship model framework is constructed according to the parsed conditional expression, and the target module identifier is extracted from the conditional expression as a node of the association relationship model framework. The association relationship model framework can be a relationship diagram, a tree structure, a nested hierarchical structure, a mapping table, etc. The matched target field modules are added to each node of the association relationship model framework corresponding to each target module identifier to generate an association relationship model between each field module.
[0062] The embodiment of the present application obtains a series of conditional expressions by parsing the relationship between modules, and these expressions describe the association relationship between field modules in a logical language. At the same time, each conditional expression corresponds to one or more target module identifiers, and these target module identifiers can be used to locate specific field modules in the field module combination. By searching and matching the corresponding target field module in the screened field module combination according to the target module identifier corresponding to the conditional expression, it is ensured that the association relationship model can be accurately established between specific field modules. By constructing an association relationship model framework according to the parsed conditional expression, extracting the target module identifier from the conditional expression as a node of the association relationship model framework, adding the matched target field module corresponding to each target module identifier to each node of the association relationship model framework, generating an association relationship model, and being able to flexibly construct an association relationship model according to the relationship between modules configured by the user to adapt to different page construction and display requirements.
[0063] Step S204: constructing a page structure of the field module combination according to the association relationship model and the attribute information, and rendering and generating a target page according to the page structure.
[0064] In this embodiment, a traversal method is adopted to sequentially obtain the field modules represented by each node in the association model, and add the field modules to the page structure according to the attribute information of each field module. According to the association relationship between each field module in the association model, the logical association between each field module is set in the page structure, such as setting the parent-child relationship, data binding, event monitoring, etc., to ensure that when the state of a specific field module changes, other related field modules can respond correctly. Obtain the predefined page style sheet and script, combine the constructed page structure, style sheet and script, and generate the target page through rendering by the rendering engine.
[0065] In some optional implementations, reference Figure 4 The above-mentioned construction of the page structure of the field module combination according to the association relationship model and the attribute information may include the following steps:
[0066] Step S2041, creating a page element according to the attribute information of each field module in the field module combination;
[0067] In this embodiment, the attribute information of each field module in the field module combination is obtained, and a page element is created according to the attribute information, wherein the page element may include but is not limited to a text input box, a drop-down option, a page display date, and a value input box. For example, if the page element is a "text input box", the HTML <input> element; if the page element is a "drop-down option", then create <select>The element and its subelements <option> ; If the page element is a "date display", use the date picker component or< / option> < / select> <input type="date"> Create a display date; if the page element is a "numeric input box", use <input type="number"> Creates a numeric input box.
[0068] In some optional implementations, the step of creating a page element according to the attribute information of each field module in the field module combination may include at least one of the following:
[0069] If the control type is a text input type, the configured maximum input length and gray-background prompt text are obtained from the attribute information, and a text input box is created according to the maximum input length and the gray-background prompt text;
[0070] Specifically, when the control type is a text input type, the maximum input length (such as maxLength) and the gray-bottom prompt text (which can be a placeholder or a specific prompt text) are extracted from the attribute information of the field module. <input> element, and set its type attribute to "text", the maxLength attribute to the maximum input length, and according to the extracted gray-bottom prompt text, set the placeholder attribute to the gray-bottom prompt text to create a text input box.
[0071] If the control type is a drop-down selection type, then obtaining a configured enumeration value list from the attribute information, and creating a drop-down option according to the enumeration value list;
[0072] Specifically, when the control type is a drop-down selection type, the configured enumeration value list is extracted from the attribute information of the field module, and the enumeration value list will be used as the content of the drop-down option. <select>Elements, traverse the list of enumeration values, and create a <option> element and set its value attribute and display text to the corresponding enumeration value.< / option> <option> Elements added to< / option> < / select> Element, create a drop-down option.
[0073] If the control type is a date type, the configured date format and date range are obtained from the attribute information, and a page display date is created according to the date format and the date range;
[0074] Specifically, when the control type is a date type, the configured date format (such as yyyy-mm-dd) and date range (such as start date and end date) are extracted from the attribute information of the field module. According to the date format and project requirements, choose a way to create a date picker, such as using native HTML5 date input (<inputtype="date"> ),create <input> element, and set its type attribute to "date", verify the date range through JavaScript, and create the date displayed on the page.
[0075] If the control type is a numeric input type, the configured numeric value range is obtained from the attribute information, and a numeric input box is created according to the numeric value range.
[0076] Specifically, when the control type is a numeric input type, the configured numeric value range (such as the minimum value min and the maximum value max) is extracted from the attribute information of the field module to create an HTML <input> element, and set its type attribute to "number", set <input>The min and max attributes of the element are the minimum and maximum values of the digital value range, and a numeric input box is created.
[0077] Step S2042, using a traversal method to sequentially obtain each field module node in the association relationship model;
[0078] Step S2043, mapping the page elements to the field module nodes to obtain the association relationship of the page elements;
[0079] Step S2044: generating a page structure according to the association relationship of the page elements as the page structure of the field module combination.
[0080] In this embodiment, a traversal method is adopted to sequentially obtain the field modules represented by each node in the association relationship model, that is, the field module nodes. The attribute information of each field module node is obtained, and the page elements created according to the attribute information are obtained, and the created page elements are mapped to the field module nodes to obtain the association relationship of each page element. A page structure is generated according to each created page element and the association relationship of each page element as the page structure of the field module combination.
[0081] The embodiment of the present application creates page elements according to the attribute information of the field module, thereby ensuring a one-to-one correspondence between the page elements and the field modules. By traversing the field module nodes in the association model and mapping the page elements to these nodes, the association relationship between the page elements can be accurately expressed. By automatically generating the page structure according to the association relationship of the page elements, the page construction requirements containing multiple field modules and complex association relationships can be processed, which not only improves the efficiency of page construction, but also reduces page structure problems caused by human errors.
[0082] In some optional implementations, the generating of the page structure according to the association relationship of the page elements as the page structure of the field module combination may include the following steps:
[0083] Determine the source page element and the target page element according to the association relationship of the page elements;
[0084] Specifically, the source page element and the target page element are determined according to the association relationship between each page element, wherein the source page element refers to the source element that triggers the change or provides data, and the target page element is the element that changes accordingly according to the state of the source page element.
[0085] Setting a display rule of the target page element according to the state type of the source page element;
[0086] Specifically, determine the state type of the source page element, such as display, non-display, input value, disabled and other state types. Set corresponding display rules for the target page element according to the state types of different source page elements. For example, define a display rule set, wherein the display rule set includes a mapping between the state type of the source page element and the display state of the target page element. The display rule can be expressed as a conditional statement or a logical expression, which is used to determine the state type of the source page element and determine the display rule of the target page element. For example, when the state type of the source page element is "display", the display rule of the target page element is "display".
[0087] Acquire a first display state of the source page element, and determine a second display state of the target page element according to the first display state and the display rule;
[0088] Specifically, the current display state of the source page element is acquired as the first display state, and according to the first display state, the display state corresponding to the target page element is acquired from the set display rule as the second display state.
[0089] A page structure is generated according to the first display state and the second display state as the page structure of the field module combination.
[0090] In this embodiment, a page structure is generated as a page structure of a combination of field modules according to a first display state of a source page element and a second display state of a target page element.
[0091] The embodiment of the present application determines the source page element and the target page element according to the association relationship of the page elements, sets the original display rules of the target page according to the different state types of the source page elements, determines the second display state of the target page element according to the first display state and the display rule of the source page element, and generates the page structure according to the first display state and the second display state, so that the generation of the page structure has dynamic flexibility. The method can adjust and update the page according to the user interaction requirements and the page state changes, can adapt to the complex interaction logic processing between the page elements, and reduces the difficulty of interactive page development.
[0092] In some optional implementations, the above-mentioned rendering and generating a target page according to the page structure may include the following steps:
[0093] Determine the target client type, and convert the page structure into a page description language that matches the target client type;
[0094] A target page for the target client type is generated according to the page description language rendering.
[0095] In this embodiment, the target client type to which the page is to be applied is determined, wherein different target client types correspond to different page description language types. The page structure is filled into a voice template of the page description language type that matches the target client type, and converted into a page description language that matches the target client type. A rendering engine is used to render the page description language to generate a target page for the target client type.
[0096] The embodiment of the present application determines the target client type and selects a page description language that matches the target client, and the method can ensure the compatibility and adaptability of the generated page with the target client. The page is generated in a templated manner, which reduces the cost of page development for different client types.
[0097] The embodiment of the present application adopts the above scheme, specifically by obtaining the input page display type, and filtering out the field module combination that needs to be displayed from the predefined field module data set according to the page display type, which can highly meet the user's page customization needs; by determining the association relationship model between each field module according to the module relationship between the field module combination, the page layout and interaction logic can be defined through configuration information, reducing the interaction complexity and communication requirements of the development process; by building a page structure according to the association relationship model and the attribute information of the field module, and generating the target page according to the page structure rendering, the page structure can be managed through configuration information to ensure the orderliness and predictability of page construction. This structured page construction method not only improves development efficiency and reduces the workload of repeated coding, but also can update the page structure by modifying the configuration information when the page layout and style need to be adjusted, making the later maintenance of the page more convenient.
[0098] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned page display type, inter-module relationship and attribute information and other configuration information and other relevant data, the above-mentioned page display type, inter-module relationship and attribute information and other configuration information and other relevant data can also be stored in a blockchain node.
[0099] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0101] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0102] Further references Figure 5 , as a response to the above Figure 2 The present application provides an embodiment of a page generation device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0103] like Figure 5 As shown, the page generation device 400 described in this embodiment includes: a screening module 401, a configuration module 402, an association module 403 and a generation module 404. Among them:
[0104] The screening module 401 is used to obtain the input page display type, and screen the field module combination to be displayed from the predefined field module data set according to the page display type;
[0105] Configuration module 402, used to obtain configuration information for the field module combination, the configuration information including inter-module relationship and attribute information;
[0106] An association module 403, used to determine an association relationship model between each field module in the field module combination according to the relationship between the modules;
[0107] The generation module 404 is used to construct a page structure of the field module combination according to the association relationship model and the attribute information, and generate a target page by rendering according to the page structure.
[0108] In this embodiment, the page display type refers to the display form with specific layout, style and functional characteristics presented by the page in the user interface under specific business scenarios, target user groups or page function requirements. For example, in the business scenario of corporate property insurance, it is necessary to display complex insurance terms and rate calculations, so the page display type can be set to a display form that focuses on the clarity and readability of the information; in the agricultural insurance business scenario, it is necessary to display real-time monitoring data and meteorological information of farmland, so the page display type can be set to a display form that focuses on the real-time and visualization effects of the data. In this embodiment, one or more page display types are set in advance for users to choose according to different business scenarios, target user groups or page function requirements.
[0109] In this embodiment, the field module is the basic unit that constitutes the page content, and is composed of a series of fields with specific attributes. These fields may include but are not limited to input boxes, drop-down menus, buttons and other controls, which are used to collect user input or display page information. The field module data set is composed of a series of pre-defined field modules.
[0110] Specifically, the screening module 401 is used to obtain the page display type input by the user or a specific program. A predefined field module data set is obtained, and the field module data set contains all the field modules and their identifiers. The data set can be stored in a specific database, a configuration file or a memory. According to the input page display type, the field module combination that needs to be displayed is screened out from the field module data set. More specifically, the field module combination that needs to be displayed for each page display type is predefined, for example, the mapping relationship between each page display type and the identifiers of multiple field modules that need to be displayed is recorded through a mapping table or a configuration file. For the page display type input by the user, according to the mapping relationship recorded in the mapping table or the configuration file, the field module combination required for the input page display type is screened out from the field module data set.
[0111] Specifically, the configuration module 402 is used to obtain the configuration information for the field module combination input by the user or a specific program, and the configuration information may include the relationship between modules and attribute information. The relationship between modules refers to the logical connection between different field modules. The relationship between modules may include display dependency and attribute influence relationship. Display dependency means that the state of a specific field module (such as whether it is selected, input value, etc.) determines whether other field modules are displayed. For example, when module A is set to display, module B is displayed. Attribute influence relationship means that the state or value change of a specific field module will affect the attributes or options of other field modules. For example, when module A selects the "fire" option, module B will display a drop-down option related to fire. Attribute information refers to the characteristics of the smallest component (i.e., field module) that constitutes the page. The attribute information defines the basic functions of the field module. The attribute information of the field module may include but is not limited to the control name, control type, default value, enumeration value, maximum length, value range, gray background prompt, etc.
[0112] Specifically, the association module 403 is used to obtain the selected association relationship model framework, which is used to store the association information between field modules and field modules. The association relationship model framework can be a relationship diagram, a tree structure, a nested hierarchical structure, a mapping table, etc. Each field module in the field module combination is added to the association relationship model framework, and each field module constitutes a node of the association relationship model framework. According to the relationship between modules, directed edges or links of each field module are established in the association relationship model framework, and the established directed edges or links are used to represent the association relationship between each field module, and the association relationship model between each field module is obtained.
[0113] Specifically, the generation module 404 is used to use a traversal method to sequentially obtain the field modules represented by each node in the association model, and add the field modules to the page structure according to the attribute information of each field module. According to the association relationship between each field module in the association model, the logical association between each field module is set in the page structure, such as setting the parent-child relationship, data binding, event monitoring, etc., to ensure that when the state of a specific field module changes, other related field modules can respond correctly. Obtain the predefined page style sheet and script, combine the constructed page structure, style sheet and script, and generate the target page through rendering by the rendering engine.
[0114] The page generation device of the embodiment of the present application can highly meet the user's page customization needs by obtaining the input page display type and filtering out the field module combination that needs to be displayed from the predefined field module data set according to the page display type; by determining the association relationship model between each field module according to the module relationship of the field module combination, the page layout and interaction logic can be defined through configuration information to reduce the interaction complexity and communication requirements of the development process; by building a page structure according to the association relationship model and the attribute information of the field module, and generating the target page according to the page structure rendering, the page structure can be managed through configuration information to ensure the orderliness and predictability of page construction. This structured page construction method not only improves development efficiency and reduces the workload of repeated coding, but also can update the page structure by modifying the configuration information when the page layout and style need to be adjusted, making the later maintenance of the page more convenient.
[0115] In some optional implementations of this embodiment, the screening module 401 may include a first parsing submodule, an acquisition submodule, a first matching submodule, and an integration submodule.
[0116] A first parsing submodule, configured to parse the page display type to obtain a module display condition, wherein the module display condition includes a mapping relationship between a specific page display type and a field module to be displayed;
[0117] The acquisition submodule is used to obtain the field identifier of each field module in the predefined field module data set;
[0118] A first matching submodule, used for matching the module display condition with the field identifier to obtain a target field identifier;
[0119] The integration submodule is used to determine the field module corresponding to the target field identifier from the field module data set, and integrate the field modules corresponding to the target field identifier into a field module combination.
[0120] Specifically, the module display condition refers to the mapping relationship between a specific page display type and a field module to be displayed. That is, the module display condition defines the field module to be used when constructing page display content corresponding to different page display types. The first parsing submodule is used to parse the page display type when receiving a page display type input by a user or a specific program to obtain a module display condition, which includes a mapping relationship between a specific page display type and a field module identifier to be displayed.
[0121] Specifically, the acquisition submodule is used to acquire a predefined field module data set, which contains all field modules, and extract a field identifier of each field module from the field module data set, which is a unique identifier of the field module.
[0122] Specifically, the first matching submodule is used to match the module display conditions obtained by parsing with the field identifier of each field module. For example, the field module identifier required to be displayed contained in the module display conditions is matched with the field identifier of each field module extracted from the field module data set, and the matched field identifier is used as the target field identifier.
[0123] Specifically, the integration submodule is used to search for the field module corresponding to the target field identifier from the field module data set according to the target field identifier, and integrate the field modules corresponding to the target field identifier into a field module combination. The field module combination includes at least one field module required to be displayed for a page display type.
[0124] The screening module 401 of the embodiment of the present application obtains the module display condition by parsing the page display type, obtains the field identifier of each field module in the predefined field module data set, matches the parsed module display condition with the obtained field identifier, obtains the target field identifier and integrates the field module combination, realizes the precise match between the page display type and the required field module, and ensures that the field module that meets the page display type requirements is accurately selected. By using the field identifier as a unique identifier, it is possible to quickly find the field module that meets the conditions in the huge field module data set, thereby improving the screening efficiency.
[0125] In some optional implementations of this embodiment, the association module 403 may include a second parsing submodule, a second matching submodule, and a model building submodule.
[0126] A second parsing submodule is used to parse the inter-module relationship to obtain a conditional expression and a target module identifier corresponding to the conditional expression, wherein the conditional expression is a logical expression used to define an association relationship between field modules;
[0127] A second matching submodule, configured to obtain a target field module by matching the field module combination according to the target module identifier;
[0128] The model building submodule is used to build an association relationship model according to the target field module and the conditional expression.
[0129] Specifically, the second parsing submodule is used to parse the logical expression for defining the association relationship between field modules, that is, the conditional expression, for the relationship between modules; and extract the field module identifier involved from the conditional expression as the target module identifier. The second matching submodule is used to adopt a traversal method to obtain field modules from the field module combination in sequence, match the field module obtained from the field module combination with the target module identifier, and obtain the matched field module as the target field module. Afterwards, the model construction submodule is used to construct an association relationship model framework according to the parsed conditional expression, and extract the target module identifier from the conditional expression as a node of the association relationship model framework. The association relationship model framework can be a relationship diagram, a tree structure, a nested hierarchical structure, a mapping table, etc. The matched target field modules are added to each node of the association relationship model framework corresponding to each target module identifier to generate an association relationship model between each field module.
[0130] The association module 403 of the embodiment of the present application obtains a series of conditional expressions by parsing the relationship between modules, and these expressions describe the association relationship between field modules in a logical language. At the same time, each conditional expression corresponds to one or more target module identifiers, and these target module identifiers can be used to locate specific field modules in the field module combination. By searching and matching the corresponding target field module in the screened field module combination according to the target module identifier corresponding to the conditional expression, it is ensured that the association relationship model can be accurately established between specific field modules. By constructing an association relationship model framework according to the parsed conditional expression, extracting the target module identifier from the conditional expression as a node of the association relationship model framework, adding the matched target field module corresponding to each target module identifier to each node of the association relationship model framework, generating an association relationship model, and being able to flexibly construct an association relationship model according to the module relationship configured by the user to adapt to different page construction and display requirements.
[0131] In some optional implementations of this embodiment, the generation module 404 may include a creation submodule, a traversal submodule, a mapping submodule, and a generation submodule.
[0132] A creation submodule, used for creating a page element according to the attribute information of each field module in the field module combination;
[0133] A traversal submodule, used to sequentially obtain each field module node in the association relationship model in a traversal manner;
[0134] A mapping submodule, used to map the page elements to the field module nodes to obtain the association relationship of the page elements;
[0135] The generating submodule is used to generate a page structure as the page structure of the field module combination according to the association relationship of the page elements.
[0136] Specifically, a submodule is created to obtain the attribute information of each field module in the field module combination, and to create a page element according to the attribute information, wherein the page element may include but is not limited to a text input box, a drop-down option, a page display date, and a value input box. For example, if the page element is a "text input box", the HTML <input> element; if the page element is a "drop-down option", then create <select>The element and its subelements <option> ; If the page element is a "date display", use the date picker component or< / option> < / select> <input type="date"> Create a display date; if the page element is a "numeric input box", use <input type="number"> Creates a numeric input box.
[0137] Specifically, the traversal submodule is used to sequentially obtain the field modules represented by each node in the association relationship model, that is, the field module nodes, by using a traversal method. The mapping submodule is used to obtain the attribute information of each field module node, and obtain the page elements created according to the attribute information, and map the created page elements to the field module nodes to obtain the association relationship of each page element. The generation submodule is used to generate a page structure according to each created page element and the association relationship of each page element, as the page structure of the field module combination.
[0138] The generation module 404 of the embodiment of the present application ensures a one-to-one correspondence between the page elements and the field modules by creating page elements according to the attribute information of the field modules. By traversing the field module nodes in the association model and mapping the page elements to these nodes, the association relationship between the page elements can be accurately expressed. By automatically generating the page structure according to the association relationship of the page elements, the page construction requirements containing multiple field modules and complex association relationships can be processed, which not only improves the efficiency of page construction, but also reduces page structure problems caused by human errors.
[0139] In some optional implementations of this embodiment, the above creation submodule may include a text input creation unit, a drop-down option creation unit, a display date creation unit, and a numerical input creation unit.
[0140] A text input creation unit, configured to obtain a configured maximum input length and a gray-bottom prompt text from the attribute information if the control type is a text input type, and to create a text input box according to the maximum input length and the gray-bottom prompt text;
[0141] A drop-down option creation unit, configured to obtain a configured enumeration value list from the attribute information if the control type is a drop-down selection type, and create a drop-down option according to the enumeration value list;
[0142] A display date creation unit, configured to obtain a configured date format and date range from the attribute information if the control type is a date type, and create a page display date according to the date format and the date range;
[0143] The numerical input creation unit is used to obtain the configured digital value range from the attribute information if the control type is a numerical input type, and create a numerical input box according to the digital value range.
[0144] Specifically, the text input creation unit is used to extract the configured maximum input length (such as maxLength) and gray-bottom prompt text (which can be a placeholder or a specific prompt text) from the attribute information of the field module when the control type is a text input type. <input> element, and set its type attribute to "text", the maxLength attribute to the maximum input length, and according to the extracted gray-bottom prompt text, set the placeholder attribute to the gray-bottom prompt text to create a text input box.
[0145] Specifically, the drop-down option creation unit is used to extract the configured enumeration value list from the attribute information of the field module when checking that the control type is a drop-down selection type, and the enumeration value list will be used as the content of the drop-down option. <select>Elements, traverse the list of enumeration values, and create a <option> element and set its value attribute and display text to the corresponding enumeration value.< / option> <option> Elements added to< / option> < / select> Element, create a drop-down option.
[0146] Specifically, the display date creation unit is used to extract the configured date format (such as yyyy-mm-dd) and date range (such as start date and end date) from the attribute information of the field module when the control type is a date type. According to the date format and project requirements, choose a way to create a date picker, such as using native HTML5 date input ( <input type="date"> ),create <input> element, and set its type attribute to "date", verify the date range through JavaScript, and create a page to display the date.
[0147] Specifically, the numerical input creation unit is used to extract the configured digital value range (such as the minimum value min and the maximum value max) from the attribute information when checking from the attribute information of the field module that the control type is a numerical input type, and create an HTML <input>element, and set its type attribute to "number", set <input> The min and max attributes of the element are the minimum and maximum values of the digital value range, and a numeric input box is created.
[0148] In some optional implementations of this embodiment, the above-mentioned generation submodule may include an element determination unit, a rule setting unit, a state determination unit and a structure generation unit. Among them:
[0149] An element determination unit, used to determine a source page element and a target page element according to the association relationship of the page elements;
[0150] A rule setting unit, used to set a display rule of the target page element according to the state type of the source page element;
[0151] a state determination unit, configured to obtain a first display state of the source page element, and determine a second display state of the target page element according to the first display state and the display rule;
[0152] A structure generating unit is used to generate a page structure as the page structure of the field module combination according to the first display state and the second display state.
[0153] Specifically, the element determination unit is used to determine the source page element and the target page element according to the association relationship between each page element, wherein the source page element refers to the source element that triggers the change or provides data, and the target page element is the element that changes accordingly according to the state of the source page element.
[0154] Specifically, the rule setting unit is used to determine the state type of the source page element, such as display, non-display, input value, disabled and other state types. According to the state types of different source page elements, corresponding display rules are set for the target page elements. For example, a display rule set is defined, wherein the display rule set includes a mapping between the state type of the source page element and the display state of the target page element. The display rule can be expressed as a conditional statement or a logical expression, which is used to determine the state type of the source page element and determine the display rule of the target page element. For example, when the state type of the source page element is "display", the display rule of the target page element is "display".
[0155] Specifically, the state determination unit is used to obtain the current display state of the source page element as the first display state, and according to the first display state, obtain the display state corresponding to the target page element from the set display rule as the second display state.
[0156] Specifically, the structure generating unit is used to generate a page structure as a page structure of a combination of field modules according to a first display state of a source page element and a second display state of a target page element.
[0157] The generation submodule of the embodiment of the present application determines the source page element and the target page element according to the association relationship of the page elements, sets the original display rules of the target page according to the different state types of the source page elements, determines the second display state of the target page element according to the first display state and the display rule of the source page element, and generates the page structure according to the first display state and the second display state, so that the generation of the page structure has dynamic flexibility. The method can adjust and update the page according to the user interaction requirements and the page state changes, can adapt to the complex interaction logic processing between the page elements, and reduces the difficulty of interactive page development.
[0158] In some optional implementations of this embodiment, the generation module 404 may further include a language conversion submodule and a page rendering submodule.
[0159] A language conversion submodule, used to determine the target client type and convert the page structure into a page description language that matches the target client type;
[0160] The page rendering submodule is used to render and generate a target page for the target client type according to the page description language.
[0161] Specifically, the language conversion submodule is used to determine the target client type that the page needs to apply, where different target client types correspond to different page description language types; fill the page structure into the voice template of the page description language type that matches the target client type, and convert it into the page description language that matches the target client type. The page rendering submodule is used to use a rendering engine to render the page description language to generate a target page for the target client type.
[0162] The generation module 404 of the embodiment of the present application determines the target client type and selects a page description language that matches it, so that the method can ensure the compatibility and adaptability of the generated page with the target client. The page is generated in a templated manner, which reduces the cost of page development for different client types.
[0163] To solve the above technical problems, the present application also provides a computer device. Figure 6 , Figure 6 This is a basic structural block diagram of the computer device in this embodiment.
[0164] The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 6 with a memory 61, a processor 62, and a network interface 63, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0165] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0166] The memory 61 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 61 can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 61 can also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 61 can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store the operating system and various application software installed on the computer device 6, such as computer-readable instructions of the page generation method, etc. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or are to be output.
[0167] The processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is used to run the computer-readable instructions stored in the memory 61 or process data, such as computer-readable instructions for running the page generation method.
[0168] The network interface 63 may include a wireless network interface or a wired network interface. The network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0169] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the page generation method as described above.
[0170] The computer device, computer-readable storage medium and computer-readable instructions provided by the embodiment of the present application can obtain the input page display type through the processor execution, and filter out the field module combination that needs to be displayed from the predefined field module data set according to the page display type, which can highly meet the user's page customization needs; by determining the association relationship model between each field module according to the module relationship between the field module combination, the page layout and interaction logic can be defined through configuration information, reducing the interaction complexity and communication requirements of the development process; by building a page structure according to the association relationship model and the attribute information of the field module, and generating the target page according to the page structure rendering, the page structure can be managed through configuration information to ensure the orderliness and predictability of page construction. This structured page construction method not only improves development efficiency and reduces the workload of repeated coding, but also can update the page structure by modifying the configuration information when the page layout and style need to be adjusted, making the later maintenance of the page more convenient.
[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0172] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to replace some of the technical features therein with equivalents. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
[0173] The non-Company software tools or components appearing in the embodiments of this application are merely examples and do not represent actual use.
Claims
1. A page generation method, characterized in that: The steps include: Obtaining an input page display type, and filtering a field module combination to be displayed from a predefined field module data set according to the page display type; Acquire configuration information for the field module combination, the configuration information including inter-module relationship and attribute information; Determining an association relationship model between each field module in the field module combination according to the relationship between the modules; A page structure of the field module combination is constructed according to the association relationship model and the attribute information, and a target page is generated by rendering according to the page structure.
2. The page generation method according to claim 1, characterized in that: The step of screening the field module combination to be displayed from the predefined field module data set according to the page display type includes: Obtaining a module display condition according to the page display type analysis, wherein the module display condition includes a mapping relationship between a specific page display type and a field module to be displayed; Get the field identifier of each field module in the predefined field module data set; Matching the module display condition with the field identifier to obtain a target field identifier; The field module corresponding to the target field identifier is determined from the field module data set, and the field modules corresponding to the target field identifier are integrated into a field module combination.
3. The page generation method according to claim 1, characterized in that: The step of determining the association relationship model between each field module in the field module combination according to the relationship between the modules includes: Obtaining a conditional expression and a target module identifier corresponding to the conditional expression according to the inter-module relationship analysis, wherein the conditional expression is a logical expression for defining an association relationship between field modules; According to the target module identifier, a target field module is obtained by matching the field module combination; An association relationship model is constructed according to the target field module and the conditional expression.
4. The page generation method according to claim 1, characterized in that: The step of constructing the page structure of the field module combination according to the association relationship model and the attribute information includes: Creating a page element according to the attribute information of each field module in the field module combination; Using a traversal method, each field module node in the association relationship model is obtained in turn; Mapping the page elements to the field module nodes to obtain the association relationship of the page elements; A page structure is generated according to the association relationship of the page elements as the page structure of the field module combination.
5. The page generation method according to claim 4, characterized in that: The attribute information includes a control type, and the step of creating a page element according to the attribute information of each field module in the field module combination includes at least one of the following: If the control type is a text input type, the configured maximum input length and gray-background prompt text are obtained from the attribute information, and a text input box is created according to the maximum input length and the gray-background prompt text; If the control type is a drop-down selection type, then obtaining a configured enumeration value list from the attribute information, and creating a drop-down option according to the enumeration value list; If the control type is a date type, the configured date format and date range are obtained from the attribute information, and a page display date is created according to the date format and the date range; If the control type is a numeric input type, the configured numeric value range is obtained from the attribute information, and a numeric input box is created according to the numeric value range.
6. The page generation method according to claim 4, characterized in that: The step of generating a page structure as the page structure of the field module combination according to the association relationship of the page elements includes: Determine the source page element and the target page element according to the association relationship of the page elements; Setting a display rule of the target page element according to the state type of the source page element; Acquire a first display state of the source page element, and determine a second display state of the target page element according to the first display state and the display rule; A page structure is generated according to the first display state and the second display state as the page structure of the field module combination.
7. The page generation method according to claim 1, characterized in that: The step of rendering and generating a target page according to the page structure comprises: Determine the target client type, and convert the page structure into a page description language that matches the target client type; A target page for the target client type is generated according to the page description language rendering.
8. A page generating device, characterized in that: The device comprises: A screening module, used to obtain an input page display type, and screen the field module combination to be displayed from a predefined field module data set according to the page display type; A configuration module, used to obtain configuration information for the field module combination, wherein the configuration information includes inter-module relationship and attribute information; An association module, used for determining an association relationship model between each field module in the field module combination according to the relationship between the modules; A generation module is used to construct a page structure of the field module combination according to the association relationship model and the attribute information, and to render and generate a target page according to the page structure.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the page generation method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the page generation method according to any one of claims 1 to 7 are implemented.