CN112711455A - Page interaction method and device, electronic equipment and storage medium - Google Patents

Page interaction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112711455A
CN112711455A CN202011621914.1A CN202011621914A CN112711455A CN 112711455 A CN112711455 A CN 112711455A CN 202011621914 A CN202011621914 A CN 202011621914A CN 112711455 A CN112711455 A CN 112711455A
Authority
CN
China
Prior art keywords
page
link
request
sent
interactive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011621914.1A
Other languages
Chinese (zh)
Other versions
CN112711455B (en
Inventor
梁旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN202011621914.1A priority Critical patent/CN112711455B/en
Publication of CN112711455A publication Critical patent/CN112711455A/en
Application granted granted Critical
Publication of CN112711455B publication Critical patent/CN112711455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The embodiment of the application provides a page interaction method, a page interaction device, electronic equipment and a storage medium, and belongs to the technical field of Internet, wherein a link ID and a page parameter sent by a first page are received, the link ID is an ID of an interaction link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a logic program corresponding to the first page; searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page; searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance; and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.

Description

Page interaction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a page interaction method and apparatus, an electronic device, and a storage medium.
Background
In an Android system, when a business process page needs to wait for the result of a public page to continue, the interaction mode of the business process page and the public page is as follows: and the service flow page calls a startActivityForResult function to open a public page and wait for a result, after the public page obtains the result, the public page returns the result to the waiting service flow page and closes the public page, and after receiving the result, the service flow page continues to execute self logic switching to a target page.
For example: the user logs in an application, firstly, a login page (service flow page) is displayed, after the user inputs a login account and a password, the login page calls a function to open a verification page (public page), the user inputs a verification code, after the user inputs a correct verification code, the verification page returns a verification result to the login page and closes the verification page, the interface is switched to the login page (service flow page), and after the login page (service flow page) receives the verification result, the login page (service flow page) is switched to a page (target page) with successful login.
With this page interaction, what is presented to the user is: the business process page is switched to the public page, the public page is switched back to the business process page after obtaining the result, and then the business process page is switched to the target page instead of being directly switched to the target page from the public page, so that the page interaction switching is frequent, a large amount of system resources are consumed, the use of a user is not smooth, and the use of the user is not facilitated.
Disclosure of Invention
An object of the embodiments of the present application is to provide a page interaction method, a page interaction device, an electronic device, and a storage medium, so as to solve the problems that, when a page is switched at present, page interaction is frequently switched, a large amount of system resources are consumed, and a user is not smooth in use. The specific technical scheme is as follows:
in a first aspect, a page interaction method is provided, where the method includes:
receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page;
searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance;
and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.
Optionally, the method further includes:
receiving a link request sent by the second page;
generating a unidirectional link according to the link request, wherein the unidirectional link has a link ID and is in a unidirectional binding state;
returning a link ID of the unidirectional link to the second page;
receiving a binding request sent by a first page, wherein the binding request is sent by the first page when a second page is switched to the first page, and the binding request comprises a link ID (identity) sent by the second page to the first page;
and searching a one-way link corresponding to the link ID, establishing a two-way link according to the binding request and the one-way link, and determining the two-way link as an interactive link which is in a two-way binding state.
Optionally, the method further includes:
receiving an executive program identifier sent by the second page;
and establishing the incidence relation between the interactive link and the executive program identifier.
Optionally, the method further includes:
receiving a closing request sent by the second page, wherein the closing request is used for requesting to close the first page and comprises a link ID;
searching an interactive link corresponding to the link ID, and determining a first page corresponding to the interactive link;
and generating a closing control instruction according to the closing request, and closing the first page according to the closing control instruction.
Optionally, the method further includes:
receiving a unbinding request sent by the first page, wherein the unbinding request is sent by the first page before the first page is closed, and the unbinding request comprises a link ID;
searching an interactive link corresponding to the link ID;
and solving the binding interaction link according to the binding release request, wherein the binding interaction link after binding release is a unidirectional link in a unidirectional binding state.
Optionally, the method further includes:
receiving a destruction request sent by the second page, wherein the destruction request is sent by the second page before the second page is closed, and the destruction request comprises a link ID;
searching a one-way link corresponding to the link ID;
destroying the one-way link according to the destruction request.
Optionally, before receiving the link ID and the page parameter sent by the first page, the method further includes:
receiving a calling request sent by the first page, wherein the calling request comprises a logic program identifier;
searching a logic program corresponding to the logic program identification, wherein the logic program is stored in the system in advance;
and generating a call control instruction according to the call request, and sending the call control instruction to the first page, wherein the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
In a second aspect, a page interaction device is provided, the device including:
the receiving module is used for receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
the first searching module is used for searching an interactive link corresponding to the link ID in an interactive link pool, and the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page;
the second searching module is used for searching the executive program corresponding to the executive program identifier, and the executive program is stored in the system in advance;
and the generating module is used for substituting the page parameters into the executive program, generating a switching control instruction, and switching the first page to a third page according to the switching control instruction.
Optionally, the apparatus further comprises:
the link request receiving module is used for receiving a link request sent by the second page;
the unidirectional link generation module is used for generating a unidirectional link according to the link request, the unidirectional link has a link ID, and the unidirectional link is in a unidirectional binding state;
a return module for returning the link ID of the unidirectional link to the second page;
a binding request receiving module, configured to receive a binding request sent by a first page, where the binding request is sent by the first page when a second page is switched to the first page, and the binding request includes a link ID sent by the second page to the first page;
and the first unidirectional link searching module is used for searching the unidirectional link corresponding to the link ID, establishing a bidirectional link according to the binding request and the unidirectional link, and determining the bidirectional link as an interactive link which is in a bidirectional binding state.
Optionally, the apparatus further comprises:
the executive program identifier receiving module is used for receiving the executive program identifier sent by the second page;
and the establishing module is used for establishing the incidence relation between the interactive link and the executive program identifier.
Optionally, the apparatus further comprises:
a closing request receiving module, configured to receive a closing request sent by the second page, where the closing request is used to request to close the first page, and the closing request includes a link ID;
the first interactive link searching module is used for searching the interactive link corresponding to the link ID and determining a first page corresponding to the interactive link;
and the closing control instruction generating module is used for generating a closing control instruction according to the closing request and closing the first page according to the closing control instruction.
Optionally, the apparatus further comprises:
a unbinding request receiving module, configured to receive a unbinding request sent by the first page, where the unbinding request is sent by the first page before the first page is closed, and the unbinding request includes a link ID;
the second interactive link searching module is used for searching the interactive link corresponding to the link ID;
and the unbinding module is used for solving the binding interaction link according to the unbinding request, and the unbound interaction link is a one-way link in a one-way binding state.
Optionally, the apparatus further comprises:
a destruction request receiving module, configured to receive a destruction request sent by the second page, where the destruction request is sent by the second page before the second page is closed, and the destruction request includes a link ID;
the second unidirectional link searching module is used for searching the unidirectional link corresponding to the link ID;
and the destroying module is used for destroying the one-way link according to the destroying request.
Optionally, the apparatus further comprises:
a calling request receiving module, configured to receive a calling request sent by the first page, where the calling request includes a logic program identifier;
a logic program searching module, configured to search a logic program corresponding to the logic program identifier, where the logic program is pre-stored in the system;
and the call control instruction generating module is used for generating a call control instruction according to the call request and sending the call control instruction to the first page, and the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described page interaction methods.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a page interaction method, a page interaction device, electronic equipment and a storage medium, wherein a link ID and a page parameter sent by a first page are received, the link ID is an ID of an interaction link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program; searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page; searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance; and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.
According to the method and the device, when the first page is switched to the third page, the first page does not need to be switched to the second page and then to the third page, the first page can be directly switched to the third page, namely, when the public page is switched to the target page, the public page does not need to be switched to the business process page and then to the target page, and the public page can be directly switched to the target page, so that the page switching times are reduced, the system resources are saved, and the method and the device are beneficial to users.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a page interaction method provided in an embodiment of the present application;
fig. 2 is a flowchart of a page interaction method according to another embodiment of the present application;
fig. 3 is a schematic flowchart of a page interaction method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a page interaction method according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a page interaction method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a page interaction apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Because, with the current page interaction mode, what is presented to the user is: the business process page is switched to the public page, the public page is switched back to the business process page after obtaining the result, and then the business process page is switched to the target page instead of being directly switched to the target page from the public page, so that the page interaction switching is frequent, a large amount of system resources are consumed, the use of a user is not smooth, and the use of the user is not facilitated. Therefore, the page interaction method provided by the embodiment of the application can be applied to a system.
A page interaction method provided in an embodiment of the present application will be described in detail below with reference to a specific implementation manner, as shown in fig. 1, the specific steps are as follows:
s101, receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program.
In this embodiment of the application, the link ID is an ID of an interactive link established in advance according to the first page and the second page, the page parameter is a parameter obtained by the first page executing a logic program corresponding to the first page, and for example, the first page is a verification page, and the page parameter may be a verification result obtained by the verification page executing the logic program corresponding to the verification page. The link ID and page parameters sent by the first page may be received.
S102, searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page.
In the embodiment of the application, an interactive link pool is pre-established in the system, the interactive link pool is a plurality of pre-established interactive links, and the system is pre-established with an association relationship between the interactive link corresponding to the second page and an executive program identifier which is sent to the system by the second page in advance. After receiving the link ID sent by the first page, the interactive link corresponding to the link ID may be searched in the interactive link pool.
S103, searching an executive program corresponding to the executive program identification, wherein the executive program is stored in the system in advance.
In the embodiment of the application, the execution program is pre-stored in the system, the system can call the execution program corresponding to the execution program through the execution program identifier, and after the interactive link corresponding to the link ID is found, the execution program identifier associated with the interactive link can be determined, and the execution program corresponding to the interactive link can be found through the execution program identifier.
And S104, substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.
In the embodiment of the application, after the execution program is found, the system may substitute the page parameter sent by the first page into the execution program to generate a switching control instruction, and switch the first page to the third page according to the switching control instruction.
In the embodiment of the application, a link ID and a page parameter sent by a first page are received, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program; searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page; searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance; and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction. According to the method and the device, when the first page is switched to the third page, the first page does not need to be switched to the second page and then to the third page, the first page can be directly switched to the third page, namely, when the public page is switched to the target page, the public page does not need to be switched to the business process page and then to the target page, and the public page can be directly switched to the target page, so that the page switching times are reduced, the system resources are saved, and the method and the device are beneficial to users.
In yet another embodiment of the present application, as shown in fig. 2, the method may further include the steps of:
s201, receiving a link request sent by the second page.
In the embodiment of the application, the link request is used for requesting the system to generate a link, and the system may receive the link request sent by the second page.
S202, generating a unidirectional link according to the link request, wherein the unidirectional link has a link ID and is in a unidirectional binding state.
In the embodiment of the application, the unidirectional link has a link ID and is in a unidirectional binding state, and after the system receives a link request, the system can generate the unidirectional link according to the link request and store the unidirectional link in the interactive link pool.
S203, returning the link ID of the unidirectional link to the second page.
In this embodiment, after the system generates the unidirectional link, the link ID of the unidirectional link may be returned to the second page.
S204, receiving a binding request sent by the first page, wherein the binding request is sent by the first page when a second page is switched to the first page, and the binding request comprises a link ID sent by the second page to the first page.
In this embodiment of the application, when the second page is switched to the first page, the first page may send a binding request to the system, where the binding request includes a link ID, and after the first page sends the binding request, the system may receive the binding request.
S205, searching the one-way link corresponding to the link ID, establishing a two-way link according to the binding request and the one-way link, and determining the two-way link as an interactive link, wherein the interactive link is in a two-way binding state.
In the embodiment of the application, after receiving the binding request, the system may search for the unidirectional link corresponding to the link ID included in the binding request, establish a bidirectional link according to the binding request and the unidirectional link, and determine the bidirectional link as the interactive link, where the interactive link is in a bidirectional binding state.
In the embodiment of the application, a link request sent by the second page is received; generating a unidirectional link according to the link request, wherein the unidirectional link has a link ID and is in a unidirectional binding state; returning a link ID of the unidirectional link to the second page; receiving a binding request sent by a first page, wherein the binding request is sent by the first page when a second page is switched to the first page, and the binding request comprises a link ID (identity) sent by the second page to the first page; and searching a one-way link corresponding to the link ID, establishing a two-way link according to the binding request and the one-way link, and determining the two-way link as an interactive link which is in a two-way binding state.
According to the scheme, the interactive link between the first page and the second page can be pre-established in the system, when the first page is switched to the third page, the executive program identification sent by the second page in advance can be found through the interactive link, the corresponding executive program is found to generate the switching control instruction, and the first page is switched to the third page according to the switching control instruction, so that the page switching frequency is reduced, the system resource is saved, and the use by a user is facilitated.
In yet another embodiment of the present application, the method may further comprise the steps of:
receiving an executive program identifier sent by the second page;
and establishing the incidence relation between the interactive link and the executive program identifier.
In this embodiment of the application, the system may receive the identifier of the execution program sent by the second page, and establish an association relationship between the interactive link corresponding to the second page and the identifier of the execution program.
In the embodiment of the application, the executive program identifier sent by the second page is received, and the association relationship between the interactive link corresponding to the second page and the executive program identifier is established. The corresponding executive program identification can be found through the incidence relation and the interactive link, the corresponding executive program is found, a switching control instruction is generated, and the first page is switched to the third page according to the switching control instruction, so that the page switching times are reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
receiving a closing request sent by the second page, wherein the closing request is used for requesting to close the first page and comprises a link ID;
searching an interactive link corresponding to the link ID, and determining a first page corresponding to the interactive link;
and generating a closing control instruction according to the closing request, and closing the first page according to the closing control instruction.
In this embodiment, the second page may send a close request to the system, where the close request is used to request to close the first page, and the close request includes the link ID. The system can accept the closing request and search the interactive link corresponding to the closing request according to the link ID in the closing request, so as to determine the first page corresponding to the interactive link. And then generating a closing control instruction according to the closing request, and closing the first page according to the closing control instruction. According to the scheme, the first page can be controlled to be closed according to the request sent by the second page, and the page switching is smoother.
In yet another embodiment of the present application, the method may further comprise the steps of:
receiving a unbinding request sent by the first page, wherein the unbinding request is sent by the first page before the first page is closed, and the unbinding request comprises a link ID;
searching an interactive link corresponding to the link ID;
and solving the binding interaction link according to the binding release request, wherein the binding interaction link after binding release is a unidirectional link in a unidirectional binding state.
In this embodiment of the application, a unbind request may be sent to the system before the first page is closed, where the unbind request includes the link ID. The system can receive the unbinding request, search the interactive link corresponding to the link ID included in the unbinding request, and then unbind the interactive link corresponding to the link ID according to the unbinding request, so that the unbound interactive link is a unidirectional link in a unidirectional binding state. Through the scheme, the system can be requested to unbind the corresponding interactive link before the first page is closed, so that the resource waste in the system is reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
receiving a destruction request sent by the second page, wherein the destruction request is sent by the second page before the second page is closed, and the destruction request comprises a link ID;
searching a one-way link corresponding to the link ID;
destroying the one-way link according to the destruction request.
In this embodiment of the application, a destroy request may be sent to the system before the second page is closed, where the destroy request includes the link ID. The system may receive the destruction request, search for a unidirectional link corresponding to the link ID included in the destruction request, and then destroy the unidirectional link according to the destruction request. By the scheme, the system can be requested to destroy the corresponding one-way link before the second page is closed, so that the resource waste in the system is reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
receiving a calling request sent by the first page, wherein the calling request comprises a logic program identifier;
searching a logic program corresponding to the logic program identification, wherein the logic program is stored in the system in advance;
and generating a call control instruction according to the call request, and sending the call control instruction to the first page, wherein the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
In the embodiment of the application, a logic program is stored in the system in advance, the call request is used for requesting to call the corresponding logic program, and the logic program is used for performing operation according to the call request of the first page to obtain an operation result, namely, a page parameter. Before receiving the link ID and the page parameter sent by the first page, the system can receive a call request sent by the first page, search a logic program corresponding to a logic program identifier included in the call request, then generate a call control instruction for instructing the first page to call the logic program to generate the page parameter according to the call request, and send the call control instruction to the first page. According to the scheme, the corresponding logic program can be searched according to the calling request sent by the first page, the calling control instruction is generated according to the calling request, and the first page is instructed to call the logic program to generate the page parameters.
In another embodiment of the present application, as shown in fig. 3, there is further provided a process of establishing an interactive link:
the first page is page2, and the second page is page 1. The page1 sends a link request for requesting to create an interactive link to the interactive link pool, and after receiving the link request sent by the page1, the interactive link pool generates a unidirectional link (page 1-; when switching from page1 to page2, page1 passes the link ID to page 2; page2 sends a binding request to the inter-link pool, the binding request including a link ID; after receiving the binding request sent by the page2, the interaction link pool finds the corresponding one-way link (page 1-.
In another embodiment of the present application, as shown in fig. 4, there is further provided a process of performing interaction by using an interaction link:
the first page is page2, the second page is page1, and the third page is page 3. After executing a logic program corresponding to the page2 to generate page parameters, sending a link ID and the page parameters to an interactive link pool; after receiving the link ID and the page parameters, the interactive link pool searches for an interactive link corresponding to the link ID (page1-page 2); then, an execution program corresponding to the page2 is searched; finally, the page parameters are substituted into the execution program to generate a switching control instruction, and the page is switched from the page2 to the page3 according to the switching control instruction.
After switching pages, page1 sends a close request for requesting to close page2 to the interactive link pool, wherein the close request includes a link ID; after receiving the closing request, the interaction link pool searches for an interaction link corresponding to the link ID, and determines a page2 corresponding to the interaction link; and generating a closing control instruction according to the closing request, and closing the page2 according to the closing control instruction.
In another embodiment of the present application, as shown in fig. 5, a process of releasing and destroying an interactive link is further provided:
the first page is page2, the second page is page1, page2 closes a unbinding request which is sent to the forward interactive link pool for requesting to solve the unbound interactive link, and the unbinding request comprises a link ID; when the interactive link pool receives a unbinding request sent by the page2, searching for an interactive link corresponding to the link ID (page1-page 2); then, the interactive link (page1-page2) is unbound to a unidirectional link (page 1-.
page1 closes the forward direction and sends a destroy request to the interactive link pool, wherein the destroy request comprises a link ID; after receiving a destroy request sent by page1, the interaction link pool searches for a one-way link (page 1-; the one-way link is destroyed according to the destruction request (page 1-.
In the embodiment of the application, a link ID and a page parameter sent by a first page are received, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program; searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page; searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance; and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction. According to the method and the device, when the first page is switched to the third page, the first page does not need to be switched to the second page and then to the third page, the first page can be directly switched to the third page, namely, when the public page is switched to the target page, the public page does not need to be switched to the business process page and then to the target page, and the public page can be directly switched to the target page, so that the page switching times are reduced, the system resources are saved, and the method and the device are beneficial to users.
Based on the same technical concept, an embodiment of the present application further provides a page interaction apparatus, as shown in fig. 6, the apparatus includes:
a receiving module 301, configured to receive a link ID and a page parameter sent by a first page, where the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
a first searching module 302, configured to search, in an interaction link pool, an interaction link corresponding to the link ID, where the interaction link is associated with an executive identifier that is sent to a system in advance by the second page;
a second searching module 303, configured to search for an execution program corresponding to the execution program identifier, where the execution program is stored in the system in advance;
a generating module 304, configured to substitute the page parameter into the execution program, generate a switching control instruction, and switch the first page to the third page according to the switching control instruction.
Optionally, the apparatus further comprises:
the link request receiving module is used for receiving a link request sent by the second page;
the unidirectional link generation module is used for generating a unidirectional link according to the link request, the unidirectional link has a link ID, and the unidirectional link is in a unidirectional binding state;
a return module for returning the link ID of the unidirectional link to the second page;
a binding request receiving module, configured to receive a binding request sent by a first page, where the binding request is sent by the first page when a second page is switched to the first page, and the binding request includes a link ID sent by the second page to the first page;
and the first unidirectional link searching module is used for searching the unidirectional link corresponding to the link ID, establishing a bidirectional link according to the binding request and the unidirectional link, and determining the bidirectional link as an interactive link which is in a bidirectional binding state.
Optionally, the apparatus further comprises:
the executive program identifier receiving module is used for receiving the executive program identifier sent by the second page;
and the establishing module is used for establishing the incidence relation between the interactive link and the executive program identifier.
Optionally, the apparatus further comprises:
a closing request receiving module, configured to receive a closing request sent by the second page, where the closing request is used to request to close the first page, and the closing request includes a link ID;
the first interactive link searching module is used for searching the interactive link corresponding to the link ID and determining a first page corresponding to the interactive link;
and the closing control instruction generating module is used for generating a closing control instruction according to the closing request and closing the first page according to the closing control instruction.
Optionally, the apparatus further comprises:
a unbinding request receiving module, configured to receive a unbinding request sent by the first page, where the unbinding request is sent by the first page before the first page is closed, and the unbinding request includes a link ID;
the second interactive link searching module is used for searching the interactive link corresponding to the link ID;
and the unbinding module is used for solving the binding interaction link according to the unbinding request, and the unbound interaction link is a one-way link in a one-way binding state.
Optionally, the apparatus further comprises:
a destruction request receiving module, configured to receive a destruction request sent by the second page, where the destruction request is sent by the second page before the second page is closed, and the destruction request includes a link ID;
the second unidirectional link searching module is used for searching the unidirectional link corresponding to the link ID;
and the destroying module is used for destroying the one-way link according to the destroying request.
Optionally, the apparatus further comprises:
a calling request receiving module, configured to receive a calling request sent by the first page, where the calling request includes a logic program identifier;
a logic program searching module, configured to search a logic program corresponding to the logic program identifier, where the logic program is pre-stored in the system;
and the call control instruction generating module is used for generating a call control instruction according to the call request and sending the call control instruction to the first page, and the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
In the embodiment of the application, a link ID and a page parameter sent by a first page are received, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program; searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page; searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance; and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction. According to the method and the device, when the first page is switched to the third page, the first page does not need to be switched to the second page and then to the third page, the first page can be directly switched to the third page, namely, when the public page is switched to the target page, the public page does not need to be switched to the business process page and then to the target page, and the public page can be directly switched to the target page, so that the page switching times are reduced, the system resources are saved, and the method and the device are beneficial to users.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 401, a communication interface 402, a memory 403 and a communication bus 404, where the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page;
searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance;
and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.
Optionally, the method further includes:
receiving a link request sent by the second page;
generating a unidirectional link according to the link request, wherein the unidirectional link has a link ID and is in a unidirectional binding state;
returning a link ID of the unidirectional link to the second page;
receiving a binding request sent by a first page, wherein the binding request is sent by the first page when a second page is switched to the first page, and the binding request comprises a link ID (identity) sent by the second page to the first page;
and searching a one-way link corresponding to the link ID, establishing a two-way link according to the binding request and the one-way link, and determining the two-way link as an interactive link which is in a two-way binding state.
Optionally, the method further includes:
receiving an executive program identifier sent by the second page;
and establishing the incidence relation between the interactive link and the executive program identifier.
Optionally, the method further includes:
receiving a closing request sent by the second page, wherein the closing request is used for requesting to close the first page and comprises a link ID;
searching an interactive link corresponding to the link ID, and determining a first page corresponding to the interactive link;
and generating a closing control instruction according to the closing request, and closing the first page according to the closing control instruction.
Optionally, the method further includes:
receiving a unbinding request sent by the first page, wherein the unbinding request is sent by the first page before the first page is closed, and the unbinding request comprises a link ID;
searching an interactive link corresponding to the link ID;
and solving the binding interaction link according to the binding release request, wherein the binding interaction link after binding release is a unidirectional link in a unidirectional binding state.
Optionally, the method further includes:
receiving a destruction request sent by the second page, wherein the destruction request is sent by the second page before the second page is closed, and the destruction request comprises a link ID;
searching a one-way link corresponding to the link ID;
destroying the one-way link according to the destruction request.
Optionally, before receiving the link ID and the page parameter sent by the first page, the method further includes:
receiving a calling request sent by the first page, wherein the calling request comprises a logic program identifier;
searching a logic program corresponding to the logic program identification, wherein the logic program is stored in the system in advance;
and generating a call control instruction according to the call request, and sending the call control instruction to the first page, wherein the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned page interaction methods.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform any of the page interaction methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A page interaction method is characterized by comprising the following steps:
receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
searching an interactive link corresponding to the link ID in an interactive link pool, wherein the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page;
searching an executive program corresponding to the executive program identifier, wherein the executive program is stored in the system in advance;
and substituting the page parameters into the executive program to generate a switching control instruction, and switching the first page to a third page according to the switching control instruction.
2. The method of claim 1, further comprising:
receiving a link request sent by the second page;
generating a unidirectional link according to the link request, wherein the unidirectional link has a link ID and is in a unidirectional binding state;
returning a link ID of the unidirectional link to the second page;
receiving a binding request sent by a first page, wherein the binding request is sent by the first page when a second page is switched to the first page, and the binding request comprises a link ID (identity) sent by the second page to the first page;
and searching a one-way link corresponding to the link ID, establishing a two-way link according to the binding request and the one-way link, and determining the two-way link as an interactive link which is in a two-way binding state.
3. The method of claim 2, further comprising:
receiving an executive program identifier sent by the second page;
and establishing the incidence relation between the interactive link and the executive program identifier.
4. The method of claim 1, further comprising:
receiving a closing request sent by the second page, wherein the closing request is used for requesting to close the first page and comprises a link ID;
searching an interactive link corresponding to the link ID, and determining a first page corresponding to the interactive link;
and generating a closing control instruction according to the closing request, and closing the first page according to the closing control instruction.
5. The method of claim 1, further comprising:
receiving a unbinding request sent by the first page, wherein the unbinding request is sent by the first page before the first page is closed, and the unbinding request comprises a link ID;
searching an interactive link corresponding to the link ID;
and solving the binding interaction link according to the binding release request, wherein the binding interaction link after binding release is a unidirectional link in a unidirectional binding state.
6. The method of claim 5, further comprising:
receiving a destruction request sent by the second page, wherein the destruction request is sent by the second page before the second page is closed, and the destruction request comprises a link ID;
searching a one-way link corresponding to the link ID;
destroying the one-way link according to the destruction request.
7. The method of claim 1, wherein before receiving the link ID and the page parameter sent by the first page, the method further comprises:
receiving a calling request sent by the first page, wherein the calling request comprises a logic program identifier;
searching a logic program corresponding to the logic program identification, wherein the logic program is stored in the system in advance;
and generating a call control instruction according to the call request, and sending the call control instruction to the first page, wherein the call control instruction is used for indicating the first page to call the logic program to generate the page parameter.
8. A page interaction apparatus, the apparatus comprising:
the receiving module is used for receiving a link ID and a page parameter sent by a first page, wherein the link ID is an ID of an interactive link established in advance according to the first page and a second page, and the page parameter is a parameter generated by the first page executing a corresponding logic program;
the first searching module is used for searching an interactive link corresponding to the link ID in an interactive link pool, and the interactive link is associated with an executive program identifier which is sent to a system in advance by the second page;
the second searching module is used for searching the executive program corresponding to the executive program identifier, and the executive program is stored in the system in advance;
and the generating module is used for substituting the page parameters into the executive program, generating a switching control instruction, and switching the first page to a third page according to the switching control instruction.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN202011621914.1A 2020-12-31 2020-12-31 Page interaction method and device, electronic equipment and storage medium Active CN112711455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011621914.1A CN112711455B (en) 2020-12-31 2020-12-31 Page interaction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011621914.1A CN112711455B (en) 2020-12-31 2020-12-31 Page interaction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112711455A true CN112711455A (en) 2021-04-27
CN112711455B CN112711455B (en) 2024-04-16

Family

ID=75547536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011621914.1A Active CN112711455B (en) 2020-12-31 2020-12-31 Page interaction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112711455B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007016868A2 (en) * 2005-08-07 2007-02-15 Metaswarm (Hongkong) Ltd. System and method for verifying links and electronic addresses in web pages and messages
CN105518653A (en) * 2013-02-25 2016-04-20 P·孙雄 Link association analysis systems and methods
US20160267290A1 (en) * 2013-11-21 2016-09-15 Tencent Technology (Shenzhen) Company Limited Information viewing method, device, system and storage medium
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
CN108132973A (en) * 2017-12-06 2018-06-08 杭州迪普科技股份有限公司 Loading method and device, the computer readable storage medium of WEB jump page
CN108255890A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The treating method and apparatus of the page
CN108416011A (en) * 2018-03-02 2018-08-17 中国平安人寿保险股份有限公司 A kind of page processing method, device, terminal and computer readable storage medium
US20180314708A1 (en) * 2015-12-28 2018-11-01 Alibaba Group Holding Limited Link request processing method and apparatus
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system
US20190155867A1 (en) * 2016-06-27 2019-05-23 Orange Server of statistics for optimization of client-server requests
CN110505188A (en) * 2018-05-18 2019-11-26 华为技术有限公司 A kind of terminal authentication method, relevant device and Verification System
CN110750741A (en) * 2019-10-18 2020-02-04 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium
CN110866203A (en) * 2018-08-08 2020-03-06 北京字节跳动网络技术有限公司 Page jump method, device, equipment and computer readable storage medium
CN111046682A (en) * 2018-10-12 2020-04-21 广州金山移动科技有限公司 Remote control method, device, system and terminal
CN111400627A (en) * 2020-03-09 2020-07-10 政采云有限公司 Information acquisition method and device, electronic equipment and readable storage medium
CN111625738A (en) * 2020-05-27 2020-09-04 北京百度网讯科技有限公司 APP target page calling method, device, equipment and storage medium
CN111666513A (en) * 2020-04-23 2020-09-15 北京三快在线科技有限公司 Page processing method and device, electronic equipment and readable storage medium
US20200310857A1 (en) * 2019-03-29 2020-10-01 Hewlett Packard Enterprise Development Lp Launch web browser applications in microservice-based containers
CN111770072A (en) * 2020-06-23 2020-10-13 北京思特奇信息技术股份有限公司 Method and device for accessing function page through single sign-on
CN111988336A (en) * 2020-09-02 2020-11-24 南方电网数字电网研究院有限公司 Access request processing method, device and system and computer equipment

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007016868A2 (en) * 2005-08-07 2007-02-15 Metaswarm (Hongkong) Ltd. System and method for verifying links and electronic addresses in web pages and messages
CN105518653A (en) * 2013-02-25 2016-04-20 P·孙雄 Link association analysis systems and methods
US20160267290A1 (en) * 2013-11-21 2016-09-15 Tencent Technology (Shenzhen) Company Limited Information viewing method, device, system and storage medium
US20180314708A1 (en) * 2015-12-28 2018-11-01 Alibaba Group Holding Limited Link request processing method and apparatus
US20190155867A1 (en) * 2016-06-27 2019-05-23 Orange Server of statistics for optimization of client-server requests
CN108021564A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of method and apparatus of page reorientation
CN108255890A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The treating method and apparatus of the page
CN108132973A (en) * 2017-12-06 2018-06-08 杭州迪普科技股份有限公司 Loading method and device, the computer readable storage medium of WEB jump page
CN108416011A (en) * 2018-03-02 2018-08-17 中国平安人寿保险股份有限公司 A kind of page processing method, device, terminal and computer readable storage medium
CN110505188A (en) * 2018-05-18 2019-11-26 华为技术有限公司 A kind of terminal authentication method, relevant device and Verification System
CN110866203A (en) * 2018-08-08 2020-03-06 北京字节跳动网络技术有限公司 Page jump method, device, equipment and computer readable storage medium
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system
CN111046682A (en) * 2018-10-12 2020-04-21 广州金山移动科技有限公司 Remote control method, device, system and terminal
US20200310857A1 (en) * 2019-03-29 2020-10-01 Hewlett Packard Enterprise Development Lp Launch web browser applications in microservice-based containers
CN110750741A (en) * 2019-10-18 2020-02-04 深圳市比量科技传媒有限公司 Webpage link skipping processing method, computer device and storage medium
CN111400627A (en) * 2020-03-09 2020-07-10 政采云有限公司 Information acquisition method and device, electronic equipment and readable storage medium
CN111666513A (en) * 2020-04-23 2020-09-15 北京三快在线科技有限公司 Page processing method and device, electronic equipment and readable storage medium
CN111625738A (en) * 2020-05-27 2020-09-04 北京百度网讯科技有限公司 APP target page calling method, device, equipment and storage medium
CN111770072A (en) * 2020-06-23 2020-10-13 北京思特奇信息技术股份有限公司 Method and device for accessing function page through single sign-on
CN111988336A (en) * 2020-09-02 2020-11-24 南方电网数字电网研究院有限公司 Access request processing method, device and system and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
旷志光;纪婷婷;吴小丽;: "基于Vue.js的后台单页应用管理系统的研究与实现", 现代计算机(专业版), no. 30 *

Also Published As

Publication number Publication date
CN112711455B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN107168960B (en) Service execution method and device
JP2019520624A (en) Page component dynamic layout
CN107070858B (en) Service processing method and device
US20150106905A1 (en) Login method for client application and corresponding server
CN108780448A (en) Web page editing in domain
KR102229852B1 (en) How and system to start the application
WO2015158304A1 (en) Data processing method and apparatus
US20170300129A1 (en) Keypress processing method and apparatus for terminal
CN111899008B (en) Resource transfer method, device, equipment and system
CN105069163A (en) Network request processing method and apparatus
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN111447178B (en) Access control method, system and computing device
CN114520830A (en) Message pushing method, device and system
CN112711455B (en) Page interaction method and device, electronic equipment and storage medium
CN110968497A (en) Tree-shaped interceptor-based request verification method, device, medium and electronic equipment
CN112714092B (en) Registration login method, device and computer readable storage medium
CN111125211A (en) Contract establishing method and device, computer readable medium and electronic equipment
CN109309717B (en) Data transmission method and device, electronic equipment and storage medium
CN106570143B (en) Method and device for sending response object
CN110995641A (en) Harassment information identification method, harassment information identification device, electronic equipment and medium
CN111124579A (en) Special effect rendering method and device, electronic equipment and storage medium
CN112084445A (en) Information processing system, method and apparatus, storage medium
CN110881038A (en) Communication authentication method, system, equipment and storage medium
CN109614255B (en) Transaction request processing method, device, medium and electronic equipment
CN114356452B (en) Method and device for acquiring positioning result information, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

GR01 Patent grant
GR01 Patent grant