CN113704671A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN113704671A
CN113704671A CN202111041960.9A CN202111041960A CN113704671A CN 113704671 A CN113704671 A CN 113704671A CN 202111041960 A CN202111041960 A CN 202111041960A CN 113704671 A CN113704671 A CN 113704671A
Authority
CN
China
Prior art keywords
floor
template
target
page
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111041960.9A
Other languages
Chinese (zh)
Inventor
任家华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202111041960.9A priority Critical patent/CN113704671A/en
Publication of CN113704671A publication Critical patent/CN113704671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The invention discloses a page generation method and device, and relates to the technical field of computers. One embodiment of the method comprises: 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 through second terminal configuration; determining floor data of each target floor in the target template; and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal. According to the method and the device, the dynamic adjustment of the page layout can be realized by adjusting the page template, a user does not need to upgrade the client, and the cost for upgrading the client is saved.

Description

Page generation method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page generation method and device.
Background
Many applications often organize marketing campaigns of different themes, requiring frequent dynamic adjustments to the layout of the pages. Although the native page can fully exert the hardware advantages of the mobile device, the modification of the native page requires the release of a client upgrading program, and a user upgrades the client through the upgrading program. For applications with a large number of users, it is very difficult for all users to upgrade the clients, and the upgrade cost is very high.
Disclosure of Invention
In view of this, embodiments of the present invention provide a page generation method and apparatus, which can implement dynamic adjustment of a page layout by adjusting a page template, and do not require a user to upgrade a client, thereby saving the cost required for upgrading the client.
In a first aspect, an embodiment of the present invention provides a page generation method, applied to a server, including:
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 through second terminal configuration;
determining floor data of each target floor in the target template;
and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal.
Optionally, the determining a target template corresponding to the page access request includes:
acquiring a link address corresponding to the page access request;
determining a target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by the second terminal configuration;
executing a rule expression corresponding to the target rule to obtain an execution result;
and determining a target template corresponding to the page access request according to the execution result.
Optionally, the determining 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 of the target floors: acquiring floor filling data corresponding to the target floor; and combining the floor identification of the target floor and the floor filling data into the floor data of the target floor.
In a second aspect, an embodiment of the present invention provides another page generating method, applied to a first terminal, including:
sending the page access request to a server side;
receiving the combined data returned by the server;
and analyzing the combined data to generate a target page corresponding to the page access request.
Optionally, the analyzing the combined data to generate a target page corresponding to the page access request includes:
analyzing the combined data to obtain multiple groups of floor data, wherein each group of floor data comprises: floor identification and floor filling data;
for each set of the floor data: determining a floor component corresponding to the floor identification, and integrating the floor filling data into the floor component;
and arranging and displaying the floor components according to the template layout information so as to generate a target page corresponding to the page access request.
In a third aspect, an embodiment of the present invention provides a template generating method, applied to a second terminal, including:
receiving a template establishing instruction;
creating a target template in response to the template creation instruction;
receiving and storing floor binding information aiming at the target template, wherein the floor binding information comprises: at least one target floor corresponding to the target template;
receiving and storing template layout information aiming at the target templates, wherein the template layout information is used for determining the layout mode of each target floor in the target templates.
Optionally, after the creating the target template, the method further includes:
and receiving and storing template rule information, wherein the template rule information is used for determining a template corresponding to the page access request.
In a fourth aspect, an embodiment of the present invention provides a page generating apparatus, which is applied to a server side, and includes:
the request receiving module is used for receiving a page access request from a first terminal;
the template determining module is used for determining a target template corresponding to the page access request, and the target template is generated through second terminal configuration;
the data determining module is used for determining the floor data of each target floor in the target template;
and the data sending module is used for combining the data of each floor, generating combined data corresponding to the target template, and sending the combined data to the first terminal.
In a fifth aspect, an embodiment of the present invention provides another page generating apparatus, which is applied to a first terminal, and includes:
the request sending module is used for sending the page access request to the server side;
the data receiving module is used for receiving the combined data returned by the server;
and the page generation module is used for analyzing the combined data to generate a target page corresponding to the page access request.
In a sixth aspect, an embodiment of the present invention provides a template generating apparatus, which is applied to a second terminal, and includes:
the instruction receiving module is used for receiving a template establishing instruction;
the template creating module is used for responding to the template creating instruction and creating a target template;
a first receiving module, configured to receive and store floor binding information for the target template, where the floor binding information includes: at least one target floor corresponding to the target template;
and the second receiving module is used for receiving and storing template layout information aiming at the target template, wherein the template layout information is used for determining the layout mode of each target floor in the target template.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any of the embodiments described above.
In an eighth aspect, the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method of any one of the above embodiments.
One embodiment of the above invention has the following advantages or benefits: the pages to be presented are templated according to certain rules, each template may include at least one floor. The server determines a target template corresponding to the page access request, acquires floor data of each floor in the target template, combines the floor data into combined data, and sends the combined data to the first terminal side. And the first terminal side dynamically displays the pages with different layouts according to the combined data issued by the server side. Therefore, the dynamic adjustment of the page layout can be realized by adjusting the page template, a user does not need to upgrade the client, and the cost for upgrading the client of the user is saved.
In addition, the operation and maintenance personnel can generate the target template through the configuration of the second terminal. The operator can easily configure the layout of each page through the second terminal, so that the page change cost is reduced, and the page is easier to maintain.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a landing page presented for different users according to an embodiment of the present invention;
FIG. 2 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 3 is a schematic diagram illustrating a flow of a page generation method according to an embodiment of the present invention;
FIG. 4a is a schematic illustration of a floor editing interface provided by one embodiment of the present invention;
FIG. 4b is a schematic illustration of a floor preview interface provided by one embodiment of the present invention;
FIG. 4c is a diagram of a template editing interface provided by one embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a flow of another page generation method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a flow of a page generation method according to another embodiment of the present invention;
FIG. 7 is a flowchart illustrating a page generation process according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating a flow of another template generation method according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a data exchange process between three terminals according to an embodiment of the present invention;
FIG. 10 is a block diagram of a page generation system according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a process of a page generation method according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another page generating apparatus provided in an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a template generating apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
To meet the operating requirements of different topics, the page layout needs to be dynamically adjusted frequently. In addition, in order to enable different users to have different page displays, the effect of thousands of people and thousands of faces of pages is displayed. Fig. 1 is a schematic diagram of a login page presented for different users according to an embodiment of the present invention. As shown in fig. 1, a common user, a PLUS member user, does not log in, and an enterprise user needs to have different page display styles, and the conventional technical scheme is difficult to implement and is very difficult to maintain even if implemented. Not only the layout of the page is different, but also the page components, the page background and the page file are different.
In order to implement the above functions, embodiments of the present invention design a page generation method and apparatus. Fig. 2 illustrates an exemplary system architecture 200 to which the page generation method or apparatus of an embodiment of the present invention may be applied.
As shown in fig. 2, the system architecture 200 may include terminal devices 201, 202, 203, 206, a network 204, and a server 205. The network 204 serves as a medium for providing communication links between the terminal devices 201, 202, 203 and the server 205. Network 204 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 201, 202, 203 correspond to first terminals of general users, which may be installed with various types of applications, web browser applications. The terminal devices 201, 202, 203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The terminal device 206 corresponds to a second terminal used by the operator. The second terminal receives a template creating instruction of an operator and creates a target template; and receiving and storing the floor binding information and the template layout information aiming at the target template.
The server 205 receives a page access request from the first terminal 201, 202, 203; determining a target template corresponding to the page access request, wherein the target template is generated through configuration of the second terminal 206; determining floor data of each target floor in the target template; and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminals 201, 202 and 203. The first terminals 201, 202 and 203 generate a target page corresponding to the page access request by using the combined data, and display the target page to the user.
It should be noted that the page generation method provided by the embodiment of the present invention can be executed by the server 205 and the terminal devices 201, 202, and 203 respectively, and accordingly, the page generation apparatus can be disposed in the server 205 and the terminal devices 201, 202, and 203 respectively. The template generating method provided by the embodiment of the present invention is generally executed by the terminal device 206, and accordingly, the template generating apparatus is generally disposed in the terminal device 206.
It should be understood that the number of terminal devices, networks, and servers in fig. 2 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 3 is a schematic diagram of a flow of a page generation method according to an embodiment of the present invention. The method is applied to a server side, and as shown in fig. 3, the method includes:
step 301: a page access request is received from a first terminal.
The first terminal is a terminal used by a common user. The first terminal can be provided with a client corresponding to the application, and can also be provided 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 side.
Step 302: and determining a target template corresponding to the page access request, wherein the target template is generated through the configuration of the second terminal.
The user information and the page information corresponding to the page access request can be determined, and the target template is determined according to the user information and the page information. The user information is information related to the user. The user information can be the typesetting mode, the display style, the color matching, the picture size proportion and the like set by the user according to the preference of the user. The page information is information related to the access page, and the page information may include: login, search, detail page, camp-on, appointment, global purchase, pre-sale, non-camp-on, kill-second, etc.
The second terminal is a terminal corresponding to an operator. And the operator completes the work of building, template, rule creation, management and the like through the second terminal. Because the target template is generated by the operator through the second terminal configuration, the operator can flexibly adjust the layout of each page according to needs, and compared with a mode that a technician directly adjusts the layout of the page through a code, the mode of the embodiment of the application can facilitate the operator to integrally control and operate the adjusted page.
The template corresponds to an access page. One access page may correspond to a plurality of templates. And selecting the template corresponding to the user according to different user information, thereby generating different display pages aiming at different users and realizing the display effect of thousands of people and thousands of faces.
Step 303: and determining the floor data of each target floor in the target template.
The page to be displayed is divided into a plurality of parts, each part can be determined as a floor, the floor is used for displaying part of page information, and a single floor can be used for displaying a focus line, an order line of the page, a wallet line, a user head line, a title line, a detail page multi-graph and the like. Fig. 4a is a schematic diagram of a floor editing interface according to an embodiment of the present invention. As shown in fig. 4a, the layout of the name of the floor, the font of the floor, the background color of the floor, the color of the text, the height of the floor, and the like may be arranged. Figure 4b is a schematic diagram of a floor preview interface provided by one embodiment of the present invention. The edited floor can be previewed through the interface shown in fig. 4 b.
The template may include at least one floor therein. Fig. 4c is a schematic diagram of a template editing interface according to an embodiment of the present invention. As shown in fig. 4c, the pattern of floors to be presented and the layout of the floors are determined according to specific needs. The process of creating the target template may further include: the style of the floor to be presented and the layout of the floor are added to the target template. Further, the floor sequence, some patterns of floors, etc. may be set.
And determining floor data of each target floor in the target template, wherein the floor data is used for filling each floor so as to generate a page to be finally displayed. In one embodiment of the present invention, determining floor data for each target floor in a target template comprises: determining at least one target floor corresponding to the target template according to the floor binding information; for each target floor: acquiring floor filling data corresponding to a target floor; and combining the floor identification and the floor filling data of the target floor into the floor data of the target floor.
Floor fill data is data used to fill floor components. The floor filling data may include: user information, order information, store attention information, friend information, and the like. For example, if the target floor is used for displaying the user avatar row, the user avatar corresponding to the page access request is acquired, and the user avatar is used as the floor filling data of the target floor. And if the target floor is used for displaying the commodity title line, acquiring the related information of the commodity title corresponding to the page access request, and taking the related information of the commodity title as the floor filling data of the target floor.
Step 304: and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal.
The server end can combine the floor data into a data list and send the combined data to the first terminal. And the first terminal analyzes the combined data, acquires and organizes a plurality of groups of floor data, generates a target page corresponding to the page access request and displays the target page to the user.
In the embodiment of the invention, the pages to be displayed are templated according to certain rules, and each template can comprise at least one floor. The server determines a target template corresponding to the page access request, acquires floor data of each floor in the target template, combines the floor data into combined data, and sends the combined data to the first terminal side. And the first terminal side dynamically displays the pages with different layouts according to the combined data issued by the server side. Therefore, the dynamic adjustment of the page layout can be realized by adjusting the page template, a user does not need to upgrade the client, and the cost for upgrading the client by the user is saved.
Furthermore, the target template is generated by a second terminal configuration, which may be a terminal used by the operator. The operator can easily configure the layout of each page through the second terminal, so that the page change cost is reduced, and the page is easier to maintain.
Fig. 5 is a schematic diagram of a flow of another page generation method according to an embodiment of the present invention. The method is applied to a server side, and as shown in fig. 5, the method includes:
step 501: a page access request is received from a first terminal.
Step 502: acquiring a link address corresponding to the page access request; and determining a target rule corresponding to the link address according to the template rule information.
And determining user information and page information corresponding to the page access request through the link address corresponding to the page access request. The user information is information related to the user. The user information can be the typesetting mode, the display style, the color matching, the picture size proportion and the like set by the user according to the preference of the user. The page information is information related to the access page, and the page information may include: login, search, detail page, camp-on, appointment, global purchase, pre-sale, non-camp-on, kill-second, etc.
The template rule information may also be generated by the second terminal configuration. The template rule information may include: and determining a target rule corresponding to the page access request according to the target rule information by using the corresponding relation between the user information and/or the page information and the rule. For example, if the page information corresponding to the page access request is kill per second, the page access request corresponds to rule 1. If the user information corresponding to the page access request is a super member, the page access request corresponds to rule 2. And if the user information corresponding to the page access request is an enterprise member and the page information is a reservation, the page access request corresponds to a rule 3 and the like.
Step 503: and executing the rule expression corresponding to the target rule to obtain an execution result.
Step 504: and determining a target template corresponding to the page access request according to the execution result.
Each rule corresponds to a unique rule expression, an execution result is obtained by executing the rule expression, and a target template corresponding to the page access request is determined according to the execution result. Specifically, user information, page information, commodity information, operation information and the like corresponding to the page access request can be acquired, and the information is substituted into the regular expression to obtain an execution result, so that the corresponding target template is determined.
Step 505: and determining the floor data of each target floor in the target template.
Step 506: and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal.
In the embodiment of the invention, the target rule corresponding to the link address is determined according to the link address corresponding to the page access request, the execution result is obtained by executing the rule expression, and 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 users with different pages and different identities, so that various page layout displays are realized.
Fig. 6 is a schematic diagram illustrating a flow of another page generation method according to an embodiment of the present invention. The method is applied to a first terminal, and as shown in fig. 6, the method includes:
step 601: and sending the page access request to a server side.
The first terminal is a terminal used by a common user. The first terminal can be provided with a client corresponding to the application, and can also be provided 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 side.
Step 602: and receiving the combined data returned by the server.
Step 603: and analyzing the combined data to generate a target page corresponding to the page access request.
The target page corresponding to the page access request can be generated by the following method. Analyzing the combined data to obtain multiple groups of floor data, wherein each group of floor data comprises: floor identification and floor filling data; for each set of floor data: determining a floor assembly corresponding to the floor identification, and integrating the floor filling data into the floor assembly; and arranging and displaying the floor components according to the template layout information so as to generate a target page corresponding to the page access request.
Floor fill data is data used to fill floor components. The floor filling data may include: user information, order information, store attention information, friend information, and the like. For example, if the target floor is used for displaying the user avatar row, the user avatar corresponding to the page access request is acquired, and the user avatar is used as the floor filling data of the target floor. And if the target floor is used for displaying the commodity title line, acquiring the related information of the commodity title corresponding to the page access request, and taking the related information of the commodity title as the floor filling data of the target floor.
The template layout information may include: floor style, floor sequencing, rendering floor data, etc. Fig. 7 is a flowchart illustrating a page generation process according to an embodiment of the present invention. As shown in fig. 7, the first terminal receives a destination floor filled with data below the server, and generates a final display page by loading the floor components, loading the floor styles, loading the floor rankings, and rendering the floor data.
In the embodiment of the invention, the pages to be displayed are templated according to certain rules, and each template can comprise at least one floor. The server determines a target template corresponding to the page access request, acquires floor data of each floor in the target template, combines the floor data into combined data, and sends the combined data to the first terminal side. And the first terminal side dynamically displays the pages with different layouts according to the combined data issued by the server side. Therefore, the dynamic adjustment of the page layout can be realized by adjusting the page template, a user does not need to upgrade the client, and the cost for upgrading the client by the user is saved.
Fig. 8 is a schematic diagram of a flow of a template generation method according to an embodiment of the present invention. The method is applied to the second terminal, and as shown in fig. 8, the method includes:
step 801: a template creation instruction is received.
The second terminal is a terminal corresponding to an operator. And the operator completes the work of building, template, rule creation, management and the like through the second terminal.
Step 802: in response to the template creation instruction, a target template is created.
Step 803: receiving and storing floor binding information aiming at the target template, wherein the floor binding information comprises: at least one target floor corresponding to the target template.
The page to be displayed is divided into a plurality of parts, each part can be determined as a floor, the floor is used for displaying the page information of the part, and the single floor can be used for displaying a focus line, an order line, a wallet line, a user head line, a title line, a detail page multi-graph and the like. Fig. 4a is a schematic diagram of a floor editing interface according to an embodiment of the present invention. As shown in fig. 4a, the layout of the name of the floor, the font of the floor, the background color of the floor, the color of the text, the height of the floor, and the like may be arranged. Figure 4b is a schematic diagram of a floor preview interface provided by one embodiment of the present invention. The edited floor can be previewed through the interface shown in fig. 4 b.
Each template may include at least one floor. The process of creating the target template may include: the style of the floor to be presented and the layout of the floor are added to the target template.
Step 804: and receiving and storing template layout information aiming at the target template, wherein the template layout information is used for determining the layout mode of each target floor in the target template.
Template layout information set by an operator may be received. The template layout information may include: floor style, floor sequencing, rendering floor data, etc. Fig. 4c is a schematic diagram of a template editing interface according to an embodiment of the present invention. As shown in fig. 4c, the pattern of floors to be presented and the layout of the floors are determined according to specific needs. The process of creating the target template may further include: the style of the floor to be presented and the layout of the floor are added to the target template. Further, the floor sequence, some patterns of floors, etc. may be set.
After the target template is created, template rule information set by an operator can be received, and the template rule information is used for determining a template corresponding to the page access request. The template rule information may include: and determining a target rule corresponding to the page access request according to the target rule information by using the corresponding relation between the user information and/or the page information and the rule. For example, if the page information corresponding to the page access request is kill per second, the page access request corresponds to rule 1. If the user information corresponding to the page access request is a super member, the page access request corresponds to rule 2. And if the user information corresponding to the page access request is an enterprise member and the page information is a reservation, the page access request corresponds to a rule 3 and the like.
The target rule information further includes: and (4) regular expressions. Each rule corresponds to a unique rule expression, an execution result is obtained by executing the rule expression, and a target template corresponding to the page access request is determined according to the execution result. Specifically, user information, page information, commodity information, operation information and the like corresponding to the page access request can be acquired, and the information is substituted into the regular expression to obtain an execution result, so that the corresponding target template is determined.
In the embodiment of the invention, because 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 according to the requirement.
Fig. 9 is a schematic diagram of a data exchange process between three terminals according to an embodiment of the present invention. As shown in fig. 9, the first terminal is equipped with an App client, the user sends a request for browsing a page to the first terminal, the App client sends the request to the SOA, the SOA performs preprocessing on the request and sends the processed request to the SDK, the application of the SDK determines a target template corresponding to the request by using template data, rule data, dependency data, and the like, and returns the target template to the SOA. And the SOA calls the upstream dependence according to the floor flooded by the target template, processes the service logic, performs data assembly after processing, and returns the data to the APP terminal. And the APP terminal utilizes the returned assembly data to dynamically display the page. And the operator accesses the operation configuration platform through the second terminal to configure template data, rule data, dependence data and the like. The application of the SDK can dynamically take out template data, rule data and dependent data from the configuration center.
In order to make the method of the embodiment of the present invention easier to understand, the following explains the configuration of the page template and the page generation process as examples. Fig. 10 is a schematic structural diagram of a page generation system according to an embodiment of the present invention. As shown in fig. 10, the operator performs operations such as floor management, template management, and skin change management on the operation background through the second client, and writes data into the database and the configuration center. And the configuration center issues data such as target floors, rule expressions (expressed by MVEL) and the like to the service of the SOA cluster. And the SOA cluster generates filling data by calling the pre-dependent interface and returns the target floor filled with the data to the first client. And the first client generates a primary page by utilizing the floor data.
Fig. 11 is a schematic diagram of a page generation method flow according to an embodiment of the present invention. As shown in fig. 11, a template corresponding to the page access request is obtained according to the data such as the page access request and the floor template rule dependency. By invoking the upstream dependency, the floor data is filled and a list containing the floor identification and the floor fill data is returned to the client.
The operator needs to create a movable template at the operation platform, such as my jing-PLUS user template, my jing-enterprise user template. And after the template is created, the floors need to be bound. Floors are, say, the focus line of the page, the order line of the page, the Icon line, the wallet line. The template can set which floors are displayed, meanwhile, the floor sequence and some types of the floors can be set, meanwhile, the template can set front dependency, because some templates need front dependency interfaces to dynamically acquire user identities or other information, dynamic template display is carried out according to the acquired information, but the display rule of the regular expression can select an MVEL template engine, the MVEL engine writes and calls logic processing carried out by the dependency interfaces, and after the processing is finished, the template can be determined to be which template. And after the setting is finished, submitting the examination and approval, and writing the data into the configuration center if the examination and approval is passed.
The application accessed to the operation SDK can dynamically take out the template data, the rule data and the dependent data from the configuration center. And simultaneously, the SDK supports white lists, cut quantities and gray scales. The user who is subjected to white list, cut and gray level display different templates from the common user, and some new functions can be previewed in advance. When the HTTP request comes temporarily, the HTTP request is intercepted, then the rule of the interface is obtained according to the Path of the request, the MVEL is executed according to the rule, the dependent interface is called, the template is selected according to the execution result, and then the processed request is transmitted to the SOA.
And the SOA receives the request processed by the SDK and filters partial floors of the template, because partial floors are closed by users, service processing is carried out after filtering is finished, and upstream dependence is called according to the floors to process service logic. And assembling the data after processing. And returning the data to the APP terminal.
The APP end receives the data returned by the server end, analyzes the floor data List of the template, selects the corresponding components according to the floor numbers in the data, dynamically renders the floors according to the style and the sequence of the floors, and displays the final result to the user after the rendering. If the floors are increased greatly, the floors are increased newly, and the decoration is increased greatly only by operating and modifying the template configuration and adding new floors.
In the embodiment of the invention, the APP native page music height is built in a modularization mode, dynamic assembly components are supported, and dynamic layout is achieved. The operation SDK preprocesses the HTTP request to ensure that the data of the HTTP request conforms to the APP template, the access SDK can be processed in a unified way, and templates of different users can be selected according to the issuing logic. The operation platform supports templated creation, templates and patterns can be created, the templates can be bound with floors, and thousands of people and thousands of faces can be achieved. The SDK supports an MVEL engine and generalization calling, and can select a template according to MVEL configuration and generalization calling results.
The method of the embodiment of the invention can solve the problem that the dynamic operation cost of the APP native page is higher, the APP native page is subjected to templating according to a certain rule and is fully combined with a service end operation platform to customize a general APP component template, the service end issues templated data, and the APP can dynamically display layout and component content according to the template data issued by the service end.
In addition, APP can be modularized and the server side can be linked together, a relation is established through the template and the server side, the server side data can be combined with the APP side assembly, and the dynamic page of response is displayed through the corresponding relation, so that the dynamic effect is achieved. Frequent page layout and page effects can be supported, and the change gray scale and the cut amount of the page can be supported. The system has high availability and expansibility, and can be quickly built and developed, so that the business can be quickly supported.
In addition, the development cost of the code is reduced, and the operation can easily configure the page layout on the platform. The page configuration is cordwood, the music is high, the page can be changed at low cost, and the code coupling degree is reduced.
Fig. 12 is a schematic structural diagram of a page generating apparatus according to an embodiment of the present invention. As shown in fig. 12, the apparatus includes:
a request receiving module 1201, configured to receive a page access request from a first terminal;
a template determining module 1202, configured to determine a target template corresponding to the page access request, where the target template is generated through a second terminal configuration;
a data determining module 1203, configured to determine floor data of each target floor in the target template;
a data sending module 1204, configured to combine the floor data, generate combined data corresponding to the target template, and send the combined data to the first terminal.
Optionally, the template determining module 1202 is specifically configured to:
acquiring a link address corresponding to the page access request;
determining a target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by the second terminal configuration;
executing a rule expression corresponding to the target rule to obtain an execution result;
and determining a target template corresponding to the page access request according to the execution result.
Optionally, the data determining module 1203 is specifically configured to:
determining 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; and combining the floor identification of the target floor and the floor filling data into the floor data of the target floor.
Fig. 13 is a schematic structural diagram of another page generation apparatus according to an embodiment of the present invention. As shown in fig. 13, the apparatus is applied to a first terminal, and includes:
a request sending module 1301, configured to send a page access request to a server;
a data receiving module 1302, configured to receive combined data returned by the server;
and a page generating module 1303, configured to parse the combined data to generate a target page corresponding to the page access request.
Optionally, the page generating module 1303 is specifically configured to:
analyzing the combined data to obtain multiple groups of floor data, wherein each group of floor data comprises: floor identification and floor filling data;
for each set of the floor data: determining a floor component corresponding to the floor identification, and integrating the floor filling data into the floor component;
and arranging and displaying the floor components according to the template layout information so as to generate a target page corresponding to the page access request.
Fig. 14 is a schematic structural diagram of a template generating apparatus according to an embodiment of the present invention. As shown in fig. 14, the apparatus is applied to a second terminal, and includes:
an instruction receiving module 1401, configured to receive a template creation instruction;
a template creating module 1402 for creating a target template in response to the template creating instruction;
a first receiving module 1403, configured to receive and store floor binding information for the target template, where the floor binding information includes: at least one target floor corresponding to the target template;
a second receiving module 1404, configured to receive and store template layout information for the target templates, where the template layout information is used to determine a layout manner of each target floor in the target template.
Optionally, the apparatus further comprises:
the third receiving module 1405 is configured to receive and store template rule information, where the template rule information is used to determine a template corresponding to the page access request.
An embodiment of the present invention provides an electronic device, including:
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 are caused to implement the method of any of the embodiments described above.
Referring now to FIG. 15, shown is a block diagram of a computer system 1500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 15 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 15, the computer system 1500 includes a Central Processing Unit (CPU)1501 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1502 or a program loaded from a storage section 1508 into a Random Access Memory (RAM) 1503. In the RAM 1503, various programs and data necessary for the operation of the system 1500 are also stored. The CPU 1501, the ROM 1502, and the RAM 1503 are connected to each other by a bus 1504. Input and output (I, O) interfaces 1505 are also connected to bus 1504.
The following components are connected to I, O interface 1505: an input portion 1506 including a keyboard, a mouse, and the like; an output portion 1507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1508 including a hard disk and the like; and a communication section 1509 including a network interface card such as a LAN card, a modem, or the like. The communication section 1509 performs communication processing via a network such as the internet. Drive 1510 is also connected I, O to interface 1505 as needed. A removable medium 1511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1510 as necessary, so that a computer program read out therefrom is mounted into the storage section 1508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 1509, and/or installed from the removable medium 1511. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: the device comprises a request receiving module, a template determining module, a data determining module and a data sending module. The names of these modules do not constitute a limitation to the module itself in some cases, and for example, the request receiving module may also be described as a "module that receives a page access request from the first terminal".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
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 through second terminal configuration;
determining floor data of each target floor in the target template;
and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal.
According to the technical scheme of the embodiment of the invention, the page to be displayed is templated according to a certain rule, and each template can comprise at least one floor. The server determines a target template corresponding to the page access request, acquires floor data of each floor in the target template, combines the floor data into combined data, and sends the combined data to the first terminal side. And the first terminal side dynamically displays the pages with different layouts according to the combined data issued by the server side. Therefore, the dynamic adjustment of the page layout can be realized by adjusting the page template, a user does not need to upgrade the client, and the cost for upgrading the client by the user is saved.
Furthermore, the target template is generated by a second terminal configuration, which may be a terminal used by the operator. The operator can easily configure the layout of each page through the second terminal, so that the page change cost is reduced, and the page is easier to maintain.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A page generation method is applied to a server side and comprises the following steps:
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 through second terminal configuration;
determining floor data of each target floor in the target template;
and combining the data of each floor to generate combined data corresponding to the target template, and sending the combined data to the first terminal.
2. The method of claim 1, wherein the determining the target template corresponding to the page access request comprises:
acquiring a link address corresponding to the page access request;
determining a target rule corresponding to the link address according to the template rule information; wherein the template rule information is generated by the second terminal configuration;
executing a rule expression corresponding to the target rule to obtain an execution result;
and determining a target template corresponding to the page access request according to the execution result.
3. The method of claim 1, wherein said determining floor data for each target floor in said target template comprises:
determining 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; and 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 is applied to a first terminal and comprises the following steps:
sending the page access request to a server side;
receiving the combined data returned by the server;
and analyzing the combined data to generate a target page corresponding to the page access request.
5. The method of claim 4, wherein the parsing the combined data to generate the target page corresponding to the page access request comprises:
analyzing the combined data to obtain multiple groups of floor data, wherein each group of floor data comprises: floor identification and floor filling data;
for each set of the floor data: determining a floor component corresponding to the floor identification, and integrating the floor filling data into the floor component;
and arranging and displaying the floor components according to the template layout information so as to generate a target page corresponding to the page access request.
6. A template generation method is applied to a second terminal and comprises the following steps:
receiving a template establishing instruction;
creating a target template in response to the template creation instruction;
receiving and storing floor binding information aiming at the target template, wherein the floor binding information comprises: at least one target floor corresponding to the target template;
receiving and storing template layout information aiming at the target templates, wherein the template layout information is used for determining the layout mode of each target floor in the target templates.
7. The method of claim 6, wherein after creating the target template, further comprising:
and receiving and storing template rule information, wherein the template rule information is used for determining a template corresponding to the page access request.
8. A page generating device is applied to a server side and comprises:
the request receiving module is used for receiving a page access request from a first terminal;
the template determining module is used for determining a target template corresponding to the page access request, and the target template is generated through second terminal configuration;
the data determining module is used for determining the floor data of each target floor in the target template;
and the data sending module is used for combining the data of each floor, generating combined data corresponding to the target template, and sending the combined data to the first terminal.
9. A page generating device is applied to a first terminal and comprises:
the request sending module is used for sending the page access request to the server side;
the data receiving module is used for receiving the combined data returned by the server;
and the page generation module is used for analyzing the combined data to generate a target page corresponding to the page access request.
10. A template generating device is applied to a second terminal and comprises:
the instruction receiving module is used for receiving a template establishing instruction;
the template creating module is used for responding to the template creating instruction and creating a target template;
a first receiving module, configured to receive and store floor binding information for the target template, where the floor binding information includes: at least one target floor corresponding to the target template;
and the second receiving module is used for receiving and storing template layout information aiming at the target template, wherein the template layout information is used for determining the layout mode of each target floor in the target template.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202111041960.9A 2021-09-07 2021-09-07 Page generation method and device Pending CN113704671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111041960.9A CN113704671A (en) 2021-09-07 2021-09-07 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111041960.9A CN113704671A (en) 2021-09-07 2021-09-07 Page generation method and device

