A method and device for generating a page

The card area, control collection and control data of the terminal application are obtained and transmitted through the server, and the client generates a page, solving the problem of control difficulty and adaptability of internal components of the card in the prior art, and achieving higher page generation expansion and flexibility.

CN112130855BActive Publication Date: 2025-03-18JINGDONG TECH HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010975373.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2025-03-18
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

In existing terminal applications, it is difficult to control the components inside the card based on the card method, and the card design is poorly adaptable and cannot adapt to multiple different business data.

Method used

The server receives the request from the client to generate a page, obtains the page card area, control collection and control data corresponding to the application identifier. The control data contains the business system associated with the control, and the client receives and generates the page.

Benefits of technology

Overcoming the problem of difficulty in controlling the atomic controls inside the card, enhancing the scalability and flexibility of page generation, and solving the defect that one card internal control cannot be adapted to multiple different business systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112130855B_ABST
    Figure CN112130855B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a page, and relates to the field of computer technology. A specific implementation of the method includes: being able to receive a request for generating a page from a client through a server, obtaining one or more card areas of a page corresponding to an application identifier; the card area includes a control set; the control set includes controls; and respectively obtaining data of the card area, the control set, and the control, wherein the control data includes a business system associated with the control; the client receives the page data sent by the server and generates a page; by obtaining the data of each control in each control set in each card, the problem of difficulty in controlling the atomic controls inside the card is overcome, and the scalability and flexibility of the generated page are increased from the control level; by setting the business system associated with the control, the defect that the controls in a card cannot adapt to multiple different business systems is overcome.
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 method and device for generating a page. Background Art

[0002] In application development, the user page display of terminals (such as mobile terminals) can be based on cards; the concept of cards was proposed by Google in 2012, and cards are a collection of information. Subsequently, this design, which is based on cards as units to better focus on displaying and expressing information, has been widely used in terminal (especially mobile terminal) application design and development.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] At present, the card-based method of controlling the user interface in terminal applications usually takes the entire card as a unit, which makes it difficult to control the components inside the card. In addition, the business scenario based on the card is single. After the page adopts the card design, the display content of all cards usually comes from the same business scenario, and the same card cannot adapt to multiple different business data. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for generating a page, which can receive a request from a client to generate a page through a server, and obtain one or more card areas of a page corresponding to an application identifier; the card area contains a control set; the control set contains controls; and the data of the card area, the control set and the control are respectively obtained, wherein the control data contains a business system associated with the control; the client receives the page data sent by the server and generates a page; by obtaining the data of each control in each control set in each card, the problem of difficulty in controlling the atomic controls inside the card is overcome, and the scalability and flexibility of the generated page are increased from the control level; by setting the business system associated with the control, the defect that the controls in a card cannot adapt to multiple different business systems is overcome.

[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for generating a page is provided, characterized in that it includes: receiving a request for generating a page sent by a client, the request including an application identifier; according to the application identifier, obtaining an identifier of a card area included in the page corresponding to the application identifier, an identifier of a control set included in the card area, and an identifier of a control included in the control set; according to the identifier of the card area, obtaining card area data, and according to the identifier of the control set, obtaining control set data; according to the identifier of the control, obtaining control data, the control data including a business system associated with the control; based on the card area data, the control set data and the control data, generating page data and sending the page data.

[0007] Optionally, the method for generating a page is characterized in that:

[0008] The card area data includes the style and interaction data of the card area, the control set data includes the style and interaction data of the control set, and the control data includes the style and interaction data of the control.

[0009] Optionally, the method for generating a page is characterized in that:

[0010] Each control includes the control data, and the interaction data corresponding to the control data is derived from a business system associated with the control, and the business system associated with each control is not completely the same.

[0011] To achieve the above-mentioned purpose, according to the second aspect of an embodiment of the present invention, a method for generating a page is provided, characterized in that it includes: sending a request for generating a page, receiving page data returned corresponding to the request; obtaining card area data contained in the page data, control set data corresponding to the card area data, and control data corresponding to the control set data; generating a page according to the card area data, the control set data, and the control data.

[0012] Optionally, the method for generating a page is characterized in that:

[0013] Generate a page according to the card area data, the control set data, and the control data, including: according to the card interaction data contained in the card area data, associate the interaction of the card area on the page; according to the card style data contained in the card area data, determine the style of the card area on the page, and draw the card area; according to the control set interaction data contained in the control set data, associate the interaction of the control set in the card area on the page; according to the control set style data contained in the control set data, determine the style of the control set in the card area on the page, and draw the control set; according to the control interaction data contained in the control data, associate the interaction of the controls in the control set on the page; according to the control style data contained in the control data, determine the style of the controls in the control set on the page, and draw the controls.

[0014] Optionally, the method for generating a page is characterized in that:

[0015] Generate a page according to the card area data, the control set data, and the control data, including: using local software to generate a first page according to the card area data, the control set data, and the control data; when an exception occurs in the first page, obtain a second page from a server to replace the first page; wherein the second page is generated according to the card area data, the control set data, and the control data, and based on HTML5.

[0016] To achieve the above-mentioned purpose, according to a third aspect of an embodiment of the present invention, a device for generating a page is provided, characterized in that it is applied to a server and comprises: a module for obtaining a page control, a module for obtaining page data, and a module for sending page data; wherein,

[0017] The module for obtaining page controls is configured to receive a request from a client for generating a page, wherein the request includes an application identifier; and based on the application identifier, obtain an identifier of a card area included in the page corresponding to the application identifier, an identifier of a control set included in the card area, and an identifier of a control included in the control set;

[0018] The module for acquiring page data is used to acquire card area data according to the identification of the card area, acquire control set data according to the identification of the control set; acquire control data according to the identification of the control, and the control data includes the business system associated with the control;

[0019] The sending page data module is used to generate page data and send the page data based on the card area data, the control set data and the control data.

[0020] Optionally, the device for generating a page is characterized in that:

[0021] The card area data includes the style and interaction data of the card area, the control set data includes the style and interaction data of the control set, and the control data includes the style and interaction data of the control.

[0022] Optionally, the device for generating a page is characterized in that:

[0023] Each control includes the control data, and the interaction data corresponding to the control data is derived from a business system associated with the control, and the business system associated with each control is not completely the same.

[0024] To achieve the above-mentioned purpose, according to a fourth aspect of an embodiment of the present invention, a device for generating a page is provided, characterized in that it is applied to a client and comprises: a module for receiving page data, a module for obtaining page data and a module for generating a page; wherein:

[0025] The page data receiving module is used to send a request for generating a page and receive page data returned corresponding to the request;

[0026] The module for acquiring page data is used to acquire the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data;

[0027] The page generation module is used to generate a page according to the card area data, the control set data, and the control data.

[0028] Optionally, the device for generating a page is characterized in that:

[0029] Generate a page according to the card area data, the control set data, and the control data, including: according to the card interaction data contained in the card area data, associate the interaction of the card area on the page; according to the card style data contained in the card area data, determine the style of the card area on the page, and draw the card area; according to the control set interaction data contained in the control set data, associate the interaction of the control set in the card area on the page; according to the control set style data contained in the control set data, determine the style of the control set in the card area on the page, and draw the control set; according to the control interaction data contained in the control data, associate the interaction of the controls in the control set on the page; according to the control style data contained in the control data, determine the style of the controls in the control set on the page, and draw the controls.

[0030] Optionally, the device for generating a page is characterized in that:

[0031] Generate a page according to the card area data, the control set data, and the control data, including: using local software to generate a first page according to the card area data, the control set data, and the control data; when an exception occurs in the first page, obtain a second page from a server to replace the first page; wherein the second page is generated according to the card area data, the control set data, and the control data, and based on HTML5.

[0032] To achieve the above-mentioned purpose, according to the fifth aspect of an embodiment of the present invention, there is provided an electronic device for generating a page, characterized in that it includes: 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 any of the methods described in the above-mentioned methods for generating a page.

[0033] To achieve the above-mentioned purpose, according to a sixth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described in the above-mentioned method for generating a page is implemented.

[0034] An embodiment of the above invention has the following advantages or beneficial effects: it is able to receive a request from a client to generate a page through a server, and obtain one or more card areas of a page corresponding to an application identifier; the card area contains a control set; the control set contains controls; and the data of the card area, the control set and the control are obtained respectively, wherein the control data contains the business system associated with the control; the client receives the page data sent by the server and generates a page; by obtaining the data of each control in each control set in each card, the problem of difficulty in controlling the atomic controls inside the card is overcome, and the scalability and flexibility of the generated page are increased from the control level; by setting the business system associated with the control, the defect that the controls in a card cannot adapt to multiple different business systems is overcome.

[0035] 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

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

[0037] Figure 1 It is a flowchart of a method for generating page data provided by an embodiment of the present invention;

[0038] Figure 2 It is a schematic diagram of a flow chart of generating a page provided by an embodiment of the present invention;

[0039] Figure 3 is a schematic diagram of a page layout provided by an embodiment of the present invention;

[0040] Figure 4 It is a schematic diagram of a process of generating a page by a client provided by an embodiment of the present invention;

[0041] Figure 5 It is a structural schematic diagram of a device for generating a page provided by an embodiment of the present invention;

[0042] Figure 6 It is a structural schematic diagram of a device for generating a page provided by an embodiment of the present invention;

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

[0044] Figure 8 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

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

[0046] like Figure 1 As shown, an embodiment of the present invention provides a method for generating a page, which is applied to a server. The method may include the following steps:

[0047] Step S101: receiving a request for generating a page from a client, wherein the request includes an application identifier; obtaining, based on the application identifier, an identifier of a card area included in the page corresponding to the application identifier, an identifier of a control set included in the card area, and an identifier of a control included in the control set.

[0048] Specifically, a request for generating a page sent by a client is received, and the request includes an application identifier; the application identifier is an application identifier that includes the page, for example: appId: abcd1234, and the application identifier can be a string composed of letters and data, such as abcd1234; the application corresponding to the application identifier includes one or more pages; further, identifiers of one or more card areas of the page corresponding to the application identifier are obtained, identifiers of one or more control sets contained in the card areas, and identifiers of one or more controls contained in the control sets, where controls are atomic components that make up the page, such as buttons, pictures, text boxes, etc. It can be understood that controls are page components with the smallest granularity; further, the request for generating a page may also include other parameters related to the page, and the present application does not limit the specific content of the request for generating a page except for the application identifier.

[0049] Below Figure 3 Take the card area and controls contained in the page as an example. Figure 3 As shown, page 1 includes two card areas, namely "Card 1" (an example of the identification of the card area) and "Card 2" (an example of the identification of the card area), card 1 includes three control sets, namely "Control Set 1" (an example of the identification of the control set), "Control Set 2" (an example of the identification of the control set), and "Control Set 3" (an example of the identification of the control set); card 2 includes three control sets, namely Control Set 4, Control Set 5, and Control Set 6; wherein, control sets 1-6 respectively include their own controls, taking control set 4 as an example, the controls included in control set 4 are: "Picture 1" (an example of the identification of the control), "Text 1" (an example of the identification of the control).

[0050] The present invention does not limit the specific format and content of the application identifier, card area identifier, control set identifier, and control identifier; the number of card areas, the number of control sets, and the number of controls are set according to the page design, and the present invention does not limit the number of card areas, the number of control sets, and the number of controls.

[0051] Step S102: acquiring card area data according to the identification of the card area, acquiring control set data according to the identification of the control set; acquiring control data according to the identification of the control, wherein the control data includes a business system associated with the control.

[0052] Specifically, there are two methods to obtain the card area data, control collection data, and control data contained in the page:

[0053] The first method: By configuring the platform, according to the page design of the application, pre-set the card area data associated with one or more pages associated with the application identifier, the control set data contained in the card area, and the control data contained in each control set. When receiving a request to generate a page, obtain the above data;

[0054] The second method: establish a data table of card area data, a data table of control collection data, and a data table of control data; based on the application identifier in the page request and information about the card area identifier, control collection identifier, control identifier, etc. contained in the page request, obtain the card area data corresponding to the card area identifier, the control collection data corresponding to the control collection identifier, and the control data corresponding to the control identifier.

[0055] Further, assuming that the page data has been obtained through the first method or the second method, the following example illustrates the card area data, the control set data and the control data. Specifically, the card area data is obtained according to the identification of the card area. For example, the card area data is as follows:

[0056]

[0057] Among them, "cardId":12345 is the identifier of the card area; "cardType" indicates the type of the card, and the type of the card area can be predefined, for example: "1001" is used to indicate that the type of the card area is a card area containing multiple control sets; "cardStyle" indicates the style of the card, for example, the content contained in "cardStyle" is style data; for example: the margin between the card and the page is defined by "margin":"{top,left,bottom,right}, and the background color of the card area is defined by "backgroundColor":"#FFFFFF"; the source of the background image of the card area is defined by "backImage": http: / / file.ddd.com / imageid=11; "jumpData" indicates an example of the interactive data of the card area, and the interaction can be pressing, long pressing, scrolling, etc.; for example: after long pressing, the data jumps, and the target address of the interactive data (jump) is https: / / card.dddd.com / home?id=66.

[0058] Further, according to the identifier of the control set, the control set data is obtained. It can be understood that the control set belongs to the above-mentioned card area. For example, the control set data is as follows:

[0059]

[0060] Among them, "itemId":123456 is the identifier of the control set, "itemStyle" indicates the style of the control set, which defines the overall layout of the control set, and the content contained in "itemStyle" is style data; for example, the control set margin is defined by "margin":"{top,left,bottom,right}", and the background color of the control set is defined by "backgroundColor":"#000000"; the source of the control set background image is defined by "backImage":https: / / file.ddd.com / imageid=12345, and "jumpData" indicates an example of the interactive data of the control set. The interaction can also be pressing, long pressing, scrolling, etc.; for example: after long pressing, the data jumps, and the target address of the interactive data (jump) is https: / / service.dddd.com / home?id=22.

[0061] Furthermore, according to the identifier of the control, the control data is obtained, and the control data includes the business system associated with the control; for example, the page data of the control (taking the picture control as an example) is as follows:

[0062] "image1":{

[0063] "url":"https: / / file.ddd.com / imageid=12345678",

[0064] "jumpData":{"jumpUrl":https: / / s1.dddd.com / home? id=4567}

[0065] Among them, "image1" is the identifier of the control, "url" indicates the image source of the image control, which is a style of the control, the url and the corresponding data are style data, and "jumpData" indicates an example of the interactive data of the control. The interaction can also be click, long press, scroll, etc.; for example: after long press, the data jumps, and the interactive data (jump) is the target address of the business system s1 "https: / / s1.dddd.com / home?id=4567"; it can be understood that the target address can point to one system or to different systems, such as Figure 3In the example shown, for example, there are two controls, namely, picture 1 and text 1. Clicking picture 1 jumps to s1 system, and clicking text 1 jumps to s2 system; that is, each control contains the control data, and the interactive data corresponding to the control data comes from the business system associated with the control, and the business systems associated with each control are not exactly the same. It can be understood that through the above steps, the control control in the page reaches the minimum granularity, and different controls can point to different systems, which increases the flexibility and extensibility of the application; further, through the interactive data of the card area and the interactive data of the control set, different business systems can also be jumped; but the flexibility is reduced; pictures or texts contain specific atomic-level control data, which contains specific style fields, such as font size, font thickness, color, etc., and the content to be displayed or specific picture links; further, the atomic-level control data can be extended, and the style of the control can be set by the client and server, or it can be dynamically generated according to the parameters in the client's request. That is, the card area data contains the style and interactive data of the card area, the control set data contains the style and interactive data of the control set, and the control data contains the style and interactive data of the control. Furthermore, each control includes the control data, and the interaction data corresponding to the control data is derived from a business system associated with the control, and the business system associated with each control is not completely the same.

[0066] Step S103: Generate page data based on the card area data, the control set data and the control data, and send the page data.

[0067] Specifically, the page data is acquired according to the steps described in step S101-step S102, and further, according to the request for generating the page, the page data is generated based on the card area data, the control set data and the control data, and the page data is sent as feedback data of the request.

[0068] like Figure 2 As shown, an embodiment of the present invention provides a method for generating a page, which is applied to a client. The method may include the following steps:

[0069] Step S201: Send a request for generating a page, and receive page data returned corresponding to the request.

[0070] Specifically, a request for generating a page is sent, and page data returned by the server according to the request for generating a page is obtained. The description of the request for generating a page and the page data is consistent with step S101-step S102, and will not be repeated here.

[0071] Step S202: Acquire the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data.

[0072] Specifically, according to the acquired page data, the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data are acquired. The examples of the card area data, the control set data, and the control data are consistent with those in step S102 and are not repeated here.

[0073] Step S203: Generate a page according to the card area data, the control set data, and the control data.

[0074] Specifically, the card area, control set, and control are drawn respectively according to the card area data, the control set data, and the control data, and a page is generated; an embodiment of the present application can utilize each card data to bind each item in the list control (such as tableView) of the application, and finally realize the rendering of the entire page.

[0075] The above schematic process is as follows Figure 4 The steps S401-S411 in FIG. 4 are described and will not be repeated here.

[0076] Furthermore, a first page is generated using local software according to the card area data, the control set data, and the control data; when an exception occurs in the first page, a second page is obtained from the server to replace the first page; wherein the second page is generated according to the card area data, the control set data, and the control data, and based on HTML5. Specifically, the local software can be the development software used for the native user page of the application. The development language used can use Objective C for the iOS system and Java for the Android system. And HTML5 (HTML indicates Hyper Text Markup Language, that is, hypertext markup language. For HTML5 (a new version of HTML), JavaScript, CSS, etc. can be used. Further, the page is generated based on the local software and based on HTML5, and two sets of pages are generated. When a problem occurs online in the application generated by the local software, it can be temporarily switched to the HTML5 version to solve the problem. When the local application version is repaired, it can be switched to the local application, that is, when the first page is abnormal, the second page is obtained from the server to replace the first page. Through this solution, when a problem occurs on the application page, it is possible to flexibly handle the switching of the application without the need to re-launch the application, thereby solving the problem of the incompatibility between the local application and the HTML5 application, and improving the development efficiency and user experience.

[0077] like Figure 4 As shown, an embodiment of the present invention provides a schematic process of generating a page by a client, and the process may include the following steps:

[0078] Step S401: receiving page data returned corresponding to a request to generate a page.

[0079] Specifically, the description of the page data is consistent with that of step S102 and will not be repeated here.

[0080] Step S402: Obtain card area data.

[0081] Step S403: determine a card area style data and interaction data, and draw a card.

[0082] Specifically, step S402-step S403 describes the process of drawing a card according to the card area data, that is, according to the card interaction data contained in the card area data, the interaction of the card area on the page is associated; according to the card style data contained in the card area data, the style of the card area on the page is determined, and the card area is drawn;

[0083] The specific description of the card area data is consistent with step S102 and will not be repeated here.

[0084] Step S404: Acquire the control set data contained in the card area.

[0085] Step S405: determine a control set style data and interaction data, and draw the control set.

[0086] Specifically, step S404-step S405 describes the process of drawing a control set according to a control set data contained in the card area, that is,

[0087] According to the control set interaction data contained in the control set data, the interaction of the control set in the card area on the associated page is associated; according to the control set style data contained in the control set data, the style of the control set in the card area on the page is determined, and the control set is drawn; the specific description of the control set data is consistent with step S102 and will not be repeated here.

[0088] Step S406: Obtain controls contained in a control set.

[0089] Step S407: Determine the control style data and interaction data, and draw the control.

[0090] Specifically, step S406-step S407 describes the process of drawing controls according to the control data contained in the above-mentioned control set, that is, according to the control interaction data contained in the control data, the interaction of the controls in the control set on the associated page is determined; according to the control style data contained in the control data, the style of the controls in the control set on the page is determined, and the controls are drawn; the specific description of the control data is consistent with step S102 and will not be repeated here.

[0091] Step S408: Determine whether to draw all controls.

[0092] Specifically, if yes, indicating that all controls in the control set have been drawn, step S409 is executed to loop and process the next control; if no, step S407 is executed to draw the next control.

[0093] Step S409: Determine whether there is a next control set.

[0094] Specifically, if yes, indicating that there are multiple control sets in the card area, step S405 is executed to loop and process the next control set; if no, step S410 is executed.

[0095] Step S410: Determine whether there is a next card area.

[0096] Specifically, if yes, indicating that there are multiple card areas in the page, step S403 is executed to loop and process the next card area, and if no, step S411 is executed.

[0097] Step S411: Generate a page.

[0098] Specifically, based on the above steps, the drawing of the page is completed, and the page is further generated.

[0099] like Figure 5 As shown, the embodiment of the present invention provides a device 500 for generating a page, including: a module 501 for obtaining a page control, a module 502 for obtaining page data, and a module 503 for sending page data; wherein,

[0100] The module 501 for obtaining page controls is used to receive a request from a client for generating a page, wherein the request includes an application identifier; and according to the application identifier, obtains an identifier of a card area included in the page corresponding to the application identifier, an identifier of a control set included in the card area, and an identifier of a control included in the control set;

[0101] The module 502 for acquiring page data is used to acquire card area data according to the identification of the card area, acquire control set data according to the identification of the control set, and acquire control data according to the identification of the control, wherein the control data includes the business system associated with the control;

[0102] The sending page data module 503 is used to generate page data based on the card area data, the control set data and the control data and send the page data

[0103] Optionally, the module 501 for obtaining page controls further includes: the card area data includes the style and interaction data of the card area, the control set data includes the style and interaction data of the control set, and the control data includes the style and interaction data of the control.

[0104] Optionally, the module for obtaining page data 502 further includes: each control includes the control data, the interaction data corresponding to the control data is derived from a business system associated with the control, and the business system associated with each control is not completely the same.

[0105] like Figure 6 As shown, the embodiment of the present invention provides a device 600 for generating a page, including: a module 601 for receiving page data, a module 602 for acquiring page data, and a module 603 for generating a page; wherein,

[0106] The page data receiving module 601 is used to send a request for generating a page and receive page data returned corresponding to the request;

[0107] The page data acquisition module 602 is used to acquire the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data;

[0108] The page generation module 603 is used to generate a page according to the card area data, the control set data, and the control data.

[0109] Optionally, the page generation module 603 is also used to associate the interaction of the card area on the page according to the card interaction data contained in the card area data; determine the style of the card area on the page according to the card style data contained in the card area data, and draw the card area; associate the interaction of the control set in the card area on the page according to the control set interaction data contained in the control set data; determine the style of the control set in the card area on the page according to the control set style data contained in the control set data, and draw the control set; associate the interaction of the controls in the control set on the page according to the control interaction data contained in the control data; determine the style of the controls in the control set on the page according to the control style data contained in the control data, and draw the controls.

[0110] Optionally, the page generation module 603 is also used to generate a first page using local software based on the card area data, the control set data, and the control data; when an exception occurs in the first page, a second page is obtained from the server to replace the first page; wherein the second page is generated based on the card area data, the control set data, and the control data and based on HTML5.

[0111] An embodiment of the present invention also provides an electronic device for generating a page, comprising: 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 provided in any of the above embodiments.

[0112] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.

[0113] Figure 7 An exemplary system architecture 700 is shown to which the method for generating a page or the apparatus for generating a page according to the embodiment of the present invention can be applied.

[0114] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0115] Users can use terminal devices 701, 702, 703 to interact with server 705 through network 704 to receive or send messages, etc. Various client applications can be installed on terminal devices 701, 702, 703, such as e-commerce client applications, web browser applications, search applications, instant messaging tools, and email clients.

[0116] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0117] The server 705 may be a server providing various services, such as a server providing support for client applications used by users using the terminal devices 701, 702, and 703. The server may process the received request for generating a page and feed back the page data to the terminal device, and the client generates a page according to the page data.

[0118] It should be noted that the method for generating a page provided in the embodiment of the present invention is generally executed by the terminal device 701 , 702 , 703 or the server 705 , and accordingly, the apparatus for generating a page is generally arranged in the terminal device 701 , 702 , 703 or the server 705 .

[0119] It should be understood that Figure 7 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 implementation requirements.

[0120] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device or a server device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device or server 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.

[0121] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

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

[0123] 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 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

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

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

[0126] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, may be described as: a processor including a module for acquiring page controls, a module for acquiring page data, and a module for sending page data. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the module for acquiring page data may also be described as "a module for acquiring card areas, control sets, and control data according to the card areas, control sets, and control identifiers of a page." Furthermore, a processor includes a module for receiving page data, a module for acquiring page data, and a module for generating page data. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the module for generating page data may also be described as "a module for generating pages according to the card area data, control set data, and control data of a page."

[0127] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: the server receives a request for generating a page sent by a client, and the request includes an application identifier; according to the application identifier, obtains the identifier of the card area contained in the page corresponding to the application identifier, the identifier of the control set contained in the card area, and the identifier of the control contained in the control set; according to the identifier of the card area, obtains the card area data, and according to the identifier of the control set, obtains the control set data; according to the identifier of the control, obtains the control data, and the control data includes the business system associated with the control; based on the card area data, the control set data and the control data, generates page data and sends the page data. The client sends a request for generating a page, receives page data returned corresponding to the request; obtains card area data contained in the page data, control set data corresponding to the card area data, and control data corresponding to the control set data; and generates a page according to the card area data, the control set data, and the control data.

[0128] The server can receive a request from a client to generate a page and obtain one or more card areas of the page corresponding to the application identifier; the card area contains a control set; the control set contains controls; and the data of the card area, the control set and the control are obtained respectively, wherein the control data contains the business system associated with the control; the client receives the page data sent by the server and generates the page; by obtaining the data of each control in each control set in each card, the problem of difficulty in controlling the atomic controls inside the card is overcome, and the scalability and flexibility of the generated page are increased from the control level; by setting the business system associated with the control, the defect that the controls in a card cannot adapt to multiple different business systems is overcome.

[0129] 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 method for generating a page, characterized in that: include: Receive a request from a client to generate a page, wherein the request includes an application identifier; According to the application identifier, obtaining an identifier of a card area contained in the page corresponding to the application identifier, an identifier of a control set contained in the card area, and an identifier of a control contained in the control set; According to the identification of the card area, the card area data is obtained, and according to the identification of the control set, the control set data is obtained; according to the identification of the control, the control data is obtained, and the control data includes the business system associated with the control; wherein the interaction data corresponding to the control data includes the destination address of the business system, and the business system associated with each control is not completely the same; Based on the card area data, the control set data and the control data, page data is generated and sent.

2. The method according to claim 1, characterized in that The card area data includes the style and interaction data of the card area, the control set data includes the style and interaction data of the control set, and the control data includes the style and interaction data of the control.

3. The method according to claim 2, characterized in that Each control includes the control data, and the interaction data corresponding to the control data comes from the business system associated with the control.

4. A method for generating a page, characterized in that: include: Send a request for generating a page, and receive page data returned corresponding to the request; Obtain the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data; wherein the control set includes controls; each control includes the control data, and the interaction data corresponding to the control data is derived from the business system associated with the control, and the business system associated with each control is not completely the same; wherein the interaction data corresponding to the control data includes the destination address of the business system; A page is generated according to the card area data, the control set data, and the control data.

5. The method according to claim 4, characterized in that Generating a page according to the card area data, the control set data, and the control data includes: According to the card interaction data included in the card area data, the interaction of the card area on the page is associated; according to the card style data included in the card area data, the style of the card area on the page is determined, and the card area is drawn; According to the control set interaction data included in the control set data, the interaction of the control set in the card area on the associated page is determined; according to the control set style data included in the control set data, the style of the control set in the card area on the page is determined, and the control set is drawn; According to the control interaction data included in the control data, the interaction of the controls in the control set on the associated page is determined; according to the control style data included in the control data, the style of the controls in the control set on the page is determined, and the controls are drawn.

6. The method according to claim 4, characterized in that Generating a page according to the card area data, the control set data, and the control data includes: Generate a first page using local software according to the card area data, the control set data, and the control data; When an exception occurs in the first page, a second page is obtained from the server to replace the first page; wherein the second page is generated based on the card area data, the control set data, and the control data and based on HTML5.

7. A device for generating a page, characterized in that: include: Get page control module, get page data module and send page data module; among them, The module for obtaining page controls is configured to receive a request from a client for generating a page, wherein the request includes an application identifier; and based on the application identifier, obtain an identifier of a card area included in the page corresponding to the application identifier, an identifier of a control set included in the card area, and an identifier of a control included in the control set; The module for acquiring page data is used to acquire card area data according to the identification of the card area, acquire control set data according to the identification of the control set; acquire control data according to the identification of the control, wherein the control data includes the business system associated with the control; wherein the business system associated with each control is not completely the same; wherein the interaction data corresponding to the control data includes the destination address of the business system, The sending page data module is used to generate page data and send the page data based on the card area data, the control set data and the control data.

8. A device for generating a page, characterized in that: include: Receive page data module, obtain page data module and generate page module; wherein, The page data receiving module is used to send a request for generating a page and receive page data returned corresponding to the request; The module for obtaining page data is used to obtain the card area data contained in the page data, the control set data corresponding to the card area data, and the control data corresponding to the control set data; wherein the control set includes controls; each control includes the control data, and the interaction data corresponding to the control data comes from the business system associated with the control, and the business system associated with each control is not completely the same; wherein the interaction data corresponding to the control data includes the destination address of the business system, The page generation module is used to generate a page according to the card area data, the control set data, and the control data.

9. 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 6.

10. 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 6 is implemented.

Citation Information

Patent Citations

  • Page information showing and generating method, device and system

    CN108089878A

  • Message processing method and device

    CN111193599A