A pop-up window display method and device

By receiving and asynchronously sending pop-up data to the target page, the problem of coupling between pages and pop-ups is solved, the independent operation of pop-ups and services is achieved, and the system stability and logical consistency are improved.

CN113535313BActive Publication Date: 2024-12-27BEIJING DUWO TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110881813.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-02
Publication Date
2024-12-27
Estimated Expiration
2041-08-02

AI Technical Summary

Technical Problem

In the prior art, there is a coupling between the page and the pop-up window, which will affect the normal operation of the business when there is a problem with the pop-up window system, and the logical consistency of the pop-up window is difficult to ensure.

Method used

By receiving pop-up data sent by the second terminal and determining the target page based on the association relationship, the pop-up data is sent asynchronously to the target page, avoiding the direct coupling between the page and pop-up windows, and using a long link gateway and configuration background for data adjustment and management .

Benefits of technology

Asynchronous display of pop-up windows and target pages is realized, avoiding business impacts caused by pop-up window problems, and improving logical consistency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535313B_ABST
    Figure CN113535313B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for displaying a pop-up window, which is applied to a first terminal, and the method includes: receiving pop-up window data sent by a second terminal, wherein the pop-up window data has an association relationship with a target page in a target APP; based on the association relationship, determining the target page corresponding to the pop-up window data; sending the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data. In the above process, the pop-up window data is first sent by the second terminal to the first terminal, and then sent by the first terminal to the target page, realizing the asynchronous realization of the display of the target page and the pop-up window display based on the pop-up window data. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected due to problems with the pop-up window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for displaying a pop-up window. Background Art

[0002] At present, more and more smart devices are entering our lives, and various apps are gradually affecting us. In the process of using apps, pop-ups are a very core interaction process.

[0003] Traditional app pop-up window function design is often implemented by coding for different pages according to specific business scenarios. This implementation requires business interface adaptation, and the pop-up window data resources are returned synchronously in the corresponding page interface. The front end then displays the pop-up window according to the corresponding resources. Due to the coupling between the page and the pop-up window, the pop-up window data needs to be obtained synchronously. If there is a problem with the pop-up window system, the business itself will be affected. Summary of the invention

[0004] In view of this, the present invention provides a method and device for displaying a pop-up window, which is used to solve the problem in the prior art that due to the coupling between the page and the pop-up window, the pop-up window data needs to be obtained synchronously. If there is a problem with the pop-up window system, the business itself will be affected. The specific solution is as follows:

[0005] A method for displaying a pop-up window, applied to a first terminal, comprising:

[0006] Receiving pop-up window data sent by the second terminal, wherein the pop-up window data is associated with a target page in the target APP;

[0007] Based on the association relationship, determining the target page corresponding to the pop-up window data;

[0008] The pop-up window data is sent to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0009] In the above method, optionally, the first terminal is a long link gateway, and sending the pop-up window data to the target APP includes:

[0010] The pop-up window data is sent to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0011] In the above method, optionally, the second terminal further comprises: configuring a background,

[0012] When a request for updating the pop-up window data in the first terminal is received, the pop-up window data is adjusted based on the configuration background.

[0013] A method for displaying a pop-up window, applied to a second terminal, comprising:

[0014] Receive an access request to a target page in a target APP, and determine whether the target page is associated with a pop-up window based on the access request;

[0015] If yes, obtain the pop-up window data corresponding to the target page;

[0016] The pop-up window data is sent to the first terminal, so that the first terminal sends the pop-up window data to the target page.

[0017] The above method optionally receives an access request to a target page in a target APP, and determines whether the target page is associated with a pop-up window based on the access request, including:

[0018] Sending the access request to the first terminal based on a preset application program interface;

[0019] The first terminal obtains the user identifier and the page identifier in the access request;

[0020] It is determined whether the target page has an associated pop-up window based on the user identifier and the page identifier.

[0021] A pop-up window display device, applied to a first terminal, comprising:

[0022] A receiving module, configured to receive pop-up window data sent by the second terminal, wherein the pop-up window data is associated with a target page in a target APP;

[0023] A determination module, configured to determine the target page corresponding to the pop-up window data based on the association relationship;

[0024] The first sending module is used to send the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0025] The above device, optionally, when the first terminal is a long link gateway,

[0026] The sending module is used to send the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0027] The above device, optionally, the second terminal further includes: a configuration background,

[0028] The configuration background is used to adjust the pop-up window data based on the configuration background when receiving an update request for the pop-up window data in the first terminal.

[0029] A pop-up window display device, applied to a second terminal, comprising:

[0030] A receiving and judging module, used to receive an access request to a target page in a target APP, and judge whether the target page is associated with a pop-up window based on the access request;

[0031] An acquisition module, used for acquiring pop-up window data corresponding to the target page;

[0032] The second sending module is used to send the pop-up window data to the first terminal, so that the first terminal sends the pop-up window data to the target page.

[0033] In the above device, optionally, the receiving and judging module includes:

[0034] A sending unit, configured to send the access request to the first terminal based on a preset application program interface;

[0035] An acquisition unit, configured for the first terminal to acquire a user identifier and a page identifier in the access request;

[0036] A judging unit is used to judge whether there is an associated pop-up window on the target page based on the user identifier and the page identifier.

[0037] Compared with the prior art, the present invention has the following advantages:

[0038] The present invention discloses a method and device for displaying a pop-up window, which is applied to a first terminal, and the method includes: receiving pop-up window data sent by a second terminal, wherein the pop-up window data has an association relationship with a target page in a target APP; based on the association relationship, determining the target page corresponding to the pop-up window data; sending the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data. In the above process, the pop-up window data is first sent by the second terminal to the first terminal, and then sent by the first terminal to the target page, realizing the asynchronous realization of the display of the target page and the pop-up window display based on the pop-up window data. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected due to problems with the pop-up window. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 A flowchart of a method for displaying a pop-up window disclosed in an embodiment of the present application;

[0041] Figure 2 Another flow chart of a method for displaying a pop-up window disclosed in an embodiment of the present application;

[0042] Figure 3 A signaling diagram of a pop-up window display method disclosed in an embodiment of the present application;

[0043] Figure 4 A structural block diagram of a pop-up window display device disclosed in an embodiment of the present application;

[0044] Figure 5 This is another structural block diagram of a pop-up window display device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0047] The present invention discloses a method and device for displaying a pop-up window. In the process of displaying an application and a pop-up window, at present, more and more smart devices are entering our lives, and various APPs are gradually affecting us. In the process of using an APP, a pop-up window is a very core interaction process. Each APP contains at least one page, and there may be a pop-up window page in the APP. The pop-up window display in the prior art is often implemented by encoding different pages according to business scenarios, but the existing display method has the following disadvantages: the pop-up window needs to be adapted to the business interface, and the pop-up window data resource is synchronously returned in the corresponding page interface, and the front end displays the pop-up window according to the corresponding pop-up window data. Due to the coupling between the business system and the pop-up window, if the pop-up window system has a problem, the business itself will be affected. Moreover, some pop-up windows that require specific logic and strategies are implemented separately by each interface, and it is difficult to ensure logical consistency. Therefore, in order to solve the above problems in the future, the present invention provides a method for displaying a pop-up window, and the display method is applied to a first terminal, wherein, preferably, the first terminal can be a gateway, and the execution process of the method is as follows: Figure 1 As shown, the steps include:

[0048] S101, receiving pop-up window data sent by a second terminal, wherein the pop-up window data is associated with a target page in a target APP;

[0049] In an embodiment of the present invention, the second terminal is used to save pop-up window data and pop-up window execution logic, wherein the pop-up window data is data used to construct a pop-up window page, and there is an association relationship between the pop-up window data and the target page in the target APP. The association relationship can be used as the execution logic of the second terminal, and the pop-up window data sent in the second terminal is determined based on the execution logic. For example, the target APP contains a home page and a details page, wherein the home page is associated with the first pop-up window data, and the details page is associated with the second pop-up window data, wherein there is at least one corresponding pop-up window in the first pop-up window data and the second pop-up window data.

[0050] S102: Determine the target page corresponding to the pop-up window data based on the association relationship;

[0051] In an embodiment of the present invention, the association relationship can be established based on an identifier or based on other methods. In an embodiment of the present invention, the specific association method is not limited. Taking the establishment of an association based on an identifier as an example, for example, the target page and its corresponding pop-up data use the same identifier to establish an association, and the target page corresponding to the pop-up data is determined based on the identifier.

[0052] S103: Send the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0053] In an embodiment of the present invention, the pop-up window data is sent to the target page based on the first terminal, so that the target page displays a pop-up window in the target page based on the pop-up window data. For the target APP end, since the page in the target APP may jump to other pages due to user clicks or other operations, after the target APP end receives the pop-up window data, it is necessary to first determine whether the current page displayed in the target APP is the target page. If so, the pop-up window data is sent to the target page, and a corresponding pop-up window is constructed in the target page based on the pop-up window data. If not, the pop-up window data is discarded and wait for receiving the pop-up window data corresponding to the current page.

[0054] The present invention discloses a method for displaying a pop-up window, which is applied to a first terminal, and the method includes: receiving pop-up window data sent by a second terminal, wherein the pop-up window data has an association relationship with a target page in a target APP; based on the association relationship, determining the target page corresponding to the pop-up window data; sending the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data. In the above process, the pop-up window data is first sent by the second terminal to the first terminal, and then sent by the first terminal to the target page, realizing the asynchronous realization of the display of the target page and the pop-up window display based on the pop-up window data. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected due to problems with the pop-up window.

[0055] In the embodiment of the present invention, preferably, the first terminal is a long link gateway, and the long link gateway is connected to multiple clients and multiple business backends at the same time, which is a many-to-many relationship, and only one long connection communication is used between them. Such a many-to-many system should avoid strong coupling when designing. The business party logic will also be adjusted dynamically. If the business protocol and logic are coupled with the gateway implementation, all businesses will be implicated with each other, and protocol upgrades and maintenance will be extremely difficult. Therefore, the classic publish-subscribe model is tried to decouple the long connection gateway from the client and the business backend. They only need to agree on the Topic to freely publish and subscribe messages to each other. The transmitted message is pure binary data, and the gateway does not need to care about the specific protocol specifications and serialization methods of the business party. The long link gateway uses publish-subscribe to decouple the implementation of the gateway and the business party, and still needs to control the client's rights to publish and subscribe to the Topic to avoid intentional or unintentional data pollution or unauthorized access. Further, a Topic template variable is designed in the ACL rule to reduce the access cost of the business party, and the business party is configured with a user name variable identifier containing the connection in the Topic allowed to be subscribed, indicating that only the user is allowed to subscribe or send messages to his own Topic.

[0056] Furthermore, in order to ensure that the downlink or uplink messages are processed normally by the peer end, the functions of receipt and retransmission are implemented. Important business messages need to send receipts after they are received and processed correctly by the client, and the gateway temporarily stores the messages that the client has not received. The gateway will determine the reception status of the client and try to send them again until the client's message receipt is correctly received.

[0057] In the face of high-traffic scenarios of server-side business, the method of sending a receipt for each message sent by the server to the gateway is inefficient. It also provides a receiving and sending method based on message queues. When designing the communication protocol, the MQTT specification was referenced, and the authentication and authorization design was expanded to complete the isolation and decoupling of business messages, ensuring a certain degree of transmission reliability. At the same time, it maintains a certain degree of compatibility with the MQTT protocol, which facilitates the direct use of MQTT's various client-side implementations and reduces the access cost of the business party.

[0058] The long link gateway comprises:

[0059] The access layer is implemented using OpenResty, which is responsible for connection load balancing and session persistence;

[0060] The long connection broker is deployed in the container and is responsible for protocol parsing, authentication and authorization, session, publishing and subscription logic;

[0061] Redis storage, persistent session data;

[0062] Kafka message queue, distributes messages to Broker or business parties;

[0063] Among them, Kafka and Redis are basic components, which have been platformized and containerized, and can achieve rapid expansion in minutes.

[0064] Therefore, the pop-up window data is sent to the target page based on the long link gateway, and the target APP displays the pop-up window in the target page based on the pop-up window data. Since the long link gateway is used, the pop-up window triggering logic is implemented asynchronously, and there is no coupling between the target page and the pop-up window. The business itself will not be affected by problems with the pop-up window.

[0065] Furthermore, the second terminal also includes a configuration background, wherein the configuration background is used to adjust the pop-up window data in the first terminal based on the configuration background when receiving an update request for the pop-up window data, and the adjustment of the pop-up window data includes: deleting, replacing and adding parameters in the pop-up window data, and adjusting the management relationship between the pop-up window data and the corresponding page.

[0066] In an embodiment of the present invention, with respect to the process of determining the pop-up window data in the second terminal, a pop-up window display method is provided in an embodiment of the present invention, which is applied to the second terminal. Optionally, the second terminal is a system including the pop-up window data. The execution flow of the method is as follows: Figure 2 As shown, the steps include:

[0067] S201, receiving an access request for a target page in a target APP, and determining whether the target page is associated with a pop-up window based on the access request;

[0068] In an embodiment of the present invention, when a user accesses a target page in the target APP by clicking or other means, an access request to the target page is accepted, and the access request is sent to the first terminal in the form of a message queue based on a preset application program interface. At the same time, the application Chencu interface Hujiang business data is returned to the target APP to enable the target APP to build a target page based on the business data. The first terminal parses the access request and obtains the user identifier and page identifier in the access request. Preferably, the user identifier is used to represent the user's information, and the user identifier can be the user uid. The page identifier is used to identify specific page information, and the page identifier can be the page ID or code, etc.

[0069] Preferably, based on experience or specific scenarios, an association relationship between the pop-up window and the page is established for the user identifier and / or page identifier. After obtaining the user identifier and the page identifier, it is determined whether there is a target page associated with the page identifier and / or the page identifier.

[0070] S202, obtaining pop-up window data corresponding to the target page;

[0071] In the embodiment of the present invention, if there is a target page associated with the page identifier and / or the page identifier, pop-up window data corresponding to the target page is acquired.

[0072] S203: Send the pop-up window data to the first terminal, so that the first terminal sends the pop-up window data to the target page.

[0073] In the embodiment of the present invention, the pop-up window data is not sent directly to the target APP, but is sent to the first terminal, so that the first terminal sends the pop-up window data to the target page in the target APP.

[0074] Furthermore, since the pop-up window data is first sent to the first terminal, and then the pop-up window data is sent to the target page in the target APP based on the first terminal, the display of the target page and the pop-up window display based on the pop-up window data are asynchronously realized. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected by problems with the pop-up window.

[0075] Based on the above pop-up window display method, the signaling diagram of the specific execution process is as follows: Figure 3 As shown, it includes: APP, API, pop-up window system and long link system, wherein the APP sends the message of user access to the API, the API writes the user access information to the pop-up window system, the pop-up window system determines whether a pop-up window is needed, and if necessary, sends the corresponding pop-up window data to the long link system, and based on the long link system, returns the pop-up window data to the corresponding page in the target APP.

[0076] Based on the above-mentioned method for displaying a pop-up window, which is applied to a first terminal, an embodiment of the present invention provides a pop-up window display device, which is applied to a first terminal. The structural block diagram of the device is as follows: Figure 4 As shown, including:

[0077] A receiving module 301 , a determining module 302 and a first sending module 303 .

[0078] in,

[0079] The receiving module 301 is used to receive pop-up window data sent by the second terminal, wherein the pop-up window data is associated with a target page in a target APP;

[0080] The determination module 302 is used to determine the target page corresponding to the pop-up window data based on the association relationship;

[0081] The first sending module 303 is used to send the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0082] The present invention discloses a pop-up window display device, which is applied to a first terminal, comprising: receiving pop-up window data sent by a second terminal, wherein the pop-up window data is associated with a target page in a target APP; based on the associated relationship, determining the target page corresponding to the pop-up window data; sending the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data. In the above process, the pop-up window data is first sent by the second terminal to the first terminal, and then sent by the first terminal to the target page, realizing the asynchronous realization of the display of the target page and the pop-up window display based on the pop-up window data. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected due to problems with the pop-up window.

[0083] In an embodiment of the present invention, when the first terminal is a long link gateway, the sending module is used to send the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data.

[0084] In the embodiment of the present invention, the second terminal further includes: a configuration background 304.

[0085] in,

[0086] The configuration background 304 is used to adjust the pop-up window data based on the configuration background when receiving a request to update the pop-up window data in the first terminal.

[0087] Based on the above-mentioned method for displaying a pop-up window, which is applied to a second terminal, an embodiment of the present invention provides a pop-up window display device, which is applied to a second terminal. The structural block diagram of the device is as follows: Figure 5 As shown, including:

[0088] A receiving and judging module 401 , an acquiring module 402 and a second sending module 403 .

[0089] in,

[0090] The receiving and judging module 401 is used to receive an access request to a target page in a target APP, and judge whether the target page is associated with a pop-up window based on the access request;

[0091] The acquisition module 402 is used to acquire pop-up window data corresponding to the target page;

[0092] The second sending module 403 is used to send the pop-up window data to the first terminal, so that the first terminal sends the pop-up window data to the target page.

[0093] The embodiment of the present invention discloses a pop-up window display device, which is applied to a second terminal, including: receiving an access request to a target page in a target APP, and judging whether the target page is associated with a pop-up window based on the access request; if so, obtaining pop-up window data corresponding to the target page; and sending the pop-up window data to the first terminal, so that the first terminal sends the pop-up window data to the target page. In the above process, since the pop-up window data is first sent to the first terminal, and then the pop-up window data is sent to the target page in the target APP based on the first terminal, the display of the target page and the display of the pop-up window based on the pop-up window data are asynchronously realized. Therefore, there is no coupling between the target page and the pop-up window, and the business itself will not be affected due to problems with the pop-up window.

[0094] In the embodiment of the present invention, the receiving and judging module 401 includes:

[0095] A sending unit 404 , an acquiring unit 405 and a judging unit 406 .

[0096] in,

[0097] The sending unit 404 is used to send the access request to the first terminal based on a preset application program interface;

[0098] The acquisition unit 405 is used for the first terminal to acquire the user identifier and the page identifier in the access request;

[0099] The determining unit 406 is configured to determine whether the target page has an associated pop-up window based on the user identifier and the page identifier.

[0100] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0101] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0105] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0106] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0109] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for displaying a pop-up window, characterized in that: Applied to a first terminal, the first terminal being a long link gateway, comprising: Receiving pop-up window data sent by the second terminal, wherein the pop-up window data is associated with a target page in the target APP; Based on the association relationship, determining the target page corresponding to the pop-up window data; The pop-up window data is sent to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein, the sending of the pop-up window data to the target page includes: sending the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein, the target APP displays a pop-up window in the target page based on the pop-up window data, including: after receiving the pop-up window data, determining whether the current page displayed in the target APP is the target page, if so, sending the pop-up window data to the target page, and constructing a corresponding pop-up window in the target page based on the pop-up window data, if not, discarding the pop-up window data and waiting to receive the pop-up window data corresponding to the current page; The second terminal also includes: a configuration background, When a request for updating the pop-up window data in the first terminal is received, the pop-up window data is adjusted based on the configuration background.