Publications (1)

Publication Number Publication Date
CN113704671A true CN113704671A (en) 2021-11-26

Family

ID=78660739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111041960.9A Pending CN113704671A (en) 2021-09-07 2021-09-07 Page generation method and device

Country Status (1)

Country Link
CN (1) CN113704671A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562670A (en) * 2022-11-15 2023-01-03 深圳市客路网络科技有限公司 Page configuration method and device, electronic equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562670A (en) * 2022-11-15 2023-01-03 深圳市客路网络科技有限公司 Page configuration method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN111177231B (en) Report generation method and report generation device
CN100444158C (en) Web page rendering mechanism using external programmatic themes
US11132114B2 (en) Method and apparatus for generating customized visualization component
US10331765B2 (en) Methods and apparatus for translating forms to native mobile applications
CN108469970B (en) Page tab information processing method and device
AU2008332701A1 (en) Templating system and method for updating content in real time
CN112633691A (en) Method and device for generating custom approval process
CN113031946A (en) Method and device for rendering page component
US10951486B2 (en) Terminal device, UI expansion method, and UI expansion program
CN113076499A (en) Page interaction method, device, equipment, medium and program product
CN113704671A (en) Page generation method and device
CN114756228A (en) Page processing method, device, equipment and storage medium
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
CN112486482A (en) Page display method and device
US20220284371A1 (en) Method, device and medium for a business function page
CN115130442A (en) Report generation method and device, storage medium and computer equipment
CN113312900A (en) Data verification method and device
CN114489619A (en) Interface view display method, terminal equipment and computer readable storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
US20060064632A1 (en) Method and system to inverse graphs
CN111831179A (en) Signing method, device and computer readable medium
CN112947918A (en) Data display method and device
US11936531B2 (en) Transforming content in a document using chained applications in a client-server architecture
CN113791787A (en) Method and device for developing page
CN113760314A (en) Page module control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination