[go: up one dir, main page]

CN108319474B - Page information generation method, device and equipment - Google Patents

Page information generation method, device and equipment Download PDF

Info

Publication number
CN108319474B
CN108319474B CN201710030100.2A CN201710030100A CN108319474B CN 108319474 B CN108319474 B CN 108319474B CN 201710030100 A CN201710030100 A CN 201710030100A CN 108319474 B CN108319474 B CN 108319474B
Authority
CN
China
Prior art keywords
page
information
component
target
display page
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.)
Active
Application number
CN201710030100.2A
Other languages
Chinese (zh)
Other versions
CN108319474A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710030100.2A priority Critical patent/CN108319474B/en
Publication of CN108319474A publication Critical patent/CN108319474A/en
Application granted granted Critical
Publication of CN108319474B publication Critical patent/CN108319474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page information generation method, which comprises the following steps: receiving a request generated after a user operates a preset object on a preset display page of a terminal; responding to the request, and acquiring engine data corresponding to the request; wherein the engine data includes component information; judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information based on the engine data according to a preset rule; synthesizing and rendering the standard page structure information to obtain a target display page; and displaying the target display page on a display screen of the terminal. The embodiment of the invention also discloses a device and equipment for generating the page information.

Description

Page information generation method, device and equipment
Technical Field
The present invention relates to a page generation technology in the field of computers, and in particular, to a page information generation method, apparatus, and device.
Background
Two technical products, namely rabbit and AMS, can realize template customization of the web at present. The essence of the rabbit is an H5 interactive page editor, which uses a page template to insert components such as background, text, pictures, background music, pop-up videos and the like into a page, defines page-to-page switching effects and outputs an interactive H5 page. AMS supports more complex internal web activity page definitions. The module user interface requests a Hypertext Preprocessor (PHP) flow engine at the back end through a Java Script flow engine at the front end, then calls a service layer of the module to realize the logic processing of the page, and finally responds the result to the user.
However, the rabbit does not support complex functional components such as login, lottery and the like, and does not realize logic of linkage and dependence among the components, and a template of software only supports a fixed form, so that the form of a page is single; AMS only supports the definition of active pages for internal applications, and does not support well for non-internal applications.
Disclosure of Invention
In order to solve the technical problems, embodiments of the present invention are intended to provide a method, an apparatus, and a device for generating page information, so as to solve the problem that the existing template customization technology of web cannot implement complex function customization, diversify the form of the formed web page, and ensure the normal operation of the functions on the page; at the same time, the customization of the active page for various applications can be supported.
The technical scheme of the invention is realized as follows:
in a first aspect, a method for generating page information is provided, where the method includes:
receiving a request generated after a user operates a preset object on a preset display page of a terminal;
responding to the request, and acquiring engine data corresponding to the request; wherein the engine data includes component information;
judging whether the request meets a first preset condition or not;
if the request meets a first preset condition, generating standard page structure information based on the engine data according to a preset rule;
synthesizing and rendering the standard page structure information to obtain a target display page;
and displaying the target display page on a current display interface screen of the terminal.
In a second aspect, an apparatus for generating page information is provided, the apparatus comprising: receiving unit, first acquisition unit, judgement unit, generation unit, first processing unit and first display element, wherein:
the receiving unit is used for receiving a request generated after a user operates a preset object on a preset display page of the terminal;
the first obtaining unit is used for responding to the request and obtaining engine data corresponding to the request; wherein the engine data includes component information;
the judging unit is used for judging whether the request meets a first preset condition or not;
the generating unit is used for generating standard page structure information based on the engine data according to a preset rule if the request meets a first preset condition;
the first processing unit is used for synthesizing and rendering the standard page structure information to obtain a target display page;
the first display unit is used for displaying the target display page on a display screen of the terminal.
In a third aspect, a page information generating device is provided, where the device includes: a communication interface and a processor, wherein:
the processor is used for receiving a request generated after a user operates a preset object on a preset display page of the terminal through the communication interface; responding to the request, and acquiring engine data corresponding to the request; wherein the engine data includes component information; judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information based on the engine data according to a preset rule; synthesizing and rendering the standard page structure information to obtain a target display page; and displaying the target display page on a display screen of the terminal.
The page information generation method, the device and the equipment provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Drawings
Fig. 1 is a schematic flowchart of a method for generating page information according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another page information generating method according to an embodiment of the present invention;
FIG. 3 is a relational diagram of engine data according to an embodiment of the invention;
FIG. 4 is an information diagram of a standard page structure according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another page information generating method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a page information generating method according to another embodiment of the present invention;
FIG. 7 is a schematic diagram of a component-based lottery interface provided by an embodiment of the present invention;
FIG. 8 is a schematic illustration of a lottery interface provided by an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a page information generating apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another page information generating apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another page information generating apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a page information generating apparatus according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of another page information generating apparatus according to another embodiment of the present invention;
fig. 14 is a schematic structural diagram of a page information generating device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a page information generating method, which, as shown in fig. 1, includes the following steps:
step 101, receiving a request generated after a user operates a preset object on a preset display page of a terminal.
Specifically, the step 101 of receiving a request generated after a user operates a preset object on a preset display page of the terminal may be implemented by the page information generating device; the page information generating device may be a terminal, and may include, for example, a smart terminal capable of connecting to a network for web page access, such as a smart phone, a computer, and a tablet.
The preset display page may be a web page, i.e., a web page on the terminal, and the web page may be a web page on which a preset object having a specific function can be created; the preset object may be an identifier corresponding to a web page having a specific function, for example, capable of creating a function required by a user, and may include, for example: a Uniform Resource Locator (URL) link, icon, etc. The request can be generated after the user performs touch control such as single click, double click and the like on a preset object on the web page or click operation. For example, a user is browsing a shopping web page, the web page has an icon, and the icon indicates "click here to create a lottery page", because of the activity of shopping lottery on the web page, the user can click the icon after shopping to generate a lottery page, and then the lottery function is completed.
And 102, responding to the request, and acquiring engine data corresponding to the request.
Wherein the engine data includes component information.
Specifically, in response to the request, the step 102 may be implemented by the page information generating device to obtain the engine data corresponding to the request. After receiving a request sent by a user, a terminal may know that the request is for creating a specific web page with a certain function, and at this time, the terminal may obtain engine data (component information) required for creating the web page, where the component information may be component information corresponding to the specific web page to be created and implementing the certain function, and the component information may include: the name of the required component, the conditions that the component needs to satisfy, the actions that the component needs to perform, and other information.
And 103, judging whether the request meets a first preset condition or not.
Specifically, the step 103 of determining whether the request satisfies the first preset condition may be implemented by the page information generating device; the first preset condition may be some rules preset by a user according to requirements obtained by an actual application scenario, for example, the first preset condition may include rules of whether a request is safe, whether parameters of the request are valid, whether the request has an authority, and the like. Judging whether the request meets the first preset condition can be realized by judging whether the request sent by the user has the authority, whether the request is safe, whether the parameter of the request is effective and the like; and if the request sent by the user has the authority, the request is safe and reliable, and the requested parameters are valid, determining that the request sent by the user meets a first preset condition.
And step 104, if the request meets the first preset condition, generating standard page structure information according to a preset rule based on the engine data.
Specifically, if the request satisfies the first preset condition in step 104, the page structure information generated based on the engine data according to the preset rule may be implemented by the page information generating device; the standard page structure information may include: the information such as script language, title, style of the component, content, component tag language and non-component content forms standard page structure according to preset rules. The preset rule may be structural information of a standard page structure specified in the prior art, that is, an arrangement rule of the standard page structure.
And 105, synthesizing and rendering the standard page structure information to obtain a target display page.
Specifically, step 105 synthesizes and renders the standard page structure information, and the target display page can be obtained by the page information generating device; the target display page may be obtained by the terminal synthesizing information of a script language, a title, a style of a component, contents, a component tag language, and non-component contents in the obtained standard page structure information, and rendering the synthesized information. The target display page is a web page with certain functions.
And 106, displaying the target display page on a display screen of the terminal.
Specifically, the step 106 of displaying the target display page on the display screen of the terminal may be implemented by the page information generating device; after a target display page required by a user, namely a web page with a certain function, is created, the web page may be displayed on a current display interface of the terminal, or a tab is newly created on a webpage of the current display interface of the terminal to display the target display page.
It should be noted that, in this embodiment, the time consumed by the implementation process of acquiring the engine data corresponding to the request in step 102 is less than the time consumed by the implementation process of determining whether the request satisfies the first preset condition in step 103, so step 102 may be executed before step 103, which may improve efficiency and reduce time consumption for implementation, and step 102 may also be executed after determining that the request satisfies the first preset condition after step 103.
The page information generation method provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Based on the foregoing embodiments, an embodiment of the present invention provides a page information generating method, which is shown in fig. 2 and includes the following steps:
step 201, a page information generating device receives a request generated after a user operates a preset object on a preset display page of a terminal.
Step 202, the page information generating device obtains display information on a preset display page of the terminal.
Specifically, the terminal may obtain display information on a web page currently displayed on a display screen of the terminal, and the attribute information is mainly used for obtaining attribute information of the display information, that is, information about which aspect.
Step 203, the page information generating device responds to the request, and obtains page information and component information corresponding to the display information on the preset display page of the terminal.
Wherein the engine data includes: page information and component information.
Specifically, after the terminal receives a touch operation of a user on a web page currently displayed by the terminal, an activity topic of a specific function on the web page that needs to be obtained by the request may be obtained, and page information corresponding to the activity topic, for example, including a page a, a page B.
Step 204, the page information generating device determines whether the request meets a first preset condition.
Step 205, if the request meets the first preset condition, the page information generating device sets the non-component content corresponding to the target display page.
Specifically, the non-component content is content for organizing relationships between components, and may be used to manage the acquired components. The non-component content is a component for managing the target display page corresponding to the management target display page, i.e., the web page having a specific function.
Step 206, the page information generating device generates the title, the style of the component, the component tag language, the content and the script language corresponding to the target display page based on the page information and the component information.
Specifically, the terminal can analyze page information and component information in the engine data to obtain a title, a component style, a component tag language, content and a script language in the target display page; the script language can be a JavaScript language, the title can be a title of a web page with a specific function which needs to be obtained, and the style of the component is a display form of a corresponding component in the web page with the specific function on the web page; the tag Language of the component is a programming Language for displaying the group component on the web page with the specific function (e.g., may be a Hypertext Markup Language (HTML) Language); the content may be information that needs to be displayed in the component.
Step 207, the page information generating device processes the non-component content, the title, the component style, the component tag language, the content and the script language according to the preset rule to generate the standard page structure information.
Specifically, the non-component content, the title, the component style, the component tag language, the content and the script language may be synthesized according to the standard arrangement rule of the page structure in the prior art, so as to obtain the standard web page structure shown in fig. 4.
And step 208, the page information generating device synthesizes and renders the script language, the title, the component style, the content, the component tag language and the non-component content in the standard page structure information to obtain the target display page.
Specifically, the terminal may display the content in the component, manage the obtained component with the non-component content, determine a display form of the component on the target display page specifically according to the obtained style, and finally integrate the integrated title, the component, the content, and the non-component content using a scripting language and a component tag language to generate the target display page.
Step 209, the page information generating device displays the target display page on the display screen of the terminal.
It should be noted that, for the explanation of the same steps or related concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described here.
The page information generation method provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Based on the foregoing embodiments, an embodiment of the present invention provides a page information generating method, which is shown in fig. 5 and includes the following steps:
step 301, the page information generating device receives a request generated after a user operates a preset object on a preset display page of the terminal.
Step 302, the page information generating device obtains display information on a preset display page of the terminal.
Step 303, the page information generating device responds to the request, and obtains page information and component information corresponding to the display information on the preset display page of the terminal.
Wherein the engine data includes: page information and component information.
Step 304, the page information generating device determines whether the request satisfies a first preset condition.
Step 305, if the request meets the first preset condition, the page information generating device sets the non-component content corresponding to the target display page.
Step 306, the page information generating device generates a title corresponding to the target display page based on the page information.
Specifically, the page information in the engine data includes a title of the target display page to be obtained, and the page information may be analyzed to obtain a title corresponding to the target display page.
Step 307, the page information generating device generates a component style and a component tag language corresponding to the target display page based on the component information.
Specifically, the component information in the engine data includes a component style and a component tag language of the target display page that need to be obtained, and the component information can be analyzed to obtain the component style and the component tag language corresponding to the target display page.
Step 308, the page information generating device generates the content and the script language corresponding to the target display page based on the component information and the preset information.
Specifically, the terminal may obtain the content corresponding to the target display page according to the component information and preset default content information; the component information in the engine data includes part of content in the target display page to be obtained, and after the component information is analyzed to obtain the part of content, the content corresponding to the target display page can be obtained by combining preset default content information.
The terminal can obtain a script language corresponding to the target display page according to the component information and a preset default script language; the component information in the engine data includes a part of scripting language in the target display page to be obtained, and after the component information is analyzed to obtain the part of scripting language, all scripting languages corresponding to the target display page can be obtained by combining with the preset default scripting language.
Step 309, the page information generating device processes the non-component content, the title, the component style, the component tag language, the content and the script language according to the preset rule to generate the standard page structure information.
And step 310, the page information generating device synthesizes and renders the script language, the title, the component style, the content, the component tag language and the non-component content in the standard page structure information to obtain the target display page.
Step 311, the page information generating device displays the target display page on the display screen of the terminal.
It should be noted that, for the explanation of the same steps or related concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described here.
The page information generation method provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Based on the foregoing embodiments, an embodiment of the present invention provides a page information generating method, which is shown in fig. 6 and includes the following steps:
step 401, the page information generating device receives a request generated after a user operates a preset object on a preset display page of the terminal.
Step 402, the page information generating device obtains display information on a preset display page of the terminal.
Step 403, the page information generating device responds to the request, and obtains page information and component information corresponding to the display information on the preset display page of the terminal.
Wherein the engine data includes: page information and component information.
Step 404, the page information generating device determines whether the request meets a first preset condition.
Step 405, if the request meets a first preset condition, the page information generating device sets non-component content corresponding to the target display page.
Step 406, the page information generating device generates a title corresponding to the target display page based on the page information.
Step 407, the page information generating device generates a style of the component corresponding to the target display page based on the component information.
Step 408, the page information generating device obtains the target component corresponding to the component information.
Wherein the target component is selected from a component library.
Specifically, the component information in the engine data is the component library required by the target display page, which may be as shown in fig. 7a, and after obtaining the component library, the administrator may select the required target components from the component library according to specific requirements, for example, as shown in fig. 7b, the administrator selects components corresponding to the functions of rotating disc lottery, completing the receiving information of winners, my winning record, and the like from the component library, so that these functions may be presented in the lottery interface of fig. 7 b. Also, as shown in fig. 7b, the administrator may perform an editing process on the information in the lottery interface, set according to specific needs.
Step 409, the page information generating device obtains the display specification of the target component.
Specifically, the display specification may include information capable of representing the display attribute of the target component, such as position information and width and height information of the target component, and may affect the interface form displayed on the target display page by the target component.
Step 410, the page information generating device generates a component tag language corresponding to the target display page based on the target component and the display specification of the target component.
Specifically, after the display specifications of the target component and the target component are integrated, the component tag language corresponding to the target display page is obtained, and then the interface form and the function of the component displayed on the target display page can be determined.
Step 411, the page information generating device generates the content and the script language corresponding to the target display page based on the component information and the preset information.
Step 412, the page information generating device processes the non-component content, the title, the component style, the component tag language, the content and the script language according to the preset rule to generate the standard page structure information.
Step 413, the page information generating device synthesizes and renders the script language, the title, the component style, the content, the component tag language and the non-component content in the standard page structure information to obtain the target display page.
Step 414, the page information generating device displays the target display page on the display screen of the terminal.
Specifically, after the standard page structure information is obtained according to the page information generating method provided in the embodiment of the present invention, a target display page is obtained by synthesizing and rendering a scripting language, a title, a component style, content, a component tag language, and non-component content in the standard page structure information, for example, the target display page may be a web page with a lottery function, and the web page only includes a lottery interface, and the target display page finally displayed on the display screen of the terminal may be as shown in fig. 8,
it should be noted that, for the explanation of the same steps or related concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described here.
The page information generation method provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Based on the foregoing embodiment, the method for generating page information provided by the embodiment of the present invention further includes the following steps:
step 501, the page information generating device obtains environment information of a preset display page of the terminal.
Specifically, the environment information may be operation information of a preset display page displayed on a current display Interface of the terminal, and then the terminal may obtain identification information of an Application Program Interface (API) of the target browser, which is matched with the operation information, according to the operation information.
Step 502, the page information generating device determines the identification information of the target browser API according to the environment information, and loads the browser API library.
Specifically, a browser API library request may be generated, a browser API library for running the component information is loaded according to the request, and a browser API corresponding to the identification information of the target browser API is searched in the browser API library according to the obtained identification information of the target browser API, so as to obtain the target browser API.
Of course, in this embodiment, only calling the browser API library and obtaining the target browser API from the browser API library are illustrated, and in other embodiments, the calling may be implemented by a bridge of the browser (i.e., a module in which JavaScript directly communicates with the browser) without loading the API library.
Step 503, the page information generating device obtains the target browser API from the browser API library based on the identification information of the target browser API, and runs the component information using the target browser API.
It should be noted that, in the prior art, when a web page runs, a corresponding page information is not selected according to the running environment of a browser to run a matched interface, but in the embodiment of the present invention, a component in the web page may be run by using a browser API matched with the specific page environment information according to the specific page environment information of the web page, so as to support the use of an internal application.
Based on the foregoing embodiment, after the target display page is generated and displayed on the display screen of the terminal, the page information generation method provided by the embodiment of the present invention further includes the following steps:
step 601, the page information generating device initializes the component information corresponding to the target display page and receives an execution instruction of the user.
Specifically, the target display page is already displayed on the current display interface of the terminal, when the terminal needs to run a specific function on the display page, it is first necessary to perform initialization configuration on component information corresponding to the target display page, and after the initialization is completed, an execution instruction generated after the user clicks a lottery drawing button on the web page may be received.
Step 602, the page information generating device determines whether the execution instruction meets a second preset condition;
specifically, the determination of whether the execution instruction meets the second preset condition may be implemented by determining whether a user corresponding to the execution instruction has logged in, and if the user has not logged in, a prompt message may be returned to prompt the user to log in first. The method for acquiring the user login information can be realized according to the scheme in the prior art.
Step 603, if the execution instruction meets a second preset condition, the page information generation device responds to the execution instruction, and the control component operates the corresponding service logic and obtains an operation result.
Specifically, after the execution instruction meets the second preset condition, the corresponding service logic may be operated according to the previously set service processing logic control component, and an operation result, that is, a lottery result may be obtained. After that, subsequent operations of configuration, such as acquiring information of the user, need to be performed.
Step 604, the page information generating device displays the operation result on the target display page.
Specifically, the running result is displayed on the target display page, that is, the pointer of the rotating disc on the lottery drawing interface indicates on the rotating disc interface corresponding to the running result.
It should be noted that the page information generation method provided by the invention can provide definitions of activity pages such as lottery, reservation, downloading, gift package, starting and the like for the first launch of a multi-style game, greatly improve the efficiency of activity operation and reduce the cost of game activity development, create a platform for pulling new and active users in game operation and promoting subsequent payment behaviors, and on the other hand, also improve the operation income.
Specifically, the obtained target display page includes a web page with an interface with a lottery function, and the web page is described by taking only the lottery interface as an example:
A. the method comprises the steps that a user browses a webpage on a mobile phone at present, the webpage can be a shopping website, identification information for clicking to draw a lottery here is arranged on the shopping webpage, when the user wants to draw the lottery, the user can click the identification information, the mobile phone generates a request after receiving clicking operation of the user, and then the mobile phone responds to the request to acquire page information and component information corresponding to display information on a page displayed by the mobile phone. Of course, the component information may include names of components, conditions that the components need to satisfy, actions that the components need to perform, and the like, and the page information and the component information are information on the event topic lottery.
B. Under the condition that the request has the authority, the request is safe and reliable, and the requested parameters are effective, the mobile phone can obtain the non-component content, the title, the component style, the component tag language, the content and the script language according to the obtained page information, the component information and the preset information, and then can integrate the non-component content, the title, the component style, the component tag language, the content and the script language according to the arrangement rule of the standard web page to obtain the standard page structure information shown in fig. 4. Of course, the non-component content, title, style of the component, component tag language, content and script language in the obtained standard page structure information are all information related to the implementation of the lottery function.
C. The mobile phone can synthesize and render the scripting language, the title, the component style, the content, the component label language and the non-component content in the obtained standard page structure information to obtain an object display page which only comprises a lottery drawing interface and is shown in fig. 8, and then the object display page is displayed on the terminal; in this way, the user can perform lottery operation according to the lottery interface.
An embodiment of the present invention provides a page information generating apparatus 7, which may be applied to a page information generating method provided in the embodiments corresponding to fig. 1 to 2 and 5 to 6, and as shown in fig. 9, the apparatus may include: a receiving unit 71, a first acquiring unit 72, a judging unit 73, a generating unit 74, a first processing unit 75, and a first displaying unit 76, wherein:
the receiving unit 71 is configured to receive a request generated after a user operates a preset object on a preset display page of the terminal.
The first obtaining unit 72 is configured to, in response to the request, obtain engine data corresponding to the request.
Wherein the engine data includes component information.
And a judging unit 73 for judging whether the request satisfies a first preset condition.
And the generating unit 74 is configured to generate standard page structure information according to a preset rule based on the engine data if the request meets the first preset condition.
The first processing unit 75 is configured to synthesize and render the standard page structure information to obtain a target display page.
A first display unit 76 for displaying the target display page on the display screen of the terminal.
The page information generation device provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
Specifically, the engine data includes: page information and component information, as shown with reference to fig. 10, the first acquisition unit 72 includes: a first obtaining module 721 and a second obtaining module 722, wherein:
the first obtaining module 721 is configured to obtain display information on a preset display page of the terminal.
The second obtaining module 722 is configured to, in response to the request, obtain page information and component information corresponding to display information on a preset display page of the terminal.
Specifically, as shown in fig. 11, the generating unit 74 includes: a setup module 741, a first generation module 742, and a second generation module 743, wherein:
the setting module 741, configured to set a non-component content corresponding to the target display page if the request meets a preset condition.
A first generating module 742 is configured to generate a title, a style of the component, a component tag language, content, and a scripting language corresponding to the target display page based on the page information and the component information.
The second generating module 743 is configured to process the non-component content, the title, the component style, the component tag language, the content, and the script language according to the preset rule, and generate standard page structure information.
Further, the first generating module is specifically configured to perform the following steps:
and generating a title corresponding to the target display page based on the page information.
And generating the style and the component tag language of the component corresponding to the target display page based on the component information.
And generating content and script language corresponding to the target display page based on the component information and the preset information.
Specifically, the first generating module is further configured to perform the following steps:
and acquiring a target component corresponding to the component information.
Wherein the target component is selected from a component library.
And acquiring the display specification of the target component.
And generating a component tag language corresponding to the target display page based on the target component and the display specification of the target component.
More specifically, the first processing unit 75 is specifically configured to execute the following steps:
and synthesizing and rendering the script language, the title, the component style, the content, the component tag language and the non-component content in the standard page structure information to obtain a target display page.
Further, as shown in fig. 12, the page information generating apparatus further includes: a second acquisition unit 77 and a second processing unit 78, wherein:
and a second obtaining unit 77 for obtaining the environment information of the preset display page of the terminal.
The second obtaining unit 77 is further configured to determine, according to the environment information, identification information of the target browser application program interface API, and load a browser API library.
And a second processing unit 78, configured to obtain the target browser API from the browser API library based on the identification information of the target browser API, and run the component information using the target browser API.
Further, as shown in fig. 13, the page information generating apparatus further includes: a third processing unit 79 and a second display unit 710, wherein:
and the third processing unit 79 is configured to initialize the component information corresponding to the target display page and receive an execution instruction of the user.
The third processing unit 79 is further configured to respond to the execution instruction to control the component to run the corresponding service logic and obtain a running result when the execution instruction meets a second preset condition.
And a second display unit 710 for displaying the operation result on the target display page.
It should be noted that, in the interaction process between each unit and each module in this embodiment, reference may be made to the interaction process in the page information generation method provided in the embodiments corresponding to fig. 1 to 2 and 5 to 6, and details are not described here.
The page information generation device provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
An embodiment of the present invention provides a page information generating device 8, which may be applied to a page information generating method provided in embodiments corresponding to fig. 1 to 2 and 5 to 6, and as shown in fig. 14, the device may include: a communication interface 81 and a processor 82, wherein:
a processor 82, configured to receive, through the communication interface 81, a request generated after a user operates a preset object on a preset display page of the terminal; responding to the request, and acquiring engine data corresponding to the request; wherein the engine data includes component information; judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; synthesizing and rendering standard page structure information to obtain a target display page; and displaying the target display page on a display screen of the terminal.
It should be noted that, in the interaction process between the processor and the communication interface in this embodiment, reference may be made to the interaction process in the page information generation method provided in the embodiments corresponding to fig. 1 to 2 and 5 to 6, and details are not described here.
The page information generation device provided by the embodiment of the invention can receive a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request to acquire engine data corresponding to the request; wherein the engine data includes component information; then judging whether the request meets a first preset condition or not; if the request meets a first preset condition, generating standard page structure information according to a preset rule based on engine data; then, synthesizing and rendering standard page structure information to obtain a target display page; finally, displaying a target display page on a current display interface screen of the terminal; therefore, the corresponding functions in the page can be realized based on the component information in the engine data corresponding to the theme of the page which the user wants to generate, and the generated page is displayed finally, so that the problem that the conventional web template customization technology cannot realize complex function customization is solved, the formed web page is diversified in form, and the normal operation of the functions on the page is ensured; at the same time, the customization of the active page for various applications can be supported.
In practical applications, the receiving Unit 71, the first obtaining Unit 72, the judging Unit 73, the generating Unit 74, the first Processing Unit 75, the first displaying Unit 76, the first obtaining module 721, the second obtaining module 722, the setting module 741, the first generating module 742, the second generating module 743, the second obtaining Unit 77, the second Processing Unit 78, the third Processing Unit 79 and the second displaying Unit 710 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP) or a Field Programmable Gate Array (FPGA) located in the wireless data transmitting device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. A page information generation method is characterized by comprising the following steps:
receiving a request generated after a user operates a preset object on a preset display page of a terminal;
responding to the request, and acquiring an activity topic corresponding to a target display page, page information corresponding to the activity topic and component information corresponding to each activity page in the page information;
the activity topic is a topic of an activity page needing to be generated, and the component information is used for realizing a function corresponding to the activity topic;
if the request meets a first preset condition, setting non-component content corresponding to the target display page;
generating a title corresponding to the target display page based on the page information, and generating a style of a component corresponding to the target display page based on component information corresponding to each active page in the page information;
selecting a target component from a component library, and generating a component tag language corresponding to the target display page based on the target component;
generating content and scripting language corresponding to the target display page based on the component information and preset information;
processing the non-component content, the title, the component style, the component tag language, the content and the script language according to an arrangement rule of a standard page structure to generate standard page structure information;
synthesizing and rendering the standard page structure information to obtain a target display page;
and displaying the target display page on a display screen of the terminal.
2. The method of claim 1, further comprising:
acquiring display information on a preset display page of the terminal;
and responding to the request, and acquiring page information and component information corresponding to display information on a preset display page of the terminal.
3. The method of claim 1, wherein the generating a component tag language corresponding to the target display page based on the target component comprises:
acquiring a display specification of the target assembly;
and generating a component tag language corresponding to the target display page based on the target component and the display specification of the target component.
4. The method of claim 1, wherein the synthesizing and rendering the standard page structure information to obtain a target display page comprises:
and synthesizing and rendering the scripting language, the title, the style of the component, the content, the component tag language and the non-component content in the standard page structure information to obtain the target display page.
5. The method of claim 1, further comprising:
acquiring environmental information of a preset display page of the terminal;
determining identification information of an Application Program Interface (API) of the target browser according to the environment information, and loading an API library of the browser;
and acquiring the target browser API from the browser API library based on the identification information of the target browser API, and operating the component information by using the target browser API.
6. The method of claim 2, further comprising:
initializing component information corresponding to the target display page, and receiving an execution instruction of a user;
when the execution instruction meets a second preset condition, responding to the execution instruction to control the component to run corresponding business logic and obtain a running result;
and displaying the operation result on the target display page.
7. An apparatus for generating page information, the apparatus comprising: receiving unit, first acquisition unit, generation unit, first processing unit and first display element, wherein:
the receiving unit is used for receiving a request generated after a user operates a preset object on a preset display page of the terminal;
the first obtaining unit is used for responding to the request and obtaining an activity topic corresponding to a target display page, page information corresponding to the activity topic and component information corresponding to each activity page in the page information;
the activity topic is a topic of an activity page needing to be generated, and the component information is used for realizing a function corresponding to the activity topic;
the generating unit is used for setting non-component content corresponding to the target display page if the request meets a first preset condition; generating a title corresponding to the target display page based on the page information, and generating a style of a component corresponding to the target display page based on component information corresponding to each active page in the page information; selecting a target component from a component library, and generating a component tag language corresponding to the target display page based on the target component; generating content and scripting language corresponding to the target display page based on the component information and preset information; processing the non-component content, the title, the component style, the component tag language, the content and the script language according to an arrangement rule of a standard page structure to generate standard page structure information;
the first processing unit is used for synthesizing and rendering the standard page structure information to obtain a target display page;
the first display unit is used for displaying the target display page on a display screen of the terminal.
8. The apparatus according to claim 7, wherein the first processing unit is specifically configured to:
and synthesizing and rendering the scripting language, the title, the style of the component, the content, the component tag language and the non-component content in the standard page structure information to obtain the target display page.
9. The apparatus of claim 7, further comprising: a second acquisition unit and a second processing unit, wherein:
the second obtaining unit is used for obtaining the environmental information of a preset display page of the terminal;
the second obtaining unit is further configured to determine, according to the environment information, identification information of an application program interface API of the target browser, and load a browser API library;
and the second processing unit is used for acquiring the target browser API from the browser API library based on the identification information of the target browser API and running the component information by using the target browser API.
10. The apparatus of claim 7, further comprising: a third processing unit and a second display unit, wherein:
the third processing unit is used for initializing the component information corresponding to the target display page and receiving an execution instruction of a user;
the third processing unit is further configured to respond to the execution instruction to control the component to run the corresponding service logic and obtain a running result when the execution instruction meets a second preset condition;
and the second display unit is used for displaying the operation result on the target display page.
11. A page information generating apparatus, characterized in that the apparatus comprises: a communication interface and a processor, wherein:
a processor, configured to receive, through the communication interface, a request generated after a user operates a preset object on a preset display page of a terminal, and respond to the request according to the page information generating method of any one of claims 1 to 6.
12. A computer-readable storage medium storing executable instructions for implementing the page information generating method according to any one of claims 1 to 6 when executed.
CN201710030100.2A 2017-01-16 2017-01-16 Page information generation method, device and equipment Active CN108319474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710030100.2A CN108319474B (en) 2017-01-16 2017-01-16 Page information generation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710030100.2A CN108319474B (en) 2017-01-16 2017-01-16 Page information generation method, device and equipment

Publications (2)

Publication Number Publication Date
CN108319474A CN108319474A (en) 2018-07-24
CN108319474B true CN108319474B (en) 2021-10-15

Family

ID=62891721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710030100.2A Active CN108319474B (en) 2017-01-16 2017-01-16 Page information generation method, device and equipment

Country Status (1)

Country Link
CN (1) CN108319474B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609715A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Random option page display method and device, computer equipment and storage medium
CN112527290A (en) * 2019-09-17 2021-03-19 北京沃东天骏信息技术有限公司 Method and device for building page based on biological characteristic information
CN112784191A (en) * 2020-06-12 2021-05-11 腾讯科技(上海)有限公司 Hypertext mail rendering method, device, equipment and medium
CN112015408A (en) * 2020-07-08 2020-12-01 广州乐摇摇信息科技有限公司 Component rendering method and device, storage medium and electronic device
CN112891949B (en) * 2021-04-07 2024-08-13 网易(杭州)网络有限公司 Method and device for realizing label interface
CN113505275A (en) * 2021-07-30 2021-10-15 北京中网易企秀科技有限公司 Subscription processing method and device for multimedia object and electronic equipment
CN114997952A (en) * 2022-05-30 2022-09-02 阿里巴巴(中国)有限公司 Dynamic recommendation method, device and equipment for article information flow
CN115033828A (en) * 2022-06-28 2022-09-09 中国银行股份有限公司 Page display method, device, equipment, medium and product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430710A (en) * 2008-11-14 2009-05-13 中国科学院软件研究所 Data visualization engine system
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105607895A (en) * 2014-11-21 2016-05-25 阿里巴巴集团控股有限公司 Operation method and device of application program on the basis of application program programming interface
CN106202025A (en) * 2016-07-21 2016-12-07 深圳艾派网络科技股份有限公司 A kind of OA workflow list method for customizing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120179975A1 (en) * 2010-07-12 2012-07-12 Ryan Steelberg Apparatus, System and Method for a Media Enhancement Widget
US20120110480A1 (en) * 2010-10-31 2012-05-03 Sap Portals Israel Ltd Method and apparatus for rendering a web page
CN103631487B (en) * 2012-08-21 2018-09-28 腾讯科技(深圳)有限公司 A kind of method and device of the configuration page
CN105516333B (en) * 2015-12-23 2018-10-23 北京奇虎科技有限公司 A kind of web-based exchange method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430710A (en) * 2008-11-14 2009-05-13 中国科学院软件研究所 Data visualization engine system
CN103870266A (en) * 2012-12-12 2014-06-18 杭州新世纪电子科技有限公司 Method and system for generating page
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105607895A (en) * 2014-11-21 2016-05-25 阿里巴巴集团控股有限公司 Operation method and device of application program on the basis of application program programming interface
CN106202025A (en) * 2016-07-21 2016-12-07 深圳艾派网络科技股份有限公司 A kind of OA workflow list method for customizing

