Page generation method and device and computer readable storage medium

By receiving user identification and matching target interactive interface and display elements, pages are generated based on target database configuration information, and the problem of pages cannot be personalized and inefficient in the existing technology is solved, and dynamically generated and efficiently updated HTML5 pages are achieved.

CN118963747APending Publication Date: 2024-11-15BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310545331.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The HTML5 pages generated in the prior art cannot meet the user's personalized needs, and the page generation efficiency is low. Once the page template is determined, it is difficult to update, and it needs to be republished and restarted to take effect.

Method used

By receiving the user's identity, determining the user type, and matching the target interactive interface and display elements, a page is generated based on the target database configuration information. The client generates the target page based on the page generation information, avoiding the need to fixed page templates and restart the server.

Benefits of technology

It realizes dynamic generation of different pages according to user type, meets personalized needs, and improves page generation efficiency. Users can update pages by reselecting the interactive interface and display elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963747A_ABST
    Figure CN118963747A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a page generation method, which comprises the following steps of: receiving a request which is sent by a user and is used for generating a target page, and determining the type of the user based on an identifier of the user carried in the request; determining a target interaction interface and a target display element matched with the type of the user; wherein the target display element is displayed in the target page in a target form; based on the target database, determining first configuration information of the target interaction interface and second configuration information of the target display element; wherein the first configuration information represents the style of the target interaction interface; the second configuration information represents a display attribute of the target display element in the target page; and determining page generation information based on the first configuration information and the second configuration information, so that the client generates a target page based on the obtained page generation information. The embodiment of the invention further discloses page generation equipment and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The fifth generation of HyperText Markup Language 5 (HTML5) is the fifth generation of HTML official standard released by the Hypertext Markup Language (HTML) Working Group of the World Wide Web Consortium (W3C). HTML5 pages are widely used in the field of mobile development because of their cross-platform, high adaptability, good development experience, and compatibility with major browsers.

[0003] At present, the method of generating HTML5 pages mainly adopts the asynchronous rendering method, and the process is that the client initiates a page request to the server. After receiving the page request, the server extracts the business data according to the preset business logic, and then combines the preset HTML5 page template to integrate the business data and the page template into an HTML5 page, and then sends the HTML5 page to the client for rendering and display; however, in the process of implementation, the inventors found that there are at least the following problems in the prior art: the pages generated for different users are similar, so that the generated pages cannot meet the personalized needs of users; and the page template is not easy to modify after it is determined, and it needs to be republished, the server restarted, and the cache cleared before it can be updated, resulting in low page generation efficiency. Summary of the invention

[0004] To solve the above technical problems, the embodiments of the present application hope to provide a page generation method, device and computer-readable storage medium, which can solve the problem that the pages generated in the related technology cannot meet the personalized needs of users and the page generation efficiency is low.

[0005] The technical solution of this application is implemented as follows:

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

[0007] receiving a request for generating a target page sent by a user, and determining the type of the user based on an identifier of the user carried in the request;

[0008] Determine a target interaction interface and a target display element that match the type of the user; wherein the target display element is displayed in a target form in a target page;

[0009] Based on the target database, determine the first configuration information of the target interactive interface and the second configuration information of the target display element; wherein the first configuration information represents the style of the target interactive interface; and the second configuration information represents the display attribute of the target display element in the target page;

[0010] The page generation information is determined based on the first configuration information and the second configuration information, so that the client generates the target page based on the acquired page generation information.

[0011] A server, comprising: a first processor, a first memory and a first communication bus;

[0012] The first communication bus is used to realize the communication connection between the first processor and the first memory;

[0013] The first processor is used to execute the page generation program stored in the first memory to implement the steps of the above-mentioned page generation method.

[0014] A client, the client comprising: a second processor, a second memory, and a second communication bus;

[0015] The second communication bus is used to realize the communication connection between the second processor and the second memory;

[0016] The second processor is used to execute the page generation program stored in the second memory to implement the steps of the above-mentioned page generation method.

[0017] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the page generation method as described above.

[0018] Because by receiving a request sent by a user for generating a target page, and determining the type of user based on the user identifier carried in the request, and then determining the target interaction interface and target display element that match the user type, and the target display element is displayed in the target page in a target form, in this way, different users can determine different target interaction interfaces and target display elements, and the interaction interface and display element are not fixed; then, based on the target database, the first configuration information of the target interaction interface and the second configuration information of the target display element are determined, and the first configuration information represents the style of the target interaction interface, and the second configuration information represents the display attribute of the target display element in the target page, and the page generation information is determined based on the first configuration information and the second configuration information, so that for different users, the page generation information generated according to the first configuration information of the target interaction interface and the second configuration information of the target display element is also different, then after sending the page generation information to the client, the client can generate different target pages according to different page generation information, which overcomes the problem that the pages generated for different users in the prior art are similar and cannot meet the personalized needs of users; at the same time, there is no need for a fixed page template, and the final generated page can be updated by reselecting a new interaction interface and display element, thereby improving the page generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of a flow chart of a page generation method provided in an embodiment of the present application;

[0020] Figure 2 A flowchart of another page generation method provided in an embodiment of the present application;

[0021] Figure 3 A flowchart of another page generation method provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of configuring a target interactive interface in a page generation method provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of configuring a target display element in a page generation method provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of a process for generating page generation information in a page generation method provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of a process for generating a target page in a page generation method provided in an embodiment of the present application;

[0026] Figure 8A flowchart of another page generation method provided in an embodiment of the present application;

[0027] Fig. 9 A schematic diagram of a module for generating a target page in a page generation method provided in an embodiment of the present application;

[0028] Fig.10 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0029] Fig.11 A schematic diagram of the structure of a client provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0031] 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.

[0032] The present application embodiment provides a page generation method, which can be applied to a server, referring to Figure 1 As shown, the method comprises the following steps:

[0033] Step 101: Receive a request sent by a user for generating a target page, and determine the type of the user based on the user identifier carried in the request.

[0034] The request may refer to a request for generating a target page, and the request carries a user identifier; the user identifier may be used to uniquely identify the user.

[0035] In an embodiment of the present application, a request sent by a user for generating a target page can be received in real time, and the request for generating the target page can be analyzed, and then the user's identifier can be obtained from the request for generating the target page; after obtaining the user's identifier, the user's identifier can be analyzed to determine the user's type.

[0036] In a feasible implementation, the user identifier may be the user's name or the account corresponding to the user, and the user's type may represent the user's level or the user's authority; that is, the user's type may refer to an ordinary user or a member (Very Important Person, VIP) user; the server may pre-store the name of the VIP user, and after determining the user's name, the user's name may be matched with the stored name of the VIP user. When the user's name matches the stored name of the VIP user, the user's type is determined to be a VIP user; when the user's name does not match the stored name of the VIP user, the user's type is determined to be an ordinary user.

[0037] Step 102: Determine a target interaction interface and a target display element that match the user type.

[0038] Among them, the target display element is displayed in the target page in the form of a target.

[0039] In an embodiment of the present application, the target interaction interface may refer to an interface with interactive behavior, and different target interaction interfaces may interact with each other; in a feasible implementation, the target interaction interface may refer to a canvas of a target type.

[0040] In the embodiment of the present application, a target interactive interface matching the user type can be determined from the interactive interfaces to be selected, and a target display element matching the user type can be determined from the display elements to be selected; wherein the interactive interface to be selected can be pre-set based on historical data, and there are multiple types of interactive interfaces in the interactive interface to be selected; the display elements to be selected can also be pre-set based on historical data, and there are multiple display elements in the display elements to be selected. It should be noted that different types of users can correspond to different target interactive interfaces and target display elements.

[0041] Step 103: Determine first configuration information of a target interactive interface and second configuration information of a target display element based on a target database.

[0042] The first configuration information represents the style of the target interactive interface; the second configuration information represents the display attribute of the target display element in the target page.

[0043] In an embodiment of the present application, the target database may be a database composed of configuration information of the interaction interface to be selected and configuration information of the display element to be selected, and the target database may also be preset in advance based on historical data; there may be multiple target display elements in a target interaction interface.

[0044] In an embodiment of the present application, the target interaction interface can be configured according to the target database to obtain the first configuration information, and the target display element can be configured according to the target database to obtain the second configuration information; it should be noted that the configuration information of the target display element can be dynamically acquired from the target database, so that the configuration information of the target display element displayed in different target interaction interfaces is also different, thereby improving the intelligence of the generated page.

[0045] Step 104: determine page generation information based on the first configuration information and the second configuration information, so that the client generates a target page based on the acquired page generation information.

[0046] The page generation information may refer to information having a target format.

[0047] In an embodiment of the present application, the first configuration information and the second configuration information can be processed to obtain page generation information. Specifically, the first configuration information and the second configuration information can be summarized first, and then the summarized configuration information can be formatted to obtain page generation information; in a feasible implementation method, the page generation information can refer to information in JSON format.

[0048] In an embodiment of the present application, the server can send page generation information to the client, wherein the page generation information is used by the client to generate a target page based on the page generation information; specifically, after generating the page generation information, the server can send the page generation information to the client in real time, so that the client can generate the target page based on the page generation information.

[0049] The page generation method provided in the embodiment of the present application can determine different target interaction interfaces and target display elements for different users, and the interaction interface and display elements are not fixed, and for different users, the page generation information generated according to the first configuration information of the target interaction interface and the second configuration information of the target display element is also different. After sending the page generation information to the client, the client can generate different target pages according to different page generation information, which overcomes the problem in the prior art that the pages generated for different users are similar and cannot meet the personalized needs of users; at the same time, there is no need for a fixed page template, and the final generated page can be updated by reselecting a new interaction interface and display element, thereby improving the page generation efficiency.

[0050] Based on the above embodiments, the present application provides a page generation method, which can be applied to a client. Figure 2 As shown, the method comprises the following steps:

[0051] Step 201: Send a request for generating a target page to a server.

[0052] The request carries the user's ID.

[0053] In an embodiment of the present application, the client may send a request for generating a target page to the server in real time, so that the server performs corresponding processing based on the request.

[0054] Step 202: Receive page generation information sent by the server.

