Popup window processing method and device, medium and program product
By listening to page jump events and obtaining pop-up configuration information, dynamically displaying the target pop-up window, solving the cumbersome problem of writing pop-up codes into the underlying code of the page in the existing technology, and achieving flexible and convenient pop-up display.
Patent Information
- Application Number
- CN202411886386.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, if you want to implement pop-up windows, you need to write pop-up window-related code into the underlying code of the page, which is more cumbersome and complicated.
By obtaining the target routing information, listen to the page jump event, determine the target page, and obtain pop-up configuration information on the pre-set page that needs to be displayed, determine the target pop-up window corresponding to the pop-up window configuration information, and display the target pop-up window.
It realizes dynamic pop-up display based on routing information, without intruding into page code, and is more flexible and convenient.
Smart Images

Figure CN120029702A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a pop-up window processing method, device, medium and program product. Background Art
[0002] Applications or web pages can interact with users through pop-up windows (also called floating layers), such as sending prompts to users through pop-up windows, guiding users to take the next step through pop-up windows, or receiving user feedback through pop-up windows. The inventor has found through research that in the prior art, if pop-up windows are to be implemented, it is necessary to write pop-up window related codes into the underlying code of the page, which is relatively cumbersome and complicated. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a pop-up window processing method, device, medium and program product.
[0004] The present disclosure provides a pop-up window processing method, which includes: obtaining target routing information; in a case where a page jump event is monitored based on the target routing information, determining a target page corresponding to the page jump event; in a case where the target page belongs to a pre-set page that needs to display a pop-up window, obtaining pop-up window configuration information corresponding to the target page; determining a target pop-up window corresponding to the pop-up window configuration information, and displaying the target pop-up window.
[0005] Optionally, determining the target pop-up window corresponding to the pop-up window configuration information includes: determining the target pop-up window category corresponding to the pop-up window configuration information from multiple candidate pop-up window categories; based on a preset pop-up window library, selecting the target pop-up window with the highest match degree with the pop-up window configuration information from the candidate pop-up windows corresponding to the target pop-up window category; wherein the pop-up window library contains candidate pop-up windows corresponding to each of the multiple candidate pop-up window categories.
[0006] Optionally, the pop-up window library is established in the following manner: determining multiple candidate pop-up window categories based on multiple preset pop-up window attributes; classifying multiple preset pop-up windows based on the multiple candidate pop-up window categories to obtain candidate pop-up windows corresponding to each of the multiple candidate pop-up window categories; and establishing a pop-up window library based on the candidate pop-up windows corresponding to each of the multiple candidate pop-up window categories.
[0007] Optionally, displaying the target pop-up window includes: obtaining target setting information; wherein the target setting information is used to indicate a preset response logic for a detected target operation; selecting a target technology that matches the target setting information from at least two preset pop-up display technologies; and displaying the target pop-up window using the target technology.
[0008] Optionally, the target operation includes a page exit operation, and the preset response logic includes a first response logic or a second response logic; wherein, the first response logic includes: in response to detecting the page exit operation for the first time, stopping displaying the pop-up window on the page corresponding to the page exit operation; in response to detecting the page exit operation again after the pop-up window on the page disappears, exiting the page corresponding to the page exit operation; the second response logic includes: in response to detecting the page exit operation, stopping displaying the pop-up window on the page corresponding to the page exit operation, and exiting the page corresponding to the page exit operation.
[0009] Optionally, the at least two pop-up window display technologies include: a custom dialog box display technology and an overlay management technology; the custom dialog box display technology matches the first response logic, and the overlay management technology matches the second response logic.
[0010] Optionally, when the target technology is the custom dialog box display technology, using the target display technology to display the target pop-up window includes: in response to an enable operation of the target application, saving main window information of the target application; wherein the target application is the application to which the target page belongs; based on the main window information, using the custom dialog box display technology to display the target pop-up window.
[0011] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the pop-up window processing method provided in the embodiment of the present disclosure.
[0012] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the pop-up window processing method provided by the embodiment of the present disclosure.
[0013] The embodiments of the present disclosure also provide a computer program product, including a computer program, which, when executed by a processor, implements the pop-up window processing method provided in the embodiments of the present disclosure.
[0014] The above technical solution provided by the embodiment of the present disclosure can monitor the page jump event based on the target routing information, and determine the target page corresponding to the page jump event. When the target page belongs to the pre-set page that needs to display the pop-up window, the pop-up window configuration information corresponding to the target page is obtained, thereby determining the target pop-up window corresponding to the pop-up window configuration information, and displaying the target pop-up window. The above method can dynamically realize the display of the page pop-up window based on the monitoring situation of the routing information, without intruding the page code, and is more flexible and convenient.
[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flowchart of a pop-up window processing method provided by an embodiment of the present disclosure;
[0019] Figure 2 A flowchart of a pop-up window processing method provided by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of a pop-up window processing architecture provided in an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of the structure of a pop-up window processing device provided by an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0025] In the related art, if you want to implement a page pop-up window, you need to write the pop-up window related code in the underlying code of the page, which has a certain degree of page code intrusion. For any page, you need to use this operation to implement a page pop-up window, and even if the same pop-up window appears on different pages, the relevant code of the pop-up window needs to be repeatedly written in the underlying code of different pages, which is not only cumbersome and inconvenient, but also has poor flexibility and is not easy to change. In order to improve the above problems, the embodiments of the present disclosure provide a pop-up window processing method, device, medium and program product, which are explained in detail below.
[0026] Figure 1 The present invention provides a flowchart of a pop-up window processing method provided in an embodiment of the present invention. The method can be executed by a pop-up window processing device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method mainly includes the following steps S102 to S108:
[0027] Step S102, obtaining target routing information. The target routing information may be routing information of the current application, and may specifically indicate routing information between different views or pages in the current application, such as jump information between different pages, etc. The disclosed embodiment may monitor the target routing information in real time, thereby obtaining routing changes of the current application.
[0028] Step S104, when a page jump event is detected based on the target routing information, the target page corresponding to the page jump event is determined. For example, if a page jump from page 1 to page 1 is detected, the target page is page 2. In actual applications, the identifier of the target page can be obtained based on the target routing information.
[0029] Step S106, when the target page belongs to a pre-set page that needs to display a pop-up window, obtain the pop-up window configuration information corresponding to the target page. The embodiment of the present disclosure can pre-set one or more pages that need to display pop-ups. If the target page belongs to a page that needs to display a pop-up window, the pop-up window configuration information corresponding to the target page will be further obtained. The pop-up window configuration information may include one or more attribute information of the pop-up window, such as the pop-up window style, pop-up window function, pop-up window size and other attribute information. The pop-up window style may be a floating ball, a bubble, a guide box, a filter box, etc. The pop-up window function can be specifically divided into whether the pop-up window follows the page, whether the gesture is transmitted through, whether the sliding gesture is intercepted, whether it is a forced pop-up window, etc. The above are all examples. The embodiment of the present disclosure does not limit the pop-up window configuration information. In actual applications, each page that needs to display a pop-up window and the corresponding pop-up window configuration information can be pre-set, and when the current application is cold started, it can be dynamically sent to the application through the backend, so that the application displays the pop-up window corresponding to the pop-up window configuration information when displaying the page that needs to be pop-up.
[0030] Step S108, determine the target pop-up window corresponding to the pop-up window configuration information, and display the target pop-up window. In actual applications, application developers do not need to write the pop-up window underlying code in a fixed manner in the underlying code of the page, but can dynamically set and adjust each page that needs to display the pop-up window and the corresponding pop-up window configuration information in the background according to needs, and send this information to the current application. The current application can monitor the routing situation, and when it is determined that the current jump target page is the page that needs to display the pop-up window, it will obtain the corresponding pop-up window configuration information, thereby displaying the target pop-up window corresponding to the pop-up window configuration information. The above method can dynamically realize the display of page pop-ups based on the monitoring of routing information, without intruding into the page code, and is more flexible and convenient.
[0031] In some implementations, the above step of determining the target pop-up window corresponding to the pop-up window configuration information may be performed with reference to the following steps a and b:
[0032] Step a, determining a target pop-up window category corresponding to the pop-up window configuration information from a plurality of candidate pop-up window categories. The disclosed embodiment does not limit the way of dividing the pop-up window categories, such as by dividing the categories based on pop-up window attributes such as pop-up window style and pop-up window function, to obtain a plurality of candidate pop-up window categories. The disclosed embodiment can determine the category with the highest degree of overlap with the pop-up window attributes of the pop-up window configuration information from a plurality of candidate pop-up window categories based on the pop-up window attributes corresponding to each of the plurality of candidate pop-up window categories and the pop-up window attributes in the pop-up window configuration information, as the target pop-up window category.
[0033] Step b, based on a preset pop-up window library, select the target pop-up window with the highest matching degree with the pop-up window configuration information from the candidate pop-up windows corresponding to the target pop-up window category; wherein the pop-up window library contains candidate pop-ups corresponding to multiple candidate pop-up window categories. In practical applications, each candidate pop-up window category may correspond to one or more candidate pop-ups. Although different candidate pop-ups have a certain commonality and are classified into the same pop-up window category, there may be other attribute differences, such as style differences, size differences, etc. The disclosed embodiment can further select the target pop-up window with the highest matching degree with the pop-up window configuration information from the candidate pop-up windows corresponding to the target pop-up window category. Exemplarily, the matching degree can still be measured based on the overlap between the candidate pop-up window and the pop-up window attributes in the pop-up window configuration information, which is not limited here. The disclosed embodiment sets a variety of candidate pop-ups and divides them into categories, which makes it easier to quickly match based on the pop-up window configuration information in the later stage, and directly uses the matched target pop-up window in the pop-up window library for display, which is not only efficient and convenient, but also can effectively improve the resource reuse rate and reduce the processing resource loss.
[0034] In some specific implementation examples, the pop-up window library is executed through the following steps (1) to (3):
[0035] Step (1) determines multiple candidate pop-up window categories based on multiple preset pop-up window attributes. In some implementation examples, one pop-up window attribute corresponds to one candidate pop-up window category, and in other implementations, multiple specified pop-up window attribute combinations correspond to one candidate pop-up window category, which can be flexibly set and is not limited here.
[0036] Step (2) classifies the plurality of preset pop-up windows based on the plurality of candidate pop-up window categories to obtain candidate pop-up windows corresponding to the plurality of candidate pop-up window categories. In practical applications, a plurality of different pop-up windows may be pre-set, and the plurality of preset pop-up windows may be classified based on the plurality of candidate pop-up window categories and the pop-up window attributes of each preset pop-up window, thereby obtaining candidate pop-up windows corresponding to the plurality of candidate pop-up window categories.
[0037] Step (3), establishing a pop-up window library based on the candidate pop-up windows corresponding to the multiple candidate pop-up window categories.
[0038] The pop-up window library is established in the above manner, which facilitates the subsequent flexible retrieval of required pop-up windows and realizes the dynamic display of pop-up windows efficiently and conveniently.
[0039] In some implementations, the above step of displaying the target pop-up window may be performed with reference to the following steps A and C:
[0040] Step A, obtaining target setting information; wherein the target setting information is used to indicate the preset response logic for the detected target operation. The target operation is an operation that affects the pop-up window. In some specific implementation examples, the target operation includes a page exit operation, such as a page exit operation including but not limited to a page sliding operation. It can be understood that, such as sliding the page left or right, the current page can be exited. Two response logics can be flexibly set. Exemplarily, the preset response logic includes a first response logic or a second response logic. The first response logic includes: in response to the first detection of the page exit operation, stop displaying the pop-up window on the page corresponding to the page exit operation; in response to the page exit operation being detected again after the pop-up window on the page disappears, exit the page corresponding to the page exit operation; the second response logic includes: in response to the detection of the page exit operation, stop displaying the pop-up window on the page corresponding to the page exit operation, and exit the page corresponding to the page exit operation. For the above-mentioned first response logic, two page exit operations are required to realize the page exit. The first page exit operation will make the pop-up window disappear first, and the second page exit operation can make the page exit. For the second response logic, one page exit operation can make the pop-up window disappear and the page exit at the same time.
[0041] Step B: selecting a target technology that matches the target setting information from at least two preset pop-up window display technologies, that is, selecting a target technology that matches the response logic indicated by the target setting information.
[0042] In the embodiments of the present disclosure, the response logic is different, and the pop-up display technology used is different, so that the corresponding logic can be implemented. In some specific implementation examples, at least two pop-up display technologies include: custom dialog display technology and overlay management technology; the custom dialog display technology matches the first response logic, and the overlay management technology matches the second response logic. The custom dialog display technology can be implemented using the customdialog control. With the help of the custom dialog display technology, the required custom dialog box can be created according to the needs. The overlay management technology is also the OverlayManager technology. With the help of the overlay management technology, the overlay management at the system level can be implemented, thereby realizing pop-up creation and display. The above technologies can all be implemented with reference to related technologies, such as with the help of the customdialog control and OverlayManager class provided by the Hongmeng system, which will not be repeated here.
[0043] Step C, using the target technology to display the target pop-up window. The method of displaying the pop-up window based on the overlay management technology will not be repeated here. It should be noted that the custom dialog display technology needs to obtain the specified context to realize the pop-up window display. For this reason, when the target technology is the custom dialog display technology, the target pop-up window is displayed using the target technology, including: in response to the activation operation of the target application, the main window information of the target application is saved; wherein the target application is the application to which the target page belongs; based on the main window information, the target pop-up window is displayed using the custom dialog display technology, and the target pop-up window is essentially a pop-up window implemented on the basis of the main window. Through the above settings, the main window information is saved when the application is just started, and it is used as the context required by the custom dialog display technology, thereby better ensuring that any page of the target application that requires the pop-up window can smoothly display the target pop-up window.
[0044] In some specific implementation examples based on the above, the embodiments of the present disclosure provide the following Figure 2 The flowchart of a pop-up window processing method shown in FIG. 1 mainly includes the following steps S202 to S216:
[0045] Step S202, obtaining target routing information.
[0046] Step S204: when a page jump event is monitored based on the target routing information, determine a target page corresponding to the page jump event.
[0047] Step S206, when the target page is a pre-set page that needs to display a pop-up window, obtain pop-up window configuration information corresponding to the target page.
[0048] Step S208: determining a target pop-up window category corresponding to the pop-up window configuration information from a plurality of candidate pop-up window categories.
[0049] Step S210 , based on a preset pop-up window library, select a target pop-up window with the highest matching degree with the pop-up window configuration information from candidate pop-up windows corresponding to the target pop-up window category.
[0050] Step S212, obtaining target setting information; wherein the target setting information is used to indicate a preset response logic for the detected target operation.
[0051] Step S214: selecting a target technology that matches the target setting information from the custom dialog box display technology and the overlay management technology.
[0052] Step S216, displaying the target pop-up window using the target technology.
[0053] The specific implementation methods of the above steps can refer to the aforementioned related content and will not be repeated here.
[0054] To facilitate the implementation of the above pop-up window processing method, please refer to Figure 3 The schematic diagram of a pop-up window processing architecture shown in the figure illustrates the routing monitoring logic, the pop-up window implementation layer and the pop-up window management layer, wherein the monitoring logic is specifically the logic of the event that triggers the pop-up window based on the routing information monitoring. The pop-up window implementation layer can be responsible for processing the basic pop-up window logic, and the pop-up window is displayed based on the result obtained by the monitoring logic. Specifically, the pop-up window configuration information of the required pop-up window page can be obtained, and the target pop-up window is determined based on the pop-up window configuration information. Figure 3 It shows various types of pop-up windows, such as forced pop-up windows, floating ball pop-up windows, image pop-up windows, lightweight pop-up windows, plain text pop-up windows, etc. Figure 3 The pop-up window management layer can be used to implement specified pop-up window management matters such as interface request processing, pop-up window queue management, pop-up window deduplication processing, etc., which will not be listed one by one here.
[0055] In summary, the pop-up window processing method provided by the embodiment of the present disclosure does not need to add additional pop-up window related code to the underlying code of each page that needs a pop-up window. In specific implementation, the pop-up window classification can be performed in advance and the pop-up window library can be set, and the pages of the required pop-up windows and the pop-up window configuration information corresponding to each page can be set in advance at the back end, and sent through methods such as application cold start, and then the target page for displaying the pop-up window can be determined by monitoring the routing information of the application, and the target pop-up window can be determined by the pop-up window configuration information corresponding to the page and the pop-up window library, and the display of the pop-up window can be realized through methods such as custom dialog box display technology or overlay management technology. The above method not only realizes the pop-up window display without intruding the page code, but also has strong flexibility. The page for displaying the pop-up window and the pop-up window configuration information corresponding to each page can be flexibly adjusted according to the needs, which is convenient for flexible adjustment and change according to the actual situation, and the pop-up window library established by pre-classification can be used to realize efficient reuse of pop-ups, which is very convenient and fast.
[0056] Corresponding to the above pop-up window processing method, the embodiment of the present disclosure further provides a pop-up window processing device, Figure 4 This is a schematic diagram of the structure of a pop-up window processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device, such as Figure 4 As shown, the pop-up window processing device includes:
[0057] The routing information acquisition module 402 is used to acquire target routing information;
[0058] The target page determination module 404 is used to determine the target page corresponding to the page jump event when a page jump event is monitored based on the target routing information;
[0059] The pop-up window information acquisition module 406 is used to acquire the pop-up window configuration information corresponding to the target page when the target page belongs to a preset page that needs to display a pop-up window;
[0060] The target pop-up window display module 408 is used to determine the target pop-up window corresponding to the pop-up window configuration information and display the target pop-up window.
[0061] Through the above device, the display of page pop-up windows can be dynamically realized based on the monitoring situation of routing information, without intruding into the page code, which is more flexible and convenient.
[0062] In some embodiments, the target pop-up display module 408 is specifically used to: determine the target pop-up category corresponding to the pop-up configuration information from a plurality of candidate pop-up categories; based on a preset pop-up library, select the target pop-up with the highest matching degree with the pop-up configuration information from the candidate pop-ups corresponding to the target pop-up category; wherein the pop-up library contains candidate pop-ups corresponding to each of the plurality of candidate pop-up categories.
[0063] In some embodiments, the pop-up library is established in the following manner: determining multiple candidate pop-up categories based on multiple preset pop-up attributes; classifying multiple preset pop-up categories based on the multiple candidate pop-up categories to obtain candidate pop-up windows corresponding to each of the multiple candidate pop-up categories; and establishing a pop-up library based on the candidate pop-up windows corresponding to each of the multiple candidate pop-up categories.
[0064] In some embodiments, the target pop-up display module 408 is specifically used to: obtain target setting information; wherein the target setting information is used to indicate a preset response logic for a detected target operation; select a target technology that matches the target setting information from at least two preset pop-up display technologies; and use the target technology to display the target pop-up.
[0065] In some embodiments, the target operation includes a page exit operation, and the preset response logic includes a first response logic or a second response logic; wherein, the first response logic includes: in response to detecting the page exit operation for the first time, stopping displaying the pop-up window on the page corresponding to the page exit operation; in response to detecting the page exit operation again after the pop-up window on the page disappears, exiting the page corresponding to the page exit operation; the second response logic includes: in response to detecting the page exit operation, stopping displaying the pop-up window on the page corresponding to the page exit operation, and exiting the page corresponding to the page exit operation.
[0066] In some implementations, the at least two pop-up window display technologies include: a custom dialog box display technology and an overlay management technology; the custom dialog box display technology matches the first response logic, and the overlay management technology matches the second response logic.
[0067] In some embodiments, when the target technology is the custom dialog box display technology, the target pop-up display module 408 is specifically used to: save the main window information of the target application in response to the activation operation of the target application; wherein the target application is the application to which the target page belongs; based on the main window information, display the target pop-up window using the custom dialog box display technology.
[0068] The pop-up window processing device provided in the embodiments of the present disclosure can execute the pop-up window processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0069] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device embodiment can refer to the corresponding process in the method embodiment, and will not be repeated here.
[0070] An embodiment of the present disclosure provides an electronic device, which includes: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any method in the present disclosure.
[0071] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0072] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0073] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0074] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program carried on a non-transitory computer-readable medium, the computer program comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0075] In addition to the above-mentioned methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, cause the processor to perform the method provided by the embodiments of the present disclosure. The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present disclosure, the programming languages including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0076] In addition, the embodiment of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the pop-up window processing method provided by the embodiment of the present disclosure.
[0077] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0078] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the pop-up window processing method in the embodiments of the present disclosure when executed by a processor.
[0079] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0080] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0081] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0082] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0083] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0084] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those 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 disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A pop-up window processing method, characterized in that: include: Get target routing information; In the case where a page jump event is monitored based on the target routing information, determining a target page corresponding to the page jump event; When the target page is a pre-set page that needs to display a pop-up window, obtain pop-up window configuration information corresponding to the target page; Determine a target pop-up window corresponding to the pop-up window configuration information, and display the target pop-up window.
2. The method according to claim 1, characterized in that The determining a target pop-up window corresponding to the pop-up window configuration information includes: Determine a target pop-up window category corresponding to the pop-up window configuration information from a plurality of candidate pop-up window categories; Based on a preset pop-up window library, a target pop-up window with the highest matching degree with the pop-up window configuration information is selected from the candidate pop-up windows corresponding to the target pop-up window category; wherein the pop-up window library contains candidate pop-up windows corresponding to each of the multiple candidate pop-up window categories.
3. The method according to claim 2, characterized in that The pop-up window library is established in the following way: Determine multiple candidate pop-up window categories based on multiple preset pop-up window attributes; Classifying a plurality of preset pop-up windows based on the plurality of candidate pop-up window categories to obtain candidate pop-up windows corresponding to the plurality of candidate pop-up window categories; A pop-up window library is established based on the candidate pop-up windows corresponding to the multiple candidate pop-up window categories.
4. The method according to any one of claims 1 to 3, characterized in that: The displaying of the target pop-up window includes: Acquire target setting information; wherein the target setting information is used to indicate a preset response logic for the detected target operation; Selecting a target technology that matches the target setting information from at least two preset pop-up window display technologies; The target pop-up window is displayed using the target technology.
5. The method according to claim 4, characterized in that The target operation includes a page exit operation, and the preset response logic includes a first response logic or a second response logic; The first response logic includes: in response to detecting the page exit operation for the first time, stopping displaying the pop-up window on the page corresponding to the page exit operation; in response to detecting the page exit operation again after the pop-up window on the page disappears, exiting the page corresponding to the page exit operation; The second response logic includes: in response to detecting the page exit operation, stopping displaying the pop-up window on the page corresponding to the page exit operation, and exiting the page corresponding to the page exit operation.
6. The method according to claim 5, characterized in that The at least two pop-up window display technologies include: a custom dialog box display technology and an overlay management technology; The custom dialog box display technology matches the first response logic, and the overlay management technology matches the second response logic.
7. The method according to claim 6, characterized in that In the case where the target technology is the custom dialog box display technology, the using the target display technology to display the target pop-up window includes: In response to an activation operation of a target application, main window information of the target application is saved; wherein the target application is the application to which the target page belongs; Based on the main window information, the target pop-up window is displayed using the custom dialog box display technology.
8. An electronic device, characterized in that: The electronic device comprises: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the pop-up window processing method described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the pop-up window processing method described in any one of claims 1 to 7.
10. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the pop-up window processing method according to any one of claims 1 to 7.