Method, device and electronic device for jumping to multiple types of pages

By parsing and mapping URLs through virtual domain navigation (VDN), the data return and page status processing problems of mobile communication terminals when jumping to various types of pages are solved, and the page jump is unified and the efficiency is improved.

CN113704647BActive Publication Date: 2025-10-03QINGDAO HAIER TECH +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110919683.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2025-10-03
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In the existing technology, mobile communication terminals have problems such as data return issues, complex page closing logic, and improper handling of non-logged-in status when jumping to various types of pages, which makes it technically and business-wise difficult for the front-end browser page to jump to other types of pages.

Method used

Use virtual domain navigation (VDN) to parse and map uniform resource locators (URLs), map URLs to execution addresses through the mapping list in the virtual domain navigation, and use page launchers to implement page jumps. It supports customized or default opening methods and provides a unified page jump interface.

Benefits of technology

It realizes unified jump of various types of pages, simplifies the page display logic, improves the display efficiency of front-end pages and the convenience of business processing, and ensures the correct processing of data return and page status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704647B_ABST
    Figure CN113704647B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, and electronic device for jumping to multiple types of pages. The method comprises: initiating a page jump, wherein a front-end browser transmits a uniform resource locator (URL) of a target page; running a virtual domain navigation to parse the URL and running a mapping list within the virtual domain navigation to map the URL to an execution address; when there is a business to be executed, running the business and determining whether to re-map it based on the parameters of the business; running the virtual domain navigation to match a page launcher to the execution address, and running the page launcher to jump to the target page. The present invention implements a unified jump method for multiple types of pages by running the virtual domain navigation, greatly simplifying and improving the display efficiency of the front-end page, and can plan the jumps of different pages into a unified jump interface, which is convenient and practical.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of the Internet of Things and mobile Internet, and in particular to a method, device and electronic device for jumping to multiple types of pages. Background Art

[0002] To display web pages with low bandwidth requirements and good visual quality on mobile communication terminals, embedded network terminals, and other devices, many apps currently use a hybrid development model. This involves directly loading HTML5 pages within the Android or Apple (iOS) mobile operating system framework to complete the app's display. When using HTML5 pages, it's common to jump to multiple types of pages, including native system pages, HTML5 pages, and other web pages (such as web pages accessed through a browser).

[0003] However, some business needs involve some complex business requirements, such as: data return issues after jumping, for example, the current page jumps to the login page, and after successful login, the token and other data need to be returned to the current page; the current page is closed after jumping to the new page; when jumping, different pages need to be jumped to different situations. For example, when jumping from the current page to the target page, it is necessary to ensure that the user is logged in. If not logged in, jump to the login page.

[0004] It can be seen that in current application software, jumping from a front-end browser page to other types of pages will encounter many technical and business difficulties, and there are problems in the existing technology that need to be solved urgently. Summary of the Invention

[0005] The purpose of the present invention is to provide a method, device and electronic device for jumping to multiple types of pages, so as to solve the problems existing in the prior art.

[0006] In a first aspect, the present invention provides a method for jumping to multiple types of pages, comprising:

[0007] Initiate page jump, and the front-end browser passes the uniform resource locator of the target page;

[0008] Running a Virtual Domain Navigator (VDN) to parse the Uniform Resource Locator (URL) and running a mapping list in the VDN to map the URL to an execution address;

[0009] When there is a process to be executed, the process is run, and whether to re-map is determined according to parameters of the process;

[0010] Running the virtual domain navigation is performing the address matching page launcher, and running the page launcher to jump to the target page.

[0011] Optionally, the uniform resource locator of the incoming target page includes:

[0012] The uniform resource locator is input by calling the interface, and the corresponding interface calling result is obtained.

[0013] Optionally, the step of inputting the uniform resource locator by calling an interface and obtaining a corresponding interface call result comprises inputting the uniform resource locator by using a first interface and obtaining a callback object;

[0014] After determining that the mapping is not to be performed again, a return result listener is set, and the callback object is saved in the page record, so that the callback is called back after the return result is received, and the relevant return information is returned to the front-end browser.

[0015] Optionally, the step of inputting the uniform resource locator by calling an interface and obtaining a corresponding interface call result comprises inputting the uniform resource locator by using a second interface and obtaining a flag parameter;

[0016] After jumping to the target page, it is determined whether to exit the current page according to the flag parameter.

[0017] Optionally, the executing virtual domain navigation to parse the uniform resource locator includes:

[0018] When the uniform resource locator includes an error, an exception is thrown, and the jump to the target page is ended.

[0019] Optionally, the running of the mapping list in the virtual domain navigation to map the uniform resource locator to the execution address includes replacing an identification portion in the uniform resource locator with the mapping address, retaining parameters in the uniform resource locator, and obtaining a merged uniform resource locator;

[0020] The running process includes processing the merged uniform resource locator to add and / or delete parameters and redirect to other pages.

[0021] Optionally, the step of running the virtual domain navigation as the execution address matching page launcher includes:

[0022] Matching a custom launcher to the execution address and customizing the opening method of the execution address;

[0023] Alternatively, a default launcher is matched for the execution address, and a default opening mode of the execution address is set. The default launcher includes a native page launcher, a network page launcher, and a resource package page launcher.

[0024] In a second aspect, the present invention provides a device for jumping to multiple types of pages, comprising:

[0025] The initiating module is used to initiate page jump, and the front-end browser passes the uniform resource locator of the target page;

[0026] A mapping module, configured to run a virtual domain navigation to parse the uniform resource locator and run a mapping list in the virtual domain navigation to map the uniform resource locator to an execution address;

[0027] A business processing module, configured to run a process to be executed when there is one, and determine whether to re-map based on parameters of the process;

[0028] The startup module is used to run the virtual domain navigation to execute the address matching page launcher, and run the page launcher to jump to the target page.

[0029] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for jumping to multiple types of pages according to the first aspect are implemented.

[0030] In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for jumping to multiple types of pages according to the first aspect.

[0031] It can be seen from the above technical solution that the method, device and electronic device for jumping to multiple types of pages provided by the present invention realize a unified jump method for multiple types of pages by using virtual domain navigation, which greatly simplifies and improves the display efficiency of the front-end page. By creating a unified VDN jump method in the APP, the jump of different pages can be planned into a unified jump interface, which is convenient and practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0033] Figure 1 is a flow chart of a method for jumping to multiple types of pages according to an embodiment of the present invention;

[0034] Figure 2is a flow chart of a service function according to an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of a device for jumping to multiple types of pages according to an embodiment of the present invention;

[0036] Figure 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0038] Figure 1 is a flow chart of a method for jumping to multiple types of pages according to an embodiment of the present invention, referring to Figure 1 The method for jumping to multiple types of pages proposed in an embodiment of the present invention includes:

[0039] Step 110: initiate a page jump, and the front-end browser passes in the uniform resource locator of the target page;

[0040] Step 120: Run the virtual domain navigation to parse the uniform resource locator and run the mapping list in the virtual domain navigation to map the uniform resource locator to an execution address;

[0041] Step 130: When there is a service to be executed, the service is executed, and it is determined whether to re-map the service according to the service parameters.

[0042] Step 140: running the virtual domain navigation to execute the address matching page launcher, and running the page launcher to jump to the target page.

[0043] In this embodiment, it should be noted that using the virtual domain navigation to match a page launcher for the Internet Protocol address includes: matching a custom launcher for the Internet Protocol address and customizing the opening method of the Internet Protocol address; or matching a default launcher for the Internet Protocol address and setting the opening method of the Internet Protocol address by default, where the default launcher includes a native page launcher, a network page launcher, and a resource bundle page launcher.

[0044] Figure 2 is a flowchart of the business function according to an embodiment of the present invention, refer to Figure 2, further illustrating the embodiment of the present invention. The process of the business function provided by the embodiment of the present invention can be roughly divided into three stages: mapping, business processing, and startup; the description of each process is as follows:

[0045] 1. Jump to page. The front-end H5 page calls interfaces such as goToPage and goToPageForResult to pass in the target page URL and initiate a jump.

[0046] In this embodiment, it should be noted that the URL of the target page is passed in by calling an interface and obtaining a corresponding interface call result. Calling each interface will obtain a corresponding interface call result, such as the callback object of goToPageForResult. 2. Verify the URL. The Virtual Domain Navigator (VDN) will parse the scheme, host, path, query, and other components of the URL. If the URL contains illegal characters or is formatted incorrectly, an exception will be thrown, terminating the redirection process.

[0047] In this embodiment, it should be noted that the VDN is a tool for uniformly maintaining multiple page redirects. During the process of processing a URL, if the URL contains an error, an exception is thrown to terminate the redirection to the target page.

[0048] 3. Virtual domain name resolution: This process uses the virtual Domain Name System (DNS) table within the VDN to map the URL to an Internet Protocol (IP) address, i.e., the target address. If a mappable address is found, the process proceeds to step 4; otherwise, the process proceeds directly to step 5.

[0049] In this embodiment, it should be noted that a mapping list, such as a DNS, is stored in the VDN, and the VDN is run to map the URL to the DNS.

[0050] 4. Merge URLs. The goal of this step is to replace the identifier in the original URL with the mapped address, while retaining the parameters in the original URL.

[0051] In this embodiment, it should be noted that the merged URL can be obtained by replacing the identification part in the URL with the mapping address and retaining the parameters in the URL.

[0052] 5. Determine whether there is a business patch. If so, proceed to step 6 to execute the patch logic. Otherwise, proceed to step 8.

[0053] In this embodiment, it should be noted that executing the service includes processing the merged URL to add and / or delete parameters and redirect to other pages, as described below.

[0054] 6. Execute Patch. The patch logic in this step is customized by the business side and is used to further process the merged URL, add and delete parameters, and redirect to other pages.

[0055] In this embodiment, it should be noted that when there is a process to be executed, the process is run, and whether to re-map is determined based on the parameters of the process. For specific details on how to determine whether to re-parse, see step 7.

[0056] 7. Determine whether to re-parse. Based on the stage parameter of the Page, determine whether to return to step 3 to re-resolve the domain name and remap the IP address. 8. Set the return result listener. If goToPageForResult is used in the first step and a callback object is passed in, this step will save the callback object in the page record so that it can be called back after receiving the return result and return the relevant return information to the front-end H5.

[0057] In this embodiment, it should be noted that after determining not to perform mapping again, a return result listener is set, and the callback object is saved in the page record, so that it can be called back after receiving the return result and return the relevant return information to the front-end H5.

[0058] 9. Match a custom launcher. The app can customize how an address is opened. If there is no custom launcher, proceed to step 10, otherwise proceed to step 11.

[0059] 10. Match the default launcher. In the VDN, there are native page launchers and web page launchers for native (native: / / ) and web (http: / / , https: / / ) pages, respectively, for opening native and HTML pages. Apps can also add other default launchers through the interface to launch other tagged addresses. For example, to redirect to other H5 resource package pages, you can use the address tagged with mpaas: / / (such as the help center resource package, mpaas: / / helpCenter). If a default launcher is found for the target address, proceed to step 11. If no default launcher is found, an exception is thrown, ending the redirection process.

[0060] In the embodiment of the present invention, it should be noted that the VDN provides a unified page jump interface. The VDN sets an address for each type of page. To open a certain page, one only needs to enter its address into the jump interface.

[0061] 11. Start the page. This step is used to actually create the Intent / VC and finally pull up the target page. 12. Determine whether to close the current page. Use the flag parameter in the goToPage method to determine whether to exit the current page. If so, proceed to step 13. Otherwise, end the process.

