Page generation method and device

By adjusting the data combination of page templates and server-side, dynamic adjustment of page layout is achieved, solving the problem that frequently adjusting page layout in the existing technology requires users to upgrade the client, saving costs and improving page maintenance.

CN113704671BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111041960.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2025-02-21
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

When the existing technology frequently adjusts the page layout, users need to upgrade the client, which makes it expensive and difficult to achieve dynamic adjustment.

Method used

Dynamic adjustment of page layout is achieved by adjusting page templates, the target template and floor data are determined using the server side, and the combined data is sent to the terminal to dynamically display pages with different layouts.

Benefits of technology

Dynamic adjustment of page layout can be achieved without the need for users to upgrade the client, saving upgrade costs, and reducing the cost of page changes, making the page easier to maintain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704671B_ABST
    Figure CN113704671B_ABST
Patent Text Reader

Abstract

The present invention discloses a page generation method and device, and relates to the field of computer technology. A specific implementation of the method includes: receiving a page access request from a first terminal; determining a target template corresponding to the page access request, wherein the target template is generated by configuring a second terminal; determining floor data of each target floor in the target template; combining each of the floor data to generate combined data corresponding to the target template, and sending the combined data to the first terminal. This implementation can achieve dynamic adjustment of the page layout by adjusting the page template without the user having to upgrade the client, thereby saving the cost required for the user to upgrade the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Many applications often organize marketing activities with different themes, which requires frequent dynamic adjustments to page layouts. Although native pages can fully utilize the hardware advantages of mobile devices, changes to native pages require the release of client upgrade programs, and users upgrade their clients through the upgrade programs. For applications with a large number of users, it is very difficult to get all users to upgrade their clients, and the upgrade cost is also very high. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a page generation method and device, which can realize dynamic adjustment of page layout by adjusting the page template without the need for users to upgrade the client, thus saving the cost required for upgrading the user client.

[0004] In a first aspect, an embodiment of the present invention provides a page generation method, which is applied to a server, and includes:

[0005] Receiving a page access request from a first terminal;

[0006] Determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal;

[0007] Determining floor data of each target floor in the target template;

[0008] The floor data are combined to generate combined data corresponding to the target template, and the combined data is sent to the first terminal.

[0009] Optionally, determining a target template corresponding to the page access request includes:

[0010] Obtaining the link address corresponding to the page access request;

[0011] Determine the target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by configuring the second terminal;

[0012] Execute the rule expression corresponding to the target rule to obtain an execution result;

[0013] According to the execution result, a target template corresponding to the page access request is determined.

[0014] Optionally, determining the floor data of each target floor in the target template includes:

[0015] Determine at least one target floor corresponding to the target template according to the floor binding information;

[0016] For each of the target floors: acquiring floor filling data corresponding to the target floor; combining the floor identification of the target floor and the floor filling data into the floor data of the target floor.

[0017] In a second aspect, an embodiment of the present invention provides another page generation method, which is applied to a first terminal and includes:

[0018] Send the page access request to the server;

[0019] Receiving the combined data returned by the server;

[0020] The combined data is parsed to generate a target page corresponding to the page access request.

[0021] Optionally, parsing the combined data to generate a target page corresponding to the page access request includes:

[0022] Parsing the combined data to obtain multiple sets of floor data, each set of floor data including: a floor identification and floor filling data;

[0023] For each set of the floor data: determining the floor component corresponding to the floor identifier, and integrating the floor filling data into the floor component;

[0024] According to the template layout information, the floor components are arranged and displayed to generate a target page corresponding to the page access request.

[0025] In a third aspect, an embodiment of the present invention provides a template generation method, which is applied to a second terminal and includes:

[0026] Receive template creation instructions;

[0027] In response to the template creation instruction, create a target template;

[0028] Receiving and saving floor binding information for the target template, the floor binding information comprising: at least one target floor corresponding to the target template;

[0029] Receive and save template layout information for the target template, where the template layout information is used to determine the layout of each target floor in the target template.

[0030] Optionally, after creating the target template, the step further includes:

[0031] Receive and save template rule information, where the template rule information is used to determine a template corresponding to a page access request.

[0032] In a fourth aspect, an embodiment of the present invention provides a page generation device, which is applied to a server, and includes:

[0033] A request receiving module, used for receiving a page access request from a first terminal;

[0034] A template determination module, used to determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal;

[0035] A data determination module, used to determine the floor data of each target floor in the target template;

[0036] A data sending module is used to combine the floor data, generate combined data corresponding to the target template, and send the combined data to the first terminal.