[0055] Among them, the page generation information is generated by the server based on the first configuration information of the target interaction interface matching the user's identifier and the second configuration information of the target display element matching the user's identifier, and the first configuration information and the second configuration information are determined by the server based on the target database.

[0056] In the embodiment of the present application, the page generation information sent by the server can be received in real time so that the page generation information can be processed to generate a target page.

[0057] Step 203: parse the page generation information to obtain first configuration information and second configuration information.

[0058] In an embodiment of the present application, the page generation information includes first configuration information of the target interactive interface and second configuration information of the target display element; the client can use a page drawing module to parse the configuration information of the target interactive interface and the configuration information of the target display element in parallel, thereby obtaining the first configuration information and the second configuration information, thereby increasing the speed of generating the target page.

[0059] In a feasible implementation, the page drawing module may be generated by using the Javascript language, or by using the WebAssembly language; of course, other languages ​​may also be used to generate the page drawing module.

[0060] Step 204: Process the first configuration information and the second configuration information to generate a target page.

[0061] In an embodiment of the present application, a page drawing module may be used to render the first configuration information and the second configuration information, thereby generating a target page.

[0062] It should be noted that when generating the target page, the page drawing module can also summarize the styles of multiple target display elements, and then generate a style plug-in to insert into the target page; in this way, the style can be reused, thereby reducing the workload of drawing; the page drawing module can be implanted in the client in advance, so that the server only needs to send page generation information to the client, thereby improving rendering performance.

[0063] According to the page generation method provided in the embodiment of the present application, the client can receive different page generation information corresponding to different users, and parse the different page generation information to obtain first configuration information of different target interaction interfaces and second configuration information of different target display elements. Then, after rendering the first configuration information of different target interaction interfaces and the second configuration information of different target display elements, different target pages can be generated, which overcomes the problem in the prior art that the pages generated for different users are similar and cannot meet the personalized needs of users. At the same time, there is no need for a fixed page template, and the final generated page can be updated by reselecting a new interaction interface and display element, thereby improving the page generation efficiency.

[0064] Based on the above embodiments, the present application provides a method for generating a page. Figure 3 As shown, the method comprises the following steps:

[0065] Step 301: The client sends a request for generating a target page to the server.

[0066] The request carries the user's ID.

[0067] Step 302: The server receives a request sent by a user for generating a target page, and determines the type of the user based on the user identifier carried in the request.

[0068] Step 303: The server determines a target interaction interface that matches the user type from the interaction interfaces to be selected.

[0069] In the embodiment of the present application, a specific type of interaction interface can be selected from the candidate interaction interfaces as the target interaction interface according to the type of user.

[0070] In a feasible implementation, the selected interactive interfaces may include a banner type interactive interface, a flatview type interactive interface, and a scroll type interactive interface. When the user is a VIP user, a banner type interactive interface may be selected from the selected interactive interfaces as the target interactive interface. Figure 4 and Figure 5 In the target page shown, the target interaction interface may refer to a banner type interface.

[0071] Step 304: The server receives element selection indication information sent by the user.

[0072] The element selection indication information may refer to information used to select an element.

[0073] In an embodiment of the present application, element selection indication information sent by a user may be received in real time, so as to subsequently determine a target display element based on the element selection indication information.

[0074] Step 305: The server selects a target display element from the display elements to be selected based on the element selection indication information.

[0075] In the embodiment of the present application, the element selection indication information can be analyzed to select a target display element from the candidate display elements; in this way, the personalized needs of the user can be met with the element as the granularity.

[0076] In a feasible implementation, the display elements to be selected can be stored in Figure 4 and Figure 5 In the addable module shown, the target display element can be stored in Figure 4 and Figure 5 In the added module shown in FIG. 1 , a target display element can be selected from the display elements to be selected based on the element selection indication information, and the selected target display element will appear in the added module; wherein the target display element can refer to Figure 4 and Figure 5 The product image, corner mark, product name, promotional label and real-time price are shown.

[0077] Step 306: The server configures the style of the target interactive interface based on the target database to obtain first configuration information.

[0078] In the embodiment of the present application, the style of the target interactive interface can be configured by determining the configuration information of the style of the target interactive interface from the target database to obtain the first configuration information; in a feasible implementation method, the target interactive interface to be configured can be selected, referring to Figure 4 As shown, you can select the target interaction interface and then configure it. The size of the target interaction interface is configured to 330×600, the background type of the target interaction interface is configured to background color, the background color of the target interaction interface is configured to #ffffff, and the rounded corners of the target interaction interface are configured to 24px. In addition, you can also configure the jump behavior of the target interaction interface to respond to the client's request.

[0079] It should be noted that step 306 can be implemented in the following ways:

[0080] Step 306a1: The server determines a first identifier of a style of the target interactive interface.

[0081] The first identifier can be used to uniquely identify the style of the target interactive interface; the first identifier of the style of the target interactive interface can be set in advance, and the first identifier of the style of the target interactive interface set in advance is stored in the memory, and the server can obtain the first identifier of the style of the target interactive interface from the memory. In a feasible implementation, the first identifier of the style of the target interactive interface can be represented by a field, and then the first information can be determined from the target database based on the field of the style.

[0082] Step 306a2: The server determines first information matching the first identifier from the target database to obtain first configuration information.

