Page jumping method and device based on message passing, computer equipment and storage medium
By adopting a page jump method based on messaging in mobile application development, the conflict between page jump in iframe and parent page container jump is solved, and the continuity of business processes and the consistency of user experience is achieved.
Patent Information
- Application Number
- CN202510183874.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-16
AI Technical Summary
In mobile application development, there is a conflict between page jumps in iframe and container jumps in parent pages, resulting in the continuity of business processes being destroyed.
The page jump method based on message delivery is adopted to monitor the message parameter information thrown by the second page through the first page, identify whether the link to the third page is included, and the jump function of the container is called at the time of identification, and the information about the third page loading of the new container is generated.
Ensure that page redirection is performed in the application container and avoid redirection within the iframe, thus maintaining the continuity of business processes and the coherence of user experience.
Smart Images

Figure CN120011675A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of page processing, and in particular to a page jump method, device, computer equipment and storage medium based on message transmission. Background Art
[0002] In mobile application development, it is often necessary to embed another H5 page in an H5 page using iframe. The embedded H5 page contains a complete business process, including the logic of jumping from the H5 page to another page. This can improve the reusability of the business process.
[0003] In this case, when the application opens the first H5 page, it will open a container to host the first H5 page, and another H5 page will be embedded in the first H5 page as an iframe. Then, if another H5 page needs to jump to another H5 page, if no special measures are taken, the jump will be limited to the iframe instead of being controlled by the container in the application. This will cause the page stack of the application's container to only record the first H5 page. When the user clicks the navigation bar to exit, it will directly exit the first H5 page instead of returning to the embedded H5 page, thus destroying the continuity of the business process. Summary of the invention
[0004] Based on this, it is necessary to provide a page jump method, device, computer equipment and storage medium based on message passing to address the above technical problems, which can resolve the conflict between page jump within iframe and parent page container jump and maintain the continuity of business processes.
[0005] A page jump method based on message transmission, comprising: in response to a user triggering a link of a first page in an application, generating a first container in the application, loading page information of the first page through the first container, rendering the first page on an interface according to the first container, wherein a link to a second page is embedded in an inline frame specified by a tag in the page information of the first page, and logical information of a message throwing is configured in the second page; in response to a user triggering a link to a second page in the first page, displaying the second page on an interface; when the first page monitors parameter information of the second page transmitted through a message throwing, identifying whether the parameter information transmitted through the message throwing contains a link to a third page, and calling a jump function of the first container through the first page when the link to the third page is identified; when identifying that the first page calls the jump function of the first container, generating a second container in the application, loading page information of the third page through the second container, and rendering the third page on an interface according to the second container.
[0006] In one embodiment, loading the page information of the first page through the first container includes: sending a request for the page information of the first page based on the link of the first page; receiving the page information of the first page, and carrying the page information of the first page through the first container; and / or, displaying the second page on the interface includes: sending a request for the page information of the second page based on the link of the second page; receiving the page information of the second page, and displaying the second page on the interface according to the inline frame and the page information of the second page; and / or, loading the page information of the third page through the second container includes: sending a request for the page information of the third page based on the link of the third page; receiving the page information of the third page, and carrying the page information of the third page through the second container.
[0007] In one of the embodiments, after loading the page information of the first page through the first container, a page jump method based on message passing also includes: configuring a javascriptbridge object in the window object of the first page through an application, and configuring a method for opening a URL in the javascriptbridge object; identifying through the first page whether the parameter information of the message passing contains a link to a third page, and calling the jump function of the first container through the first page when the link to the third page is identified, including: calling the jump function of the first container through the first page when identifying that the link to the third page is opened through the method for opening a URL of the first page.
[0008] In one of the embodiments, the logic information of the thrown message of the second page is generated by the logic content of the jump triggered by the user click intercepted by the second page.
[0009] In one of the embodiments, the second page sends parameter information to the first page through an API interface of throwing messages; the first page receives the parameter information sent by the second page through message monitoring.
[0010] In one embodiment, after the step of rendering the third page on the interface according to the page information of the third page, a page jump method based on message transmission further includes:
[0011] In response to the user triggering a return button on the navigation bar of the second container, the second container is closed; the first container is loaded, and the second page is displayed on the interface.
[0012] In one embodiment, the first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
[0013] A page jump device based on message transmission includes: a first display module, which is used to generate a first container in the application in response to a user triggering a link of a first page in an application, and load the page information of the first page through the first container, and render the first page on the interface according to the first container, wherein the link of the second page is embedded in an inline frame specified by a tag in the page information of the first page, and the logic information of the message throwing is configured in the second page; a second display module, which is used to display the second page on the interface in response to the user triggering the link of the second page in the first page; a monitoring module, which is used to identify whether the parameter information of the message throwing contains a link to a third page through the first page when the parameter information of the second page is transmitted through the message throwing is monitored through the first page, and call the jump function of the first container through the first page when the link of the third page is identified; a third display module, which is used to generate a second container in the application when it is identified that the first page calls the jump function of the first container, load the page information of the third page through the second container, and render the third page on the interface according to the second container.
[0014] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any of the above-mentioned embodiments are implemented.
[0015] A computer-readable storage medium stores a computer program, which implements the steps of any of the above-mentioned method embodiments when the computer program is executed by a processor.
[0016] The above-mentioned page jump method, device, computer equipment and storage medium based on message transmission, in response to a user triggering a link of a first page in an application, a first container is generated in the application, and the page information of the first page is loaded through the first container, and the first page is rendered on the interface according to the first container, wherein the link of the second page is embedded in the inline frame specified by the tag in the page information of the first page, and the logical information of the throwing message is configured in the second page; in response to a user triggering a link of the second page in the first page, the second page is displayed on the interface; when the parameter information of the second page transmitted through the throwing message is monitored through the first page, whether the parameter information transmitted by the throwing message contains a link to the third page is identified through the first page, and when the link to the third page is identified, the jump function of the first container is called through the first page; when it is identified that the first page calls the jump function of the first container, a second container is generated in the application, the page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container.
[0017] Therefore, when the second page needs to jump to the third page, the first page is notified through the message passing mechanism. The first page listens to these messages, and when receiving the jump request, it uses the jump function provided by the container of the application to achieve the jump, ensuring that a new container is opened in the application to host the third page, rather than jumping within the iframe. In this way, after the user completes the operation on the third page and clicks the navigation bar to exit, the container to which the third page belongs is closed, and the user can continue to see the second page embedded in the iframe in the container of the first page and continue to operate the second page, maintaining the continuity of the business process. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 An application environment diagram of a page jump method based on message transmission in an embodiment;
[0019] Figure 2 A schematic diagram of a flow chart of a page jump method based on message transmission in an embodiment;
[0020] Figure 3 It is an interactive schematic diagram of a page jump method based on message transmission in a specific embodiment;
[0021] Figure 4 is a structural block diagram of a page jump device based on message transmission in one embodiment;
[0022] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] The present application provides a page jump method based on message transmission, which is applied to Figure 1 In the application environment shown. Figure 1As shown, the terminal 100 is used to implement a page jump method based on message transmission of the present application. Specifically, the user triggers the link of the first page of the application in the terminal 100 to request the background 200 to send the page information of the first page, and open the first page in the terminal 100. In response to the user triggering the link of the first page in the application, the terminal 100 generates a first container in the application, and loads the page information of the first page sent by the background 200 through the first container, and renders the first page on the interface according to the first container, wherein the link to the second page is embedded in the inline frame specified by the tag in the page information of the first page, and the logic information of the message throwing is configured in the second page. In response to the user triggering the link of the second page in the first page, the terminal 100 displays the second page on the interface, and when the first page monitors the parameter information transmitted by the second page through the throwing message, the terminal 100 identifies whether the parameter information transmitted by the throwing message contains a link to the third page through the first page, and calls the jump function of the first container through the first page when the link to the third page is identified. When it is identified that the first page calls the jump function of the first container, a second container is generated in the application, the page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container. Among them, the page information of the first page, the second page and the third page are all provided by the background 200. The terminal 100 can be, but is not limited to, various personal computers, laptops, smart phones and tablet computers.
[0025] In one embodiment, Figure 2 As shown, a page jump method based on message passing is provided, and the method is applied to Figure 1 The terminal 100 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps:
[0026] S202, in response to a user triggering a link to a first page in an application, a first container is generated in the application, and page information of the first page is loaded through the first container, and the first page is rendered on the interface according to the first container, wherein a link to a second page is embedded in an inline frame specified by a tag in the page information of the first page, and logic information for throwing a message is configured in the second page.
[0027] In one example, loading the page information of the first page through the first container includes: sending a request for the page information of the first page based on the link of the first page; receiving the page information of the first page, and carrying the page information of the first page through the first container.
[0028] In one example, the logic information of the second page's message throwing is generated by the logic content of the user click that is intercepted by the second page to trigger the jump. The second page sends parameter information to the first page through the API interface of the message throwing; the first page receives the parameter information sent by the second page through message monitoring. Specifically, all the logic of the click that causes the jump is intercepted in the second page to generate the logic information of the message throwing.
[0029] In this embodiment, the terminal is installed with an application. After the user starts the application, the application interface displays a link to the first page. When the user triggers the link to the first page, a request to obtain the page information of the first page is generated, and the acquisition request is sent to the background. The background responds to the acquisition request and feeds back the page information of the first page. When the user triggers the link to the first page, the application generates a first container, carries the page information of the first page through the first container, and renders the first page on the page. Among them, according to business needs, in the first page, the link to the second page is embedded through the inline frame specified by the tag, that is, the second page is embedded through an iframe. The second page can be an existing page, embedded in the first page by means of an iframe.
[0030] In one embodiment, the first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
[0031] Specifically, according to business needs, a loan page is embedded in the repayment result page configured in the target financial product, so that users can continue to initiate loans after successful repayment. The product information page of the target financial product can also be embedded in the loan page, so that users can be provided with relevant product information after completing the loan.
[0032] S204, in response to the user triggering a link to the second page in the first page, displaying the second page on the interface.
[0033] In this embodiment, a link to a second page is displayed in the first page. When a user triggers the link to the second page, a request is made to the backend for page information of the second page, so that the second page is displayed on the interface. In one example, the step of displaying the second page on the interface includes: sending a request for page information of the second page based on the link to the second page; receiving page information of the second page, and displaying the second page on the interface according to the inline frame and the page information of the second page.
[0034] Specifically, the link of the second page includes the address information of the background and the relevant parameter information of the second page. When the link of the second page is triggered, a request for the page information of the second page is generated to request the page information of the second page from the background. When the page information of the second page is obtained, the second page is displayed through the iframe frame of the first page.
[0035] S206, when the first page monitors the parameter information transmitted by the second page through the throwing message, the first page identifies whether the parameter information transmitted by the throwing message contains a link to the third page, and when the link to the third page is identified, the first page calls the jump function of the first container.
[0036] In this embodiment, the post message refers to the second page sending some data using the API (Application Programming Interface) of postMessage. When the first page listens to the post message of the second page, the parameter information is obtained from the post message. The parameter information may include a link to the third page to be jumped to in the second page. When it is confirmed that the parameter information includes a link to the third page, the first page calls the jump function of the first container.
[0037] In one embodiment, in the above step S202, after the page information of the first page is loaded through the first container, it also includes: configuring a javascriptbridge object in the window object of the first page through the application, and configuring a method for opening a URL in the javascriptbridge object. In the above step S206, the step of identifying whether the parameter information transmitted by the throw message contains a link to a third page through the first page, and calling the jump function of the first container through the first page when the link to the third page is identified, includes: calling the jump function of the first container through the first page when it is identified that the link to the third page is opened through the method for opening a URL of the first page.
[0038] Specifically, since the first page is within the application. When the user clicks a button, the corresponding link to the first page is triggered, and the application opens the first container to carry the first page, and adds some related methods of the first container to the window object of the first page. For example, a javascriptbridge object is configured in the window object of the first page, and a method for opening a URL is configured in the javascriptbridge object. Assume that the method for opening a URL is openUrl. When the first page directly calls this method, it directly calls window.jsbrige.openUrl('www.baidu.com'). That is, since the openUrl method is configured by the application for the first page, when the first page calls this method, the application is informed that the openUrl method is called, that is, a second container is generated to open a new page.
[0039] S208, when it is identified that the first page calls the jump function of the first container, a second container is generated in the application, page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container.
[0040] In this embodiment, when the first page uses the jump function of the first container, the application captures this information and regenerates a container, namely the second container, for loading the page information of the third page, and renders the third page through the second container. At this time, all business logic in the third page is consistent with the third page in the normal access application. For example, click the link of the fourth page in the third page to jump to the fourth page. When the navigation bar return button of the container to which the fourth page belongs is clicked, the container of the fourth page will be closed, and the interface will display the third page.
[0041] In one example, the step of loading the page information of the third page through the second container includes: sending a request for the page information of the third page based on the link of the third page; receiving the page information of the third page, and carrying the page information of the third page through the second container.
[0042] Specifically, the link of the third page includes the address information of the background and the relevant parameter information of the third page. When the link of the third page is triggered, a request for the page information of the third page is generated to request the page information of the third page from the background. When the page information of the third page is obtained, the page information of the third page is carried by the second container and the third page is rendered.
[0043] In one embodiment, after the above step of rendering the third page in the interface according to the page information of the third page, a page jump method based on message transmission also includes: in response to the user triggering the navigation bar return button of the second container, closing the second container; loading the first container, and displaying the second page in the interface.
[0044] Specifically, if the return button of the navigation bar of the container to which the third page belongs is clicked, the container of the third page will be closed, and the user will return to the container that loaded the first page. Therefore, the user can see the second page in the iframe. For example, after the user completes the operation on the third page, when the user clicks the navigation bar to exit, the container to which the third page belongs is closed, so that the user can continue to see the second page embedded in the iframe in the container of the first page and continue to operate the second page, thereby maintaining the continuity of the business process.
[0045] In the above-mentioned page jump method based on message transmission, when the second page needs to jump to the third page, the first page is notified through the message transmission mechanism. The first page listens to these messages, and when receiving the jump request, it uses the jump function provided by the container of the application to achieve the jump, ensuring that a new container is opened in the application to carry the third page, rather than jumping within the iframe. In this way, after the user completes the operation on the third page and clicks the navigation bar to exit, the container to which the third page belongs is closed, and the user can continue to see the second page embedded in the iframe in the container of the first page and continue to operate the second page, thereby maintaining the continuity of the business process.
[0046] For the above-mentioned page jump method based on message transmission, a specific example is provided below. Figure 3 As shown:
[0047] When a user clicks on page A in the application, the application generates a container to load page A. Based on business needs, page A embeds page B through an iframe. When the user triggers a jump from page B to page C, page B executes message b through the message throwing mechanism. When page A listens to the message throwing, it obtains the link to page C and calls the jump capability of its container. When the application listens to page A calling the jump capability of the container, it opens a new container to load page C.
[0048] Therefore, the user experience is effectively improved, ensuring a more consistent navigation experience between pages and being able to return to the expected page when exiting. At the same time, this solution is not affected by cross-domain restrictions, which enhances the compatibility and applicability of the solution. In this way, not only the conflict between the page jump in the iframe and the parent page container jump is resolved, but also the continuity of the business process is maintained, ensuring the flexibility of the communication solution.
[0049] It should be understood that, although the steps in the flowchart are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0050] The present application also provides a page jump device based on message transmission. Figure 4 As shown, a page jump device based on message transmission includes a first display module 402 , a second display module 404 , a monitoring module 406 and a third display module 408 . The first display module 402 is used to generate a first container in the application in response to a user triggering a link to the first page in the application, load the page information of the first page through the first container, and render the first page on the interface according to the first container, wherein the link to the second page is embedded in an inline frame specified by a tag in the page information of the first page, and the logic information of the throwing message is configured in the second page; the second display module 404 is used to display the second page on the interface in response to the user triggering the link to the second page in the first page; the monitoring module 406 is used to identify whether the parameter information transmitted by the throwing message contains a link to the third page through the first page when the parameter information transmitted by the throwing message of the second page is monitored through the first page, and call the jump function of the first container through the first page when the link to the third page is identified; the third display module 408 is used to generate a second container in the application when it is identified that the first page calls the jump function of the first container, load the page information of the third page through the second container, and render the third page on the interface according to the second container.
[0051] In one embodiment, loading the page information of the first page through the first container includes: sending a request for the page information of the first page based on the link of the first page; receiving the page information of the first page, and carrying the page information of the first page through the first container; and / or, displaying the second page on the interface includes: sending a request for the page information of the second page based on the link of the second page; receiving the page information of the second page, and displaying the second page on the interface according to the inline frame and the page information of the second page; and / or, loading the page information of the third page through the second container includes: sending a request for the page information of the third page based on the link of the third page; receiving the page information of the third page, and carrying the page information of the third page through the second container.
[0052] In one of the embodiments, after loading the page information of the first page through the first container, it also includes: configuring a javascriptbridge object in the window object of the first page through the application, and configuring a method for opening a URL in the javascriptbridge object; identifying through the first page whether the parameter information passed by the throw message contains a link to a third page, and calling the jump function of the first container through the first page when the link to the third page is identified, including: calling the jump function of the first container through the first page when identifying that the link to the third page is opened through the method for opening a URL of the first page.
[0053] In one of the embodiments, the logic information of the thrown message of the second page is generated by the logic content of the jump triggered by the user click intercepted by the second page.
[0054] In one of the embodiments, the second page sends parameter information to the first page through an API interface of throwing messages; the first page receives the parameter information sent by the second page through message monitoring.
[0055] In one of the embodiments, after rendering the third page on the interface according to the page information of the third page, it also includes: in response to the user triggering the navigation bar return button of the second container, closing the second container; loading the first container, and displaying the second page on the interface.
[0056] In one embodiment, the first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
[0057] For the specific definition of a page jump device based on message passing, please refer to the definition of a page jump method based on message passing above, which will not be repeated here. Each module in the above-mentioned page jump device based on message passing can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0058] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate through a network connection. When the computer program is executed by the processor, a page jump method based on message passing is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0059] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0060] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the following steps are implemented when the processor executes the computer program: in response to a user triggering a link to a first page in an application, a first container is generated in the application, and page information of the first page is loaded through the first container, and the first page is rendered on an interface according to the first container, wherein a link to a second page is embedded in an inline frame specified by a tag in the page information of the first page, and logic information of a message throwing is configured in the second page; in response to a user triggering a link to a second page in the first page, the second page is displayed on the interface; when parameter information transmitted by the second page through the message throwing is monitored through the first page, whether the parameter information transmitted by the message throwing contains a link to a third page is identified through the first page, and when the link to the third page is identified, a jump function of the first container is called through the first page; when it is identified that the first page calls the jump function of the first container, a second container is generated in the application, page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container.
[0061] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of loading the page information of the first page through the first container, the following steps are specifically implemented: sending a request for the page information of the first page based on the link of the first page; receiving the page information of the first page, and carrying the page information of the first page through the first container; and / or, when the processor executes a computer program to implement the above-mentioned step of displaying the second page on the interface, the following steps are specifically implemented: sending a request for the page information of the second page based on the link of the second page; receiving the page information of the second page, and displaying the second page on the interface according to the inline frame and the page information of the second page; and / or, when the processor executes a computer program to implement the above-mentioned step of loading the page information of the third page through the second container, the following steps are specifically implemented: sending a request for the page information of the third page based on the link of the third page; receiving the page information of the third page, and carrying the page information of the third page through the second container.
[0062] In one of the embodiments, when the processor executes the computer program, the following steps are implemented: a javascriptbridge object is configured in the window object of the first page through the application, and a method for opening a URL is configured in the javascriptbridge object; when the processor executes the computer program to implement the above-mentioned steps of identifying through the first page whether the parameter information transmitted by the message throwing contains a link to the third page, and calling the jump function of the first container through the first page when the link to the third page is identified, the following steps are specifically implemented: when it is identified that the link to the third page is opened through the method for opening a URL of the first page, the jump function of the first container is called through the first page.
[0063] In one of the embodiments, the logic information of the thrown message of the second page is generated by the logic content of the jump triggered by the user click intercepted by the second page.
[0064] In one of the embodiments, the second page sends parameter information to the first page through an API interface of throwing messages; the first page receives the parameter information sent by the second page through message monitoring.
[0065] In one embodiment, when the processor executes the computer program, the following steps are implemented: in response to the user triggering the navigation bar return button of the second container, closing the second container; loading the first container, and displaying the second page on the interface.
[0066] In one embodiment, the first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
[0067] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: in response to a user triggering a link to a first page in an application, a first container is generated in the application, and page information of the first page is loaded through the first container, and the first page is rendered on the interface according to the first container, wherein a link to the second page is embedded in an inline frame specified by a tag in the page information of the first page, and logical information of a throwing message is configured in the second page; in response to a user triggering a link to the second page in the first page, the second page is displayed on the interface; when parameter information transmitted by the second page through the throwing message is monitored through the first page, whether the parameter information transmitted by the throwing message contains a link to a third page is identified through the first page, and a jump function of the first container is called through the first page when the link to the third page is identified; when it is identified that the first page calls the jump function of the first container, a second container is generated in the application, page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container.
[0068] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned step of loading the page information of the first page through the first container, the following steps are specifically implemented: sending a request for the page information of the first page based on the link of the first page; receiving the page information of the first page, and carrying the page information of the first page through the first container; and / or, when the computer program is executed by the processor to implement the above-mentioned step of displaying the second page on the interface, the following steps are specifically implemented: sending a request for the page information of the second page based on the link of the second page; receiving the page information of the second page, and displaying the second page on the interface according to the inline frame and the page information of the second page; and / or, when the computer program is executed by the processor to implement the above-mentioned step of loading the page information of the third page through the second container, the following steps are specifically implemented: sending a request for the page information of the third page based on the link of the third page; receiving the page information of the third page, and carrying the page information of the third page through the second container.
[0069] In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: a javascriptbridge object is configured in the window object of the first page through an application, and a method for opening a URL is configured in the javascriptbridge object; when the processor executes the computer program to implement the above-mentioned steps of identifying through the first page whether the parameter information transmitted by the message throw contains a link to the third page, and calling the jump function of the first container through the first page when the link to the third page is identified, the following steps are specifically implemented: when it is identified that the link to the third page is opened through the method for opening a URL of the first page, the jump function of the first container is called through the first page.
[0070] In one of the embodiments, the logic information of the thrown message of the second page is generated by the logic content of the jump triggered by the user click intercepted by the second page.
[0071] In one of the embodiments, the second page sends parameter information to the first page through an API interface of throwing messages; the first page receives the parameter information sent by the second page through message monitoring.
[0072] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: in response to a user triggering a return button on the navigation bar of the second container, closing the second container; loading the first container, and displaying the second page on the interface.
[0073] In one embodiment, the first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0076] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A page jump method based on message transmission, characterized in that: The method comprises: In response to a user triggering a link to a first page in an application, a first container is generated in the application, and page information of the first page is loaded through the first container, and the first page is rendered on an interface according to the first container, wherein a link to a second page is embedded in an inline frame specified by a tag in the page information of the first page, and logic information for throwing a message is configured in the second page; In response to a user triggering a link to the second page in the first page, displaying the second page on an interface; When the first page monitors the parameter information transmitted by the second page through the throw message, the first page identifies whether the parameter information transmitted by the throw message includes a link to a third page, and when the link to the third page is identified, the first page calls the jump function of the first container; When it is recognized that the first page calls the jump function of the first container, a second container is generated in the application, page information of the third page is loaded through the second container, and the third page is rendered on the interface according to the second container.
2. The method according to claim 1, characterized in that The loading of the page information of the first page through the first container includes: Sending a request for page information of the first page based on the link of the first page; receiving page information of the first page, and carrying the page information of the first page through the first container; and / or, The displaying the second page on the interface includes: Sending a request for page information of the second page based on the link of the second page; receiving page information of the second page, and displaying the second page on an interface according to the inline frame and the page information of the second page; and / or, The loading of the page information of the third page through the second container includes: Sending a request for page information of the third page based on the link of the third page; The page information of the third page is received, and the page information of the third page is carried by the second container.
3. The method according to claim 1, characterized in that After loading the page information of the first page through the first container, the method further includes: By means of the application, a javascriptbridge object is configured in the window object of the first page, and a method for opening a URL is configured in the javascriptbridge object; The identifying, through the first page, whether the parameter information transmitted by the throwing message includes a link to a third page, and calling a jump function of the first container through the first page when the link to the third page is identified, includes: When it is identified that the link of the third page is opened by the method for opening a URL of the first page, the jump function of the first container is called by the first page.
4. The method according to claim 1, characterized in that: The logic information of the thrown message of the second page is generated by the logic content of the jump triggered by the user click intercepted by the second page.
5. The method according to claim 1, characterized in that The second page sends the parameter information to the first page through the API interface of the message throwing; The first page receives the parameter information sent by the second page by means of message monitoring.
6. The method according to claim 1, characterized in that After the step of rendering the third page on the interface according to the page information of the third page, the method further includes: In response to the user triggering a return button on the navigation bar of the second container, closing the second container; The first container is loaded, and the second page is displayed on the interface.
7. The method according to claim 1, characterized in that The first page is a repayment result page based on the target financial product configuration, the second page is a borrowing page based on the target financial product configuration, and the third page is a page for displaying the product information configuration of the target financial product.
8. A page jump device based on message transmission, characterized in that: The device comprises: A first display module is used for generating a first container in the application in response to a user triggering a link of a first page in the application, loading the page information of the first page through the first container, and rendering the first page on the interface according to the first container, wherein the link of the second page is embedded in the inline frame specified by the tag in the page information of the first page, and the logic information of throwing a message is configured in the second page; A second display module, configured to display the second page on the interface in response to a user triggering a link to the second page in the first page; a monitoring module, configured to, when monitoring the parameter information transmitted by the second page through the throwing message through the first page, identify through the first page whether the parameter information transmitted by the throwing message contains a link to a third page, and call a jump function of the first container through the first page when the link to the third page is identified; The third display module is used to generate a second container in the application when recognizing that the first page calls the jump function of the first container, load the page information of the third page through the second container, and render the third page on the interface according to the second container.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
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 steps of the method according to any one of claims 1 to 7 are implemented.