Page jump method, device, equipment and computer-readable storage medium

By analyzing menu requests, obtaining virtual routes and real routes, combining platform type matching jump implementation classes, the page jump limitations of cross-platform business is solved, and flexible dynamic page jumps are achieved.

CN116567092BActive Publication Date: 2025-08-15SHANGHAI WEIMOB ENTERPRISE DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310571939.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2025-08-15
Estimated Expiration
2043-05-19

AI Technical Summary

Technical Problem

The page jump method of existing application software does not support cross-platform business jump, resulting in great limitations in business use and the inability to dynamically freely control page jumps.

Method used

By analyzing the received menu trigger request, the target menu, system type and business version parameters are obtained, the route mapping table is used to match the target virtual route and the real route, and the platform type matching jump implementation class is implemented, and dynamic page jump is performed.

Benefits of technology

It realizes dynamic page redirection according to server configuration, supports flexible redirection of different platforms, enriches the routing framework functions, and overcomes the limitations of native modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116567092B_ABST
    Figure CN116567092B_ABST
Patent Text Reader

Abstract

The present application discloses a page jump method, including: parsing a received menu trigger request to obtain target menu, target system type and target business version parameters; obtaining a pre-associated target virtual route through a menu entry corresponding to the target menu; searching a target real route and a target platform type corresponding to the target virtual route from a route mapping table according to the target system type and target business version parameters; matching a corresponding target jump implementation class according to the target platform type; executing the target jump implementation class according to the first business parameter carried in the target virtual route and / or the second business parameter carried in the target real route to jump to the target page. The present application can implement jumps to different versions and different routes based on the dynamic configuration of the server to support jumps to different platforms, which is more flexible and free. The present application also discloses a page jump device, equipment and storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a page jump method, device, equipment and computer-readable storage medium. Background Art

[0002] The existing application software (Application, App) routing frameworks on the market are all based on native implementations, which can only meet the interaction of native page scenarios and do not support cross-platform business jumps. They are helpless in the face of complex business scenarios and cannot dynamically and freely control the jump pages. The business usage is too limited.

[0003] In summary, how to effectively solve the problem that the existing page jump method does not support the jump of cross-platform services and has great limitations in business use is a problem that those skilled in the art urgently need to solve. Summary of the Invention

[0004] The purpose of this application is to provide a page jump method, which can realize the jump of different versions and routes according to the dynamic configuration of the server to support the jump of different platforms, which is more flexible and free; another purpose of this application is to provide a page jump device, equipment and computer-readable storage medium.

[0005] To solve the above technical problems, this application provides the following technical solutions:

[0006] A page jump method, comprising:

[0007] Parse the received menu trigger request to obtain the target menu, target system type and target business version parameters;

[0008] Obtaining the pre-associated target virtual route through the menu entry corresponding to the target menu;

[0009] According to the target system type and the target service version parameters, the target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table;

[0010] Match the corresponding target jump implementation class according to the target platform type;

[0011] The target jump implementation class is executed according to the first business parameter carried in the target virtual route and / or the second business parameter carried in the target real route to jump to the target page.

[0012] In a specific embodiment of the present application, matching the corresponding target jump implementation class according to the target platform type includes:

[0013] The corresponding target jump implementation class is matched according to the target platform type in a key-value pair manner.

[0014] In a specific embodiment of the present application, searching the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the target service version parameter includes:

[0015] Determine whether the target service version parameter exists in the routing mapping table;

[0016] If not, searching for the nearest neighbor service version parameter of the target service version parameter from each service version parameter lower than the target service version parameter in the routing mapping table;

[0017] The target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the nearest neighbor service version parameter.

[0018] In a specific embodiment of the present application, searching the target real route and the target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the nearest neighbor service version parameter includes:

[0019] The target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the nearest neighbor service version parameter in a key-value pair manner.