[0083] The first information may refer to information in the target database that matches the first identifier.

[0084] In an embodiment of the present application, the first identifier can be matched with a target database. If first information matching the first identifier exists in the target database, the first information corresponding to the first identifier is obtained from the target database to obtain the first configuration information.

[0085] It should be noted that the first configuration information stores the style information of the target interactive interface; in a feasible implementation, the identifier of the first configuration information can be represented by canvasConfig, and the type of the first configuration information and the type of the target database can be JSON type.

[0086] Step 307: The server configures the style and position of the target display element based on the target database to obtain second configuration information.

[0087] Among them, the style of the target display element stipulates the style in which the target display element is displayed (i.e., the display style, type) and the display form of the target display element (styleInfo), and different host (browser or application (Application, APP)) environments can select the style of the target display element for parsing and display according to actual conditions; the position of the target display element (posInfo) stipulates the specific position of the target display element in the target interactive interface, and the position of the target display element can be arbitrarily configured to meet different display needs.

[0088] In the embodiment of the present application, the configuration information of the style and the configuration information of the position of the target display element can be determined from the target database, and the style and the position of the target display element can be configured to obtain the second configuration information.

[0089] In a possible implementation, reference may be made to Figure 5As shown, select the product image that needs to be configured, and then configure it. The selection style of the product image can be configured as the default style, the position of the product image can be configured as (0, 0), the size of the product image can be configured as 330×330, the rounded corners of the product image can be configured as 18px, and the background color of the product image can be configured as #ffffff.

[0090] It should be noted that the display form of the target display element can be text, image, price, tag group or video, among which text is used to display a text message; image is used to display a picture; price is used to display price information (commonly used in the e-commerce field); tag group displays a group of tags, which are used to list the characteristics of things; video is used to display and play video resources. The display form of the target display element can refer to the background image or background color, border size and color, text color and image rounded corners (i.e., simulating a circle or other shape) of the target display element, among which the background image or background color, border size and color, text color and image rounded corners of the target display element are all string types, and the identifier of the background image or background color can be represented by the field bgInfo, the identifier of the border size and color can be represented by the field border, the identifier of the text color can be represented by the field textColor, and the identifier of the image rounded corners can be represented by the field borderRadius.

[0091] It should be noted that the position of the target display element includes the display width of the target display element, the display height of the target display element, the horizontal coordinate of the target display element and the vertical coordinate of the target display element, wherein the display width, display height, horizontal coordinate and vertical coordinate of the target display element are all digital types, and the identification of the display width of the target display element can be represented by the field width, the identification of the display height of the target display element can be represented by the field height, the identification of the horizontal coordinate of the target display element can be represented by the field x, and the identification of the vertical coordinate of the target display element can be represented by the field y.

[0092] It should be noted that step 307 can be implemented in the following ways:

[0093] Step 307b1: The server determines a second identifier of the style of the target display element and a third identifier of the position of the target display element.

[0094] In an embodiment of the present application, the second identifier can be used to uniquely identify the style of the target display element; the second identifier of the style of the target display element and the third identifier of the position of the target display element can be preset in advance, and the preset second identifier of the style of the target display element and the preset third identifier of the position of the target display element are stored in a memory, and the server can obtain the second identifier of the style of the target display element and the third identifier of the position of the target display element from the memory.

[0095] Step 307b2: The server determines the second information matching the second identifier from the target database, and determines the third information matching the third identifier from the target database.

[0096] The second information may refer to information in the target database that matches the second identifier, and the third information may refer to information in the target database that matches the third identifier.

[0097] In an embodiment of the present application, the second identifier can be matched with the target database. If second information matching the second identifier exists in the target database, the second information corresponding to the second identifier is obtained from the target database. The third identifier can be matched with the target database. If third information matching the third identifier exists in the target database, the third information corresponding to the third identifier is obtained from the target database.

[0098] Step 307b3: The server obtains second configuration information based on the second information and the third information.

[0099] In the embodiment of the present application, the second information and the third information may be aggregated to obtain the second configuration information.

[0100] Step 308: The server determines page generation information based on the first configuration information and the second configuration information.

[0101] Step 309: The server sends page generation information to the client.

[0102] The page generation information is used by the client to generate a target page based on the page generation information.

[0103] Step 310: The client receives the page generation information sent by the server.

[0104] Among them, the page generation information is generated by the server based on the first configuration information of the target interaction interface matching the user's identifier and the second configuration information of the target display element matching the user's identifier, and the first configuration information and the second configuration information are determined by the server based on the target database.

[0105] In other embodiments of the present application, the specific process of the server generating page generation information (ie, information in JSON format) can be referred to Figure 6 As shown: first, a target interactive interface (i.e., a container canvas of a specific type) matching the user type is selected. It should be noted that the type of the container canvas determines the interactive behavior between the container canvases; then the target interactive interface can be selected for configuration, and the information source (datapath) of the configuration information can be bound to generate the first configuration information (i.e., canvas configuration information); then a target display element (i.e., a set of elements to be displayed) matching the user type is selected, and the target display element can be configured by selecting it, and the information source of the second configuration information of the target display element can be bound to generate the second configuration information (i.e., element configuration information); after obtaining the first configuration information and the second configuration information, the first configuration information and the second configuration information are verified to determine whether the size configuration information in the first configuration information and the position configuration information in the second configuration information meet the preset matching condition (i.e., whether the canvas / element configuration information is abnormal); if the preset matching condition is met, the first configuration information and the second configuration information are summarized to generate the page generation information; if the preset matching condition is not met, the size configuration information or the position configuration information can be modified; then the first configuration information and the second configuration information can be summarized and format converted to generate the page generation information.

