Page generation method, device, computer equipment and storage medium

By receiving the page generation request, determining the page type and obtaining the page template, reading the raster configuration information in the configuration file, processing the page template, and generating the page based on the page data to be displayed, the problem of low page generation efficiency in the existing technology is solved. problem, achieving the effect of simplifying page layout and improving generation efficiency.

CN109343851BInactive Publication Date: 2024-08-23CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811123790.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-26
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, due to the different page layout requirements of different business systems when generating pages, the page generation efficiency is low and the layout process is cumbersome.

Method used

By receiving the page generation request, determining the page type and obtaining the corresponding page template, reading the grid configuration information in the configuration file, processing the grid in the page template, and generating the page based on the page data to be displayed, the page layout process is simplified .

Benefits of technology

It improves page generation efficiency, simplifies the page layout process, can quickly process page generation requests, and generate pages that meet needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109343851B
    Figure CN109343851B
Patent Text Reader

Abstract

The present application relates to a page generation method, device, computer equipment and storage medium. The method relates to web page configuration technology, including: receiving a page generation request, determining the page type according to the page generation request and obtaining the page data to be displayed; obtaining a corresponding preset page template according to the page type, the page template including multiple grids; reading a configuration file corresponding to the page template, the configuration file recording grid configuration information corresponding to the grid in the page template; performing grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page; generating a page according to the configuration page and the page data to be displayed. The method is used to realize the rapid processing of the rasterized page template corresponding to the page generation request through the configuration file, simplify the page layout process, and generate a page that meets the requirements in combination with the page data to be displayed, thereby improving the efficiency of page generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page generation method, device, computer equipment and storage medium. Background Art

[0002] With the continuous development of computer technology, more and more people obtain various resource information through the Internet. Web pages are platforms that carry various website applications. They not only appear on websites, but are also widely used in various terminal applications. People can quickly obtain information through a variety of web pages, which facilitates people's entertainment, learning and life.

[0003] Currently, when generating a corresponding page based on page data, it is often necessary to process the page data according to the page layout requirements. Different business systems may have different page layout requirements, and the process of re-layouting the page is cumbersome, resulting in low efficiency in page generation. Summary of the invention

[0004] Based on this, it is necessary to provide a page generation method, apparatus, computer device and storage medium that can improve page generation efficiency in response to the above technical problems.

[0005] A page generation method, the method comprising:

[0006] Receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0007] Obtaining a corresponding preset page template according to the page type, the page template including multiple grids;

[0008] Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0009] Perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0010] Generate a page based on the configuration page and the page data to be displayed.

[0011] In one embodiment, the step of obtaining a corresponding preset page template according to the page type includes:

[0012] Query the preset page template library;

[0013] Get the page template corresponding to the page type from the page template library.

[0014] In one embodiment, before the step of querying the preset page template library, the method further includes:

[0015] Obtain the business page requirements of the business system, including the page size and the number of page segments;

[0016] Determine the number of grids and grid positions of the grid according to the page size and the number of page divisions;

[0017] Generate a page template corresponding to the page type according to the number of grids and the grid positions;

[0018] A page template library is obtained according to each page template.

[0019] In one embodiment, after the step of obtaining a corresponding preset page template according to the page type, the method further includes:

[0020] Extract the user ID from the page generation request;

[0021] Querying a user tag corresponding to the user ID, where the user tag is obtained based on user feature information extracted from user data corresponding to the user ID;

[0022] The page style of the page template is switched according to the user tag, and the switched page template is used as the page template.

[0023] In one embodiment, before the step of reading the configuration file corresponding to the page template, the method further includes:

[0024] Query the configuration file corresponding to the page template;

[0025] When receiving the configuration update request message, modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information;

[0026] An updated configuration file is generated according to the updated grid configuration information, and the updated configuration file is used as the configuration file.

[0027] In one embodiment, the grid configuration information includes grid parameter information and page element information; and the step of performing grid processing on the grid in the page template according to the grid configuration information to obtain the configuration page includes:

[0028] Modify the grid parameters of the grid in the page template according to the grid parameter information to obtain the grid after the parameters are modified, the grid parameters including the grid size and the grid margin;

[0029] According to the page element information, the page elements are added to the grid after the parameters are modified to obtain the configuration page.

[0030] In one embodiment, the page element includes a page font icon; and according to the page element information, the page element is added to the grid after the parameter is modified, and the step of obtaining the configuration page includes:

[0031] Querying a preset page font icon library corresponding to the user ID;

[0032] According to the page element information, obtain the page font icon from the page font icon library;

[0033] Add the page font icon to the grid after parameter modification to get the configuration page.

[0034] A page generation device, comprising:

[0035] A page request receiving module, used to receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0036] A page template acquisition module is used to acquire a corresponding preset page template according to the page type, and the page template includes multiple grids;

[0037] A configuration file reading module is used to read a configuration file corresponding to a page template, wherein the configuration file records grid configuration information corresponding to a grid in the page template;

[0038] A configuration page generation module is used to perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0039] The page generation module is used to generate a page according to the configuration page and the page data to be displayed.

[0040] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0041] Receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0042] Obtaining a corresponding preset page template according to the page type, the page template including multiple grids;

[0043] Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0044] Perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0045] Generate a page based on the configuration page and the page data to be displayed.

[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0047] Receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0048] Obtaining a corresponding preset page template according to the page type, the page template including multiple grids;

[0049] Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0050] Perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0051] Generate a page based on the configuration page and the page data to be displayed.

[0052] The above-mentioned page generation method, device, computer equipment and storage medium determine the page type according to the received page generation request, and obtain the corresponding page template including multiple grids according to the page type, configure the page after processing the grid in the page template through the grid configuration information in the configuration file, and finally generate the page by combining the configuration page and the to-be-displayed page data obtained according to the page generation request. In the page generation process, the configuration file is used to realize the rapid processing of the rasterized page template corresponding to the page generation request, simplify the page layout process, and generate a page that meets the requirements in combination with the to-be-displayed page data, thereby improving the efficiency of page generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 An application scenario diagram of a page generation method in an embodiment;

[0054] Figure 2 A schematic diagram of a flow chart of a page generation method in one embodiment;

[0055] Figure 3 A flowchart of steps for constructing a page template in one embodiment;

[0056] Figure 4 A schematic diagram of a flow chart of a page generation method in another embodiment;

[0057] Figure 5 is a structural block diagram of a page generating device in one embodiment;

[0058] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] The page generation method provided by this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 101 communicates with the server 103 through the network. The terminal user sends a page generation request by operating the terminal, such as touching the screen. After receiving the page generation request, the terminal 101 determines the page type, and obtains the corresponding page template including multiple grids according to the page type, and processes the grid in the page template through the grid configuration information in the configuration file. After that, the configuration page and the page data to be displayed obtained from the server 103 according to the page generation request are combined to generate a page, and the page is displayed. Among them, the terminal 101 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 103 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0061] In one embodiment, Figure 2 As shown, a page generation method is provided, which is applied to Figure 1 The terminal 101 in the example is used as an example to illustrate, and the following steps are included:

[0062] Step S201: receiving a page generation request, determining a page type according to the page generation request, and obtaining page data to be displayed.

[0063] Among them, the page generation request can be issued by the terminal user operation, such as clicking on a web link, etc., to request the generation of a related web page; the page type reflects the layout requirements of the business system for each web page, and different business system pages have different page types. More specifically, different business service pages in the same business system may also correspond to different page types; the page data to be displayed is the page content that needs to be displayed in the page generated by the page generation request. Specifically, after receiving the page generation request, the terminal 101 extracts the identification information related to the business system from it, and determines the corresponding page type according to the identification information; on the other hand, extracts the link address of the page data to be displayed from the page generation request, and obtains the page data to be displayed according to the link address.

[0064] Step S203: Obtain a corresponding preset page template according to the page type, where the page template includes multiple grids.

[0065] The page template is a page layout framework preset according to different page types. It is a gridded page, including multiple grids. The grids are used to carry page content, including page elements and page data to be displayed. Among them, grid parameters such as the size of each grid and grid margins are set according to the demand information of different page types. Specifically, after determining the page type, query the preset page template corresponding to the page type. Through this page template, the standardized layout of the page can be achieved. When generating a page in combination with the page data to be displayed, the page layout can be performed directly by adjusting the grid parameters of each grid in the standardized page template, which simplifies the operation steps of the page layout and can effectively improve the efficiency of page generation.

[0066] Step S205: reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template.