[0020] In a specific embodiment of the present application, after obtaining the pre-associated target virtual route through the menu entry corresponding to the target menu, and before searching the target real route and target platform type corresponding to the target virtual route from the routing mapping table according to the target system type and the target service version parameter, the method further includes:

[0021] Verify whether the target virtual route meets the preset specifications;

[0022] If so, the step of searching the route mapping table for the target real route and the target platform type corresponding to the target virtual route according to the target system type and the target service version parameters is performed.

[0023] In a specific embodiment of the present application, executing the target jump implementation class according to the first service parameter carried in the target virtual route and / or the second service parameter carried in the target real route includes:

[0024] When the target virtual route carries the first service parameter and the target real route does not carry the second service parameter, executing the target jump implementation class according to the first service parameter;

[0025] When the target virtual route does not carry the first service parameter and the target real route carries the second service parameter, executing the target jump implementation class according to the second service parameter;

[0026] When the target virtual route carries a first service parameter and the target real route carries a second service parameter, the target jump implementation class is executed in combination with the first service parameter and the second service parameter.

[0027] In a specific implementation of the present application, executing the target jump implementation class in combination with the first service parameter and the second service parameter includes:

[0028] Merging the first service parameter and the second service parameter to obtain a merged service parameter;

[0029] Execute the target jump implementation class according to the merged business parameters.

[0030] A page jump device, comprising:

[0031] The request parsing module is used to parse the received menu trigger request to obtain the target menu, target system type and target business version parameters;

[0032] A virtual route acquisition module, configured to acquire a pre-associated target virtual route through a menu entry corresponding to the target menu;

[0033] A real route and platform type search module is used to search the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the target service version parameters;

[0034] A jump implementation class matching module, used to match the corresponding target jump implementation class according to the target platform type;

[0035] The page jump module is used to execute the target jump implementation class according to the business parameters carried in the target virtual route and / or the target real route to jump to the target page.

[0036] A page jump device, comprising:

[0037] memory for storing computer programs;

[0038] The processor is used to implement the steps of the page jump method as described above when executing the computer program.

[0039] A computer-readable storage medium stores a computer program, which implements the steps of the page jump method described above when executed by a processor.

[0040] The page jump method provided in the present application parses the received menu trigger request to obtain the target menu, target system type and target business version parameters; obtains the pre-associated target virtual route through the menu entry corresponding to the target menu; searches the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target business version parameters; matches the corresponding target jump implementation class according to the target platform type; executes the target jump implementation class according to the first business parameter carried in the target virtual route and / or the second business parameter carried in the target real route to jump to the target page.

[0041] As can be seen from the above technical solution, by setting the correspondence between the menu and the virtual route and configuring the real route information of different types of system platforms corresponding to the virtual route, the menu is triggered to obtain the real route through the virtual route and then jump to the specific page. Compared with the traditional routing framework, it is more functional. The route jump of the page is no longer limited to the native module. It can realize the jump of different versions and routes based on the dynamic configuration of the server to support the jump of different platforms, which is more flexible and free.

[0042] Correspondingly, the present application also provides a page jump device, equipment and computer-readable storage medium corresponding to the above-mentioned page jump method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 This is an implementation flow chart of the page jump method in the embodiment of the present application;

[0045] Figure 2 This is another implementation flow chart of the page jump method in the embodiment of the present application;

[0046] Figure 3 This is a structural block diagram of a page jump device in an embodiment of the present application;

[0047] Figure 4 This is a structural block diagram of a page jump device in an embodiment of the present application;

[0048] Figure 5 This is a schematic diagram of the specific structure of a page jump device provided in this embodiment. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the embodiments described are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making any creative efforts are within the scope of protection of the present application.

[0050] See also Figure 1 , Figure 1 This is a flowchart of an implementation method of a page jump method in an embodiment of the present application. The method may include the following steps:

[0051] S101: Parse the received menu trigger request to obtain target menu, target system type and target service version parameters.