[0106] Step 311: The client uses the target plug-in to parse the page generation information to obtain the first configuration information and the second configuration information.

[0107] The target plug-in may refer to a plug-in having a function of parsing page generation information; in a feasible implementation, the target plug-in may refer to a style parsing plug-in.

[0108] In an embodiment of the present application, before using the target plug-in to parse the page generation information, the page drawing module needs to be initialized. Then, when the page generation information needs to be parsed, the target plug-in can be triggered, and then the target plug-in is used to cyclically parse the page generation information to obtain the first configuration information and the second configuration information.

[0109] It should be noted that the client can also be provided with a monitoring plug-in and an attribute plug-in. In this way, by setting different plug-ins, specialized operations can be performed on the target page, and different plug-ins can process their own logic during the drawing process without affecting each other, thereby achieving a hot-swappable effect.

[0110] Step 312: The client processes the first configuration information and the second configuration information to generate a target page.

[0111] In the embodiment of the present application, the page drawing module renders the first configuration information of each target interactive interface and the second configuration information of the target display element in the target interactive interface one by one to obtain the target page.

[0112] It should be noted that the second configuration information in a target interaction interface can be represented by floorInfo, and the target page is formed by stacking multiple target interaction interfaces. A target page can be abstracted into an array composed of the second configuration information in multiple target interaction interfaces, named floorList.

[0113] In a feasible implementation, the specific process of the client generating the target page can be referred to Figure 7 As shown, the page drawing module can be initialized by the initialization module first, and then the parsing module can be used to parse each page generation information in a loop parsing manner, that is, for one page generation information (that is, information in JSON format), the first configuration information (that is, canvas configuration information) and the second configuration information (that is, element configuration information) can be parsed in parallel, and then each target interaction interface is initialized (that is, when the target interaction interface is a carousel-type interaction interface, the carousel cycle and delay can be set, etc.), and a listening plug-in is used to listen to related events (such as listening to click events, listening to mouse events, and listening to scrolling events, etc.), and the information source of the second configuration information of the target display element needs to be bound; then the target display element is rendered to the target interaction interface, and then each target interaction interface is rendered to the page, until all the obtained page generation information is fully parsed, the target page can be obtained. In this way, there is no need to write fixed page templates in advance to achieve functional diversity, and there is no need to restart the server, clean up the content delivery network (CDN) cache, etc. to update the client page; and because there is no need for fixed page templates, software developers only need to complete part of the page construction process, and no longer need to develop new templates to meet different needs, which liberates productivity and achieves twice the result with half the effort; in addition, page changes can be returned to the client in real time, with high real-time performance.

[0114] In the page generation method provided in the embodiment of the present application, the server can select different target display elements for different users, thereby satisfying the personalized needs of users with elements as the granularity, and after the server generates different page generation information based on the first configuration information of the target interaction interface for different users and the second configuration information of the target display element, the server sends the page generation information to the client, and the client can use different target plug-ins to parse the page generation information, and the working processes of different target plug-ins will not affect each other, thereby achieving the effect of hot plugging, and then, the client can generate different target pages after rendering the first configuration information of different target interaction interfaces and the second configuration information of different target display elements.

[0115] Based on the above embodiments, the present application provides a method for generating a page. Figure 8 As shown, the method comprises the following steps:

[0116] Step 401: The client sends a request for generating a target page to the server.

[0117] The request carries the user's ID.

[0118] Step 402: The server receives a request sent by a user for generating a target page, and determines the type of the user based on the user identifier carried in the request.

[0119] Step 403: The server determines a target interaction interface that matches the user type from the interaction interfaces to be selected.

[0120] It should be noted that a target interaction interface can be regarded as a floor, and each floor has a floor identification (Identity, ID) used to uniquely identify the floor; in a feasible implementation method, the field of the target interaction interface can be floorId, and the type of the target interaction interface can be a digital type.

[0121] Step 404: The server receives element selection indication information sent by the user.

[0122] Step 405: The server selects a target display element from the display elements to be selected based on the element selection indication information.

[0123] Step 406: The server determines a first identifier of the style of the target interactive interface.

[0124] Step 407: The server determines first information matching the first identifier from the target database to obtain first configuration information.

[0125] Step 408: The server determines a second identifier of the style of the target display element and a third identifier of the position of the target display element.

[0126] Step 409: The server determines second information matching the second identifier from the target database, and determines third information matching the third identifier from the target database.

[0127] Step 410: The server obtains second configuration information based on the second information and the third information.

[0128] In an embodiment of the present application, the data of the target database includes static data and dynamic data, wherein the second configuration information of the target display element can be dynamically acquired based on the dynamic data, so that the target display element can be decoupled from the data and the reuse of the display element can be improved.