[0037] In a fifth aspect, an embodiment of the present invention provides another page generation device, applied to a first terminal, comprising:

[0038] A request sending module is used to send a page access request to the server;

[0039] A data receiving module, used for receiving the combined data returned by the server;

[0040] The page generation module is used to parse the combined data to generate a target page corresponding to the page access request.

[0041] In a sixth aspect, an embodiment of the present invention provides a template generation device, applied to a second terminal, including:

[0042] An instruction receiving module, used for receiving a template creation instruction;

[0043] A template creation module, used to create a target template in response to the template creation instruction;

[0044] A first receiving module is used to receive and save floor binding information for the target template, wherein the floor binding information includes: at least one target floor corresponding to the target template;

[0045] The second receiving module is used to receive and save the template layout information for the target template, and the template layout information is used to determine the layout mode of each target floor in the target template.

[0046] In a seventh aspect, an embodiment of the present invention provides an electronic device, including:

[0047] one or more processors;

[0048] a storage device for storing one or more programs,

[0049] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0050] In an eighth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the method described in any of the above embodiments is implemented.

[0051] An embodiment of the above invention has the following advantages or beneficial effects: the page to be displayed is templated according to certain rules, and each template may include at least one floor. The server determines the target template corresponding to the page access request, obtains the floor data of each floor in the target template, and combines the floor data into combined data, and sends the combined data to the first terminal side. The first terminal side dynamically displays pages with different layouts according to the combined data sent by the server. Therefore, the page layout can be dynamically adjusted by adjusting the page template without the user having to upgrade the client, saving the cost required to upgrade the user client.

[0052] In addition, operation and maintenance personnel can generate target templates through the second terminal configuration. Operation personnel can easily configure the layout of each page through the second terminal, reducing the cost of page changes and making the page easier to maintain.

[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0055] Figure 1 is a schematic diagram of a login page displayed to different users provided by an embodiment of the present invention;

[0056] Figure 2 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0057] Figure 3 It is a schematic diagram of a process of a page generation method provided by an embodiment of the present invention;

[0058] Figure 4a is a schematic diagram of a floor editing interface provided by an embodiment of the present invention;

[0059] Figure 4b is a schematic diagram of a floor preview interface provided by an embodiment of the present invention;

[0060] Figure 4cis a schematic diagram of a template editing interface provided by an embodiment of the present invention;

[0061] Figure 5 is a schematic diagram of the process of another page generation method provided by an embodiment of the present invention;

[0062] Figure 6 is a schematic diagram of a process of another page generation method provided by an embodiment of the present invention;

[0063] Figure 7 It is a flowchart of a page generation process provided by an embodiment of the present invention;

[0064] Figure 8 is a schematic diagram of a process of another template generation method provided by an embodiment of the present invention;

[0065] Fig. 9 is a schematic diagram of a data exchange process between three terminals provided by an embodiment of the present invention;

[0066] Fig.10 is a schematic diagram of the architecture of a page generation system provided by an embodiment of the present invention;

[0067] Fig.11 It is a schematic diagram of a page generation method process provided by an embodiment of the present invention;

[0068] Fig.12 is a structural schematic diagram of a page generating device provided by an embodiment of the present invention;

[0069] Fig.13 is a schematic structural diagram of another page generating device provided by an embodiment of the present invention;

[0070] Fig.14 is a structural schematic diagram of a template generating device provided by an embodiment of the present invention;

[0071] Fig.15 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0073] In order to meet the operational needs of different themes, the page layout needs to be adjusted frequently and dynamically. In addition, in order to allow different users to have different page displays, that is, to show a thousand faces for a thousand people. Figure 1 FIG. 1 is a schematic diagram of a login page displayed to different users provided by an embodiment of the present invention. Figure 1 As shown, ordinary users, PLUS member users, non-logged in users, and enterprise users need different page display styles, which is difficult to achieve with traditional technical solutions, and even if it is achieved, it is very difficult to maintain. Not only the page layout is different, but even the page components, page background, and page copy are different.

[0074] In order to achieve the above functions, the embodiment of the present invention designs a page generation method and device. Figure 2 An exemplary system architecture 200 is shown to which the page generation method or apparatus according to the embodiment of the present invention can be applied.

[0075] like Figure 2 As shown, the system architecture 200 may include terminal devices 201, 202, 203, 206, a network 204, and a server 205. The network 204 is used to provide a medium for communication links between the terminal devices 201, 202, 203 and the server 205. The network 204 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0076] Terminal devices 201, 202, 203 correspond to first terminals of ordinary users, and these terminals may be installed with various types of applications and web browser applications. Terminal devices 201, 202, 203 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.