2. A method for displaying a pop-up window, characterized in that: Applied to the second terminal, including: Receive an access request to a target page in a target APP, and determine whether the target page is associated with a pop-up window based on the access request; If yes, obtain the pop-up window data corresponding to the target page; The pop-up window data is sent to a first terminal so that the first terminal sends the pop-up window data to the target page; wherein the first terminal is a long link network, and the first terminal sends the pop-up window data to the target page, including: the first terminal sends the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein the target APP displays a pop-up window in the target page based on the pop-up window data, including: after receiving the pop-up window data, determining whether the current page displayed in the target APP is the target page, if so, sending the pop-up window data to the target page, and constructing a corresponding pop-up window in the target page based on the pop-up window data, if not, discarding the pop-up window data and waiting to receive the pop-up window data corresponding to the current page; The second terminal also includes: a configuration background, When a request for updating the pop-up window data in the first terminal is received, the pop-up window data is adjusted based on the configuration background.

3. The method according to claim 2, characterized in that Receiving an access request to a target page in a target APP, and determining whether the target page is associated with a pop-up window based on the access request, including: Sending the access request to the first terminal based on a preset application program interface; The first terminal obtains the user identifier and the page identifier in the access request; It is determined whether the target page has an associated pop-up window based on the user identifier and the page identifier.

4. A pop-up window display device, characterized in that: Applied to a first terminal, the first terminal being a long link gateway, comprising: A receiving module, configured to receive pop-up window data sent by the second terminal, wherein the pop-up window data is associated with a target page in a target APP; A determination module, configured to determine the target page corresponding to the pop-up window data based on the association relationship; A first sending module is used to send the pop-up window data to the target page, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein the sending module is specifically used to send the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein the target APP displays a pop-up window in the target page based on the pop-up window data, including: after receiving the pop-up window data, determining whether the current page displayed in the target APP is the target page, if so, sending the pop-up window data to the target page, and constructing a corresponding pop-up window in the target page based on the pop-up window data, if not, discarding the pop-up window data and waiting to receive the pop-up window data corresponding to the current page; The second terminal also includes: a configuration background, The configuration background is used to adjust the pop-up window data based on the configuration background when receiving an update request for the pop-up window data in the first terminal.

5. A pop-up window display device, characterized in that: Applied to the second terminal, including: A receiving and judging module, used to receive an access request to a target page in a target APP, and judge whether the target page is associated with a pop-up window based on the access request; An acquisition module, used for acquiring pop-up window data corresponding to the target page; A second sending module is used to send the pop-up window data to the first terminal, so that the first terminal sends the pop-up window data to the target page; wherein, the first terminal is a long link network, and the first terminal sends the pop-up window data to the target page, including: the first terminal sends the pop-up window data to the target page based on the long link gateway, so that the target APP displays a pop-up window in the target page based on the pop-up window data; wherein, the target APP displays a pop-up window in the target page based on the pop-up window data, including: after receiving the pop-up window data, determining whether the current page displayed in the target APP is the target page, if so, sending the pop-up window data to the target page, and constructing a corresponding pop-up window in the target page based on the pop-up window data, if not, discarding the pop-up window data and waiting to receive the pop-up window data corresponding to the current page; The second terminal also includes: a configuration background, The configuration background is used to adjust the pop-up window data based on the configuration background when receiving an update request for the pop-up window data in the first terminal.

6. The main device according to claim 5, characterized in that: The receiving and judging module comprises: A sending unit, configured to send the access request to the first terminal based on a preset application program interface; An acquisition unit, configured for the first terminal to acquire a user identifier and a page identifier in the access request; The judging unit is used to judge whether there is an associated pop-up window on the target page based on the user identifier and the page identifier.

Citation Information

Patent Citations

  • Front-end APP pop-up window management method, device and system

    CN111984260A

  • Popup window display method, terminal and computer storage medium

    CN112162806A

  • Popup window display method and device, computer equipment and storage medium

    CN112947830A