[0062] 13. Close the current page, call the destruction method of the current page, destroy the Activity / VC, and the process ends.

[0063] In the embodiment of the present invention, it should be noted that VDN is a new way for the front-end H5 to jump to different pages, which is used by the APP to generate page requests, find page locations, find specific pages, and finally pull up the page. VDN provides a unified addressing method, addressing query, and page jump for APP pages, supports parameter passing between pages, and maintains page jump history. VDN uniformly maintains the jumps between various pages within the APP (native pages, various container pages, network pages, and other H5 resource package pages). The H5 page only needs to introduce methods in the VDN to achieve jumps to different types of pages, and can obtain corresponding data information according to its own needs, which is equivalent to creating a new jump tool.

[0064] APP development has become a trend in the development of the Internet. Front-end H5 has been highly favored due to its rapid iteration characteristics. However, the page jump may involve the cooperation between different technologies. If there is a unified jump method, the front-end H5 can be called uniformly and distributed through different logics within the method, which will greatly simplify and improve the display efficiency of the front-end page. By creating a unified VDN jump method in the Zhijia APP, the jump of different pages can be planned into a unified jump interface, which is convenient and practical.

[0065] Figure 3 A schematic diagram of a device for jumping to multiple types of pages provided by an embodiment of the present invention, such as Figure 3 As shown, the apparatus for jumping to multiple types of pages provided by the embodiment of the present invention includes:

[0066] The initiating module 310 is used to initiate a page jump, and the front-end browser passes the uniform resource locator of the target page;

[0067] A mapping module 320 is configured to execute a virtual domain navigation to parse the uniform resource locator and execute a mapping list in the virtual domain navigation to map the uniform resource locator to an execution address;

[0068] The service processing module 330 is used to run the service when there is a service to be executed, and determine whether to re-map according to the parameters of the service;

[0069] The starting module 340 is configured to run the virtual domain navigation to execute the address matching page launcher, and run the page launcher to jump to the target page.

[0070] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0071] Since the device for jumping to multiple types of pages provided in the embodiment of the present invention can be used to execute the method for jumping to multiple types of pages described in the above embodiment, its working principle and beneficial effects are similar, so they are not described in detail here. For specific details, please refer to the introduction of the above embodiment.

[0072] Figure 4 An example of a physical structure diagram of an electronic device is shown below. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute a method for jumping to multiple types of pages, the method comprising: initiating a page jump, the front-end browser passing in the uniform resource locator of the target page; running a virtual domain navigation to parse the uniform resource locator and running a mapping list within the virtual domain navigation to map the uniform resource locator to an execution address; when there is a service to be executed, running the service and determining whether to re-map based on the service parameters; running the virtual domain navigation to match a page launcher for the execution address, and running the page launcher to jump to the target page.

[0073] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as 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.

[0074] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method of jumping to multiple types of pages provided by the above methods, the method including: initiating a page jump, and the front-end browser passes the uniform resource locator of the target page; running the virtual domain navigation to parse the uniform resource locator and running the mapping list in the virtual domain navigation to map the uniform resource locator to an execution address; when there is a business to be executed, running the business, and judging whether to re-map the business according to the parameters of the business; running the virtual domain navigation to match the page launcher for the execution address, and running the page launcher to jump to the target page.

[0075] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned methods for jumping to multiple types of pages, the methods comprising: initiating a page jump, the front-end browser passing in the uniform resource locator of the target page; running the virtual domain navigation to parse the uniform resource locator and running the mapping list in the virtual domain navigation to map the uniform resource locator to an execution address; when there is a business to be executed, running the business, and determining whether to re-map the business based on the parameters of the business; running the virtual domain navigation to match a page launcher for the execution address, and running the page launcher to jump to the target page.