[0077] The terminal device 206 corresponds to the second terminal used by the operator. The second terminal receives the template creation instruction from the operator, creates a target template, and receives and saves the floor binding information and template layout information for the target template.

[0078] The server 205 receives a page access request from the first terminal 201, 202, 203; determines a target template corresponding to the page access request, the target template being generated by the configuration of the second terminal 206; determines floor data of each target floor in the target template; combines each floor data to generate combined data corresponding to the target template, and sends the combined data to the first terminal 201, 202, 203. The first terminal 201, 202, 203 generates a target page corresponding to the page access request using the combined data, and displays it to the user.

[0079] It should be noted that the page generation method provided in the embodiment of the present invention can be executed by the server 205 and the terminal devices 201, 202, 203 respectively, and accordingly, the page generation device can be respectively set in the server 205 and the terminal devices 201, 202, 203. The template generation method provided in the embodiment of the present invention is generally executed by the terminal device 206, and accordingly, the template generation device is generally set in the terminal device 206.

[0080] It should be understood that Figure 2 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0081] Figure 3 FIG. 1 is a schematic diagram of a process of a page generation method provided by an embodiment of the present invention. The method is applied to the server side, such as Figure 3 As shown, the method includes:

[0082] Step 301: receiving a page access request from a first terminal.

[0083] The first terminal is a terminal used by ordinary users. The first terminal may be installed with a client corresponding to an application, or may be installed with various browsers. The user sends a page access request to the first terminal, and the first terminal forwards the page access request to the server.

[0084] Step 302: Determine a target template corresponding to the page access request, where the target template is generated through the second terminal configuration.

[0085] The user information and page information corresponding to the page access request can be determined, and the target template can be determined based on the user information and page information. User information is information related to the user. User information can be the typesetting method, display style, color matching, image size ratio, etc. set by the user according to his or her own preferences. Page information is information related to the access page, and page information may include: login, search, details page, self-operated, reservation, global shopping, pre-sale, non-self-operated, and flash sale, etc.

[0086] The second terminal is the terminal corresponding to the operator. The operator completes the creation and management of floors, templates, and rules through the second terminal. Since the target template is generated by the operator through the configuration of the second terminal, the operator can flexibly adjust the layout of each page as needed. Compared with the way that the technician directly adjusts the page layout through the code, the method of the embodiment of the present application can facilitate the operator to control and operate the overall adjustment page.

[0087] A template corresponds to an access page. One access page can correspond to multiple templates. According to different user information, the template corresponding to the user is selected to generate different display pages for different users, achieving a display effect with different faces for different users.

[0088] Step 303: Determine the floor data of each target floor in the target template.

[0089] The page to be displayed is divided into multiple parts. Each part can be determined as a floor. The floor is used to display part of the page information. A single floor can be used to display the follow line, the order line of the page, the wallet line, the user avatar line, the title line, multiple pictures of the detail page, etc. Figure 4a FIG. 1 is a schematic diagram of a floor editing interface provided by an embodiment of the present invention. Figure 4a As shown, you can configure the styles of the floor name, floor font, floor background color, text color, floor height, etc. Figure 4b is a schematic diagram of a floor preview interface provided by an embodiment of the present invention. Figure 4b The interface shown previews the edited floor.

[0090] The template may include at least one floor. Figure 4c FIG. 1 is a schematic diagram of a template editing interface provided by an embodiment of the present invention. Figure 4c As shown, the style of the floor to be displayed and the layout of the floor are determined according to specific needs. The process of creating a target template may also include: adding the style of the floor to be displayed and the layout of the floor to the target template. The order of the floors, some styles of the floors, etc. may also be further set.

[0091] Determine the floor data of each target floor in the target template, the floor data is used to fill each floor to generate a final display page. In one embodiment of the present invention, determining the floor data of each target floor in the target template includes: determining at least one target floor corresponding to the target template according to the floor binding information; for each target floor: obtaining the floor filling data corresponding to the target floor; combining the floor identification and the floor filling data of the target floor into the floor data of the target floor.

[0092] The floor filling data is the data used to fill the floor component. The floor filling data may include: user information, order information, store attention information, friend information, etc. For example, if the target floor is used to display the user avatar row, the user avatar corresponding to the page access request is obtained, and the user avatar is used as the floor filling data of the target floor. If the target floor is used to display the product title row, the relevant information of the product title corresponding to the page access request is obtained, and the relevant information of the product title is used as the floor filling data of the target floor.

[0093] Step 304: Combine the data of each floor, generate combined data corresponding to the target template, and send the combined data to the first terminal.

[0094] The server can combine the floor data into a data list and send the combined data to the first terminal. The first terminal parses the combined data, obtains and organizes multiple sets of floor data, generates a target page corresponding to the page access request, and displays the target page to the user.

[0095] In an embodiment of the present invention, the page to be displayed is templated according to certain rules, and each template may include at least one floor. The server determines the target template corresponding to the page access request, obtains the floor data of each floor in the target template, and combines the floor data into combined data, and sends the combined data to the first terminal side. The first terminal side dynamically displays pages with different layouts according to the combined data sent by the server. Therefore, the page layout can be dynamically adjusted by adjusting the page template without the user upgrading the client, saving the cost required for the user to upgrade the client.

[0096] In addition, the target template is generated through the configuration of the second terminal, which can be a terminal used by the operator. The operator can easily configure the layout of each page through the second terminal, reducing the cost of page changes and making the page easier to maintain.

[0097] Figure 5 FIG. 1 is a schematic diagram of another page generation method provided by an embodiment of the present invention. The method is applied to the server side, such as Figure 5 As shown, the method includes:

[0098] Step 501: receiving a page access request from a first terminal.

[0099] Step 502: Obtain the link address corresponding to the page access request; determine the target rule corresponding to the link address according to the template rule information.

[0100] The user information and page information corresponding to the page access request can be determined through the link address corresponding to the page access request. User information is information related to the user. User information can be the typesetting method, display style, color matching, image size ratio, etc. set by the user according to his or her own preferences. Page information is information related to the access page, and page information may include: login, search, details page, self-operated, reservation, global shopping, pre-sale, non-self-operated, and flash sale, etc.

[0101] The template rule information may also be generated by configuring the second terminal. The template rule information may include: the correspondence between user information and / or page information and rules, so as to determine the target rule corresponding to the page access request according to the target rule information. For example, if the page information corresponding to the page access request is a flash sale, then the page access request corresponds to rule 1. If the user information corresponding to the page access request is a super member, then the page access request corresponds to rule 2. If the user information corresponding to the page access request is a corporate member, and the page information is an appointment, then the page access request corresponds to rule 3, etc.

[0102] Step 503: Execute the rule expression corresponding to the target rule to obtain the execution result.

[0103] Step 504: Determine the target template corresponding to the page access request according to the execution result.

[0104] Each rule corresponds to a unique rule expression. By executing the rule expression and obtaining the execution result, the target template corresponding to the page access request is determined according to the execution result. Specifically, the user information, page information, product information, operation information, etc. corresponding to the page access request can be obtained, and this information can be substituted into the rule expression to obtain the execution result, thereby determining the corresponding target template.

[0105] Step 505: Determine the floor data of each target floor in the target template.

[0106] Step 506: Combine the data of each floor, generate combined data corresponding to the target template, and send the combined data to the first terminal.

[0107] In the embodiment of the present invention, according to the link address corresponding to the page access request, the target rule corresponding to the link address is determined, and by executing the rule expression and obtaining the execution result, the target template corresponding to the page access request is determined according to the execution result. By setting the target rule and the rule expression, different page templates can be flexibly set for each page and each user with different identities, thereby realizing a variety of page layout displays.

[0108] Figure 6 FIG. 1 is a schematic diagram of a process of another page generation method provided by an embodiment of the present invention. The method is applied to a first terminal, such as Figure 6 As shown, the method includes:

[0109] Step 601: Send a page access request to the server.

[0110] The first terminal is a terminal used by ordinary users. The first terminal may be installed with a client corresponding to an application, or may be installed with various browsers. The user sends a page access request to the first terminal, and the first terminal forwards the page access request to the server.

[0111] Step 602: Receive the combined data returned by the server.

[0112] Step 603: Parse the combined data to generate a target page corresponding to the page access request.

[0113] The target page corresponding to the page access request can be generated by the following method: Parse the combined data to obtain multiple sets of floor data, each set of floor data includes: floor identification and floor filling data; for each set of floor data: determine the floor component corresponding to the floor identification, and integrate the floor filling data into the floor component; arrange and display each floor component according to the template layout information to generate the target page corresponding to the page access request.

