Page jump method, device, equipment and storage medium
By obtaining the page type identifier and parameters in the page jump operation and encapsulating them into a page jump instruction in a unified format, the problem of inconsistent information formats of different types of pages is solved, and fast and convenient page jumps and an efficient development process are achieved.
Patent Information
- Application Number
- CN202210201661.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-03-03
AI Technical Summary
The page information format contained in the page jump instructions of different types of pages is not uniform, which causes the page display component to parse the page information based on different rules, increasing the complexity of the page jump process. It is also unable to respond quickly when the information format changes, and a new version of the application needs to be released for adjustment.
By obtaining the page type identifier and parameters of the page jump operation, encapsulating them into a unified page jump instruction according to the preset protocol format, and sending them to the corresponding page display component (such as Flutter or basic page display component) to open the target page.
It achieves fast and convenient page jumps, avoids the need for application version releases, and improves demand response efficiency and development efficiency.
Smart Images

Figure CN114741636B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of artificial intelligence technology, and in particular to a page jump method, apparatus, device, and storage medium. Background Art
[0002] Applications developed using various technologies, such as Flutter, Native, and HTML5, include different types of pages, including Flutter pages, native pages, and HTML5 pages. When a user requests an application to redirect from the current page to a specific page, the application sends a redirect instruction for the specified page to the corresponding page display component, which then opens the specified page, effectively redirecting the user from the current page to the specified page. The specified page might be an HTML5 page displaying standard message notifications, a Flutter page for approval information, or a native page displaying data in a list format.
[0003] In the related art, page jump instructions for different types of pages usually contain page information in different formats. The page display component needs to parse the page information contained in the page jump instruction, determine the specified page to be opened, and then open the specified page.
[0004] The defect of the related technology is that the page information format contained in the page jump instructions of different types of pages is not unified. The page display component needs to parse the page information contained in the page jump instruction based on different rules to determine the specified page to be opened, which increases the complexity of the page jump process and makes it difficult to jump to the specified page quickly and conveniently. In addition, when the page information format changes, the page display component may not be able to parse the page information based on the existing rules and cannot perform page jumps. Developers need to expand the rules in the application and release a new version of the application to solve this problem. The release of a new version of the application requires regression testing and market review, which takes a long time and consumes more resources. Summary of the Invention
[0005] The embodiments of the present invention provide a page jump method, apparatus, device and storage medium, which can quickly call the corresponding page display component to open the target page according to the page type identifier and page parameters in the page jump instruction with a unified format, thereby quickly and conveniently completing the page jump. The instruction adjustment can be completed without the need for application release, meeting the page jump requirements supported by all applications, improving demand response efficiency, and enhancing development efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a page jump method, comprising:
[0007] When a page jump operation for an application is detected, obtaining a page type identifier and page parameters of a target page corresponding to the page jump operation;
[0008] Encapsulating the page type identifier and the page parameters into a page jump instruction according to a preset protocol format;
[0009] If the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters;
[0010] If the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0011] In a second aspect, an embodiment of the present invention further provides a page jump device, comprising:
[0012] An operation detection module is used to obtain a page type identifier and page parameters of a target page corresponding to the page jump operation when a page jump operation for the application is detected;
[0013] An instruction encapsulation module, configured to encapsulate the page type identifier and the page parameters into a page jump instruction according to a preset protocol format;
[0014] A first page jump module is configured to send the page jump instruction to the Flutter page display component if the page type identifier is a Flutter page identifier, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters;
[0015] The second page jump module is used to send the page jump instruction to the basic page display component if the page type identifier is a native page identifier or an HTML5 page identifier, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, including:
[0017] one or more processors;
[0018] a storage device for storing one or more computer programs;
[0019] When the one or more computer programs are executed by the one or more processors, the page jump method according to the embodiment of the present invention is implemented when the one or more processors execute the computer programs.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the page jump method as described in the embodiment of the present invention.
[0021] The technical solution of the embodiment of the present invention is to obtain the page type identifier and page parameters of the target page corresponding to the page jump operation when a page jump operation for an application is detected; then, according to a preset protocol format, the page type identifier and page parameters are encapsulated into a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters to complete the page jump; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page Display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and page parameters to complete the page jump. The page type identifiers and page parameters of different pages can be encapsulated into a page jump instruction with a unified format. The format of the page jump instructions for different pages can be unified. According to the page type identifier and page parameters in the page jump instruction with a unified format, the corresponding page display component can be quickly called to open the target page, thereby completing the page jump quickly and conveniently. The instruction adjustment can be completed without the need for application release, meeting the page jump requirements supported by all applications, improving demand response efficiency, and improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a flow chart of a page jump method provided in Example 1 of the present invention.
[0023] Figure 2 This is a flow chart of a page jump method provided in the second embodiment of the present invention.
[0024] Figure 3 This is a structural diagram of a page jump device provided in Example 3 of the present invention.
[0025] Figure 4 A schematic diagram of the structure of a computer device provided in Example 4 of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.
[0027] It should also be noted that, for ease of description, only the part relevant to the present invention, rather than all of the content, is shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the processing can be terminated, but can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0028] Example 1
[0029] Figure 1 This is a flow chart of a page jump method provided in Example 1 of the present invention. This embodiment of the present invention is applicable to situations where an application jumps from the current page to a specified page based on user needs. This method can be performed by the page jump device provided in this embodiment of the present invention. This device can be implemented in software and / or hardware and can generally be integrated into an application installed on a computer device.
[0030] like Figure 1 As shown, the method of the embodiment of the present invention specifically includes:
[0031] Step 101: When a page jump operation for an application is detected, a page type identifier and page parameters of a target page corresponding to the page jump operation are obtained.
[0032] Optionally, the page jump operation for the application is an operation for triggering the page displayed on the display interface of the application to jump from the current page to another page. The other page jumped to is the target page corresponding to the page jump operation.
[0033] Optionally, the page type identifier is identification information used to indicate the page type. Page types include: Flutter page, native page and HTML5 page. Correspondingly, the page type identifier includes: Flutter page identifier, native page identifier and HTML5 page identifier. According to the page type identifier of the page, the page type of the page can be determined. If the page type identifier of any page is a Flutter page identifier, it indicates that the page is a Flutter page. If the page type identifier of any page is a native page identifier, it indicates that the page is a native page. If the page type identifier of any page is an HTML5 page identifier, it indicates that the page is an HTML5 page. Identify the native page. The page type identifier consists of characters. For example, the Flutter page identifier is showFlutter, the native page identifier is showNative, and the HTML5 page identifier is showWeb.
[0034] Optionally, page parameters are parameters associated with the page, including but not limited to: page title, page uniform resource locator and / or page display parameters. The page title can be a character string that describes the entire page. The page uniform resource locator (URL) can be the address of the page resource information of the page in the server. According to the page uniform resource locator, the page resource information of the page can be obtained from the server. The server is used to associate and store the page resource information and uniform resource locator of each page. The page resource information is the relevant information used to generate the page, including but not limited to: subject information, typesetting information, text, pictures, etc., which can be preset in the computer device or obtained from the server. The page display parameter can be a character string used to indicate the display format of the page. The display format of the page includes but is not limited to the display size of the page, the display mode of the title bar and buttons in the page.
[0035] Optionally, the page jump operation for the application can be triggered by the user triggering a page jump control in the application. The page jump control is a control used to input a page jump operation for the application. The page type identifier and page parameters of the target page corresponding to the page jump control are the page type identifier and page parameters of the target page corresponding to the page jump operation.
[0036] Optionally, multiple page jump controls can be set in the application, and different page jump controls correspond to different pages. When the user needs the page displayed on the application's display interface to jump from the current page to a certain page, the user can click, long press, or slide the page jump control corresponding to the page in the application to input a page jump operation to trigger the page displayed on the application's display interface to jump from the current page to the page.
[0037] Optionally, when a page jump operation for an application is detected, obtaining a page type identifier and page parameters of a target page corresponding to the page jump operation includes: when it is detected that a user triggers a page jump control in an application, obtaining a page type identifier and page parameters of the target page corresponding to the page jump control from preset page information associated with the page jump control. The page corresponding to the page jump control is the target page. The preset page information associated with the page jump control is various types of information related to the target page, including the page type identifier and page parameters of the target page.
[0038] Optionally, the page jump operation for the application can also be that the computer device sends a page jump request to the application. The application is installed in the computer device. The page jump request is a request sent by the computer device to the application, which is used to request that the page displayed on the display interface of the application jump from the current page to another page. Different page jump requests correspond to different pages. When the computer device needs the page displayed on the display interface of the application to jump from the current page to a certain page, the computer device sends a page jump request corresponding to the page to the application, and the input is used to trigger the page jump operation of the page displayed on the display interface of the application to jump from the current page to the page.
[0039] Optionally, when a page jump operation for an application is detected, obtaining a page type identifier and page parameters of a target page corresponding to the page jump operation includes: receiving a page jump request sent by a computer device, and obtaining a page type identifier and page parameters of the target page corresponding to the page jump request from the page information carried in the page jump request. The page corresponding to the page jump request is the target page. The page information carried in the page jump request is various types of information related to the target page, including the page type identifier and page parameters of the target page.
[0040] Step 102: Encapsulate the page type identifier and the page parameters into a page jump instruction according to a preset protocol format.
[0041] Optionally, the preset protocol format is a format for encapsulating a page jump instruction. The page jump instruction is used to control the corresponding page display component to open a specified page, thereby jumping the page displayed on the application display interface from the current page to the specified page. The page jump instruction must include the page type identifier and page parameters of the specified page.
[0042] Optionally, the page type identifier is a Flutter page identifier, a native page identifier or an HTML5 page identifier, and the page parameters include: a page title, a page uniform resource locator and / or page display parameters; the page type identifier and the page parameters are composed of characters; and according to a preset protocol format, encapsulating the page type identifier and the page parameters into a page jump instruction includes: adding the page type identifier and the page parameters to a target position of a preset uniform resource identifier template to obtain a target uniform resource identifier containing the page type identifier and the page parameters, and determining the target uniform resource identifier as a page jump instruction corresponding to the page jump operation.
[0043] Optionally, a Uniform Resource Identifier (URI) is a string that uses a specific syntax to identify a resource. Typically, a URI consists of a sequence of four components: <scheme> : / / <authority> <path> ? <query>(<scheme>: / / <authority><path>?<query>). The scheme, authority, path, and query parts of a URI can contain characters or strings.
[0044] Optionally, the preset Uniform Resource Identifier (URI) template is used to generate a target URI that includes the page type identifier and the page parameters, that is, a template that generates a string that includes the page type identifier and the page parameters. The scheme part and the authority part in the preset URI template contain fixed character strings, and the path part and the query part in the preset URI template are blank, and required characters or strings can be added. The target location of the preset URI template includes the path part and the query part in the preset URI template.
[0045] Optionally, the page type identifier and the page parameters are added to a target location of a preset uniform resource identifier template to obtain a target uniform resource identifier containing the page type identifier and the page parameters, and the target uniform resource identifier is determined as a page jump instruction corresponding to the page jump operation, including: adding the page type identifier to the path portion of the preset uniform resource identifier template, adding the page parameters to the query portion of the preset uniform resource identifier template, obtaining a target uniform resource identifier containing the page type identifier and the page parameters, and determining the target uniform resource identifier as a page jump instruction corresponding to the page jump operation. The target page is the specified page to be opened.
[0046] Therefore, the embodiment of the present invention can uniformly encapsulate the page type identifiers and page parameters of different pages into a string that conforms to the syntax of the uniform resource identifier, namely the target uniform resource identifier, and determine the target uniform resource identifier as the page jump instruction corresponding to the page jump operation, so that the format of the page jump instructions for different pages can be unified.
[0047] Step 103: If the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0048] Optionally, the page display component manages the various pages that can be displayed in an application. It includes the Flutter page display component and the basic page display component. The Flutter page display component manages the various Flutter pages that can be displayed in an application. The basic page display component manages the various native and HTML5 pages that can be displayed in an application.
[0049] Optionally, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters, including: instructing the Flutter page display component to obtain the page type identifier and the page parameters from the target location of the target uniform resource identifier, and when the page type identifier is a Flutter page identifier and the target page is a registered Flutter page, according to the mapping relationship between the page parameters and the page resource information of the registered Flutter page, obtain the page resource information of the target page, generate the target page according to the page resource information, and display the target page on the display interface of the application. The application instructs the Flutter page display component to perform the above operation by sending the page jump instruction to the Flutter page display component.
[0050] Optionally, the Flutter page display component obtains the page type identifier and the page parameters from the target location of the target uniform resource identifier, including: the Flutter page display component obtains the page type identifier from the path part of the target uniform resource identifier; the Flutter page display component obtains the page parameters from the query part of the target uniform resource identifier.
[0051] Optionally, the method further includes: the Flutter page display component determines each displayable Flutter page in the application as a registered Flutter page, and stores the page parameters of the registered Flutter page. The displayable Flutter page is a Flutter page that can be displayed on the display interface of the application.
[0052] Optionally, the Flutter page display component determines whether the target page is a registered Flutter page based on the page parameters, including: the Flutter page display component queries the page parameters of the registered Flutter page for target page parameters that are the same as the page parameters; if the target page parameters are queried, the Flutter page display component determines that the target page is a registered Flutter page; if the target page parameters are not queried, the Flutter page display component determines that the target page is not a registered Flutter page.
[0053] Optionally, it also includes: the Flutter page display component establishes a mapping relationship between the page parameters of the registered Flutter page and the page resource information of the registered Flutter page, and stores the page resource information of the registered Flutter page and the mapping relationship between the page parameters of the registered Flutter page and the page resource information of the registered Flutter page.
[0054] Optionally, when the page type identifier is a Flutter page identifier and the target page is a registered Flutter page, the Flutter page display component determines the page resource information that has a mapping relationship with the page parameters of the target page as the page resource information of the target page based on the mapping relationship between the page parameters and the page resource information of the registered Flutter page, and obtains the page resource information of the target page.
[0055] Optionally, the method of enabling the Flutter page display component to obtain the page type identifier and the page parameters from the page jump instruction, and opening the target page according to the page type identifier and the page parameters, also includes: if the page type identifier is not a Flutter page identifier, then feeding back a type error prompt information to the application; wherein, the type error prompt information is used to prompt that the page type identifier of the target page is not a Flutter page identifier, and the Flutter page display component cannot open the target page; if the target page is not a registered Flutter page, then feeding back a page registration prompt information to the application; wherein, the page registration prompt information class is used to prompt that the target page is not a registered Flutter page, and the Flutter page display component cannot open the target page.
[0056] Step 104: If the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0057] Optionally, in order to enable the basic page display component to obtain the page type identifier and the page parameters from the page jump instruction, and open the target page according to the page type identifier and the page parameters, it includes: instructing the basic page display component to obtain the page type identifier and the page parameters from the target location of the target uniform resource identifier, and when the page type identifier is a native page identifier and the target page is a registered native page, according to the mapping relationship between the page parameters and the page resource information of the registered native page, obtain the page resource information of the target page, generate the target page according to the page resource information, and display the target page on the display interface of the application. The application instructs the basic page display component to perform the above operation by sending the page jump instruction to the basic page display component.
[0058] Optionally, the basic page display component obtains the page type identifier and the page parameters from the target location of the target uniform resource identifier, including: the basic page display component obtains the page type identifier from the path part of the target uniform resource identifier; the basic page display component obtains the page parameters from the query part of the target uniform resource identifier.
[0059] Optionally, the method further includes: the basic page display component determines each displayable native page in the application as a registered native page and stores the page parameters of the registered native page. The displayable native page is a native page that can be displayed on the display interface of the application.
[0060] Optionally, the basic page display component determines whether the target page is a registered native page based on the page parameters, including: the basic page display component queries the page parameters of the registered native page for target page parameters that are the same as the page parameters; if the target page parameters are queried, the basic page display component determines that the target page is a registered native page; if the target page parameters are not queried, the basic page display component determines that the target page is not a registered native page.
[0061] Optionally, it also includes: the basic page display component establishes a mapping relationship between the page parameters of the registered native page and the page resource information of the registered native page, and stores the page resource information of the registered native page and the mapping relationship between the page parameters of the registered native page and the page resource information of the registered native page.
[0062] Optionally, when the page type identifier is a native page identifier and the target page is a registered native page, the basic page display component determines the page resource information that has a mapping relationship with the page parameters of the target page as the page resource information of the target page based on the mapping relationship between the page parameters and the page resource information of the registered native page, and obtains the page resource information of the target page.
[0063] Optionally, the method of enabling the basic page display component to obtain the page type identifier and the page parameters from the page jump instruction, and open the target page according to the page type identifier and the page parameters, also includes: when the page type identifier is an HTML5 page identifier, and the target page is a registered HTML5 page, obtaining the page resource information of the target page according to the mapping relationship between the page parameters and the page resource information of the registered HTML5 page, generating the target page according to the page resource information, and displaying the target page on the display interface of the application.
[0064] Optionally, the method further includes: the basic page display component determines each displayable HTML5 page in the application as a registered HTML5 page and stores page parameters of the registered HTML5 page. The displayable HTML5 page is an HTML5 page that can be displayed on the display interface of the application.
[0065] Optionally, the basic page display component determines whether the target page is a registered HTML5 page based on the page parameters, including: the basic page display component queries the page parameters of the registered HTML5 page for target page parameters that are the same as the page parameters; if the target page parameters are queried, the basic page display component determines that the target page is a registered HTML5 page; if the target page parameters are not queried, the basic page display component determines that the target page is not a registered HTML5 page.
[0066] Optionally, it also includes: the basic page display component establishes a mapping relationship between the page parameters of the registered HTML5 page and the page resource information of the registered HTML5 page, and stores the page resource information of the registered HTML5 page and the mapping relationship between the page parameters of the registered HTML5 page and the page resource information of the registered HTML5 page.
[0067] Optionally, when the page type identifier is an HTML5 page identifier and the target page is a registered HTML5 page, the basic page display component determines the page resource information that has a mapping relationship with the page parameters of the target page as the page resource information of the target page based on the mapping relationship between the page parameters and the page resource information of the registered HTML5 page, and obtains the page resource information of the target page.
[0068] Optionally, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters, it also includes: if the page type identifier is not a native page identifier or an HTML5 page identifier, then feedback type error prompt information to the application; wherein, the type error prompt information is used to prompt that the page type identifier of the target page is not a native page identifier or an HTML5 page identifier, and the basic page display component cannot open the target page; if the target page is not a registered native page, then feedback first page registration prompt information to the application; wherein, the first page registration prompt information class is used to prompt that the target page is not a registered native page, and the basic page display component cannot open the target page; if the target page is not a registered HTML5 page, then feedback second page registration prompt information to the application; wherein, the second page registration prompt information class is used to prompt that the target page is not a registered HTML5 page, and the basic page display component cannot open the target page.
[0069] Optionally, if the application receives a page jump request sent by a computer device when it is not started, the application performs a startup operation and a login operation; after the application successfully logs in, the application displays the homepage of the application on the display interface of the application, and obtains the page type identifier and page parameters of the target page corresponding to the page jump request from the page information carried in the page jump request; according to a preset protocol format, the page type identifier and the page parameters are encapsulated as a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0070] An embodiment of the present invention provides a page jump method, which obtains the page type identifier and page parameters of the target page corresponding to the page jump operation when a page jump operation for an application is detected; then, according to a preset protocol format, the page type identifier and page parameters are encapsulated into a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters to complete the page jump; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the base A basic page display component is provided to enable the basic page display component to obtain the page type identifier and the page parameters from the page jump instruction, and open the target page according to the page type identifier and page parameters to complete the page jump. The page type identifiers and page parameters of different pages can be encapsulated into a page jump instruction with a unified format. The format of the page jump instructions for different pages can be unified. According to the page type identifier and page parameters in the page jump instruction with a unified format, the corresponding page display component can be quickly called to open the target page, thereby completing the page jump quickly and conveniently. The instruction adjustment can be completed without the need for application release, meeting the page jump requirements supported by all applications, improving the demand response efficiency, and improving the development efficiency.
[0071] Embodiments of the present invention can acquire and process various types of information during page jumps based on artificial intelligence technology. Artificial Intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results.
[0072] Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies.
[0073] Example 2
[0074] Figure 2 This is a flow chart of a page jump method provided by the second embodiment of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 2 As shown, the method of the embodiment of the present invention specifically includes:
[0075] Step 201: When a page jump operation for an application is detected, a page type identifier and page parameters of a target page corresponding to the page jump operation are obtained.
[0076] Step 202: Add the page type identifier and the page parameters to the target location of the preset uniform resource identifier template to obtain a target uniform resource identifier containing the page type identifier and the page parameters, and determine the target uniform resource identifier as a page jump instruction corresponding to the page jump operation.
[0077] Optionally, a Uniform Resource Identifier (URI) is a string that uses a specific syntax to identify a resource. Typically, a URI consists of a sequence of four components: <scheme> : / / <authority> <path> ? <query>(<scheme>: / / <authority><path>?<query>). The scheme, authority, path, and query parts of a URI can contain characters or strings.
[0078] Optionally, the preset Uniform Resource Identifier (URI) template is used to generate a target URI that includes the page type identifier and the page parameters, that is, a template that generates a string that includes the page type identifier and the page parameters. The scheme part and the authority part in the preset URI template contain fixed character strings, and the path part and the query part in the preset URI template are blank, and required characters or strings can be added. The target location of the preset URI template includes the path part and the query part in the preset URI template.
[0079] Optionally, the page type identifier and the page parameters are added to a target location of a preset uniform resource identifier template to obtain a target uniform resource identifier containing the page type identifier and the page parameters, and the target uniform resource identifier is determined as a page jump instruction corresponding to the page jump operation, including: adding the page type identifier to the path portion of the preset uniform resource identifier template, adding the page parameters to the query portion of the preset uniform resource identifier template, obtaining a target uniform resource identifier containing the page type identifier and the page parameters, and determining the target uniform resource identifier as a page jump instruction corresponding to the page jump operation. The target page is the specified page to be opened.
[0080] Step 203: If the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0081] Step 204: If the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0082] An embodiment of the present invention provides a page jump method, which can uniformly encapsulate page type identifiers and page parameters of different pages into a string that conforms to the syntax of a uniform resource identifier, namely a target uniform resource identifier, and determine the target uniform resource identifier as a page jump instruction corresponding to the page jump operation, so that the format of the page jump instructions for different pages can be unified. According to the page type identifier and page parameters in the page jump instruction with a unified format, the corresponding page display component can be quickly called to open the target page, thereby achieving fast and convenient completion of page jumps. The instruction adjustment can be completed without the need for application release, thereby meeting the page jump requirements supported by all applications, improving demand response efficiency, and improving development efficiency.
[0083] Example 3
[0084] Figure 3 This is a schematic diagram of the structure of a page jump device provided by the third embodiment of the present invention. Figure 3 As shown, the apparatus includes: an operation detection module 301 , an instruction encapsulation module 302 , a first page jump module 303 and a second page jump module 304 .
[0085] Among them, the operation detection module 301 is used to obtain the page type identifier and page parameters of the target page corresponding to the page jump operation when a page jump operation for the application is detected; the instruction encapsulation module 302 is used to encapsulate the page type identifier and the page parameters into a page jump instruction according to a preset protocol format; the first page jump module 303 is used to send the page jump instruction to the Flutter page display component if the page type identifier is a Flutter page identifier, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; the second page jump module 304 is used to send the page jump instruction to the basic page display component if the page type identifier is a native page identifier or an HTML5 page identifier, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0086] An embodiment of the present invention provides a page jump device, which obtains the page type identifier and page parameters of the target page corresponding to the page jump operation when a page jump operation for an application is detected; then, according to a preset protocol format, the page type identifier and page parameters are encapsulated into a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters to complete the page jump; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the base A basic page display component is provided to enable the basic page display component to obtain the page type identifier and the page parameters from the page jump instruction, and open the target page according to the page type identifier and page parameters to complete the page jump. The page type identifiers and page parameters of different pages can be encapsulated into a page jump instruction with a unified format. The format of the page jump instructions for different pages can be unified. According to the page type identifier and page parameters in the page jump instruction with a unified format, the corresponding page display component can be quickly called to open the target page, thereby completing the page jump quickly and conveniently. The instruction adjustment can be completed without the need for application release, meeting the page jump requirements supported by all applications, improving the demand response efficiency, and improving the development efficiency.
[0087] In an optional implementation of an embodiment of the present invention, optionally, the operation detection module 301 is specifically used to: when it is detected that a user triggers a page jump control in an application, obtain the page type identifier and page parameters of the target page corresponding to the page jump control from the preset page information associated with the page jump control.
[0088] In an optional implementation of an embodiment of the present invention, optionally, the operation detection module 301 is specifically used to: receive a page jump request sent by a computer device, and obtain a page type identifier and page parameters of a target page corresponding to the page jump request from the page information carried in the page jump request.
[0089] In an optional implementation manner of an embodiment of the present invention, optionally, the page type identifier is a Flutter page identifier, a native page identifier or an HTML5 page identifier, and the page parameters include: a page title, a page uniform resource locator and / or page display parameters; the page type identifier and the page parameters are composed of characters; the instruction encapsulation module 302 is specifically used to: add the page type identifier and the page parameters to the target position of a preset uniform resource identifier template, obtain a target uniform resource identifier containing the page type identifier and the page parameters, and determine the target uniform resource identifier as a page jump instruction corresponding to the page jump operation.
[0090] In an optional implementation manner of an embodiment of the present invention, optionally, enabling the Flutter page display component to obtain the page type identifier and the page parameters from the page jump instruction, and open the target page according to the page type identifier and the page parameters, includes: instructing the Flutter page display component to obtain the page type identifier and the page parameters from the target position of the target uniform resource identifier, and when the page type identifier is a Flutter page identifier and the target page is a registered Flutter page, obtaining the page resource information of the target page according to the mapping relationship between the page parameters and the page resource information of the registered Flutter page, generating the target page according to the page resource information, and displaying the target page on the display interface of the application.
[0091] In an optional implementation manner of an embodiment of the present invention, optionally, enabling the Flutter page display component to obtain the page type identifier and the page parameters from the page jump instruction, and opening the target page according to the page type identifier and the page parameters, further includes: if the page type identifier is not a Flutter page identifier, then feeding back type error prompt information to the application; wherein, the type error prompt information is used to prompt that the page type identifier of the target page is not a Flutter page identifier, and the Flutter page display component cannot open the target page; if the target page is not a registered Flutter page, then feeding back page registration prompt information to the application; wherein, the page registration prompt information class is used to prompt that the target page is not a registered Flutter page, and the Flutter page display component cannot open the target page.
[0092] In an optional implementation of an embodiment of the present invention, optionally, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters, including: instructing the basic page display component to obtain the page type identifier and the page parameters from the target position of the target uniform resource identifier, and when the page type identifier is a native page identifier and the target page is a registered native page, obtaining the page resource information of the target page according to the mapping relationship between the page parameters and the page resource information of the registered native page, generating the target page according to the page resource information, and displaying the target page on the display interface of the application.
[0093] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0094] The above-mentioned page jump device can execute the page jump method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the page jump method.
[0095] Example 4
[0096] Figure 4 A schematic diagram of the structure of a computer device provided in Example 4 of the present invention. Figure 4 A block diagram of an exemplary computer device 12 suitable for implementing embodiments of the present invention is shown.
[0097] Figure 4 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0098] like Figure 4 As shown, the computer device 12 is a general-purpose computing device. Components of the computer device 12 may include, but are not limited to, one or more processors 16, a memory 28, and a bus 18 connecting various business system components (including the memory 28 and the processor 16).
[0099] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0100] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0101] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 4 Not shown, usually called a "hard drive"). Although Figure 4 Although not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program device having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0102] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.
[0103] The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0104] The processor 16 executes various functional applications and data processing by running the program stored in the memory 28 to implement the page jump method provided by the embodiment of the present invention: when a page jump operation for an application is detected, the page type identifier and page parameters of the target page corresponding to the page jump operation are obtained; according to a preset protocol format, the page type identifier and the page parameters are encapsulated into a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0105] Example 5
[0106] Embodiment 5 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the page jump method provided by the embodiment of the present invention is implemented: when a page jump operation for an application is detected, a page type identifier and page parameters of a target page corresponding to the page jump operation are obtained; according to a preset protocol format, the page type identifier and the page parameters are encapsulated into a page jump instruction; if the page type identifier is a Flutter page identifier, the page jump instruction is sent to a Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; if the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to a basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
[0107] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductors, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, device or device or used in combination with it.
[0108] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0109] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0110] Computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0111] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.< / query> < / path> < / authority> < / scheme> < / query> < / path> < / authority> < / scheme>
Claims
1. A page jump method, characterized in that: include: When a page jump operation for an application is detected, obtaining a page type identifier and page parameters of a target page corresponding to the page jump operation; wherein the page type identifier is a Flutter page identifier, a native page identifier, or an HTML5 page identifier; The page type identifier and the page parameters are encapsulated into a page jump instruction according to a preset protocol format; wherein the page type identifier is added to a path portion of a preset uniform resource identifier template, and the page parameters are added to a query portion of the preset uniform resource identifier template, to obtain a target uniform resource identifier including the page type identifier and the page parameters, and the target uniform resource identifier is determined as a page jump instruction corresponding to the page jump operation; the path portion and the query portion of the preset uniform resource identifier template are blank locations in the preset uniform resource identifier template for adding required characters or character strings; If the page type identifier is a Flutter page identifier, the page jump instruction is sent to the Flutter page display component, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; If the page type identifier is a native page identifier or an HTML5 page identifier, the page jump instruction is sent to the basic page display component, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
2. The method according to claim 1, characterized in that The step of obtaining, when detecting a page jump operation for an application, a page type identifier and page parameters of a target page corresponding to the page jump operation, includes: When it is detected that the user triggers a page jump control in the application, the page type identifier and page parameters of the target page corresponding to the page jump control are obtained from the preset page information associated with the page jump control.
3. The method according to claim 1, characterized in that The step of obtaining, when detecting a page jump operation for an application, a page type identifier and page parameters of a target page corresponding to the page jump operation, includes: A page jump request sent by a computer device is received, and a page type identifier and page parameters of a target page corresponding to the page jump request are acquired from page information carried in the page jump request.
4. The method according to claim 1, wherein The page parameters include: page title, page uniform resource locator and / or page display parameters; the page type identifier and the page parameters are composed of characters.
5. The method according to claim 4, characterized in that The method of enabling the Flutter page display component to obtain the page type identifier and the page parameters from the page jump instruction, and opening the target page according to the page type identifier and the page parameters, includes: Instruct the Flutter page display component to obtain the page type identifier and the page parameters from the target location of the target uniform resource identifier, and when the page type identifier is a Flutter page identifier and the target page is a registered Flutter page, obtain the page resource information of the target page according to the mapping relationship between the page parameters and the page resource information of the registered Flutter page, generate the target page according to the page resource information, and display the target page on the display interface of the application.
6. The method according to claim 5, characterized in that The method of enabling the Flutter page display component to obtain the page type identifier and the page parameters from the page jump instruction and open the target page according to the page type identifier and the page parameters further includes: If the page type identifier is not a Flutter page identifier, a type error prompt message is fed back to the application; wherein the type error prompt message is used to prompt that the page type identifier of the target page is not a Flutter page identifier, and the Flutter page display component cannot open the target page; If the target page is not a registered Flutter page, the page registration prompt information is fed back to the application; wherein the page registration prompt information class is used to prompt that the target page is not a registered Flutter page, and the Flutter page display component cannot open the target page.
7. The method according to claim 4, characterized in that The step of enabling the basic page display component to obtain the page type identifier and the page parameters from the page jump instruction and opening the target page according to the page type identifier and the page parameters includes: Instruct the basic page display component to obtain the page type identifier and the page parameters from the target location of the target uniform resource identifier, and when the page type identifier is a native page identifier and the target page is a registered native page, obtain the page resource information of the target page according to the mapping relationship between the page parameters and the page resource information of the registered native page, generate the target page according to the page resource information, and display the target page on the display interface of the application.
8. A page jump device, characterized in that: include: An operation detection module is configured to, when detecting a page jump operation for an application, obtain a page type identifier and page parameters of a target page corresponding to the page jump operation; wherein the page type identifier is a Flutter page identifier, a native page identifier, or an HTML5 page identifier; An instruction encapsulation module is configured to encapsulate the page type identifier and the page parameters into a page jump instruction according to a preset protocol format; wherein the page type identifier is added to a path portion of a preset uniform resource identifier template, and the page parameters are added to a query portion of the preset uniform resource identifier template to obtain a target uniform resource identifier containing the page type identifier and the page parameters, and the target uniform resource identifier is determined as a page jump instruction corresponding to the page jump operation; the path portion and the query portion of the preset uniform resource identifier template are blank locations in the preset uniform resource identifier template for adding required characters or character strings; A first page jump module is configured to send the page jump instruction to the Flutter page display component if the page type identifier is a Flutter page identifier, so that the Flutter page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters; The second page jump module is used to send the page jump instruction to the basic page display component if the page type identifier is a native page identifier or an HTML5 page identifier, so that the basic page display component obtains the page type identifier and the page parameters from the page jump instruction, and opens the target page according to the page type identifier and the page parameters.
9. A computer device, characterized in that: The computer device comprises: one or more processors; a storage device for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the page jump method according to any one of claims 1 to 7 is implemented when the one or more processors execute the computer programs.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the page jump method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Page jump method and device for development assistance and computer equipment
CN109783742A
Page jumping method and device, electronic equipment and storage medium
CN112905933A