[0129] It should be noted that static data can refer to data that can directly specify the display content of the target display element. For example, if a text element displays a static text, the display content of the specified target display element can be specified through a static data source (dataPath); wherein, the static dataPath can be "a staticmessage". A special string "$" is set before the fields of dynamic data. Dynamic data indicates that the second configuration information of the target display element needs to be dynamically read from the target database; in a feasible implementation, {"skuName":"XX brand washing machine"} can be dynamically read from the target database through "$skuName"; wherein, "$skuName" refers to the dynamic dataPath.

[0130] Step 411: The server determines whether the size configuration information in the first configuration information and the position configuration information in the second configuration information meet a preset matching condition.

[0131] In an embodiment of the present application, it can be determined whether the size configuration information in the first configuration information and the position configuration information in the second configuration information meet the preset matching condition by judging whether the position represented by the position configuration information in the second configuration information is within the area represented by the size configuration information in the first configuration information.

[0132] It should be noted that after step 411, step 412 may be performed, or steps 413 to 415 may be performed:

[0133] Step 412: When the size configuration information and the position configuration information meet a preset matching condition, the server converts the formats of the first configuration information and the second configuration information to obtain page generation information.

[0134] In an embodiment of the present application, the size configuration information and the position configuration information satisfying a preset matching condition may refer to the area formed by the horizontal coordinate and the vertical coordinate of the position configuration information of the target display element being within the area formed by the size configuration information of the target interactive interface; when the position configuration information of the target display element is within the range included in the size configuration information of the target interactive interface, the first configuration information and the second configuration information may be directly converted into information in a target format, thereby obtaining page generation information; in a feasible implementation method, the target format may refer to a JSON format.

[0135] Step 413: When the size configuration information and the position configuration information do not satisfy a preset matching condition, the server modifies the position configuration information based on the size configuration information to obtain modified position configuration information.

[0136] In an embodiment of the present application, the failure of the size configuration information and the position configuration information to satisfy a preset matching condition may refer to the fact that the horizontal coordinate and the vertical coordinate in the position configuration information of the target display element are outside the range included in the size configuration information of the target interactive interface. At this time, it is necessary to adjust the position configuration information of the target display element according to the size configuration information of the target interactive interface, adjust the position configuration information of the target display element to within the range included in the size configuration information of the target interactive interface, and record the adjusted position configuration information of the target display element to obtain the adjusted position configuration information.

[0137] In a feasible implementation, when the size configuration information of the target interactive interface is 500×500 and the position configuration information of the target display element is (600, 100), it means that the size configuration information and the position configuration information do not meet the preset matching conditions. At this time, the position configuration information of the target display element needs to be modified.

[0138] Step 414: The server updates the second configuration information based on the modified location configuration information to obtain updated second configuration information.

[0139] In an embodiment of the present application, the location configuration information of the second configuration information before modification may be replaced by the location configuration information of the modified second configuration information to update the second configuration information and obtain the updated second configuration information.

[0140] Step 415: The server converts the formats of the first configuration information and the updated second configuration information to obtain page generation information.

[0141] In a feasible implementation manner, the formats of the first configuration information and the updated second configuration information may be converted into JSON format, thereby obtaining page generation information.

[0142] Step 416: The server sends page generation information to the client.

[0143] The page generation information is used by the client to generate a target page based on the page generation information.

[0144] Step 417: The client receives the page generation information sent by the server.

[0145] Among them, the page generation information is generated by the server based on the first configuration information of the target interaction interface matching the user's identifier and the second configuration information of the target display element matching the user's identifier, and the first configuration information and the second configuration information are determined by the server based on the target database.

[0146] Step 418: The client uses the target plug-in to parse the page generation information to obtain the first configuration information and the second configuration information.

[0147] Step 419: The client processes the first configuration information and the second configuration information to generate a target page.

[0148] In other embodiments of the present application, Fig. 9 The module for generating the target page by the client shown may include: an element generation module, a floor decoration module and a page drawing module; wherein the element generation module includes: a type submodule, a styleInfo submodule and a posInfo submodule; the floor decoration module includes: a target interaction interface identifier (i.e., a floor identifier (floorld)), first configuration information of the target interaction interface (i.e., canvas configuration information (canvasinfo)) and a second configuration information list of the target display element (i.e., an element configuration information list (elementList)); the page drawing module includes: an initialization module, a parsing module and a rendering module; specifically, the data generated by the type submodule, the styleInfo submodule and the posInfo submodule may be named elementinfo and sent to the floor decoration module, after which the floor decoration module summarizes the floor identifier, canvas configuration information and element configuration information list of each floor to generate page generation information (i.e., information in JSON format), and names the page generation information floorList and sends it to the page drawing module; the page drawing module processes the page generation information through the initialization module, the parsing module and the rendering module to generate the target page.

[0149] In the page generation method provided in the embodiment of the present application, the second configuration information of the target display element can be dynamically acquired based on dynamic data, thereby decoupling the target display element from the data and improving the reuse of the display element. After that, the server generates different page generation information based on the first configuration information of the target interaction interface for different users and the second configuration information of the target display element dynamically acquired based on the dynamic data, and then sends the page generation information to the client.