[0114] The floor filling data is the data used to fill the floor component. The floor filling data may include: user information, order information, store attention information, friend information, etc. For example, if the target floor is used to display the user avatar row, the user avatar corresponding to the page access request is obtained, and the user avatar is used as the floor filling data of the target floor. If the target floor is used to display the product title row, the relevant information of the product title corresponding to the page access request is obtained, and the relevant information of the product title is used as the floor filling data of the target floor.

[0115] Template layout information may include: floor style, floor sorting, rendering floor data, etc. Figure 7 FIG. 1 is a flow chart of a page generation process provided by an embodiment of the present invention. Figure 7 As shown, the first terminal receives the target floor of the filling data below the server, and generates the final display page by loading the floor component, loading the floor style, loading the floor sorting and rendering the floor data.

[0116] In an embodiment of the present invention, the page to be displayed is templated according to certain rules, and each template may include at least one floor. The server determines the target template corresponding to the page access request, obtains the floor data of each floor in the target template, and combines the floor data into combined data, and sends the combined data to the first terminal side. The first terminal side dynamically displays pages with different layouts according to the combined data sent by the server. Therefore, the page layout can be dynamically adjusted by adjusting the page template without the user upgrading the client, saving the cost required for the user to upgrade the client.

[0117] Figure 8 FIG. 1 is a schematic diagram of a process of a template generation method provided by an embodiment of the present invention. The method is applied to a second terminal, such as Figure 8 As shown, the method includes:

[0118] Step 801: Receive a template creation instruction.

[0119] The second terminal is the terminal for operators, who use it to create and manage floors, templates, and rules.

[0120] Step 802: In response to the template creation instruction, create a target template.

[0121] Step 803: Receive and save floor binding information for the target template, where the floor binding information includes: at least one target floor corresponding to the target template.

[0122] The page to be displayed is divided into multiple parts. Each part can be determined as a floor. The floor is used to display part of the page information. A single floor can be used to display the follow line, order line, wallet line, user avatar line, title line, multiple pictures of the detail page, etc. Figure 4a FIG. 1 is a schematic diagram of a floor editing interface provided by an embodiment of the present invention. Figure 4a As shown, you can configure the styles of the floor name, floor font, floor background color, text color, floor height, etc. Figure 4b is a schematic diagram of a floor preview interface provided by an embodiment of the present invention. Figure 4b The interface shown previews the edited floor.

[0123] Each template may include at least one floor. The process of creating a target template may include: adding the style of the floor to be displayed and the layout of the floor to the target template.

[0124] Step 804: Receive and save the template layout information for the target template, where the template layout information is used to determine the layout of each target floor in the target template.

[0125] The template layout information set by the operator can be received. The template layout information may include: floor style, floor sorting, rendering floor data, etc. Figure 4c FIG. 1 is a schematic diagram of a template editing interface provided by an embodiment of the present invention. Figure 4c As shown, the style of the floor to be displayed and the layout of the floor are determined according to specific needs. The process of creating a target template may also include: adding the style of the floor to be displayed and the layout of the floor to the target template. The order of the floors, some styles of the floors, etc. may also be further set.

[0126] After creating the target template, you can also receive template rule information set by the operator, and the template rule information is used to determine the template corresponding to the page access request. The template rule information may include: the correspondence between user information and / or page information and the rules, so as to determine the target rule corresponding to the page access request according to the target rule information. For example, if the page information corresponding to the page access request is a flash sale, then the page access request corresponds to rule 1. If the user information corresponding to the page access request is a super member, then the page access request corresponds to rule 2. If the user information corresponding to the page access request is a corporate member, and the page information is an appointment, then the page access request corresponds to rule 3, etc.

[0127] The target rule information also includes: rule expression. Each rule corresponds to a unique rule expression. By executing the rule expression and obtaining the execution result, the target template corresponding to the page access request is determined according to the execution result. Specifically, the user information, page information, product information, operation information, etc. corresponding to the page access request can be obtained, and this information is substituted into the rule expression to obtain the execution result, thereby determining the corresponding target template.

[0128] In an embodiment of the present invention, since the target template is generated by the operator through the configuration of the second terminal, the operator can flexibly adjust the layout of each page as needed. Compared with the method in which the technical personnel directly adjust the page layout through code, the method of the embodiment of the present application can facilitate the operator to control and operate the overall adjustment page.

[0129] Fig. 9 FIG. 1 is a schematic diagram of a data exchange process between three terminals provided by an embodiment of the present invention. Fig. 9 As shown, the first terminal is installed with an App client. The user sends a browsing page request to the first terminal, and the App client sends a request to the SOA. The SOA pre-processes the request and sends the processed request to the SDK. The SDK application uses template data, rule data, dependency data, etc. to determine the target template corresponding to the request, and returns the target template to the SOA. SOA concurrently calls upstream dependencies according to the level of the target template, processes business logic, assembles data after processing, and returns the data to the APP end. The APP end uses the returned assembled data to dynamically display the page. The operator accesses the operation configuration platform through the second terminal to configure template data, rule data, dependency data, etc. The SDK application can dynamically retrieve template data, rule data, and dependency data from the configuration center.

[0130] In order to make the method of the embodiment of the present invention easier to understand, the following is explained by taking the configuration of a page template and the page generation process as an example. Fig.10 FIG. 1 is a schematic diagram of the architecture of a page generation system provided by an embodiment of the present invention. Fig.10As shown, the operator uses the second client to perform floor management, template management, skin management and other operations on the operation background, and writes the data to the database and configuration center. The configuration center sends data such as the target floor and rule expression (expressed in MVEL) to the service of the SOA cluster. The SOA cluster generates fill data by calling the front-end dependency interface, and returns the filled target floor to the first client. The first client generates a native page using the data of each floor.

[0131] Fig.11 FIG. 1 is a schematic diagram of a page generation method flow provided by an embodiment of the present invention. Fig.11 As shown, according to the page access request, floor template rule dependency and other data, the template corresponding to the page access request is obtained. By calling the upstream dependency, the floor data is filled, and a list containing floor identification and floor filling data is returned to the client.

[0132] Operators need to create activity templates on the operation platform, such as the Wojing-PLUS user template and the Wojing-Enterprise user template. After creating the template, you need to bind the floors. Floors include the page's attention line, the page's order line, the Icon line, and the wallet line. The template can set which floors to display, and you can also set the order of the floors, some styles of the floors, and the template can set pre-dependencies, because some templates require pre-dependency interfaces to dynamically obtain user identities or other information, and display dynamic templates based on the information obtained. However, the display rules of this rule expression can use the MVEL template engine. The MVEL engine writes logical processing that calls the dependency interface. After the processing is completed, it can be determined which template it is. Submit for review after the setting is completed, and the data will be written to the configuration center after approval.

[0133] Applications connected to the operation SDK can dynamically retrieve template data, rule data, and dependency data from the configuration center. At the same time, the SDK supports whitelists, cuts, and grayscale. Users who are hit by whitelists, cuts, and grayscale will be shown different templates than ordinary users, and some new features can be previewed in advance. When an HTTP request comes, the request is intercepted, and then the rules of the interface are obtained according to the requested Path, MVEL is executed according to the rules, the dependent interface is called, the template is selected according to the execution result, and then the processed request is passed to SOA.

[0134] SOA receives the request processed by SDK and filters some floors in the template. Because some floors have been closed by users, it performs business processing after filtering. It concurrently calls upstream dependencies based on the floors and processes business logic. After processing, it assembles data and returns the data to the APP.

[0135] The APP receives the data returned by the server, parses the floor data list of the template, selects the corresponding component according to the floor number in the data, dynamically renders the floor according to the style and order of the floor, and displays the final result to the user after concurrent rendering. If a new floor is added for a big promotion, the decoration of the big promotion only needs to modify the template configuration and add the new floor.

[0136] In the embodiment of the present invention, the APP native page is constructed with Lego components, supporting dynamic assembly components and dynamic layout. The operation SDK pre-processes HTTP requests to make its data consistent with the APP template. The access SDK can be processed uniformly and can select templates for different users according to the logic of issuing. The operation platform supports template creation, can create templates and styles, and the template can be bound to the floor, so that thousands of faces can be realized. The SDK supports the MVEL engine and generalized calls, and can select templates according to the MVEL configuration and generalized call results.

[0137] The method of the embodiment of the present invention can solve the problem of relatively high dynamic operation costs of APP native pages. The APP native pages are templated according to certain rules, and are fully integrated with the server operation platform to customize a universal APP component template. The server sends templated data, and the APP can dynamically display the layout and component content according to the template data sent by the server.

[0138] In addition, APP can be componentized and linked with the server, and establish a connection with the server through templates, so that the server data can be combined with the APP components, and the corresponding dynamic pages can be displayed to achieve dynamic effects. It can support frequent page layouts and page effects, and can support page changes and cuts. It has high availability and scalability, and can be quickly built and developed, so as to achieve rapid support for business.

[0139] In addition, the cost of code development is reduced, and operators can easily configure page layouts on the platform. By making page configurations block-like and Lego-like, pages can be changed at low cost, reducing code coupling.

