CN115828013A - Page generation method, device, equipment and storage medium - Google Patents

Page generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN115828013A
CN115828013A CN202211371749.8A CN202211371749A CN115828013A CN 115828013 A CN115828013 A CN 115828013A CN 202211371749 A CN202211371749 A CN 202211371749A CN 115828013 A CN115828013 A CN 115828013A
Authority
CN
China
Prior art keywords
page
data
target
function
target 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.)
Pending
Application number
CN202211371749.8A
Other languages
Chinese (zh)
Inventor
白秋平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211371749.8A priority Critical patent/CN115828013A/en
Publication of CN115828013A publication Critical patent/CN115828013A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application belongs to the field of data processing, and particularly relates to a page generation method, device, equipment and storage medium. The page generation method comprises the following steps: in response to detecting a creation request to create a target function in a target page, determining whether the target page exists; if the target page exists, calling a first interface to create a target function in the target page; configuring corresponding function data for the target function; and storing the page data and the functional data corresponding to the target page into a database, wherein the database is used for providing the page data and the functional data for the terminal equipment, and the terminal equipment is used for generating and displaying the target page according to the page data and the functional data. The purpose of improving the efficiency of page creation is achieved.

Description

Page generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a page generation method, apparatus, device, and storage medium.
Background
In single-page application, a page is not refreshed during page interaction, and a page is not refreshed during page skipping, so that in order to realize the single-page application, a front-end route needs to be introduced, namely, different paths are matched, the paths are analyzed, and then page content is dynamically rendered.
In the related art, when a page is generated, the page is usually constructed at the front end, and the rendering data of the back-end interface is called, so that the page is generated.
Disclosure of Invention
The embodiment of the application provides a page generation method, a page generation device and a storage medium, which are used for solving the problem that the efficiency of page creation is low when a simpler page is generated in the related art.
In a first aspect, an embodiment of the present application provides a page generation method, which is applied to a server, and the page generation method includes: in response to detecting a creation request to create a target function in a target page, determining whether the target page exists; if the target page exists, calling a first interface to create a target function in the target page; configuring corresponding function data for the target function; and storing the page data and the functional data corresponding to the target page into a database, wherein the database is used for providing the page data and the functional data for the terminal equipment, and the terminal equipment is used for generating and displaying the target page according to the page data and the functional data.
In one possible embodiment, the method further comprises: and if the target page does not exist, calling a second interface to create the target page.
In one possible embodiment, invoking the second interface to create the target page includes: calling a second interface to create routing information and page configuration data corresponding to a target page, wherein the page data comprises the routing information and the page configuration data; and creating a target page according to the routing information and the page configuration data.
In a possible implementation manner, after the invoking of the second interface to create the routing information and the page configuration data corresponding to the target page, the method further includes: determining whether to create a personalized function for the target page; creating personalized function parameters for the target page in response to the personalized function created for the target page, wherein the page data comprises the personalized function parameters; correspondingly, the creating of the target page according to the routing information and the page configuration data comprises: and creating a target page according to the routing information, the page configuration data and the personalized function parameters.
In a possible implementation manner, after creating the destination page according to the routing information and the page configuration data, the method further includes: the method comprises the steps of adopting a functional component to render a target page, wherein the functional component is provided with a data source, the data source is used for providing preset display content for the functional component, and data in the data source comprises page data and functional data.
In a second aspect, an embodiment of the present application provides a page generation method, which is applied to a terminal device, and the page generation method includes: responding to a request for displaying a target page, and acquiring page data and functional data corresponding to the target page, wherein the page data and the functional data are data stored in a database by a server, and the functional data are data configured for the target function when a server calls an interface to create the target function in the target page; generating a dynamic route according to the page data and the functional data; combining the dynamic route and the terminal route of the terminal equipment to obtain a target route; and skipping and displaying a target page according to the target route.
In one possible embodiment, generating a dynamic route from the page data and the functional data includes: in response to the fact that the target page has the personalized function, obtaining personalized function parameters of the target page; and generating a dynamic route according to the page data, the functional data and the personalized functional parameters.
In one possible implementation manner, the obtaining page data and function data corresponding to a target page in response to a request for displaying the target page includes: responding to the request for displaying the target page, and determining whether the routing information of the target page exists or not; if the routing information does not exist, calling a rear-end interface to acquire page data and functional data; correspondingly, the method also comprises the following steps: and if the routing information exists, displaying the target page according to the routing information.
In a third aspect, an embodiment of the present application provides a page generating apparatus, which is applied to a server, and the page generating apparatus includes: the determining module is used for responding to the creation request of detecting that the target function is created in the target page, and determining whether the target page exists; the creating module is used for calling the first interface to create a target function in the target page if the target page exists; the configuration module is used for configuring corresponding function data for the target function; the storage module is used for storing the page data and the functional data corresponding to the target page into a database, the database is used for providing the page data and the functional data for the terminal equipment, and the terminal equipment is used for generating and displaying the target page according to the page data and the functional data.
In a fourth aspect, an embodiment of the present application provides a page generating apparatus, which is applied to a terminal device, and the page generating apparatus includes: the acquisition module is used for responding to a request for displaying a target page and acquiring page data and functional data corresponding to the target page, wherein the page data and the functional data are data stored in a database by a server, and the functional data are data configured for the target function when a server calls an interface to create the target function in the target page; the generating module is used for generating a dynamic route according to the page data and the functional data; the processing module is used for combining the dynamic route and the terminal route of the terminal equipment to obtain a target route; and the display module is used for jumping and displaying the target page according to the target route.
In a fifth aspect, an embodiment of the present application provides a server, including: a processor, a memory, an interactive interface; the memory is for storing executable instructions executable by the processor, the processor being configured to perform the page generation method of the first aspect via execution of the executable instructions.
In a sixth aspect, an embodiment of the present application provides a terminal device, including: a processor, a memory, an interactive interface; the memory is for storing executable instructions executable by the processor, the processor being configured to perform the page generation method of the second aspect via execution of the executable instructions.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page generating method of any one of the first aspect or the second aspect.
In an eighth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the page generating method of any one of the first aspect or the second aspect is implemented.
According to the page generating method, the device, the equipment and the storage medium provided by the embodiment of the application, the server can be used for adding a page and adding a function to the page, corresponding page data and function data are generated and stored in the database, the page data and the function data can be used for rendering corresponding components, so that the page can be conveniently obtained through component rendering, when the terminal equipment displays the page, the corresponding page data and the function data can be obtained from the database of the server to generate a dynamic route, the dynamic route and the terminal route of the terminal equipment are combined, after the new route is obtained, the corresponding page can be skipped to and displayed according to the new route, and due to the combination of the route and the page, the process can be simplified no matter the design of a complex page or the design of a simple page, and the page creating efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a page generation system provided in an embodiment of the present application;
fig. 2 is a flowchart of a first embodiment of a page generation method provided in the present application;
fig. 3 is a flowchart of a second embodiment of a page generation method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a first page generation apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a second page generation apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments that can be made by one skilled in the art based on the embodiments in the present application in light of the present disclosure are within the scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The terms referred to in the present application are explained first below.
Routing: in the single-page application, the single-page application is not only non-refreshed during page interaction, but also non-refreshed during page jump, and in order to realize the single-page application, a front-end route is available. Similar to the server-side route, the front-end route is a route matched with different uniform resource locator (url), the url route is analyzed, html content of an area page is dynamically rendered, and the page is guaranteed not to be refreshed under the condition that the url route is changed.
In the related art provided in the background art, at least the following technical problems exist:
with the development of webpage making, the reconstruction of page functions becomes more and more frequent, a large number of visible functions are modularized, visual page components are separated from back-end data, and pages can be constructed more flexibly. In the related art, when a page is generated, a front end usually writes a page and transfers back-end interface rendering data to create the page, but the method has high maintenance cost, lacks flexibility, has high online development cost each time, and needs a simple page to perform a whole set of process development, which causes a problem of low efficiency in creating the page.
In view of the above problems, the inventors conceived the following: when some simple pages or featured pages need to be temporarily displayed but are not resident pages, a scheme for generating the temporary pages or the featured pages needs to be provided due to different display requirements of different users. In the process, rich components can be utilized to realize dynamic generation of pages, pages and functional designs can be stored at the back end, and the front end realizes dynamic generation of routes, or completely different pages are actually displayed in the existing same routes. Because the components are separated from the data while a large number of components are reconstructed in the earlier stage, the structuralization of the incoming data is realized subsequently, and therefore, the structure of the returned data can be customized by increasing the data to be displayed so as to realize the dynamic page construction. Therefore, the method and the device can utilize the vue frame as the bottom layer of the front-end technology, utilize route of vue to dynamically generate page path, then generate dynamic route at the front end, and combine the dynamic route and the terminal route to regenerate a new route, so as to avoid that the front-end route is lost and the newly generated page cannot be jumped to. In addition, the required page components can be loaded through the page dynamic component, so that a new page is rendered. Therefore, the simple page can be edited or developed at any time, so that the development of the simple page is simplified, and the efficiency of creating the page is improved.
In one embodiment, the page generation method may be applied in an application scenario. Fig. 1 is a schematic structural diagram of a page generation system provided in an embodiment of the present application, and as shown in fig. 1, in this scenario, the page generation system may include a server and a terminal device, and the server may include a database.
In the above scenario, the server provides two functions, namely a page generation management function and a page function generation management function, and when a page needs to be newly generated, the server can add a new route name and page data corresponding to a page structure of the page through the page generation management function, and store the route name and the page data in the database. When a page is newly added, personalized page configuration can be carried out so as to meet the page display requirements of different users. The server can render a plurality of functional components according to page data stored in the database, different pages are rendered through combination of the plurality of functional components, the functional components are provided with data sources, and the functional components can display corresponding contents through the data sources.
In the above scenario, when a new page function is required, the server may generate a management function for the generated new page function through the page function, and the server may add a function name and a page jump address corresponding to the function, so that the corresponding page may be accessed through the new function in the page.
In the above scenario, when the terminal device displays the page, it may first monitor whether the route of the page to be accessed exists in the terminal device, and if so, it may directly jump to the page and perform page display; if the page to be accessed does not exist, the back-end interface can be called to obtain the page data and the functional data of the page to be accessed, whether the page to be accessed is the page existing in the server or not is judged, if the page to be accessed does not exist, the page is jumped to 404, if the page to be accessed exists, the route of the page to be accessed is merged into the terminal equipment to form a new route, and the page is jumped to according to the new route and is displayed. Therefore, the simple page can be edited or developed at any time, so that the development of the simple page is simplified, and the efficiency of creating the page is improved.
With reference to the above scenario, the following describes in detail a technical solution of the page generation method provided in the present application through several specific embodiments.
The application provides a page generation method which is applied to a server. Fig. 2 is a flowchart of a first embodiment of a page generation method provided in the embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
s201: in response to detecting a create request to create a target function in a target page, it is determined whether the target page exists.
In this step, the server may be a Personal Computer (PC) server, which is abbreviated as PC, and the PC may provide a page generation management function and a page function generation management function. The page generation management function may be used to generate a page, and the page function generation management function may be used to generate a page function.
Specifically, when the server detects a creation request for creating a target function in a target page, it may first determine whether the target page is an existing page in the server, where the target page is an existing page in the server, and the server may directly perform function creation, and if the target page is not an existing page in the server, the server may perform function creation only by creating the target page first.
S202: and if the target page exists, calling the first interface to create a target function in the target page.
In this step, if the target page is a page already existing in the server, the server may directly invoke the first interface to create a required target function in the target page, thereby implementing the increase of the page function.
S203: and configuring corresponding function data for the target function.
In this step, the function data may include a function name and a jump address corresponding to the target function, where the jump address may select an address corresponding to a page existing in the server, and after the corresponding function data is configured for the target function, the page corresponding to the jump address may be accessed when the target function is used.
S204: and storing the page data and the functional data corresponding to the target page into a database.
In this step, the database is used to provide the page data and the function data to the terminal device, and the terminal device is used to generate and display the target page according to the page data and the function data.
Specifically, after a function is added to the target page when the target page exists, page data and function data corresponding to the target page may be stored in the database, so that when the terminal device needs to display the target page, the terminal device may obtain the page data and the function data corresponding to the target page from the database of the server, thereby rendering the target page and displaying the target page.
According to the page generation method provided by the embodiment, when the target page exists, the target function is created for the target page by calling the interface, the corresponding function data including the function name and the jump address is configured for the target function, and the page data corresponding to the target page and the function data corresponding to the target function are stored in the database, so that the terminal device can render the target page according to the page data and the function data when displaying the target page, and can jump to the corresponding jump page and display the jump page through the target function after displaying the target page. Therefore, the simple page can be edited or developed at any time, so that the development of the simple page is simplified, and the efficiency of creating the page is improved.
In one embodiment, further comprising: and if the target page does not exist, calling a second interface to create the target page.
In the scheme, when the server detects that a creation request of a target function is created in a target page, if the target page does not exist, a second interface needs to be called to create the target page, so that the target function can be added in the target page, and therefore when the target function is used, a page corresponding to a jump address configured by the target function can be accessed, so that a simple page can be edited or developed at any time, the development of the simple page can be simplified, and the efficiency of creating the page can be improved.
In one embodiment, invoking the second interface to create the target page comprises: calling a second interface to create routing information and page configuration data corresponding to a target page, wherein the page data comprises the routing information and the page configuration data; and creating a target page according to the routing information and the page configuration data.
In this scheme, the routing information may be used to determine a name of the target page, the routing information may also be a routing name, and the page configuration data may be configuration data corresponding to the page structure. When the second interface is called to create the target page, the second interface is called to add the routing information and the page configuration data of the target page newly, so that the creation of the target page is realized.
Specifically, the page configuration data of the target page can be implemented as target page rendering functional components, and the target page can be obtained by combining the functional components. Therefore, the simple page can be edited or developed at any time to simplify the development of the simple page, so that the efficiency of creating the page is improved.
In an embodiment, after the second interface is called to create the routing information and the page configuration data corresponding to the target page, the method further includes: determining whether to create a personalized function for the target page; creating personalized function parameters for the target page in response to the personalized function created for the target page, wherein the page data comprises the personalized function parameters; correspondingly, the creating of the target page according to the routing information and the page configuration data comprises: and creating a target page according to the routing information, the page configuration data and the personalized function parameters.
In the scheme, when the server adds a page, the server can also provide a personalized function for the added page, and the personalized function can be a page configuration for adding specificity in the added page, for example, a region division, that is, different pages can be generated for the same route name according to different requirements of different regions, and a configurable residual field can be provided to enrich more distinctive requirements. Therefore, the personalized function parameters can be created for the target page, so that the target page is created through the routing information, the page configuration data and the personalized function parameters, various requirements of different users are met, user experience is improved, and the application range of the generated page is expanded.
Specifically, after the destination page is created according to the routing information, the page configuration data, and the personalized function parameter, all data corresponding to the created destination page may be used as the initial dynamic page data.
In one embodiment, after creating the destination page according to the routing information and the page configuration data, the method further includes: the method comprises the steps of adopting a functional component to render a target page, wherein the functional component is provided with a data source, the data source is used for providing preset display content for the functional component, and data in the data source comprises page data and functional data.
In the scheme, when the page is generated, different functional components are required to be combined to obtain the target page, so that a plurality of functional components can be obtained by rendering the page data corresponding to the target page, then the target page is rendered by adopting the functional components, and the result of the final display of the target page on the terminal equipment can be seen in real time in the server, thereby facilitating the adjustment of the layout of the target page.
Specifically, the functional component is configured with a data source, which may be a default data source or a dynamically acquired data source, and when the dynamically acquired data source is configured for the functional component, the functional component can acquire the content specified in the data source through the specified field, so that a user can view the content corresponding to the functional component when interacting through the functional component. Therefore, the development of the simple page can be simplified, and the efficiency of creating the page is improved.
The application also provides a page generation method which is applied to the terminal equipment. Fig. 3 is a flowchart of a second embodiment of a page generation method provided in the embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
s301: and responding to the request to display the target page, and acquiring page data and functional data corresponding to the target page.
In this step, the page data and the function data are data stored in the database by the server, and the function data is data configured for the target function when the server calls the interface to create the target function in the target page.
Specifically, the terminal device may serve as a main body for displaying a page generated by the server, and when a request for displaying a target page is detected, may invoke the backend interface to query whether the target page exists, and if the page data and the function data of the target page are obtained, it is determined that the target page exists.
Specifically, after the server creates the target page, all data corresponding to the target page is used as initial dynamic page data, so that when the target page exists, the terminal device can determine whether the target page is a newly created page according to the acquired page data and the functional data. And when the page data and the functional data are initial dynamic page data, the target page is a newly generated page.
Optionally, the terminal device may call the interface to actively acquire the page data and the function data from the database of the server, and may also receive the page data and the function data sent by the server.
S302: and generating a dynamic route according to the page data and the functional data.
In this step, the destination page is a newly generated page, and a route corresponding to the destination page, that is, a dynamic route, may be generated according to the page data and the functional data.
Specifically, the terminal device may determine, by the request server, whether the target page is a page newly generated after the terminal device is initialized.
S303: and combining the dynamic route and the terminal route of the terminal equipment to obtain a target route.
In this step, when the target page is a page newly generated after the terminal device is initialized, the terminal device may combine the dynamic route and the terminal route of the terminal device itself to obtain the target route, so that the terminal device may perform page jump according to the target route.
S304: and jumping and displaying the target page according to the target route.
In this step, after the target route is obtained, the terminal device may jump to the target page and display the target page. The terminal equipment can display the target page through the integration of the components, the page data and the functional data, so that the effect of newly generating the page is achieved.
According to the page generation method, the dynamic route corresponding to the target page is determined by acquiring the page data corresponding to the target page and the functional data corresponding to the target function, so that the terminal equipment can combine the dynamic route and the terminal route of the terminal equipment to obtain a new target route, and the target page is displayed according to the target route. Therefore, the simple page can be edited or developed at any time, so that the development of the simple page is simplified, and the efficiency of creating the page is improved.
In one embodiment, generating a dynamic route from page data and function data includes: in response to the fact that the target page has the personalized function, obtaining personalized function parameters of the target page; and generating a dynamic route according to the page data, the functional data and the personalized functional parameters.
In the scheme, when the dynamic route is generated according to the page data and the functional data, the terminal device can request the server to determine whether the target page has the personalized function parameter due to the existence of the personalized page, and if the target page has the personalized function parameter, the dynamic route can be generated according to the page data, the functional data and the personalized function parameter. Thus, the dynamic route and the original terminal route of the terminal equipment can be combined. The terminal device is initialized.
Optionally, after the dynamic route is determined through the route information, the page configuration data and the personalized function parameters, the dynamic route and the terminal route are combined to obtain a target route, and after the terminal device skips according to the target route, the displayed target page can meet various requirements of different users, so that the user experience can be improved, and the application range of the target page is expanded.
In one embodiment, the obtaining page data and function data corresponding to a target page in response to a request for displaying the target page includes: responding to the request for displaying the target page, and determining whether the routing information of the target page exists or not; if the routing information does not exist, calling a rear-end interface to acquire page data and functional data; correspondingly, the method also comprises the following steps: and if the routing information exists, displaying the target page according to the routing information.
In the scheme, because a page is newly added in the function or a page is newly added in the page in the initialization process of the terminal device, if the page is newly added in the function, after the function is used, the page to be skipped, that is, the target page, may be a page that does not exist in the server, and at this time, the page is directly skipped to the wrong page, such as the page 404. Therefore, whether routing information corresponding to the target page exists in the terminal device can be monitored in the process of jumping to the target page, if the routing information of the target page does not exist in the terminal device, the terminal device can call a rear-end interface to request the server in real time to obtain page data and function data, and if the page data and the function data can be obtained, the target page is a newly-added page in the server, so that the target page can be reassembled and then a new route can be generated, the new route is a dynamic route, the dynamic route is merged into the terminal route of the terminal device to obtain the target route, and the terminal device can jump to the target page according to the target route and display the target page.
Optionally, if the routing information corresponding to the target page does not exist in the terminal device, the page is skipped to 404. Therefore, the simple page can be edited or developed at any time, so that the development of the simple page is simplified, and the efficiency of creating the page is improved.
The page generation method provided by this embodiment provides efficient data binding and a flexible component system through a compact Application Programming Interface (API) based on a front-end framework vue; and bidirectional binding, namely responsive data binding, by vue. When a page is generated, page configuration data returned by the back end is added through a technique of dynamically introducing components by vue, and required components are dynamically rendered; in addition, according to the data binding logic designed and realized in the assembly, the initial data configuration can be supported, the interface data can be utilized to dynamically set the data binding field through the returned data to flexibly bind the data to the assembly, and vue can automatically make synchronous response to the change of certain data in the page. That is, vue will automatically respond to the change of data, and modify all the data and view contents bound together according to the binding relationship written in advance in the code by the user. Therefore, on the basis of realizing the initialization of local data, the data in the components can be dynamically bound, and the components are introduced into the terminal equipment needing to be displayed, so that when a page needs to be generated, the components can be introduced into the page, and different pages can be generated by a small amount of data and development through dynamic component binding and data binding; in addition, dynamic routing is added through a vue routing system to realize dynamic introduction of a newly generated page into the terminal equipment, so that the page can be smoothly displayed by the terminal equipment, and the update of the new page can be provided even if a code is not updated online.
The embodiment of the application further provides a page generation device applied to the server. Fig. 4 is a schematic structural diagram of a first embodiment of a page generating apparatus provided in the embodiment of the present application, and as shown in fig. 4, the page generating apparatus 400 includes:
a determining module 401, configured to determine whether a target page exists in response to detecting a creation request for creating a target function in the target page;
a creating module 402, configured to invoke a first interface to create a target function in a target page if the target page exists;
a configuration module 403, configured to configure corresponding function data for the target function;
the storage module 404 is configured to store the page data and the function data corresponding to the target page in a database, where the database is configured to provide the page data and the function data to a terminal device, and the terminal device is configured to generate and display the target page according to the page data and the function data.
Optionally, the creating module 402 is further configured to invoke a second interface to create the target page if the target page does not exist.
Optionally, when the creating module 402 calls the second interface to create the target page, the creating module is specifically configured to: calling a second interface to create routing information and page configuration data corresponding to a target page, wherein the page data comprises the routing information and the page configuration data; and creating a target page according to the routing information and the page configuration data.
Optionally, the page generating apparatus 400 further includes a processing module (not shown), where the processing module is specifically configured to: after the routing information and the page configuration data corresponding to the target page are created by calling the second interface, whether a personalized function is created for the target page is determined; creating personalized function parameters for the target page in response to the personalized function created for the target page, wherein the page data comprises the personalized function parameters; correspondingly, when creating the target page according to the routing information and the page configuration data, the creating module 402 is specifically configured to: and creating a target page according to the routing information, the page configuration data and the personalized function parameters.
Optionally, the processing module is further specifically configured to: after the target page is created according to the routing information and the page configuration data, the target page is rendered by adopting the functional component, the functional component is configured with a data source, the data source is used for providing preset display content for the functional component, and data in the data source comprises page data and functional data.
The page generating apparatus provided in this embodiment is configured to execute the technical solution of the page generating method applied to the server in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the application also provides a page generation device, which is applied to the terminal equipment. Fig. 5 is a schematic structural diagram of a second embodiment of a page generating apparatus provided in the embodiment of the present application, and as shown in fig. 5, the page generating apparatus 500 includes:
an obtaining module 501, configured to respond to a request for displaying a target page, and obtain page data and functional data corresponding to the target page, where the page data and the functional data are data stored in a database by a server, and the functional data is data configured for a target function when a server calls an interface to create the target function in the target page;
a generating module 502, configured to generate a dynamic route according to the page data and the function data;
a processing module 503, configured to combine the dynamic route and the terminal route of the terminal device to obtain a target route;
and the display module 504 is configured to jump and display the target page according to the target route.
Optionally, when the generating module 502 generates the dynamic route according to the page data and the function data, the generating module is specifically configured to: in response to the fact that the target page has the personalized function, obtaining personalized function parameters of the target page; and generating a dynamic route according to the page data, the functional data and the personalized functional parameters.
Optionally, when the obtaining module 501 responds to the request to display the target page and obtains the page data and the function data corresponding to the target page, it is specifically configured to: responding to the request for displaying the target page, and determining whether the routing information of the target page exists or not; if the routing information does not exist, calling a rear-end interface to acquire page data and functional data; accordingly, the display module 504 is further configured to: and if the routing information exists, displaying the target page according to the routing information.
The page generating apparatus provided in this embodiment is configured to execute the technical solution of the page generating method applied to the terminal device in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the application also provides the terminal equipment. Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
As shown in fig. 6, terminal device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output interface 612, a sensor component 614, and a communication component 616. The input/output interface 612 may also be referred to as an I/O interface 612, among others.
The processing component 602 generally controls overall operation of the terminal device 600, such as operations associated with display, data transmission, and the like. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the page generation method described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the terminal device 600. Examples of such data include instructions for any application or method operating on terminal device 600, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 606 provides power to the various components of the terminal device 600. The power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device 600.
The multimedia component 608 includes a screen providing an output interface between the terminal device 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the terminal device 600 is in an operational mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a start button and a lock button, etc.
The sensor component 614 includes one or more sensors for providing various aspects of status detection for the terminal device 600. For example, the sensor component 614 may detect an open/close state of the terminal device 600, the sensor component 614 may also detect the presence or absence of user contact with the terminal device 600, orientation or acceleration/deceleration of the terminal device 600, temperature changes of the terminal device 600, and the like. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the terminal device 600 and other devices in a wired or wireless manner. The terminal device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
An embodiment of the present application further provides a server, and fig. 7 is a schematic structural diagram of a server provided in an embodiment of the present application, where the server may be provided as a computer, for example. Referring to fig. 7, server 700 includes a processing component 701 that further includes one or more processors and memory resources, represented by memory 702, for storing instructions, such as application programs, that are executable by processing component 701. The application programs stored in memory 702 may include one or more modules that each correspond to a set of instructions. Further, the processing component 701 is configured to execute instructions to perform embodiments of the page generation method applied to the server described above.
The server 700 may also include a power component 703, the power component 703 configured to perform power management of the server 700, a wired or wireless network interface 704 configured to connect the server 700 to a network, and an input-output interface 705, which input-output interface 705 may also be referred to as an I/O interface 705. The server 700 may operate based on an operating system stored in memory 702, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory is used for storing programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules within the aforementioned memories may also include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and the computer program is used, when being executed by a processor, to implement the technical solution of the page generation method provided in the method embodiment.
The embodiment of the present application further provides a computer program product, which includes a computer program, and the computer program is used for implementing the technical scheme of the page generation method provided in the method embodiment when being executed by the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A page generation method is applied to a server, and comprises the following steps:
in response to detecting a creation request to create a target function in a target page, determining whether the target page exists;
if the target page exists, calling a first interface to create the target function in the target page;
configuring corresponding function data for the target function;
storing the page data and the function data corresponding to the target page into a database, wherein the database is used for providing the page data and the function data for terminal equipment, and the terminal equipment is used for generating and displaying the target page according to the page data and the function data.
2. The page generating method according to claim 1, further comprising:
and if the target page does not exist, calling a second interface to create the target page.
3. The page generating method according to claim 2, wherein said calling the second interface to create the target page comprises:
calling the second interface to create routing information and page configuration data corresponding to the target page, wherein the page data comprises the routing information and the page configuration data;
and creating the target page according to the routing information and the page configuration data.
4. The page generating method according to claim 3, wherein after the calling the second interface to create the routing information and the page configuration data corresponding to the target page, the method further comprises:
determining whether to create a personalized function for the target page;
in response to the target page is established with personalized functions, establishing personalized function parameters for the target page, wherein the page data comprises the personalized function parameters;
correspondingly, the creating the target page according to the routing information and the page configuration data includes:
and creating the target page according to the routing information, the page configuration data and the personalized function parameters.
5. The page generating method according to claim 3 or 4, wherein after the creating the destination page according to the routing information and the page configuration data, further comprising:
and rendering the target page by adopting a functional component, wherein the functional component is provided with a data source, the data source is used for providing preset display content for the functional component, and data in the data source comprises the page data and the functional data.
6. A page generation method is applied to terminal equipment and comprises the following steps:
responding to a request for displaying a target page, and acquiring page data and function data corresponding to the target page, wherein the page data and the function data are data stored in a database by a server, and the function data are data configured for the target function when the server calls an interface to create the target function in the target page;
generating a dynamic route according to the page data and the functional data;
combining the dynamic route and the terminal route of the terminal equipment to obtain a target route;
and jumping and displaying the target page according to the target route.
7. The method for generating pages according to claim 6, wherein said generating a dynamic route from said page data and said functional data comprises:
in response to the fact that the target page has the personalized function, obtaining personalized function parameters of the target page;
and generating the dynamic route according to the page data, the functional data and the personalized functional parameters.
8. The page generation method according to claim 6 or 7, wherein the obtaining of the page data and the function data corresponding to the target page in response to the request for displaying the target page comprises:
responding to a request for displaying a target page, and determining whether routing information of the target page exists or not;
if the routing information does not exist, calling a back-end interface to acquire the page data and the functional data;
correspondingly, the method also comprises the following steps:
and if the routing information exists, displaying the target page according to the routing information.
9. A page generation apparatus applied to a server, the page generation apparatus comprising:
the determining module is used for responding to the creation request of detecting that the target function is created in the target page, and determining whether the target page exists or not;
the creating module is used for calling a first interface to create the target function in the target page if the target page exists;
the configuration module is used for configuring corresponding functional data for the target function;
the storage module is used for storing the page data and the functional data corresponding to the target page into a database, the database is used for providing the page data and the functional data for terminal equipment, and the terminal equipment is used for generating and displaying the target page according to the page data and the functional data.
10. A page generating device is applied to a terminal device, and comprises:
an obtaining module, configured to respond to a request for displaying a target page, and obtain page data and functional data corresponding to the target page, where the page data and the functional data are data stored in a database by a server, and the functional data is data configured for the target function when a target function is created in the target page by the server call interface;
the generating module is used for generating a dynamic route according to the page data and the functional data;
the processing module is used for combining the dynamic route and the terminal route of the terminal equipment to obtain a target route;
and the display module is used for jumping and displaying the target page according to the target route.
11. A server, comprising:
a processor, a memory, an interactive interface;
the memory is for storing executable instructions executable by the processor, the processor being configured to perform the page generation method of any of claims 1 to 5 via execution of the executable instructions.
12. A terminal device, comprising:
a processor, a memory, an interactive interface;
the memory is for storing executable instructions executable by the processor, the processor being configured to perform the page generation method of any of claims 6 to 8 via execution of the executable instructions.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the page generation method of any one of claims 1 to 8.
14. A computer program product comprising a computer program which, when executed by a processor, implements the page generation method of any one of claims 1 to 8.
CN202211371749.8A 2022-11-03 2022-11-03 Page generation method, device, equipment and storage medium Pending CN115828013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371749.8A CN115828013A (en) 2022-11-03 2022-11-03 Page generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371749.8A CN115828013A (en) 2022-11-03 2022-11-03 Page generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115828013A true CN115828013A (en) 2023-03-21