Also Published As

Publication number Publication date
CN108319474A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN108319474B (en) Page information generation method, device and equipment
US8458612B2 (en) Application management framework for web applications
US10091628B2 (en) Message based application state and card sharing methods for user devices
CN107943547B (en) Multi-service integration method, device, intelligent terminal, server and operating system
US10084878B2 (en) Systems and methods for hosted application marketplaces
CN103729425B (en) Operate response method, client, browser and system
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
US9830304B1 (en) Systems and methods for integrating dynamic content into electronic media
CN112068873B (en) Webpage generation method, device, server and storage medium
WO2014036142A2 (en) Systems and methods for tracking and updating hosted applications
CN112631591B (en) Method, apparatus, device and computer readable storage medium for table element linkage
CN106874519B (en) Page display method and device
WO2009018277A1 (en) Application management framework for web applications
CN105975393B (en) Page display detection method and system
CN112015485A (en) Page display method and device, electronic equipment and storage medium
CN113792208B (en) Picture interaction method, device, equipment, medium and program product based on webpage
US8695020B2 (en) Techniques for customizing a toolbar using widgets
CN111984258A (en) Page construction method and equipment
CN106681767B (en) Light application adding method and device
CN112287261A (en) Resource loading method and electronic device
CN112632436B (en) Web page display method, device, electronic device and storage medium
US11770437B1 (en) Techniques for integrating server-side and client-side rendered content
KR102261153B1 (en) Method for creating application
CN119829857A (en) Webpage editing method, device, terminal and storage medium
KR101038779B1 (en) Desktop remote control method

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
GR01 Patent grant
GR01 Patent grant