[0067] Among them, the configuration file includes grid configuration information, and the grid configuration information has a mapping relationship with each grid in the page template. By modifying the grid configuration information, the layout of each grid in the page template can be adjusted, that is, the configuration file is used to perform page layout on the corresponding page template. Specifically, after obtaining the page template corresponding to the page type, the corresponding configuration file is queried according to the page template to obtain the grid configuration information of each grid in the page template, such as grid parameter information related to the grid structure and page element information related to the content carried in the grid. In specific applications, the configuration file corresponding to the page template can preset the default grid configuration information. When a configuration file update request is received, the configuration file is updated and the page template is configured according to the updated configuration file; otherwise, the page template is set according to the default grid configuration information.

[0068] Step S207: Grid processing is performed on the grids in the page template according to the grid configuration information to obtain a configuration page.

[0069] The grid configuration information may include grid parameter information related to the grid structure and page element information related to the content carried in the grid. The grid may be adjusted through the grid configuration information to obtain a configuration page that satisfies the configuration file. Specifically, after obtaining the grid configuration information corresponding to the page template, each grid in the page template is subjected to grid processing according to the grid configuration information, such as setting the grid size, grid margins, and page elements in the grid, thereby obtaining a configuration page after grid processing. Among them, the grid size may be a parameter related to the size such as the shape and size of the grid, the grid margins may include the inner and outer margins of the grid, and the grid page elements may include pictures, audio, icons, and other information related to the content in the grid.

[0070] Step S209: Generate a page according to the configuration page and the page data to be displayed.

[0071] After obtaining the configuration page after grid processing, the page is generated by combining the obtained page data to be displayed. Specifically, the page data to be displayed can be added to the corresponding grid in the configuration page to obtain the page and display it.

[0072] In the above page generation method, the page type is determined according to the received page generation request, and the corresponding page template including multiple grids is obtained according to the page type. The grid in the page template is processed by the grid configuration information in the configuration file to generate a configuration page, and finally the configuration page and the page data to be displayed obtained according to the page generation request are combined to generate the page. In the page generation process, the configuration file is used to realize the rapid processing of the rasterized page template corresponding to the page generation request, simplifying the page layout process, and generating a page that meets the requirements in combination with the page data to be displayed, thereby improving the efficiency of page generation.

[0073] In one embodiment, the step of obtaining a corresponding preset page template according to the page type includes: querying a preset page template library; and obtaining a page template corresponding to the page type from the page template library.

[0074] The page templates are set in correspondence with the page types corresponding to each business system, and can be stored in a preset page template library, which can store page templates corresponding to each page type. Specifically, in the page template library, a mapping relationship between page types and page templates can be established, such as establishing a template mapping form, and type matching is performed by the page type and the template mapping form, and the corresponding page template can be queried from the template mapping form. In this embodiment, after determining the page type according to the page generation request, the preset page template library is queried, and the page type is matched in the page template library, so as to obtain the page template corresponding to the page type, and the page generation is subsequently performed based on the page template.

[0075] In one embodiment, Figure 3 As shown, before the step of querying the preset page template library, the step of constructing the page template is also included, which specifically includes:

[0076] Step S301: Obtaining the business page requirements of the business system, where the business page requirements include page size and the number of page segments.

[0077] For different business systems, it involves different page data to be displayed and business process rules, etc., and the page layout also needs to refer to the actual business needs of the business system. The page template is set according to the corresponding settings of each business system, which meets the business system's needs for pages. In this implementation, when constructing the page template of the business system, the business page requirements of the corresponding business system are obtained, which can specifically include but are not limited to page layout parameters such as page size and number of page divisions. Among them, the business page requirements can be obtained according to the business process rules and business data of the business system, such as determining the page size and number of page divisions according to the business process rules and the business data involved in the business process. For example, for a video website, its page needs to prompt the video playback window, and the resolution ratio of the window is generally 16:9, then the page size is involved. It is necessary to refer to the resolution ratio requirements of each video playback window. By analyzing the business page requirements of the business system and designing the page template with reference to the business page requirements, the obtained page template can be more in line with the business system and improve the pertinence of the page template.

[0078] Step S303: determining the number of grids and grid positions according to the page size and the number of page divisions.

[0079] Among them, the page size is the size of the page to be generated, and the number of page divisions can be the number of modules that the page to be generated needs to be divided into, and each module can be set with a corresponding grid. Specifically, after determining the page size and the number of page divisions, the number of grids and the grid position of the grid are calculated according to the page size and the number of page divisions. In a specific application, if the page size is 960px (pixels), if the number of page divisions is 12, the 960px page needs to be divided into 12 modules, and each module can be directly used as a grid, that is, 12 grids are obtained, and each grid divides the 960px page. In the specific implementation, for each grid obtained by division, a grid mark can be added according to its grid position condition to facilitate the management of each grid. When adding page data to the grid, the grid mark can be used to query and process the grid, thereby improving the page processing efficiency.