[0140] Fig.12 FIG. 1 is a schematic diagram of a page generation device provided by an embodiment of the present invention. Fig.12 As shown, the device comprises:

[0141] The request receiving module 1201 is used to receive a page access request from a first terminal;

[0142] A template determination module 1202, configured to determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal;

[0143] A data determination module 1203 is used to determine the floor data of each target floor in the target template;

[0144] The data sending module 1204 is used to combine the floor data, generate the combined data corresponding to the target template, and send the combined data to the first terminal.

[0145] Optionally, the template determination module 1202 is specifically configured to:

[0146] Obtaining the link address corresponding to the page access request;

[0147] Determine the target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by configuring the second terminal;

[0148] Execute the rule expression corresponding to the target rule to obtain an execution result;

[0149] According to the execution result, a target template corresponding to the page access request is determined.

[0150] Optionally, the data determination module 1203 is specifically used to:

[0151] Determine at least one target floor corresponding to the target template according to the floor binding information;

[0152] For each of the target floors: acquiring floor filling data corresponding to the target floor; combining the floor identification of the target floor and the floor filling data into the floor data of the target floor.

[0153] Fig.13 FIG. 1 is a schematic diagram of the structure of another page generation device provided by an embodiment of the present invention. Fig.13 As shown, applied to a first terminal, the device includes:

[0154] The request sending module 1301 is used to send the page access request to the server;

[0155] The data receiving module 1302 is used to receive the combined data returned by the server;

[0156] The page generation module 1303 is used to parse the combined data to generate a target page corresponding to the page access request.

[0157] Optionally, the page generation module 1303 is specifically used for:

[0158] Parsing the combined data to obtain multiple sets of floor data, each set of floor data including: a floor identification and floor filling data;

[0159] For each set of the floor data: determining the floor component corresponding to the floor identifier, and integrating the floor filling data into the floor component;

[0160] According to the template layout information, the floor components are arranged and displayed to generate a target page corresponding to the page access request.

[0161] Fig.14 FIG. 1 is a schematic diagram of a template generation device provided by an embodiment of the present invention. Fig.14 As shown, applied to a second terminal, the device includes:

[0162] The instruction receiving module 1401 is used to receive the template creation instruction;

[0163] The template creation module 1402 is used to create a target template in response to the template creation instruction;

[0164] The first receiving module 1403 is used to receive and save floor binding information for the target template, where the floor binding information includes: at least one target floor corresponding to the target template;

[0165] The second receiving module 1404 is used to receive and save the template layout information for the target template, and the template layout information is used to determine the layout mode of each target floor in the target template.

[0166] Optionally, the device further comprises:

[0167] The third receiving module 1405 is used to receive and save template rule information, where the template rule information is used to determine the template corresponding to the page access request.

[0168] An embodiment of the present invention provides an electronic device, including:

[0169] one or more processors;

[0170] a storage device for storing one or more programs,

[0171] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.

[0172] Reference below Fig.15 , which shows a schematic diagram of the structure of a computer system 1500 of a terminal device suitable for implementing an embodiment of the present invention. Fig.15 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0173] like Fig.15As shown, the computer system 1500 includes a central processing unit (CPU) 1501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1502 or a program loaded from a storage part 1508 into a random access memory (RAM) 1503. Various programs and data required for the operation of the system 1500 are also stored in the RAM 1503. The CPU 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input and output (I, O) interface 1505 is also connected to the bus 1504.

[0174] The following components are connected to the I, O interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc.; and a communication section 1509 including a network interface card such as a LAN card, a modem, etc. The communication section 1509 performs communication processing via a network such as the Internet. A drive 1510 is also connected to the I, O interface 1505 as needed. A removable medium 1511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1510 as needed, so that a computer program read therefrom is installed into the storage section 1508 as needed.

[0175] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1509, and / or installed from the removable medium 1511. When the computer program is executed by the central processing unit (CPU) 1501, the above-mentioned functions defined in the system of the present invention are executed.

[0176] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0177] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0178] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, they may be described as: a request receiving module, a template determining module, a data determining module, and a data sending module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the request receiving module may also be described as a "module for receiving a page access request from a first terminal".

[0179] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:

[0180] Receiving a page access request from a first terminal;

[0181] Determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal;

[0182] Determining floor data of each target floor in the target template;

[0183] The floor data are combined to generate combined data corresponding to the target template, and the combined data is sent to the first terminal.