[0052] When a page redirect is required based on current business needs, a menu trigger request is generated, such as by clicking a menu, and sent to the page redirect management center. The menu trigger request includes the target menu, target system type, and target business version parameters. The page redirect management center receives the menu trigger request and parses it to obtain the target menu, target system type, and target business version parameters.

[0053] The page jump management center can be an application software, the system types can include Android system, IOS system, mini program system, and the business versions can include version 1.0, version 1.1, and version 1.2.

[0054] S102: Acquire the pre-associated target virtual route through the menu entry corresponding to the target menu.

[0055] Pre-set the virtual router URL corresponding to the page on the PC, as well as the actual router corresponding to each platform, the actual router version, and other information. After configuring the virtual router, configure the corresponding menu entry and associate the currently configured virtual router. After parsing the target menu, the application software obtains the pre-associated target virtual router through the menu entry corresponding to the target menu.

[0056] URL is the link corresponding to each page, through which you can find the specific page.

[0057] S103: searching the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters.

[0058] A routing mapping table is pre-set, as shown in Table 1. Table 1 is a routing mapping table provided in an embodiment of the present application.

[0059] Table 1

[0060]

[0061]

[0062] During application initialization, the routing table center is pre-initialized and an interface is called to retrieve routing configurations. The interface parameters must carry the system type (e.g., Android) and the configured service version parameters. The interface first filters all routing configurations for the current system based on the system type. There are three types of systems: Android, iOS, and Mini Programs. For example, when the interface receives a request and detects that the current system is Android, it matches all configurations for all services with the Android system type, then matches the service version information. Each virtual route in the PC-side visual interface configuration center may be configured with multiple service versions, and it is necessary to filter out versions that match the current service version parameters. For example, it first matches the version that matches the service version number. If no match is found, it then matches backwards to the latest version, and so on, matching all routes until the entire routing configuration table is matched. After configuration is complete, the entire routing configuration table is looped through and stored in memory as a key and value. The key is the virtual route, and the value is the corresponding real route, platform type, parameters carried, and platform implementation location identifier key.

[0063] After parsing the target system type and target business version parameters and obtaining the target virtual route pre-associated with the target menu, the target real route and target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and target business version parameters.

[0064] S104: Match the corresponding target jump implementation class according to the target platform type.

[0065] When the application software is initialized, the routing management class is also initialized and the routing implementation classes of different platforms are registered. Each platform needs to implement different jump interaction logic, with a mapping relationship in the form of keys and values. The key is the platform type and the value is the specific implementation logic.

[0066] After finding the target platform type corresponding to the target virtual route, the corresponding target jump implementation class is matched according to the target platform type.

[0067] In a specific implementation of the present application, step S104 may include the following steps:

[0068] Use key-value pairs to match the corresponding target jump implementation class according to the target platform type.

[0069] The platform type and jump implementation class are pre-stored as key-value pairs, with the key being the platform type and the value being the jump implementation class. After finding the target platform type corresponding to the target virtual route, the target jump implementation class is matched based on the target platform type using the key-value pair. This key-value pair matching of the target jump implementation class improves the accuracy of jump implementation class retrieval.

[0070] S105: Execute the target jump implementation class according to the first service parameter carried in the target virtual route and / or the second service parameter carried in the target real route to jump to the target page.

[0071] After matching the corresponding target jump implementation class according to the target platform type, the target jump implementation class is executed according to the first business parameter carried in the target virtual route and / or the second business parameter carried in the target real route to jump to the target page.

