Page generation method, device and equipment and computer storage medium
By presetting the page module set and configuration files, the problem of rapid generation when there are many page elements is solved, the page design efficiency and reuse rate are improved, and the development cost is reduced.
Patent Information
- Application Number
- CN202411373946.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-29
AI Technical Summary
When there are many page elements, it is difficult for the existing technology to generate front-end pages quickly and conveniently, resulting in extremely high development costs and human resources demand.
By setting the preset page module set, select the corresponding page module when responding to the page generation instructions, and set and configure page elements based on the layout and data interface information in the configuration file to realize page generation.
It improves the page element reuse rate in page design, reduces development costs, and improves page generation efficiency and display speed.
Smart Images

Figure CN119271335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device and equipment for generating a page, and a computer storage medium. Background Art
[0002] With the continuous development of science and technology and society, the content on the Internet has grown explosively. In order to present the content on the Internet to users, a large number of front-end pages need to be designed to display the corresponding content. In addition, in order to reuse more page design solutions, different page elements will be displayed to users on the same page to meet the user's page operation needs.
[0003] Under the relevant technology, when developing the front-end page, there is a need to display different page elements on the same page for different page operations. The general development method is: develop relevant pages accordingly for various needs, use different front-end pages to meet different operation needs in a way that the pages correspond to the operations, and then add data request operations to the developed front-end page to meet the needs of displaying data content to users on the front-end page and allowing users to perform targeted page operations.
[0004] However, this development method is only applicable to situations where there are fewer page elements. Because there are fewer page elements, corresponding front-end pages can be developed and designed for different page elements.
[0005] However, when there are many page elements, it is impossible to develop front-end pages for each of the numerous page elements. For example, when archiving data for a complex product, a product has hundreds of product elements that require corresponding page elements for data input and display, and the product data is hundreds or thousands, so a large number of corresponding page elements are required for corresponding display, which leads to a variety of corresponding page layout methods and styles of page element composition. If the corresponding front-end pages are developed separately according to the relevant technology, it will require extremely high development costs and human resources.
[0006] Therefore, there is an urgent need for a new page generation method to solve the technical problem of how to quickly and conveniently generate a page with more page elements. Summary of the invention
[0007] The embodiments of the present application provide a method, apparatus, device and computer storage medium for generating a page, so as to solve the problem of how to quickly and conveniently generate a page with a large number of page elements.
[0008] In a first aspect, an embodiment of the present application provides a method for generating a page, which is applied to an online management system corresponding to a financial product, including:
[0009] In response to the received page generation instruction, at least one page module corresponding to the page to be generated indicated by the page generation instruction is selected from a preset page module set; wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated;
[0010] Obtaining a configuration file corresponding to the at least one page module; wherein the configuration file at least includes: layout information of each page module in the at least one page module, and data interface information of each page element included in each page module, wherein the data interface information represents: corresponding data transmission specifications and data display specifications when obtaining display content of the page element;
[0011] Based on the layout information in the configuration file, the at least one page module is set in the generated blank page, and based on the data interface information in the configuration file, a corresponding data interaction interface is configured for each page element in the at least one page module;
[0012] Based on the data interaction interface, the display content of the page to be generated is obtained to obtain a corresponding target generation page, and the information of the target financial product corresponding to the target generation page is displayed.
[0013] Optionally, selecting at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set includes:
[0014] Obtaining the page identifier of the page to be generated carried in the page generation instruction, and selecting at least one corresponding page module from the page module set based on the page identifier and the association relationship between the page identifier and the page module; or,
[0015] The module identifier of at least one page module corresponding to the to-be-generated page carried in the page generation instruction is obtained, and based on the obtained at least one module identifier, at least one corresponding page module is selected from the page module set.
[0016] Optionally, the configuration file also includes one or more of the following:
[0017] Business type information, representing: the business type corresponding to the target generation page; the business type is one of a preset business type set, and the business type set includes: product launch type, product modification type, and product offline type;
[0018] Basic business information, representing: product information of the target financial product.
[0019] Optionally, the data interface information includes one or more of the following:
[0020] Data node type, representing: the data node type corresponding to the page element used to store and display data, wherein the data node type is one of the preset data node types;
[0021] Data node hierarchy,representation: the hierarchical relationship between page elements used to store and display data and other page elements;
[0022] Data dictionary information, representing: the value range of the numerical value in the display content of the page element and the display format of the numerical value;
[0023] Standard data information, representing: multiple alternative data contents for target users to choose from in the display content corresponding to the page element;
[0024] The data storage information represents: the storage specification when the input data input by the target user to the page element is stored in the database corresponding to the target financial product.
[0025] Optionally, after obtaining the corresponding target generation page, the method further includes:
[0026] In response to an input operation of a target user on a page element in the target generated page, obtaining corresponding input data;
[0027] Based on the data interaction interface corresponding to the corresponding page element, the received input data is stored in the database corresponding to the target financial product.
[0028] Optionally, obtaining display content of the to-be-generated page based on the data interaction interface includes:
[0029] Based on the data interaction interface corresponding to each page element in the at least one page module, acquiring data information corresponding to each page element from a database corresponding to the target financial product;
[0030] Based on the obtained data information, data filling processing is performed on each page element respectively, and each page element is rendered to obtain the corresponding display content of the page to be generated.
[0031] In a second aspect, an embodiment of the present application provides a device for generating a page, which is applied to an online management system corresponding to a financial product, including:
[0032] A response module, configured to select, in response to a received page generation instruction, at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set; wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated;
[0033] an acquisition module, used to acquire a configuration file corresponding to the at least one page module; wherein the configuration file at least includes: layout information of each page module in the at least one page module, and data interface information of each page element included in each page module, wherein the data interface information represents: corresponding data transmission specifications and data display specifications when acquiring display content of the page element;
[0034] A configuration module, configured to set the at least one page module in the generated blank page based on the layout information in the configuration file, and to configure a corresponding data interaction interface for each page element in the at least one page module based on the data interface information in the configuration file;
[0035] The generation module is used to obtain the display content of the page to be generated based on the data interaction interface to obtain the corresponding target generation page, and display the information of the target financial product corresponding to the target generation page.
[0036] Optionally, when the response module is used to select at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set, it is specifically used to:
[0037] Obtaining the page identifier of the page to be generated carried in the page generation instruction, and selecting at least one corresponding page module from the page module set based on the page identifier and the association relationship between the page identifier and the page module; or,
[0038] The module identifier of at least one page module corresponding to the to-be-generated page carried in the page generation instruction is obtained, and based on the obtained at least one module identifier, at least one corresponding page module is selected from the page module set.
[0039] Optionally, the configuration file also includes one or more of the following:
[0040] Business type information, representing: the business type corresponding to the target generation page; the business type is one of a preset business type set, and the business type set includes: product launch type, product modification type, and product offline type;
[0041] Basic business information, representing: product information of the target financial product.
[0042] Optionally, the data interface information includes one or more of the following:
[0043] Data node type, representing: the data node type corresponding to the page element used to store and display data, wherein the data node type is one of the preset data node types;
[0044] Data node hierarchy,representation: the hierarchical relationship between page elements used to store and display data and other page elements;
[0045] Data dictionary information, representing: the value range of the numerical value in the display content of the page element and the display format of the numerical value;
[0046] Standard data information, representing: multiple alternative data contents for target users to choose from in the display content corresponding to the page element;
[0047] The data storage information represents: the storage specification when the input data input by the target user to the page element is stored in the database corresponding to the target financial product.
[0048] Optionally, after obtaining the corresponding target generation page, the generation module is further used to:
[0049] In response to an input operation of a target user on a page element in the target generated page, obtaining corresponding input data;
[0050] Based on the data interaction interface corresponding to the corresponding page element, the received input data is stored in the database corresponding to the target financial product.
[0051] Optionally, when the generating module is used to obtain the display content of the page to be generated based on the data interaction interface, it is specifically used to:
[0052] Based on the data interaction interface corresponding to each page element in the at least one page module, acquiring data information corresponding to each page element from a database corresponding to the target financial product;
[0053] Based on the obtained data information, data filling processing is performed on each page element respectively, and each page element is rendered to obtain the corresponding display content of the page to be generated.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor executes the instructions stored in the memory, so that the at least one processor executes the method described in the first aspect or any optional embodiment of the first aspect.
[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store instructions. When the instructions are executed, the method in the first aspect or any optional implementation of the first aspect is implemented.
[0056] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, wherein the computer program product stores instructions that, when executed on a computer, enable the computer to execute the method described in the first aspect or any optional implementation of the first aspect.
[0057] The beneficial effects of this application are as follows:
[0058] In this solution, by pre-setting a page module set, when responding to a page generation instruction, the corresponding page module can be directly selected for page generation, which improves the reuse rate of page elements in the page design process and reduces the page development cost; at the same time, by selecting the page module corresponding to the page generation instruction for page generation, only a simple combination operation is required to complete the page generation, which improves the efficiency of page generation.
[0059] On the other hand, the configuration information of the data interface of the page elements is integrated into the configuration file of the preset page module, so that when the page is generated according to the configuration file of the page module, the corresponding data interaction interface can be directly configured for the page element, avoiding the tedious operation of only generating the page framework and subsequently needing to configure the data interface for different page elements, thereby improving the speed and efficiency of page generation and content display, further reducing the page development cost, and improving the utilization rate of page elements. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments 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 labor.
[0061] Figure 1 A schematic diagram of possible application scenarios provided for embodiments of the present application;
[0062] Figure 2 A flowchart of a method for generating a page provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram showing a page module provided in an embodiment of the present application;
[0064] Figure 4A schematic diagram showing a page element provided in an embodiment of the present application;
[0065] Figure 5 A schematic diagram of a corresponding relationship between a page identifier and a page module provided in an embodiment of the present application;
[0066] Figure 6 A schematic diagram of a data node type provided in an embodiment of the present application;
[0067] Figure 7 A schematic diagram of a pull-down display content provided in an embodiment of the present application;
[0068] Figure 8 A schematic diagram of the structure of a device for generating a page provided in an embodiment of the present application;
[0069] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0071] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0072] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0073] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0074] In the related technology, when developing the front-end page, there is a need to display different page elements on the same page for different page operations. The general development method is: develop relevant pages accordingly for various needs, use different front-end pages to meet different operation needs in a way that the pages correspond to the operations, and then add data request operations to the developed front-end page to meet the needs of displaying data content to users on the front-end page and allowing users to perform targeted page operations.
[0075] However, this development method is only applicable to situations where there are fewer page elements. Because there are fewer page elements, corresponding front-end pages can be developed and designed for different page elements.
[0076] When there are many page elements, it is impossible to develop front-end pages for each of them. For example, when archiving data of complex products, a product has hundreds of product elements that need corresponding page elements for data input and display, and the data of products is hundreds or thousands, so a large number of corresponding page elements are needed for corresponding display, which leads to a variety of corresponding page layout methods and styles of page element composition. If the corresponding front-end pages are developed separately according to the relevant technology, it will require extremely high development costs and human resources.
[0077] In view of this, the present application provides a page generation method, which is applied to an online management system corresponding to financial products. By responding to a received page generation instruction, at least one page module corresponding to the page to be generated is selected from a preset page module set. The page module includes at least one page element, and each page element corresponds to a display content in the page to be generated.
[0078] After selecting the page modules, you need to obtain the configuration files corresponding to these page modules, set at least one page module in the generated blank page based on the layout information in the configuration files, and configure the corresponding data interaction interface for each page element based on the data interface information in the configuration files that indicates the data transmission specifications and data display specifications corresponding to each page element.
[0079] Therefore, based on the data interaction interface, the display content of the page to be generated is obtained to obtain the corresponding target generation page and display the corresponding target financial product information.
[0080] After completing the introduction of the main inventive ideas of the embodiments of the present application, the specific implementation of the method for page generation proposed in the embodiments of the present application will be introduced below through some specific embodiments and drawings.
[0081] The following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0082] See also Figure 1 , which is a schematic diagram of a possible application scenario provided in an embodiment of the present application. In this scenario, a terminal device 101 and a server 102 may be included.
[0083] The terminal device 101 may be a mobile phone, a tablet computer (PAD), a personal computer (PC), a wearable device, a vehicle-mounted terminal, etc. The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0084] The terminal device 101 and the server 102 may be directly or indirectly connected to each other through one or more communication networks 103. The communication network 103 may be a wired network or a wireless network, for example, a mobile cellular network or a wireless fidelity (Wireless-Fidelity, WIFI) network, or other possible networks, which are not limited in the embodiment of the present invention.
[0085] It should be noted that the page generation method in the embodiment of the present application can be executed by a computer device, which can be a terminal device 101 or a server 102. For example, when the page generation method is completed by the server 102, the server can select a page module corresponding to the page to be generated from the preset page module set, and set the page module in the generated empty page based on the layout information in the configuration file, and configure a corresponding data interaction interface for each page element based on the data interface information indicating the data transmission specification and data display specification corresponding to each page element in the configuration file; thereby, based on the data interaction interface, the display content of the page to be generated is obtained to obtain the corresponding target generation page and display the corresponding target financial product information.
[0086] It should be noted that Figure 1 What is shown is just an example. In fact, the number and communication mode of terminal devices and servers are not limited and are not specifically limited in the embodiments of the present application.
[0087] The following describes the page generation method provided by the exemplary embodiment of the present application in combination with the application scenario described above and with reference to the accompanying drawings. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this respect.
[0088] See also Figure 2 , is a flow chart of a page generation method provided in an embodiment of the present application. The page generation method can be applied to page generation in different fields. For example, it can be applied to page generation for information display of financial products in the financial field, and can also be applied to the generation of product display pages in other different fields, or the generation of other pages for content display. The execution subject of the method can be Figure 1 The terminal device and / or server shown in the figure is not limited in this application. For the convenience of subsequent description, the page generation method proposed in this application will be introduced by taking the execution subject as a server as an example.
[0089] like Figure 2 As shown, the specific implementation steps of this method are as follows:
[0090] Step S201: In response to the received page generation instruction, at least one page module corresponding to the page to be generated indicated by the page generation instruction is selected from a preset page module set, wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated.
[0091] After receiving the page generation instruction, the server can obtain the corresponding page module from the preset page module set in response to the page generation instruction.
[0092] First of all, it should be noted that the page module set is pre-set in the server. When configuring the page module set, the generation method can be that the developer divides the various page elements in the page into different page modules according to actual needs, or the server learns various different pages. When the page elements are reused, the relative distance between some page elements is within the preset range. In this way, these page elements within the preset range are divided into the corresponding page modules as a whole. This application does not limit this.
[0093] For example, Figure 3 As shown in the figure, for a page displaying product information, the content that needs to be displayed on the page generally includes: information about the source of the product, information about the product itself, information about the product review process, and some additional information about the product, etc. These different types of major content usually include a lot of detailed content. Therefore, these major content items containing multiple detailed content can be configured as different page modules in the page module set.
[0094] Thus, each page module in the page module set includes at least one page element, and each page element corresponds to a display content in the page to be generated.
[0095] For example, Figure 4 As shown in the figure, in a page for displaying product information, there are different page elements for displaying various information about the product. For example, the basic information of the source of the product, including: company name, company number, person in charge information, etc., each of these page elements corresponds to a display content.
[0096] During the page generation process, when the server responds to the instruction of the page generation instruction, it can select a corresponding page module from the page module set to prepare for subsequent page generation.
[0097] Specifically, the present application provides the following possible implementations for selecting at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set:
[0098] In a possible implementation, the server may obtain the page identifier of the page to be generated carried in the page generation instruction, and then select at least one corresponding page module from the page module set based on the page identifier and the association relationship between the page identifier and the page module.
[0099] In this method, the page generation instruction carries the page identifier of the page to be generated. The developer can set the correspondence between the page identifier and each page module in the server in advance. In this way, when the instruction to generate the page to be generated is given, the required page modules can be obtained directly based on the correspondence between the page identifier and the page module.
[0100] In this way, the server will also pre-set different page identifiers and the corresponding relationships between different page modules in the page module set, for example, Figure 5 As shown, page identifier 1 may correspond to page module 1, page module 2, page module 3, and page module 4 in the page module set; and page identifier 2 may correspond to page module 1, page module 4, page module 6, page module 7, and so on in the page module set. It should be noted that, Figure 5 The content shown is for illustrative purposes only. In actual applications, different page identifiers may correspond to a greater or lesser number of page modules, and this application does not impose any limitation on this.
[0101] Thus, in this method, corresponding page modules are pre-set for different page identifiers, so that after receiving a page generation instruction carrying the page identifier, the page generation instruction can be quickly responded to to generate the corresponding target page, thereby improving the speed of page generation and reducing the waiting time of page generation.
[0102] Furthermore, for each page module that has a corresponding relationship with different page identifiers, the different corresponding relationships can be directly used in advance to generate a corresponding page template for each page identifier, and the page template is persisted, and then the persisted page template is saved in the page module set. In this way, when the server receives a page generation instruction carrying a page identifier, it can directly select the page template corresponding to the page identifier from the page module set to perform the subsequent page generation part.
[0103] In another possible implementation, the server may obtain a module identifier of at least one page module corresponding to the page to be generated carried in the page generation instruction, and then select at least one corresponding page module from the page module set based on the obtained at least one module identifier.
[0104] In this method, each page module in the page module records its own corresponding module identifier, which is used to uniquely identify the page module. When a user or other device expects to generate a page to be generated, the identifier of the required page module can be directly input into the page generation instruction to represent the content contained in the expected page. In this way, the server can directly obtain the page modules corresponding to the module identifier from the page module set according to the page module identifier in the page generation instruction.
[0105] Thus, in this manner, the page modules required to be included in the to-be-generated page can be directly indicated according to the module identifier, thereby improving the flexibility of implementing the page generation method.
[0106] It should be noted that the above-mentioned implementation modes may exist simultaneously in one instance, so that the server may select different response modes according to different identifiers carried in the page generation instruction and obtain the corresponding page module from the page module set.
[0107] After obtaining the corresponding page module, the server can continue to perform the following operations:
[0108] Step S202: Obtain a configuration file corresponding to at least one page module; wherein the configuration file includes at least: layout information of each page module in at least one page module, and data interface information of each page element included in each page module; the data interface information represents: when obtaining the display content of the page element, the corresponding data transmission specification and data display specification.
[0109] For each page module in the page module set, its respective configuration information is also recorded in the corresponding configuration file. Therefore, after the server determines the page module required for the page to be generated, it needs to obtain the configuration file corresponding to at least one of these page modules, and obtain the various configuration information required for generating the page.
[0110] In a possible implementation, the configuration file includes at least layout information of each page module, and the layout information indicates position information of the page module in the page to be generated, and position information of page elements included in each page module in the page to be generated.
[0111] At the same time, since each page element corresponds to a display content, and when the display content is displayed, it is necessary to obtain the corresponding data before displaying it, the configuration file also includes the data interface information corresponding to each page element, which represents: when obtaining the display content of the page element, the corresponding data transmission specification and data display specification. Among them, there are two ways to obtain the display content of the page element: one is to extract the corresponding data from the back-end database corresponding to the page, and the other is that after displaying blank content, the user inputs the display data into the page element corresponding to the page, and then saves it to the back-end database.
[0112] In this way, after obtaining the configuration file corresponding to at least one page module, the server can continue to perform the following operations:
[0113] Step S203: Based on the layout information in the configuration file, at least one page module is set in the generated blank page.
[0114] In order to respond to the page generation instruction and generate the corresponding target generation page, the server can first generate a blank page, which does not contain any display content. After the server obtains the layout information of the page module, it can set at least one page module in the generated blank page based on the layout information, and set each page module at the corresponding position of the blank page in a filling manner. At the same time, based on the layout information, the page elements included in each page module are also set at the corresponding position to complete the construction of the page framework.
[0115] Step S204: Based on the data interface information in the configuration file, a corresponding data interaction interface is configured for each page element in at least one page module.
[0116] After the server completes the construction of the page framework, it is necessary to configure corresponding data interaction interfaces for the page elements that display the content. These data interaction interfaces are used to limit the rules and definitions for data exchange between different systems, so that different systems can send and receive data through defined protocols and formats.
[0117] In the present application, by utilizing the data interface information in the configuration file, the corresponding data interaction interface can be configured for each page element to standardize the acquisition and display of data in the page to be generated.
[0118] In a possible implementation manner, the data interface information may include one or more of the following contents:
[0119] Data node type, representing: a data node type corresponding to a page element used to store and display data, wherein the data node type is one of a set of preset data node types.
[0120] The preset data node types include the following types of data nodes:
[0121] 00-Simple: There is only one layer of nodes;
[0122] 01-Table: table type;
[0123] 02-Complex: There is a layer of sub-nodes or multiple layers of nodes under this node, which are progressive;
[0124] 03-Multi-frame: The front-end type of this node has multiple frames and no title;
[0125] 04-Interval: This node is displayed as a data range on the front end with a horizontal bar in the middle;
[0126] 05-Untitled: Generally belongs to the last layer of the node, and the frame has no title;
[0127] 06-Linkage; Based on this node, the corresponding transaction query standard data dictionary needs to be called to obtain the data item of the linkage id.
[0128] See also Figure 6 , which is a schematic diagram of a data node type provided in an embodiment of the present application. Figure 6 The possible representations of some of the above data node types are shown in Figure 2.
[0129] Data node hierarchy,representation: the hierarchical relationship between page elements used to store and display data and other page elements.
[0130] Among them, the node level of the major item is 1, and the node level of the sub-item is 2. When the node level is greater than or equal to 2, the parent node number needs to be filled in to represent the relationship between different nodes.
[0131] Data dictionary information, representing: the range of values in the display content of the page element and the display format of the value, including the limit on the number of decimal places, etc.
[0132] Standard data information, representing: multiple alternative data contents for target users to choose from in the display content corresponding to the page element; for example, Figure 7 In a page element shown, the corresponding displayed content is the value displayed by the drop-down, and the user selects the corresponding input content from it. Therefore, the standard data information specifies the alternative data content of the data that can be displayed after pulling down in the page element.
[0133] Data storage information, representing: the storage specification when the input data entered by the target user into the page element is stored in the database corresponding to the target financial product.
[0134] In this way, through the above data interface information, the corresponding data interaction interface can be configured for the page element, so that the page element can smoothly complete the data interaction between multiple systems.
[0135] Step S205: Based on the data interaction interface, the display content of the page to be generated is obtained to obtain the corresponding target generation page, and the information of the target financial product corresponding to the target generation is displayed.
[0136] After completing the settings of the page modules and page elements in the page, the server also needs to obtain the display content of the page to be generated based on the data interaction interface corresponding to each page element, and use these display contents to fill in the corresponding page elements to obtain the corresponding target generation page, and then display the information of the generated page for a target financial product.
[0137] In a possible implementation, a specific method of obtaining the display content of the page to be generated may be:
[0138] First, based on the data interaction interface corresponding to each page element in at least one page module, the data information corresponding to each page element is obtained from the database corresponding to the target financial product; then, based on the obtained data information, data filling processing is performed on each page element respectively, and each page element is rendered to obtain the display content of the corresponding page to be generated.
[0139] In this way, the data information required to be displayed on the to-be-generated page is extracted from the database, and through the restrictions of the data interaction interface, the data information can be smoothly displayed on the to-be-generated page, thereby improving the reliability of the implementation of this solution.
[0140] In this solution, by pre-setting a page module set, when responding to a page generation instruction, the corresponding page module can be directly selected for page generation, which improves the reuse rate of page elements in the page design process and reduces the page development cost; at the same time, by selecting the page module corresponding to the page generation instruction for page generation, only a simple combination operation is required to complete the page generation, which improves the efficiency of page generation.
[0141] On the other hand, the configuration information of the data interface of the page elements is integrated into the configuration file of the preset page module, so that when the page is generated according to the configuration file of the page module, the corresponding data interaction interface can be directly configured for the page element, avoiding the tedious operation of only generating the page framework and subsequently needing to configure the data interface for different page elements, thereby improving the speed and efficiency of page generation and content display, further reducing the page development cost, and improving the utilization rate of page elements.
[0142] The above describes a page generation method provided by an embodiment of the present application. The following will continue to introduce some possible implementation methods of the page generation method.
[0143] In a possible implementation, after obtaining the corresponding target generation page, the server may further continue to perform the following operations:
[0144] In response to the target user's input operation on the page element in the target generation page, the corresponding input data is obtained; based on the data interaction interface corresponding to the corresponding page element, the received input data is stored in the database corresponding to the target financial product.
[0145] That is, after obtaining the target generation page, the target generation page can be displayed to the target user. In the process of displaying the target generation page, the target user may input data for some page elements in the target generation page. Therefore, the server needs to respond to the target user's input operation on the page elements in the target generation page, obtain the corresponding input data, and then store the received input data in the database corresponding to the target financial product displayed on the target generation page based on the corresponding data interaction interface.
[0146] In this way, the display content in the target generation page can be further improved, and the data information stored in the database corresponding to the target financial product can also be improved.
[0147] In a possible implementation, in order to further improve the layout and displayed content of the page when the page is generated, the configuration file corresponding to the page module may also include one or more of the following contents:
[0148] Business type information, representing: the business type corresponding to the target generation page; the business type is one of the preset business type sets, and the business type set includes: product launch type, product modification type, and product offline type.
[0149] Basic business information, representing: product information of the target financial product, including: product code, product name, product category, product subcategory and other information.
[0150] Business relationship information, representing: business processes such as the flow review of information in the target generation page, including business number, process number, review status link and other information, and also includes the test status corresponding to each subcategory in the product information, including: pending allocation, admission notification, admission registration, admission notification, in progress, admission registration, test paused, in progress, test paused, new message notification, test start time, test end time, promotion group field, remarks, whether to modify the field, etc.
[0151] Business status table, representing: business type, name review stage, status, etc. corresponding to the product information in the target generation page.
[0152] The above is the configuration file corresponding to each page module. In the application, the configuration file can also include a general page template information corresponding to the general page, which is used to record the identification of the page modules that constitute the page template, product categories, business scenarios, process relationships, relationships between business categories, as well as product categories, product subcategories, business types, business names, business subcategories, business subcategory names, scenario numbers, scenario names, scenario template numbers, scenario template names and other information.
[0153] In this way, when the page generation instruction indicates to generate a corresponding general page based on the general page template, the server can directly generate the corresponding general page according to the general page template information in the configuration file and obtain data.
[0154] Furthermore, in a possible implementation, the configuration file can be saved in the form of a table, and the above-mentioned different information can be saved in different tables. In this way, the process of developing a page can be transformed into a process of configuring a table template, thereby reducing the learning cost and development cost of page development and improving the efficiency of page development.
[0155] Based on the same inventive concept, an embodiment of the present application also provides a device for page generation.
[0156] See also Figure 8 , which is a structural schematic diagram of a device for page generation provided in an embodiment of the present application. The device may be the above-mentioned server or a chip or integrated circuit in the device, etc. The device includes a module / unit / technical means for executing the method executed by the server in the above-mentioned method embodiment.
[0157] Exemplarily, the device 800 includes:
[0158] The response module 801 is used to select at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set in response to the received page generation instruction; wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated;
[0159] The acquisition module 802 is used to acquire a configuration file corresponding to the at least one page module; wherein the configuration file at least includes: layout information of each page module in the at least one page module, and data interface information of each page element included in each page module, wherein the data interface information represents: corresponding data transmission specifications and data display specifications when acquiring display content of the page element;
[0160] Configuration module 803, used to set the at least one page module in the generated blank page based on the layout information in the configuration file, and to configure a corresponding data interaction interface for each page element in the at least one page module based on the data interface information in the configuration file;
[0161] The generation module 804 is used to obtain the display content of the page to be generated based on the data interaction interface to obtain a corresponding target generation page, and display the information of the target financial product corresponding to the target generation page.
[0162] As an example, Figure 8The apparatus described can be used to perform Figure 2 Therefore, for the functions that can be realized by each functional module of the device, reference can be made to Figure 2 The description of the illustrated embodiment will not be repeated here.
[0163] It should be noted that, although several modules or submodules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be embodied.
[0164] As a possible product form of the above device, see Fig. 9 The embodiment of the present application further provides an electronic device 900, including:
[0165] At least one processor 901; and a communication interface 903 that is communicatively connected to the at least one processor 901; the at least one processor 901 executes instructions stored in the memory 902, so that the electronic device 900 executes the method steps performed by any device in the above method embodiment through the communication interface 903.
[0166] Optionally, the memory 902 is located outside the electronic device 900 .
[0167] Optionally, the electronic device 900 includes the memory 902, the memory 902 is connected to the at least one processor 901, and the memory 902 stores instructions that can be executed by the at least one processor 901. Fig. 9 The dashed lines indicate that the memory 902 is optional for the electronic device 900 .
[0168] The processor 901 and the memory 902 may be coupled via an interface circuit or may be integrated together, which is not limited here.
[0169] The specific connection medium between the processor 901, the memory 902 and the communication interface 903 is not limited in the embodiment of the present application. Fig. 9 In the embodiment, the processor 901, the memory 902 and the communication interface 903 are connected via a bus 904. Fig. 9 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9In the example, only one thick line is used to represent the bus, but it does not mean that there is only one bus or one type of bus. It should be understood that the processor mentioned in the embodiment of the present application can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory.
[0170] Exemplarily, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0171] It should be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DirectRambus RAM, DR RAM).
[0172] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.
[0173] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0174] As another possible product form, an embodiment of the present application also provides a computer-readable storage medium, which is used to store instructions. When the instructions are executed, the computer executes the method steps executed by any device in the above method example.
[0175] As another possible product form, an embodiment of the present application also provides a computer program product including instructions, wherein the computer program product stores instructions that, when executed on a computer, enable the computer to execute the method steps executed by any device in the above method embodiment.
[0176] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0177] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0178] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0179] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0180] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for generating a page, characterized in that: The online management system used for financial products includes: In response to the received page generation instruction, at least one page module corresponding to the page to be generated indicated by the page generation instruction is selected from a preset page module set; wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated; Obtaining a configuration file corresponding to the at least one page module; wherein the configuration file at least includes: layout information of each page module in the at least one page module, and data interface information of each page element included in each page module, wherein the data interface information represents: corresponding data transmission specifications and data display specifications when obtaining display content of the page element; Based on the layout information in the configuration file, the at least one page module is set in the generated blank page, and based on the data interface information in the configuration file, a corresponding data interaction interface is configured for each page element in the at least one page module; Based on the data interaction interface, the display content of the page to be generated is obtained to obtain a corresponding target generation page, and the information of the target financial product corresponding to the target generation page is displayed.
2. The method according to claim 1, characterized in that The selecting, from a preset set of page modules, at least one page module corresponding to the page to be generated indicated by the page generation instruction comprises: Obtaining the page identifier of the page to be generated carried in the page generation instruction, and selecting at least one corresponding page module from the page module set based on the page identifier and the association relationship between the page identifier and the page module; or, The module identifier of at least one page module corresponding to the to-be-generated page carried in the page generation instruction is obtained, and based on the obtained at least one module identifier, at least one corresponding page module is selected from the page module set.
3. The method according to claim 1, characterized in that The configuration file may also include one or more of the following: Business type information, representing: the business type corresponding to the target generation page; the business type is one of a preset business type set, and the business type set includes: product launch type, product modification type, and product offline type; Basic business information, representing: product information of the target financial product.
4. The method according to claim 1, characterized in that The data interface information includes one or more of the following: Data node type, representing: the data node type corresponding to the page element used to store and display data, wherein the data node type is one of the preset data node types; Data node hierarchy,representation: the hierarchical relationship between page elements used to store and display data and other page elements; Data dictionary information, representing: the value range of the numerical value in the display content of the page element and the display format of the numerical value; Standard data information, representing: multiple alternative data contents for target users to choose from in the display content corresponding to the page element; The data storage information represents: the storage specification when the input data input by the target user to the page element is stored in the database corresponding to the target financial product.
5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the corresponding target generation page, the method further includes: In response to an input operation of a target user on a page element in the target generated page, obtaining corresponding input data; Based on the data interaction interface corresponding to the corresponding page element, the received input data is stored in the database corresponding to the target financial product.
6. The method according to any one of claims 1 to 4, characterized in that: The acquiring, based on the data interaction interface, display content of the page to be generated includes: Based on the data interaction interface corresponding to each page element in the at least one page module, acquiring data information corresponding to each page element from a database corresponding to the target financial product; Based on the obtained data information, data filling processing is performed on each page element respectively, and each page element is rendered to obtain the corresponding display content of the page to be generated.
7. A device for generating a page, characterized in that: The online management system used for financial products includes: A response module, configured to select, in response to a received page generation instruction, at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set; wherein each page module includes at least one page element, and each page element corresponds to a display content in the page to be generated; an acquisition module, used to acquire a configuration file corresponding to the at least one page module; wherein the configuration file at least includes: layout information of each page module in the at least one page module, and data interface information of each page element included in each page module, wherein the data interface information represents: corresponding data transmission specifications and data display specifications when acquiring display content of the page element; A configuration module, configured to set the at least one page module in the generated blank page based on the layout information in the configuration file, and to configure a corresponding data interaction interface for each page element in the at least one page module based on the data interface information in the configuration file; The generation module is used to obtain the display content of the page to be generated based on the data interaction interface to obtain the corresponding target generation page, and display the information of the target financial product corresponding to the target generation page.
8. The device according to claim 7, characterized in that When the response module is used to select at least one page module corresponding to the page to be generated indicated by the page generation instruction from a preset page module set, it is specifically used to: Obtaining a page identifier of the to-be-generated page carried in the page generation instruction, and selecting at least one corresponding page module from the page module set based on the page identifier and an association relationship between the page identifier and the page module; or, The module identifier of at least one page module corresponding to the to-be-generated page carried in the page generation instruction is obtained, and based on the obtained at least one module identifier, at least one corresponding page module is selected from the page module set.
9. The device according to claim 7, characterized in that The configuration file may also include one or more of the following: Business type information, representing: the business type corresponding to the target generation page; the business type is one of a preset business type set, and the business type set includes: product launch type, product modification type, and product offline type; Basic business information, representing: product information of the target financial product.
10. The device according to claim 7, characterized in that The data interface information includes one or more of the following: Data node type, representing: the data node type corresponding to the page element used to store and display data, wherein the data node type is one of the preset data node types; Data node hierarchy,representation: the hierarchical relationship between page elements used to store and display data and other page elements; Data dictionary information, representing: the value range of the numerical value in the display content of the page element and the display format of the numerical value; Standard data information, representing: multiple alternative data contents for target users to choose from in the display content corresponding to the page element; The data storage information represents: the storage specification when the input data input by the target user to the page element is stored in the database corresponding to the target financial product.
11. The device according to any one of claims 7 to 10, characterized in that: After obtaining the corresponding target generation page, the generation module is further used to: In response to an input operation of a target user on a page element in the target generated page, obtaining corresponding input data; Based on the data interaction interface corresponding to the corresponding page element, the received input data is stored in the database corresponding to the target financial product.
12. The device according to any one of claims 7 to 10, characterized in that: When the generating module is used to obtain the display content of the page to be generated based on the data interaction interface, it is specifically used to: Based on the data interaction interface corresponding to each page element in the at least one page module, acquiring data information corresponding to each page element from a database corresponding to the target financial product; Based on the obtained data information, data filling processing is performed on each page element respectively, and each page element is rendered to obtain the corresponding display content of the page to be generated.
13. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method as described in any one of claims 1 to 6 by executing the instructions stored in the memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store instructions, and when the instructions are executed, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising instructions, characterized in that The computer program product stores instructions, and when the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Page generation method and device
CN110941784A
BS architecture-based train passenger information display system interface design method and system
CN112181518A
Page layout method and device, equipment and storage medium
CN113190781A
Page generation method and device, storage medium and computer equipment
CN115562656A
Integrated user interface platform development system and method of single-page application type
US20240201963A1