[0080] Step S305: Generate a page template corresponding to the page type according to the grid quantity and grid position.

[0081] After determining the number and position of the grids, the page is designed according to the number and position of the grids to obtain a page template that meets the business page requirements and corresponds to the page type. The obtained page template is a gridded page template, which includes multiple grids. By configuring the grids, the page can be quickly set up, thereby improving the efficiency of page generation.

[0082] Step S307: Obtain a page template library according to each page template.

[0083] A page template is constructed for each business system, and then various page templates are aggregated to obtain a page template library. When a page needs to be generated, the page template corresponding to the business system can be queried from the page template library.

[0084] In this embodiment, page templates are designed according to the business page requirements of the business system, and a page template library is constructed. When a page is generated, the page template corresponding to the page type can be directly obtained from the page template library. The page template closely fits the business system and is highly targeted, which helps to improve the processing efficiency of page generation.

[0085] In one embodiment, after the step of obtaining the corresponding preset page template according to the page type, it also includes: extracting the user identifier from the page generation request; querying the user tag corresponding to the user identifier, the user tag is obtained based on the user feature information extracted from the user data corresponding to the user identifier; switching the page style of the page template according to the user tag, and using the switched page template as the page template.

[0086] After obtaining the page template corresponding to the business system, the template is constructed for the business page requirements of the business system, and the page style of the page template can also be switched in combination with the user tag, such as the old man style with large fonts, the constellation style and the animation style. In this embodiment, after obtaining the page template, the user identifier is extracted from the page generation request. The user identifier may include but is not limited to the user account name, name, ID card number and other identification information. The corresponding business user can be determined according to the user identifier. According to the user identifier, the corresponding business user is determined, and the user tag of the business user is queried. The user tag can be the feature information obtained according to the user feature information extracted from the user data corresponding to the user identifier, and can specifically be the words describing the user features such as the elderly, animation, constellation fans, etc. After obtaining the user tag of the business user, the page style of the obtained page template is switched according to the user tag, so as to personalize the page style of the page template.

[0087] In specific implementation, a common page style set can be pre-set, and the page template style can be switched according to the page style set. When a business user includes multiple user tags, the user tags can be sorted according to certain rules, such as the business user's hobbies first, followed by age, gender, etc., and the user tags online in order are selected for page style switching.

[0088] In one embodiment, before the step of reading the configuration file corresponding to the page template, it also includes: querying the configuration file corresponding to the page template; when a configuration update request message is received, modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information; generating an updated configuration file according to the updated grid configuration information, and using the updated configuration file as the configuration file.

[0089] Business users can redesign based on the obtained page template to obtain a page layout that meets actual needs. Specifically, the redesign of the page template can be achieved by updating the configuration file. Specifically, the corresponding configuration file is queried according to the page template. The configuration file includes grid configuration information corresponding to the grid in the page template. When a configuration update request message requesting to update the grid configuration information is received, the grid configuration information in the page template is updated according to the configuration update request message. Specifically, the grid configuration information can be modified and replaced according to the grid parameter update information and page element update information included in the configuration update request message, thereby modifying the grid configuration information in the configuration file and obtaining the updated grid configuration information. Finally, an updated configuration file is generated according to the updated grid configuration information, and the page template is grid processed through the updated configuration file to obtain a configuration page.

[0090] In one embodiment, the grid configuration information includes grid parameter information and page element information; the grid in the page template is grid processed according to the grid configuration information, and the step of obtaining the configuration page includes: modifying the grid parameters of the grid in the page template according to the grid parameter information to obtain the grid after the parameters are modified, the grid parameters include the grid size and the grid margin; according to the page element information, the page elements are added to the grid after the parameters are modified to obtain the configuration page.

[0091] Among them, the grid parameter information may include grid parameters related to the grid structure, such as grid size and grid margin, etc., and the page element information is the grid content information in the grid, that is, the page content carried in the grid. In the step of performing grid processing on the grid in the page template according to the grid configuration information, the grid parameters of the grid in the page template may be modified according to the grid parameter information, such as modifying the grid size and grid margin of each grid in the page template, and the grid margin may include inner and outer margins, so that the design of each grid in the page template is more reasonable. After modifying the grid parameters of the grid, the corresponding page element is obtained according to the page element information, and the obtained page element is added to the grid after the parameter modification to obtain the configuration page. In this embodiment, the grid size, grid margin and page elements in the grid in the page template are set through the grid configuration information in the configuration file, so as to realize the grid processing of the page template and complete the layout design of the page template.

[0092] In one embodiment, the page elements include page font icons; according to the page element information, the page elements are added to the grid after the parameters are modified, and the steps of obtaining the configuration page include: querying the preset page font icon library corresponding to the user identifier; according to the page element information, obtaining the page font icon from the page font icon library; adding the page font icon to the grid after the parameters are modified to obtain the configuration page.

[0093] The page element is the grid content filled in the grid, which can be, but is not limited to, an icon element. In the present embodiment, the page element includes a page font icon, which can be an iconfont icon, that is, an icon obtained by using a vector graphic design, and the obtained iconfont icon can be arbitrarily scaled without distortion. The page font icon can be customized by the business user and stored in a page font icon library. Specifically, it can be based on an SVG (Scalable Vector Graphics) file provided by the business user, which can be obtained by drawing an icon path hand-drawn by the business user through a handwriting tablet. After obtaining the SVG file, the hand-drawn path is extracted from it, and a personalized page font icon is made through a font icon tool.

[0094] In this embodiment, the page font icon library preset by the corresponding business user is queried according to the user identifier obtained from the page generation request, and the corresponding page font icon is obtained from the page font icon library according to the page element information. The grid is processed by the obtained page font icon, that is, the page font icon is added to the corresponding grid to obtain the configuration page. By presetting the page font icon library, the business user can customize the icon elements in the page to meet the various needs of the business user, such as the need for myopia to display icon elements with larger fonts.

[0095] In one embodiment, Figure 4 As shown, a page generation method is provided, comprising the following steps:

[0096] Step S401: receiving a page generation request, determining a page type according to the page generation request and obtaining page data to be displayed;

[0097] Step S402: querying a preset page template library;

[0098] Step S403: acquiring a page template corresponding to the page type from a page template library, wherein the page template includes a plurality of grids;

[0099] Step S404: extracting the user ID from the page generation request;

[0100] Step S405: querying a user tag corresponding to the user identifier, where the user tag is obtained based on user feature information extracted from user data corresponding to the user identifier;

[0101] Step S406: Switch the page style of the page template according to the user tag, and use the switched page template as the page template.

[0102] In this embodiment, a page generation request sent by a terminal user is received, and identification information related to the business system is extracted from it, and the corresponding page type is determined according to the identification information. On the other hand, a link address of the page data to be displayed is extracted from the page generation request, and the page data to be displayed is obtained according to the link address. A preset page template library is queried, and the page type is matched in the page template library, so as to obtain a page template corresponding to the page type, and then a page is generated based on the page template.

[0103] After obtaining the page template corresponding to the business system, extract the user ID from the page generation request. The user ID includes identification information such as user account name, name, and ID number. According to the user ID, determine the corresponding business user, and query the user tag of the business user. The user tag is feature information obtained by extracting user feature information from user data corresponding to the user ID. According to the user tag, switch the page style of the obtained page template, thereby personalizing the page style of the page template.

[0104] Step S407: reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0105] Step S408: modifying the grid parameters of the grid in the page template according to the grid parameter information to obtain a grid after the parameters are modified, wherein the grid parameters include a grid size and a grid margin;

[0106] Step S409: adding the page elements to the grid after parameter modification according to the page element information to obtain a configuration page;

[0107] Step S410: Generate a page according to the configuration page and the page data to be displayed.

[0108] After obtaining the page template, the grid in the page template is processed according to the configuration file corresponding to the page. Specifically, the configuration file corresponding to the page template is queried; when a configuration update request message is received, the grid configuration information in the configuration file is modified according to the configuration update request message to obtain the updated grid configuration information; an updated configuration file is generated according to the updated grid configuration information, and the updated configuration file is used as the configuration file. The grid configuration information includes grid parameter information and page element information. The grid parameters of the grid in the page template are first modified according to the grid parameter information, including modifying the grid size and grid margins of each grid in the page template. The grid margins may include inner and outer margins to make the design of each grid in the page template more reasonable. After modifying the grid parameters of the grid, the corresponding page elements are obtained according to the page element information, and the obtained page elements are added to the grid after the parameters are modified to obtain the configuration page.