[0076] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0077] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two or three, unless otherwise specifically defined.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for jumping to multiple types of pages, characterized in that: include: Initiate page jump, and the front-end browser passes the uniform resource locator of the target page; Running a virtual domain navigation to parse the uniform resource locator and running a mapping list in the virtual domain navigation to map the uniform resource locator to an execution address; wherein running the mapping list in the virtual domain navigation to map the uniform resource locator to the execution address includes replacing an identification portion in the uniform resource locator with the mapping address, retaining parameters in the uniform resource locator, and obtaining a merged uniform resource locator; When there is a process to be executed, the process is run, and whether to re-map is determined according to parameters of the process; Running the virtual domain navigation is the execution address matching page launcher, and running the page launcher jumps to the target page; wherein, the virtual domain navigation provides a unified page jump interface, and the virtual domain navigation sets an address for each type of page. When opening a certain page, the page can be opened by simply passing its address into the page jump interface.

2. The method for jumping to multiple types of pages according to claim 1, characterized in that: The uniform resource locator of the target page is specifically: The uniform resource locator is input by calling the interface, and the corresponding interface calling result is obtained.

3. The method for jumping to multiple types of pages according to claim 2, characterized in that: The step of passing the uniform resource locator by calling an interface and obtaining a corresponding interface calling result includes passing the uniform resource locator by using a first interface and obtaining a callback object; After determining not to perform the mapping again, a return result listener is set, and the callback object is saved in the page record, so that the callback is called back after receiving the return result, and the relevant return information is returned to the front-end browser.

4. The method for jumping to multiple types of pages according to claim 2, characterized in that: The step of passing the uniform resource locator by calling an interface and obtaining a corresponding interface calling result includes passing the uniform resource locator by using a second interface and obtaining a flag parameter; After jumping to the target page, it is determined whether to exit the current page according to the flag parameter.

5. The method for jumping to multiple types of pages according to claim 1, characterized in that: The running of the virtual domain navigation to parse the uniform resource locator includes: When the uniform resource locator includes an error, an exception is thrown, and the jump to the target page is ended.

6. The method for jumping to multiple types of pages according to claim 1, characterized in that: Running a service includes processing the combined uniform resource locator to add and / or delete parameters and redirect to other pages.

7. The method for jumping to multiple types of pages according to claim 1, characterized in that: The executing of the virtual domain navigation as the execution address matching page launcher includes: Matching a custom launcher to the execution address and customizing the opening method of the execution address; Alternatively, a default launcher is matched for the execution address, and a default opening mode of the execution address is set. The default launcher includes a native page launcher, a network page launcher, and a resource package page launcher.

8. A device for jumping to multiple types of pages, characterized in that: include: The initiating module is used to initiate page jump, and the front-end browser passes the uniform resource locator of the target page; a mapping module, configured to execute a virtual domain navigation to parse the uniform resource locator and execute a mapping list within the virtual domain navigation to map the uniform resource locator to an execution address; wherein executing the mapping list within the virtual domain navigation to map the uniform resource locator to the execution address includes replacing an identification portion in the uniform resource locator with the mapping address, retaining parameters in the uniform resource locator, and obtaining a merged uniform resource locator; A business processing module, configured to run a process to be executed when there is one, and determine whether to re-map based on parameters of the process; A startup module is used to run the virtual domain navigation to execute the address matching page launcher, and run the page launcher to jump to the target page; wherein, the virtual domain navigation provides a unified page jump interface, and the virtual domain navigation sets an address for each type of page. When opening a certain page, the page can be opened by simply passing its address into the page jump interface.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for jumping to multiple types of pages according to any one of claims 1 to 7 are implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for jumping to multiple types of pages according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Routing method, device, system and gateway equipment

    CN103888358A

  • Page jumping method and system

    CN108363597A

  • Page data processing method and device

    CN110968824A

  • Page skipping method and device, computer equipment and computer readable storage medium

    CN112579928A

  • Page loading method and device, storage medium and electronic device

    CN113296859A