[0072] Both virtual routes and real routes can carry business parameters. The difference is that the business parameters carried by virtual routes apply to all three types of systems. If the business requirement requires the parameters and the logic is consistent across all three types of systems, the business parameters should be carried in the virtual route. If the business requirement is inconsistent across the three types of systems or if a specific business process is required only in one type of system, the business parameters should be carried in the real route. For example, to determine whether the virtual route carries the first business parameter, the redirection page can support configuring the business parameter on the virtual route. After parsing the virtual route, the in-memory route mapping table is used to match the real route. The real route is retrieved and checked to see if the real route carries the second business parameter. If the target virtual route carries the first business parameter and the real route does not, the target redirection implementation class is executed based on the first business parameter. If the target virtual route does not carry the first business parameter and the real route carries the second business parameter, the target redirection implementation class is executed based on the second business parameter. If the target virtual route carries the first business parameter and the real route carries the second business parameter, the target redirection implementation class is executed based on the first and second business parameters. This enables dynamic redirection to the target page.

[0073] As can be seen from the above technical solution, by setting the correspondence between the menu and the virtual route and configuring the real route information of different types of system platforms corresponding to the virtual route, the menu is triggered to obtain the real route through the virtual route and then jump to the specific page. Compared with the traditional routing framework, it is more functional. The route jump of the page is no longer limited to the native module. It can realize the jump of different versions and routes based on the dynamic configuration of the server to support the jump of different platforms, which is more flexible and free.

[0074] It should be noted that, based on the above embodiment, the present application also provides corresponding improved solutions. In subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, and will not be described in detail in the following improved embodiments.

[0075] In a specific embodiment of the present application, after step S102 and before step S103, the method may further include the following steps:

[0076] Step 1: Check whether the target virtual router meets the preset specifications. If so, execute step 2; if not, terminate the process;

[0077] Step 2: Find the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters.

[0078] For the convenience of description, the above two steps can be combined for explanation.

[0079] Virtual routing rules and specifications are pre-set. After obtaining the pre-associated target virtual routing through the menu entry corresponding to the target menu, the target real routing and target platform type corresponding to the target virtual routing are searched from the routing mapping table according to the target system type and target business version parameters. The application program interface (API) of the jump page is called, the virtual routing is passed in, and the target virtual routing is verified to see if it meets the preset specifications. If so, the target real routing and target platform type corresponding to the target virtual routing are searched from the routing mapping table according to the target system type and target business version parameters. If not, the process is terminated. By performing a normative check on the virtual routing, the subsequent page jump process is executed only when the check passes, ensuring the smooth progress of the page jump process.

[0080] In a specific implementation of the present application, step S105 may include the following steps:

[0081] Step 1: When the target virtual route carries the first service parameter and the target real route does not carry the second service parameter, execute the target jump implementation class according to the first service parameter;

[0082] Step 2: When the target virtual route does not carry the first service parameter and the target real route carries the second service parameter, execute the target jump implementation class according to the second service parameter;

[0083] Step 3: When the target virtual route carries the first service parameter and the target real route carries the second service parameter, the target jump implementation class is executed in combination with the first service parameter and the second service parameter.

[0084] For the convenience of description, the above three steps can be combined for explanation.

[0085] Only one of the virtual route and the real route may carry business parameters, or both may carry business parameters. When the target virtual route carries the first business parameter and the target real route does not carry the second business parameter, the target jump implementation class is executed according to the first business parameter. When the target virtual route does not carry the first business parameter and the target real route carries the second business parameter, the target jump implementation class is executed according to the second business parameter. When the target virtual route carries the first business parameter and the target real route carries the second business parameter, the target jump implementation class is executed in combination with the first and second business parameters.

[0086] For example, consider two menus: one for querying unshipped orders and the other for querying shipped orders. However, the code corresponding to the two menus uses the same set of logic, resulting in a single page. Entering the page from either menu requires distinguishing which order the user is querying. This can be determined by passing business parameters, redirecting to the target page, and querying order data using the acquired business parameters. In this case, business parameters must be carried in the virtual route. Two menus exist in the system, each corresponding to the same homepage. However, because the business parameters carried by the virtual routes differ, the resulting content on the homepage differs.

[0087] In a specific embodiment of the present application, executing the target jump implementation class in combination with the first service parameter and the second service parameter may include the following steps:

[0088] Step 1: Merge the first service parameter and the second service parameter to obtain a merged service parameter;

[0089] Step 2: Execute the target jump implementation class according to the merged business parameters.

[0090] For the convenience of description, the above two steps can be combined for explanation.

[0091] When the target virtual route carries the first business parameter and the target real route carries the second business parameter, the first business parameter and the second business parameter are merged to obtain the merged business parameter, and the target jump implementation class is executed according to the merged business parameter. By merging the first business parameter carried by the target virtual route and the second business parameter carried by the target real route, it is convenient to transfer the content corresponding to the first business parameter and the second business parameter to the target page together.

[0092] See also Figure 2 , Figure 2 This is another implementation flow chart of the page jump method in the embodiment of the present application. The method may include the following steps:

[0093] S201: Parse the received menu trigger request to obtain target menu, target system type and target service version parameters.

[0094] S202: Acquire the pre-associated target virtual route through the menu entry corresponding to the target menu.

[0095] S203: Determine whether the target service version parameter exists in the routing mapping table. If yes, execute step S204; if not, execute step S205.

[0096] After obtaining the pre-associated target virtual route, determine whether the target business version parameter exists in the routing mapping table. If so, it means that the target business version parameter is directly matched through the routing mapping table, and step S204 is executed. If not, it means that the target business version parameter cannot be directly matched through the routing mapping table, and step S205 is executed.

[0097] S204: searching the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters.

[0098] When it is determined that the target service version parameter exists in the route mapping table, it indicates that the target service version parameter is directly matched through the route mapping table. The target real route and target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the target service version parameter.

[0099] S205: Searching for the nearest neighbor service version parameter of the target service version parameter from each service version parameter lower than the target service version parameter in the routing mapping table.

[0100] If the target service version parameter is not found in the route mapping table, it indicates that the target service version parameter cannot be directly matched through the route mapping table. The system searches for the nearest neighbor service version parameter of the target service version parameter from the service version parameters lower than the target service version parameter in the route mapping table. For example, if service version 1.2 is not found in the route mapping table, the system further searches for service version 1.1 in the route mapping table to improve the success rate of service version parameter matching.

[0101] S206: Searching for a target real route and a target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the nearest neighbor service version parameter.

[0102] After searching for the nearest neighbor service version parameter of the target service version parameter from the service version parameters lower than the target service version parameter in the route mapping table, the target real route and target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the nearest neighbor service version parameter.

[0103] In a specific implementation of the present application, step S206 may include the following steps:

[0104] The target real route and target platform type corresponding to the target virtual route are searched from the route mapping table in a key-value pair manner according to the target system type and the nearest neighbor service version parameters.

[0105] The target system type, service version parameter, target virtual route, real route, and platform type are pre-stored as key-value pairs. After searching the route mapping table for the target service version parameter's nearest neighbor service version parameter, the target real route and target platform type corresponding to the target virtual route are searched for in the route mapping table using the target system type and nearest neighbor service version parameter. This key-value pair-based search improves search efficiency.

[0106] S207: Match the corresponding target jump implementation class according to the target platform type.

[0107] S208: Execute the target jump implementation class according to the first service parameter carried in the target virtual route and / or the second service parameter carried in the target real route to jump to the target page.

[0108] Corresponding to the above method embodiment, the present application further provides a page jump device. The page jump device described below and the page jump method described above can refer to each other.

[0109] See also Figure 3 , Figure 3This is a structural block diagram of a page jump device in an embodiment of the present application. The device may include:

[0110] The request parsing module 31 is used to parse the received menu trigger request to obtain the target menu, target system type and target service version parameters;

[0111] A virtual route acquisition module 32 is configured to acquire a pre-associated target virtual route through a menu entry corresponding to a target menu;

[0112] A real route and platform type search module 33 is configured to search the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters;