[0109] Wherein, the page elements include page font icons. When adding the page elements to the grid after parameter modification, it includes: querying the preset page font icon library corresponding to the user identifier; obtaining the page font icon from the page font icon library according to the page element information; adding the page font icon to the grid after parameter modification to obtain the configuration page. After obtaining the configuration page after grid processing, add the page data to be displayed to the corresponding grid in the configuration page, thereby obtaining the page and displaying the page.

[0110] It should be understood that although Figure 2-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0111] In one embodiment, Figure 5 As shown, a page generation device is provided, including: a page request receiving module 501, a page template obtaining module 503, a configuration file reading module 505, a configuration page generating module 507 and a page generating module 509, wherein:

[0112] The page request receiving module 501 is used to receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0113] The page template acquisition module 503 is used to acquire a corresponding preset page template according to the page type, and the page template includes multiple grids;

[0114] The configuration file reading module 505 is used to read the configuration file corresponding to the page template, and the configuration file records the grid configuration information corresponding to the grid in the page template;

[0115] The configuration page generating module 507 is used to perform grid processing on the grid in the page template according to the grid configuration information to obtain the configuration page;

[0116] The page generation module 509 is used to generate a page according to the configuration page and the page data to be displayed.

[0117] The above-mentioned page generation device determines the page type according to the page generation request received by the page request receiving module, obtains the corresponding page template including multiple grids according to the page type through the page template obtaining module, configures the page after processing the grid in the page template according to the grid configuration information in the configuration file through the configuration page generation module, and finally generates the page by combining the configuration page and the to-be-displayed page data obtained according to the page generation request. In the page generation process, the configuration file is used to realize the rapid processing of the rasterized page template corresponding to the page generation request, simplifying the page layout process, and generating a page that meets the requirements in combination with the to-be-displayed page data, thereby improving the page generation efficiency.

[0118] In one embodiment, the page template acquisition module 503 includes a page template library query unit and a page template acquisition unit, wherein: the page template library query unit is used to query a preset page template library; the page template acquisition unit is used to acquire a page template corresponding to the page type from the page template library.

[0119] In one embodiment, it also includes a page requirement acquisition module, a grid parameter determination module, a page template generation module and a page template library construction module, wherein: the page requirement acquisition module is used to obtain the business page requirements of the business system, and the business page requirements include the page size and the number of page divisions; the grid parameter determination module is used to determine the number of grids and the grid position of the grid according to the page size and the number of page divisions; the page template generation module is used to generate a page template corresponding to the page type according to the number of grids and the grid position; the page template library construction module is used to obtain the page template library according to each page template.

[0120] In one embodiment, it also includes a user identification extraction module, a user tag query module and a page style switching module, wherein: the user identification extraction module is used to extract the user identification from the page generation request; the user tag query module is used to query the user tag corresponding to the user identification, and the user tag is obtained based on the user feature information extracted from the user data corresponding to the user identification; the page style switching module is used to switch the page style of the page template according to the user tag, and use the switched page template as the page template.

[0121] In one embodiment, it also includes a configuration file query module, a grid configuration information update module and a configuration file update module, wherein: the configuration file query module is used to query the configuration file corresponding to the page template; the grid configuration information update module is used to modify the grid configuration information in the configuration file according to the configuration update request message when receiving the configuration update request message, so as to obtain the updated grid configuration information; the configuration file update module is used to generate an updated configuration file according to the updated grid configuration information, and use the updated configuration file as the configuration file.

[0122] In one embodiment, the grid configuration information includes grid parameter information and page element information; the configuration page generation module 507 includes a grid parameter update unit and a configuration page generation unit, wherein: the grid parameter update unit is used to modify the grid parameters of the grid in the page template according to the grid parameter information to obtain the grid after the parameters are modified, and the grid parameters include the grid size and the grid margin; the configuration page generation unit is used to add the page elements to the grid after the parameters are modified according to the page element information to obtain the configuration page.

[0123] In one embodiment, the page element includes a page font icon; the configuration page generation unit includes a font icon library query subunit, a page font icon acquisition subunit and a configuration page generation subunit, wherein: the font icon library query subunit is used to query the page font icon library preset corresponding to the user identifier; the page font icon acquisition subunit is used to obtain the page font icon from the page font icon library according to the page element information; the configuration page generation subunit is used to add the page font icon to the grid after the parameters are modified to obtain the configuration page.