[0150] Based on the above embodiments, the embodiments of the present application provide a server, which can be applied to Figure 1 , 3 The page generation method provided in the embodiment corresponding to 8 is referred to Fig.10 As shown, the server 5 may include a first processor 51, a first memory 52 and a first communication bus 53;

[0151] The first communication bus 53 is used to realize the communication connection between the first processor 51 and the first memory 52;

[0152] The first processor 51 is used to execute the page generation program stored in the first memory 52 to implement the following steps:

[0153] receiving a request sent by a user for generating a target page, and determining the type of the user based on the user identifier carried in the request;

[0154] Determine a target interactive interface and a target display element that match the user type; wherein the target display element is displayed in the target page in a target form;

[0155] Based on the target database, determine the first configuration information of the target interactive interface and the second configuration information of the target display element; wherein the first configuration information represents the style of the target interactive interface; and the second configuration information represents the display attribute of the target display element in the target page;

[0156] Based on the first configuration information and the second configuration information, page generation information is determined so that the client generates a target page based on the acquired page generation information.

[0157] In other embodiments of the present application, the first processor 51 is used to execute the target interaction interface and target display element determined to match the user type in the first memory 52 to implement the following steps:

[0158] Determine a target interaction interface that matches the user type from among the candidate interaction interfaces;

[0159] Receiving element selection indication information sent by the user;

[0160] Based on the element selection indication information, a target display element is obtained by screening from the display elements to be selected.

[0161] In other embodiments of the present application, the first processor 51 is used to execute the first memory 52 to determine the first configuration information of the target interactive interface and the second configuration information of the target display element based on the target database, so as to implement the following steps:

[0162] Configuring the style of the target interactive interface based on the target database to obtain first configuration information;

[0163] The style and position of the target display element are configured based on the target database to obtain second configuration information.

[0164] In other embodiments of the present application, the first processor 51 is used to execute the configuration of the style of the target interactive interface based on the target database in the first memory 52 to obtain the first configuration information to implement the following steps:

[0165] Determine a first identifier of a style of a target interactive interface;

[0166] Determine first information matching the first identifier from the target database to obtain first configuration information;

[0167] In other embodiments of the present application, the first processor 51 is used to execute the configuration of the style and position of the target display element based on the target database in the first memory 52 to obtain the second configuration information to implement the following steps:

[0168] A second identifier for determining the style of the target display element and a third identifier for determining the position of the target display element;

[0169] Determine second information matching the second identifier from the target database, and determine third information matching the third identifier from the target database;

[0170] Based on the second information and the third information, second configuration information is obtained.

[0171] In other embodiments of the present application, the first processor 51 is used to execute the first memory 52 to determine the page generation information based on the first configuration information and the second configuration information to implement the following steps:

[0172] Determine whether the size configuration information in the first configuration information and the position configuration information in the second configuration information meet a preset matching condition;

[0173] When the size configuration information and the position configuration information meet a preset matching condition, the formats of the first configuration information and the second configuration information are converted to obtain page generation information.

[0174] In other embodiments of the present application, the first processor 51 is used to execute the page generation program stored in the first memory 52 to implement the following steps:

[0175] When the size configuration information and the position configuration information do not satisfy a preset matching condition, modifying the position configuration information based on the size configuration information to obtain modified position configuration information;

[0176] Updating the second configuration information based on the modified location configuration information to obtain updated second configuration information;

[0177] The formats of the first configuration information and the updated second configuration information are converted to obtain page generation information.

[0178] It should be noted that the specific implementation process of the steps executed by the server in this embodiment can refer to Figure 1 , 3 The implementation process of the page generation method provided in the embodiment corresponding to 8 will not be repeated here.

[0179] The server provided in the embodiment of the present application can determine different target interaction interfaces and target display elements for different users, and the interaction interfaces and display elements are not fixed, and for different users, the page generation information generated according to the first configuration information of the target interaction interface and the second configuration information of the target display element is also different. After sending the page generation information to the client, the client can generate different target pages according to different page generation information, which overcomes the problem in the prior art that the pages generated for different users are similar and cannot meet the personalized needs of users; at the same time, there is no need for a fixed page template, and the final generated page can be updated by reselecting a new interaction interface and display element, thereby improving the page generation efficiency.

[0180] Based on the above embodiments, the embodiments of the present application provide a client, which is applied to Figure 2 , 3 In the page generation method provided in the embodiment corresponding to 8, refer to Fig.11 As shown, the client 6 may include: a second processor 61, a second memory 62, and a second communication bus 63, wherein:

[0181] The second communication bus 63 is used to realize the communication connection between the second processor 61 and the second memory 62;

[0182] The second processor 61 is used to execute the page generation program in the second memory 62 to implement the following steps:

[0183] Sending a request for generating a target page to a server; wherein the request carries a user identifier;

[0184] Receiving page generation information sent by the server; wherein the page generation information is generated by the server based on first configuration information of a target interactive interface matching the user's identifier and second configuration information of a target display element matching the user's identifier, and the first configuration information and the second configuration information are determined by the server based on a target database;

[0185] Parsing the page generation information to obtain first configuration information and second configuration information;