[0113] The jump implementation class matching module 34 is used to match the corresponding target jump implementation class according to the target platform type;

[0114] The page jump module 35 is used to execute the target jump implementation class according to the service parameters carried in the target virtual route and / or the target real route to jump to the target page.

[0115] As can be seen from the above technical solution, by setting the correspondence between the menu and the virtual route and configuring the real route information of different types of system platforms corresponding to the virtual route, the menu is triggered to obtain the real route through the virtual route and then jump to the specific page. Compared with the traditional routing framework, it is more functional. The route jump of the page is no longer limited to the native module. It can realize the jump of different versions and routes based on the dynamic configuration of the server to support the jump of different platforms, which is more flexible and free.

[0116] In a specific embodiment of the present application, the jump implementation class matching module 34 is specifically a module that matches the corresponding target jump implementation class according to the target platform type in a key-value pair manner.

[0117] In a specific embodiment of the present application, the real routing and platform type search module 33 includes:

[0118] The judgment submodule is used to judge whether the target service version parameter exists in the routing mapping table;

[0119] The nearest neighbor service version parameter search submodule is used to search for the nearest neighbor service version parameter of the target service version parameter from each service version parameter lower than the target service version parameter in the route mapping table when it is determined that the target service version parameter does not exist in the route mapping table;

[0120] The real route and platform type search submodule is used to search the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the nearest neighbor service version parameters.

[0121] In a specific embodiment of the present application, the real route and platform type search submodule is specifically a module that searches the target real route and target platform type corresponding to the target virtual route from the routing mapping table according to the target system type and the nearest neighbor service version parameters in a key-value pair manner.

[0122] In a specific embodiment of the present application, the device may further include:

[0123] The route verification module is used to verify whether the target virtual route meets the preset specifications before searching the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters after obtaining the pre-associated target virtual route through the menu entry corresponding to the target menu;

[0124] The real route and platform type search module 33 is specifically a module that searches the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target service version parameters when determining that the target virtual route meets the preset specifications.

[0125] In a specific embodiment of the present application, the page jump module 35 includes:

[0126] A first implementation class execution submodule is configured to execute a target jump implementation class according to the first business parameter when the target virtual route carries the first business parameter and the target real route does not carry the second business parameter;

[0127] A second implementation class execution submodule, configured to execute a target jump implementation class according to the second business parameter when the target virtual route does not carry the first business parameter and the target real route carries the second business parameter;

[0128] The third implementation class execution submodule is used to execute the target jump implementation class in combination with the first business parameter and the second business parameter when the target virtual route carries the first business parameter and the target real route carries the second business parameter.

[0129] In a specific embodiment of the present application, the third implementation class execution submodule includes:

[0130] a parameter merging unit, configured to merge the first service parameter and the second service parameter to obtain a merged service parameter;

[0131] The implementation class unit is used to execute the target jump implementation class according to the merged business parameters.

[0132] Corresponding to the above method embodiment, see Figure 4 , Figure 4This is a schematic diagram of the page jump device provided by this application. The device may include:

[0133] Memory 332, for storing computer programs;

[0134] The processor 322 is configured to implement the steps of the page jump method of the above method embodiment when executing a computer program.

[0135] For details, please refer to Figure 5 , Figure 5 A specific structural diagram of a page jump device provided for this embodiment, which may have relatively large differences due to different configurations or performances, may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, wherein the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 may be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the page jump device 301.

[0136] The page jump device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0137] The steps in the page jump method described above can be implemented by the structure of the page jump device.

[0138] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0139] Parse the received menu trigger request to obtain the target menu, target system type and target business version parameters; obtain the pre-associated target virtual route through the menu entry corresponding to the target menu; search the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and target business version parameters; match the corresponding target jump implementation class according to the target platform type; execute the target jump implementation class according to the first business parameter carried in the target virtual route and / or the second business parameter carried in the target real route to jump to the target page.

[0140] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.