[0124] The specific definition of the page generation device can be found in the definition of the page generation method above, which will not be repeated here. Each module in the above page generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0125] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a page generation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0126] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0128] Receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0129] Obtaining a corresponding preset page template according to the page type, the page template including multiple grids;

[0130] Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0131] Perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0132] Generate a page based on the configuration page and the page data to be displayed.

[0133] In one embodiment, when the processor executes the computer program, the following steps are also implemented: querying a preset page template library; and acquiring a page template corresponding to the page type from the page template library.

[0134] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the business page requirements of the business system, the business page requirements including the page size and the number of page divisions; determining the number of grids and the grid position of the grid according to the page size and the number of page divisions; generating a page template corresponding to the page type according to the number of grids and the grid position; and obtaining a page template library according to each page template.

[0135] In one embodiment, when the processor executes the computer program, the following steps are also implemented: extracting a user identifier from a page generation request; querying a user tag corresponding to the user identifier, where the user tag is obtained based on user feature information extracted from user data corresponding to the user identifier; switching the page style of the page template based on the user tag, and using the switched page template as the page template.

[0136] In one embodiment, when the processor executes the computer program, the following steps are also implemented: querying the configuration file corresponding to the page template; when receiving a configuration update request message, modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information; generating an updated configuration file according to the updated grid configuration information, and using the updated configuration file as the configuration file.

[0137] In one embodiment, the grid configuration information includes grid parameter information and page element information; when the processor executes the computer program, the following steps are also implemented: modifying the grid parameters of the grid in the page template according to the grid parameter information to obtain a grid after the parameters are modified, the grid parameters include the grid size and the grid margin; according to the page element information, adding the page elements to the grid after the parameters are modified to obtain a configuration page.

[0138] In one embodiment, the page element includes a page font icon; when the processor executes the computer program, the following steps are also implemented: querying a preset page font icon library corresponding to the user identifier; obtaining a page font icon from the page font icon library according to the page element information; adding the page font icon to the grid after the parameters are modified to obtain a configuration page.

[0139] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0140] Receive a page generation request, determine the page type according to the page generation request and obtain the page data to be displayed;

[0141] Obtaining a corresponding preset page template according to the page type, the page template including multiple grids;

[0142] Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template;

[0143] Perform grid processing on the grid in the page template according to the grid configuration information to obtain a configuration page;

[0144] Generate a page based on the configuration page and the page data to be displayed.