Family

ID=85526453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371749.8A Pending CN115828013A (en) 2022-11-03 2022-11-03 Page generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115828013A (en)

Similar Documents

Publication Publication Date Title
CN107943439B (en) Interface moving method and device, intelligent terminal, server and operating system
CN111026396B (en) Page rendering method and device, electronic equipment and storage medium
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
CN107741844B (en) Method and device for generating application installation package
CN111026490B (en) Page rendering method and device, electronic equipment and storage medium
CN111026491B (en) Interface display method, device, electronic equipment, server and storage medium
US9875109B2 (en) Method and apparatus for generating user adaptive application in mobile terminal
CN111151011B (en) Payment interface display method and display equipment for web game
CN110990105B (en) Interface display method and device, electronic equipment and storage medium
CN111796820B (en) Method and device for constructing front-end page based on integrated assembly and electronic equipment
CN111796823A (en) Method and device for updating page and displaying page and page maintenance system
US20120166979A1 (en) Method and Apparatus for Enabling User Interface Customization
US20150286486A1 (en) System and method of guiding a user in utilizing functions and features of a computer-based device
CN112612386B (en) Mobile terminal and display method of application card thereof
US11200294B2 (en) Page updating method and display device
CN107168738A (en) A kind of management method of application tool, device, equipment and storage medium
Rodrigues et al. New trends on ubiquitous mobile multimedia applications
CN113095053A (en) Webpage table customizing method and device
CN114530148A (en) Control method and device and electronic equipment
CN110908629A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN110134477B (en) Method, device, medium and electronic equipment for dynamically laying out user pages
CN108600838B (en) Information source switching method and device for Android television, Android television and readable storage medium
CN110134463B (en) Data processing method, device, equipment and machine readable medium
CN115828013A (en) Page generation method, device, equipment and storage medium
CN112307377A (en) Information display method and device and electronic equipment

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