[0186] The first configuration information and the second configuration information are processed to generate a target page.

[0187] In other embodiments of the present application, the first processor 61 is used to execute the parsing of the page generation information in the first memory 62 to obtain the first configuration information and the second configuration information to implement the following steps:

[0188] The target plug-in is used to parse the page generation information to obtain the first configuration information and the second configuration information.

[0189] It should be noted that the specific implementation process of the steps performed by the client in this embodiment can be referred to Figure 3 , 4 The implementation process of the page generation method provided in the embodiment corresponding to 8 will not be repeated here.

[0190] The client provided in the embodiment of the present application can receive different page generation information corresponding to different users, and the analysis of different page generation information can obtain first configuration information of different target interaction interfaces and second configuration information of different target display elements. Therefore, different target pages can be generated after rendering the first configuration information of different target interaction interfaces and the second configuration information of different target display elements. This overcomes the problem in the prior art that the pages generated for different users are similar and cannot meet the personalized needs of users. At the same time, there is no need for a fixed page template, and the final generated page can be updated by reselecting new interaction interfaces and display elements, thereby improving page generation efficiency.

[0191] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 , 2 , 3 and 8 correspond to the steps in the page generation method provided in the embodiments.

[0192] It should be noted that the above-mentioned computer-readable storage medium can 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), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0193] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0194] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0196] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of 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 generate 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.

[0197] 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.

[0198] 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.

[0199] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A page generation method, characterized in that: The method comprises: receiving a request for generating a target page sent by a user, and determining the type of the user based on an identifier of the user carried in the request; Determine a target interaction interface and a target display element that match the type of the user; wherein the target display element is displayed in a target form in a target page; Based on the target database, determine the first configuration information of the target interactive interface and the second configuration information of the target display element; wherein the first configuration information represents the style of the target interactive interface; and the second configuration information represents the display attribute of the target display element in the target page; The page generation information is determined based on the first configuration information and the second configuration information, so that the client generates the target page based on the acquired page generation information.

2. The method according to claim 1, characterized in that The determining of a target interaction interface and a target display element matching the type of the user includes: Determining the target interaction interface that matches the type of the user from the interaction interfaces to be selected; Receiving element selection indication information sent by the user; Based on the element selection indication information, the target display element is obtained by screening from the display elements to be selected.

3. The method according to claim 1, characterized in that The determining, based on the target database, the first configuration information of the target interactive interface and the second configuration information of the target display element includes: configuring the style of the target interactive interface based on the target database to obtain the first configuration information; The style and position of the target display element are configured based on the target database to obtain the second configuration information.

4. The method according to claim 3, characterized in that The configuring the style of the target interactive interface based on the target database to obtain the first configuration information includes: Determine a first identifier of a style of the target interactive interface; Determine first information matching the first identifier from the target database to obtain the first configuration information; Correspondingly, configuring the style and position of the target display element based on the target database to obtain the second configuration information includes: Determine a second identifier of the style of the target display element and a third identifier of the position of the target display element; Determine second information matching the second identifier from the target database, and determine third information matching the third identifier from the target database; The second configuration information is obtained based on the second information and the third information.

5. The method according to claim 1, characterized in that The determining page generation information based on the first configuration information and the second configuration information includes: Determine whether the size configuration information in the first configuration information and the position configuration information in the second configuration information meet a preset matching condition; In the case where the size configuration information and the position configuration information meet the preset matching condition, the formats of the first configuration information and the second configuration information are converted to obtain the page generation information.

6. The method according to claim 5, characterized in that The method further comprises: In a case where the size configuration information and the position configuration information do not satisfy the preset matching condition, modifying the position configuration information based on the size configuration information to obtain modified position configuration information; Updating the second configuration information based on the modified location configuration information to obtain updated second configuration information; The formats of the first configuration information and the updated second configuration information are converted to obtain the page generation information.

7. A page generation method, characterized in that: The method comprises: Sending a request for generating a target page to a server; wherein the request carries a user's identification; Receiving page generation information sent by a server; wherein the page generation information is generated by the server based on first configuration information of a target interactive interface matching the user's identifier and second configuration information of a target display element matching the user's identifier, and the first configuration information and the second configuration information are determined by the server based on a target database; Parsing the page generation information to obtain the first configuration information and the second configuration information; The first configuration information and the second configuration information are processed to generate the target page.

8. The method according to claim 7, characterized in that The parsing of the page generation information to obtain the first configuration information and the second configuration information includes: The target plug-in is used to parse the page generation information to obtain the first configuration information and the second configuration information.

9. A server, characterized in that: The server comprises: a first processor, a first memory and a first communication bus; The first communication bus is used to realize the communication connection between the first processor and the first memory; The first processor is used to execute the page generation program stored in the first memory to implement the steps of the page generation method according to any one of claims 1 to 6.

10. A client, characterized in that: The client comprises: a second processor, a second memory and a second communication bus; The second communication bus is used to realize the communication connection between the second processor and the second memory; The second processor is used to execute the page generation program stored in the second memory to implement the steps of the page generation method according to any one of claims 7 to 8.

11. A computer-readable storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the page generation method according to any one of claims 1 to 6 or 7 to 8.