[0184] According to the technical solution of the embodiment of the present invention, the page to be displayed is templated according to certain rules, and each template may include at least one floor. The server determines the target template corresponding to the page access request, obtains the floor data of each floor in the target template, and combines the floor data into combined data, and sends the combined data to the first terminal side. The first terminal side dynamically displays pages with different layouts according to the combined data sent by the server. Therefore, the page layout can be dynamically adjusted by adjusting the page template without the user upgrading the client, saving the cost required for the user to upgrade the client.

[0185] In addition, the target template is generated through the configuration of the second terminal, which can be a terminal used by the operator. The operator can easily configure the layout of each page through the second terminal, reducing the cost of page changes and making the page easier to maintain.

[0186] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A page generation method, characterized in that: Applied to the server side, including: Receiving a page access request from a first terminal; Determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal; Determining floor data of each target floor in the target template; The floor data are combined to generate combined data corresponding to the target template, and the combined data is sent to the first terminal; wherein the combined data includes: multiple groups of floor data, each group of floor data includes: floor identification and floor filling data.

2. The method according to claim 1, characterized in that The determining of the target template corresponding to the page access request includes: Obtaining the link address corresponding to the page access request; Determine the target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by configuring the second terminal; Execute the rule expression corresponding to the target rule to obtain an execution result; According to the execution result, a target template corresponding to the page access request is determined.

3. The method according to claim 1, characterized in that: The determining of the floor data of each target floor in the target template includes: Determine at least one target floor corresponding to the target template according to the floor binding information; For each of the target floors: acquiring floor filling data corresponding to the target floor; combining the floor identification of the target floor and the floor filling data into the floor data of the target floor.

4. A page generation method, characterized in that: Applied to the first terminal, comprising: Send the page access request to the server; receiving the combined data returned by the server; wherein the combined data is generated by the server according to the target template, and the target template is generated by configuring the second terminal; Parsing the combined data to generate a target page corresponding to the page access request includes: The combined data is parsed to obtain multiple groups of floor data, each group of floor data including: a floor identification and floor filling data.

5. The method according to claim 4, characterized in that The parsing of the combined data to generate a target page corresponding to the page access request further includes: For each set of the floor data: determining the floor component corresponding to the floor identifier, and integrating the floor filling data into the floor component; According to the template layout information, the floor components are arranged and displayed to generate a target page corresponding to the page access request.

6. A template generation method, characterized in that: Applied to the second terminal, including: Receive template creation instructions; In response to the template creation instruction, create a target template; Receiving and saving floor binding information for the target template, the floor binding information comprising: at least one target floor corresponding to the target template; Receive and save template layout information for the target template, wherein the template layout information is used to determine the layout of each target floor in the target template; wherein the server generates combined data based on the target template, and the combined data includes: multiple groups of floor data, each group of floor data includes: floor identification and floor filling data.

7. The method according to claim 6, characterized in that After the target template is created, the following steps are further included: Receive and save template rule information, where the template rule information is used to determine a template corresponding to a page access request.

8. A page generating device, characterized in that: Applied to the server side, including: A request receiving module, used for receiving a page access request from a first terminal; A template determination module, used to determine a target template corresponding to the page access request, wherein the target template is generated by configuring the second terminal; A data determination module, used to determine the floor data of each target floor in the target template; A data sending module is used to combine the floor data, generate the combined data corresponding to the target template, and send the combined data to the first terminal; wherein the combined data includes: multiple groups of floor data, each group of floor data includes: floor identification and floor filling data.

9. A page generating device, characterized in that: Applied to the first terminal, comprising: A request sending module is used to send a page access request to the server; A data receiving module, configured to receive the combined data returned by the server; wherein the combined data is generated by the server according to a target template, and the target template is generated by configuring the second terminal; A page generation module, used for parsing the combined data to generate a target page corresponding to the page access request; The page generation module is specifically used to parse the combined data to obtain multiple groups of floor data, each group of floor data includes: a floor identification and floor filling data.

10. A template generating device, characterized in that: Applied to the second terminal, including: An instruction receiving module, used for receiving a template creation instruction; A template creation module, used to create a target template in response to the template creation instruction; A first receiving module is used to receive and save floor binding information for the target template, wherein the floor binding information includes: at least one target floor corresponding to the target template; The second receiving module is used to receive and save the template layout information for the target template, and the template layout information is used to determine the layout method of each target floor in the target template; wherein the server side generates combined data according to the target template, and the combined data includes: multiple groups of floor data, each group of the floor data includes: floor identification and floor filling data.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

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

Citation Information

Patent Citations

  • Display page configuration method, server, terminal equipment and electronic equipment

    CN112328244A