[0141] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0142] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments are sufficient. The devices, apparatuses, and computer-readable storage media disclosed in the embodiments are described briefly because they correspond to the methods disclosed in the embodiments. For relevant details, refer to the description of the methods.

[0143] This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is only intended to help understand the technical solution and core ideas of this application. It should be noted that for those skilled in the art, without departing from the principles of this application, various improvements and modifications can be made to this application, and such improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A page jump method, characterized in that: include: Parse the received menu trigger request to obtain the target menu, target system type and target business version parameters; Obtaining the pre-associated target virtual route through the menu entry corresponding to the target menu; According to the target system type and the target service version parameters, the target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table; Match the corresponding target jump implementation class according to the target platform type; When the target virtual route carries the first service parameter and the target real route does not carry the second service parameter, executing the target jump implementation class according to the first service parameter; When the target virtual route does not carry the first service parameter and the target real route carries the second service parameter, executing the target jump implementation class according to the second service parameter; When the target virtual route carries a first business parameter and the target real route carries a second business parameter, the target jump implementation class is executed in combination with the first business parameter and the second business parameter to jump to the target page.

2. The page jump method according to claim 1, characterized in that: Match the corresponding target jump implementation class according to the target platform type, including: The corresponding target jump implementation class is matched according to the target platform type in a key-value pair manner.

3. The page jump method according to claim 1, characterized in that: Searching the target real route and the target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the target service version parameter includes: Determine whether the target service version parameter exists in the routing mapping table; If not, searching for the nearest neighbor service version parameter of the target service version parameter from each service version parameter lower than the target service version parameter in the routing mapping table; The target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the nearest neighbor service version parameter.

4. The page jump method according to claim 3, characterized in that: Searching a target real route and a target platform type corresponding to the target virtual route from a route mapping table according to the target system type and the nearest neighbor service version parameter includes: The target real route and the target platform type corresponding to the target virtual route are searched from the route mapping table according to the target system type and the nearest neighbor service version parameter in a key-value pair manner.

5. The page jump method according to claim 1, characterized in that: After obtaining the pre-associated target virtual route through the menu entry corresponding to the target menu, and before searching the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the target service version parameter, the method further includes: Verify whether the target virtual route meets the preset specifications; If so, the step of searching the route mapping table for the target real route and the target platform type corresponding to the target virtual route according to the target system type and the target service version parameters is performed.

6. The page jump method according to any one of claims 1 to 5, characterized in that: Executing the target jump implementation class in combination with the first business parameter and the second business parameter includes: Merging the first service parameter and the second service parameter to obtain a merged service parameter; Execute the target jump implementation class according to the merged business parameters.

7. A page jump device, characterized in that: include: The request parsing module is used to parse the received menu trigger request to obtain the target menu, target system type and target business version parameters; A virtual route acquisition module, configured to acquire a pre-associated target virtual route through a menu entry corresponding to the target menu; A real route and platform type search module is used to search the target real route and target platform type corresponding to the target virtual route from the route mapping table according to the target system type and the target service version parameters; A jump implementation class matching module, used to match the corresponding target jump implementation class according to the target platform type; Page jump module, the page jump module includes: A first implementation class execution submodule is configured to execute a target jump implementation class according to the first business parameter when the target virtual route carries the first business parameter and the target real route does not carry the second business parameter; A second implementation class execution submodule, configured to execute a target jump implementation class according to the second business parameter when the target virtual route does not carry the first business parameter and the target real route carries the second business parameter; The third implementation class execution submodule is used to execute the target jump implementation class in combination with the first business parameter and the second business parameter to jump to the target page when the target virtual route carries the first business parameter and the target real route carries the second business parameter.

8. A page jump device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the page jump method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the page jump method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Page jumping method and device, equipment and storage medium

    CN114491370A

  • Protocol-based routing jump method and device, electronic equipment and storage medium

    CN115481334A