[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: querying a preset page template library; and acquiring a page template corresponding to the page type from the page template library.

[0146] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the business page requirements of the business system, the business page requirements including the page size and the number of page divisions; determining the number of grids and the grid position of the grid according to the page size and the number of page divisions; generating a page template corresponding to the page type according to the number of grids and the grid position; and obtaining a page template library according to each page template.

[0147] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: extracting a user identifier from a page generation request; querying a user tag corresponding to the user identifier, where the user tag is obtained based on user feature information extracted from user data corresponding to the user identifier; switching the page style of the page template based on the user tag, and using the switched page template as the page template.

[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: querying the configuration file corresponding to the page template; when receiving a configuration update request message, modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information; generating an updated configuration file according to the updated grid configuration information, and using the updated configuration file as the configuration file.

[0149] In one embodiment, the grid configuration information includes grid parameter information and page element information; when the computer program is executed by the processor, the following steps are also implemented: modifying the grid parameters of the grid in the page template according to the grid parameter information to obtain a grid after the parameters are modified, the grid parameters include the grid size and the grid margin; according to the page element information, adding the page elements to the grid after the parameters are modified to obtain a configuration page.

[0150] In one embodiment, the page element includes a page font icon; when the computer program is executed by the processor, the following steps are also implemented: querying a preset page font icon library corresponding to the user identifier; obtaining a page font icon from the page font icon library according to the page element information; adding the page font icon to the grid after the parameters are modified to obtain a configuration page.

[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A page generation method, the method comprising: Receiving a page generation request, determining a page type according to the page generation request and obtaining page data to be displayed; Querying a preset page template library, and acquiring a page template corresponding to the page type from the page template library, wherein the page template includes a plurality of grids; Extracting a user ID from the page generation request; the user ID is an ID corresponding to the user accessing the page; Querying a user tag corresponding to the user identifier, wherein the user tag is obtained based on user feature information extracted from user data corresponding to the user identifier; The user tags corresponding to the user identifiers are sorted according to a certain rule, the user tags with the first order are selected to switch the page style of the page template, and the switched page template is used as the page template; Reading a configuration file corresponding to the page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template, wherein the grid configuration information includes grid parameter information and page element information; Modify the grid parameters of the grid in the page template according to the grid parameter information to obtain a grid after parameter modification, wherein the grid parameters include a grid size and a grid margin; Querying a preset page font icon library corresponding to the user identifier; Acquire a page font icon from the page font icon library according to the page element information; Adding the page font icon to the grid after the parameter modification to obtain a configuration page; Generate a page according to the configuration page and the page data to be displayed; Before querying the preset page template library, the method further includes: According to the business process rules of the business system and the business data involved in the business process rules, the page size and the number of page divisions are determined to obtain the business page requirements corresponding to the business system; Calculate the number of grids and grid positions of the grid according to the page size and the number of page divisions included in the business page requirement; Adding a grid identifier to the grid according to the grid position; the grid identifier is used to query and process the grid when adding page data to the grid; Generate a page template corresponding to the page type according to the grid quantity and the grid position; The page template library is obtained according to each of the page templates.

2. The method according to claim 1, characterized in that The step of determining the page type according to the page generation request and obtaining the page data to be displayed comprises: Acquire identification information related to the business system from the page generation request; Determine the page type corresponding to the page generation request according to the identification information; The link address of the page data to be displayed is extracted from the page generation request, and the page data to be displayed is acquired according to the link address.

3. The method according to claim 1, characterized in that The querying of a preset page template library and obtaining a page template corresponding to the page type from the page template library includes: A page template corresponding to the page type is obtained by performing type matching with a template mapping form in the page template library.

4. The method according to claim 1, characterized in that: The page size is determined based on the resolution ratio requirement of each video playback window in the business system.

5. The method according to any one of claims 1 to 4, characterized in that: Before the step of reading the configuration file corresponding to the page template, the method further includes: Querying a configuration file corresponding to the page template; When receiving a configuration update request message, modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information; An updated configuration file is generated according to the updated grid configuration information, and the updated configuration file is used as the configuration file.

6. The method according to claim 5, characterized in that The step of modifying the grid configuration information in the configuration file according to the configuration update request message to obtain updated grid configuration information comprises: According to the grid parameter update information and the page element update information included in the configuration update request message, the grid configuration information is modified and replaced to obtain updated grid configuration information.

7. The method according to claim 1, characterized in that The page partition number refers to the number of modules into which the to-be-generated page needs to be divided.

8. A page generating device, characterized in that: The device comprises: A page request receiving module, used for receiving a page generation request, determining a page type according to the page generation request and obtaining page data to be displayed; A page template acquisition module, used for querying a preset page template library, and acquiring a page template corresponding to the page type from the page template library, wherein the page template includes a plurality of grids; A user identification extraction module is used to extract a user identification from the page generation request; the user identification is an identification corresponding to the page access user; A user tag query module, used to query the user tag corresponding to the user identifier, wherein the user tag is obtained based on user feature information extracted from user data corresponding to the user identifier; A page style switching module, used to sort the user tags corresponding to the user identifier according to a certain rule, select the user tag with the first order to switch the page style of the page template, and use the switched page template as the page template; A configuration file reading module, used to read a configuration file corresponding to a page template, wherein the configuration file records grid configuration information corresponding to the grid in the page template, wherein the grid configuration information includes grid parameter information and page element information; A configuration page generation module is used to modify the grid parameters of the grid in the page template according to the grid parameter information to obtain the grid after the parameters are modified, wherein the grid parameters include the grid size and the grid margin; query the preset page font icon library corresponding to the user identifier; obtain the page font icon from the page font icon library according to the page element information; add the page font icon to the grid after the parameters are modified to obtain the configuration page; A page generation module, used to generate a page according to the configuration page and the page data to be displayed; A page template generation module is used to determine the page size and the number of page divisions according to the business process rules of the business system and the business data involved in the business process rules before querying the preset page template library, so as to obtain the business page requirements corresponding to the business system; calculate the number of grids and the grid position of the grid according to the page size and the number of page divisions included in the business page requirements; add a grid identifier to the grid according to the grid position; the grid identifier is used to query and process the grid when adding page data to the grid; generate a page template corresponding to the page type according to the number of grids and the grid position; The page template library construction module is used to obtain the page template library according to each of the page templates.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.