Page popup window display processing method, device and equipment and readable storage medium
Through the operation platform, the pop-up activity configuration file and page section function are configured, and the client page pop-ups are dynamically obtained and triggered, which solves the real-time and maintenance complexity of the client page pop-up rules modification, and realizes the real-time update of pop-up rules and simplify maintenance.
Patent Information
- Application Number
- CN202411261660.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, the pop-up rules modification of the client page has low real-time effect and is complex in maintenance, so it is impossible to modify the pop-up rules of the published client version.
Configure pop-up activity configuration files through the operation platform, use the page section function to obtain the target page information of the client page activity event, obtain the target pop-up configuration items from the pop-up activity configuration files, and dynamically trigger the page pop-up display, avoiding the advance The points buried in the client code realize real-time modification and simplified maintenance of pop-up rules.
It improves the real-time effect of pop-up rules modification, reduces the complexity of pop-up maintenance on client pages, enhances the configurability of pop-up activities, and meets the operational needs of operating product personnel.
Smart Images

Figure CN119127373A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of page display technology, and specifically to a page pop-up window display processing method, device, computer equipment and computer-readable storage medium. Background Art
[0002] Client pages usually need to trigger some pop-up windows at certain specific times. For example, when a user enters the homepage of an insurance product client, a pop-up window is triggered to display target information to the user through the pop-up window. In the related art, the pop-up window is triggered by pre-embedding on the page. However, the embedding method is solidified in the installation package in the form of code. When the pop-up window rules need to be modified, they need to be modified in the new version of the client code. The old version of the client that has been released cannot be modified. The pop-up window rule modification has low real-time performance and is complex to maintain. Summary of the invention
[0003] The present application provides a page pop-up display processing method, device, computer equipment and computer-readable storage medium, which can realize the binding of page events and pop-up activities, avoid the problem of being unable to modify the pop-up rules of the old version of the published client, improve the real-time effectiveness of pop-up rule modifications, and reduce the complexity of pop-up maintenance on the client page.
[0004] In a first aspect, the present application provides a method for processing a page pop-up window display, the method comprising:
[0005] When there is a page activity event of the client, the target page information of the page activity event is obtained through the page section function of the client;
[0006] Receiving a pop-up window activity configuration file issued by an operation platform of the client, wherein the pop-up window activity configuration file includes at least one pop-up window configuration item;
[0007] If the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file, obtaining the target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information;
[0008] Based on the target pop-up window configuration item, a page pop-up window corresponding to the page activity event is triggered to display.
[0009] In a second aspect, the present application provides a page pop-up window display processing device, the page pop-up window display processing device comprising:
[0010] A first acquisition unit, configured to acquire target page information of a page activity event of a client through a page section function of the client when there is a page activity event of the client;
[0011] A receiving unit, configured to receive a pop-up window activity configuration file issued by an operation platform of the client, wherein the pop-up window activity configuration file includes at least one pop-up window configuration item;
[0012] a second acquiring unit, configured to acquire a target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information if the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file;
[0013] A trigger unit is used to trigger the display of a page pop-up window corresponding to the page activity event based on the target pop-up window configuration item.
[0014] In a third aspect, the present application also provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the page pop-up display processing method when executing the computer program.
[0015] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the page pop-up display processing method.
[0016] This application configures the pop-up window activity configuration file through the operation platform, obtains the target page information of the client page activity event through the page section function of the client, obtains the target pop-up window configuration item of the page activity event from the pop-up window activity configuration file to trigger the page pop-up window display corresponding to the page activity event, thereby realizing the page pop-up window display of the client, so that the pop-up window can be selected when the client page exits or displays. On the one hand, since the pop-up window activity configuration file does not need to be buried in the client page in advance, there is no need to modify the new version of the client code when the pop-up window rule is modified, avoiding the problem of being unable to modify the pop-up window rules of the old version of the client that has been released, improving the real-time effectiveness of the pop-up window rule modification, and reducing the complexity of the pop-up window maintenance of the client page. On the second hand, the page section function is based on the technology of aspect-oriented programming, which can insert additional logic before and after the method call. The section technology is used to uniformly obtain the timing of the client's page display or exit, and at the same time, the pop-up window activity configuration file that can be dynamically issued is used in the operation platform to realize the dynamic pop-up window activity configuration; realize the binding of page events and pop-up window activities, improve the configurability of pop-up window activities, and unbind them from the client version, which can fully meet the operation requirements of the operation product personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 It is a schematic diagram of a framework of a pop-up window display processing system provided in an embodiment of the present application;
[0019] Figure 2 This is a flow chart of a page pop-up window display processing method provided in an embodiment of the present application;
[0020] Figure 3 This is a schematic diagram illustrating the overall framework of the page pop-up window display processing in the embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of the structure of an embodiment of a page pop-up window display processing device provided in an embodiment of the present application;
[0022] Figure 5 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0025] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0026] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, the known process will not be elaborated in detail to avoid unnecessary details that make the description of the present application embodiment obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in accordance with the embodiments of the present application.
[0027] Embodiments of the present application provide a page pop-up window display processing method, device, computer equipment and computer-readable storage medium.
[0028] The executor of the page pop-up display processing method of the embodiment of the present application may be the page pop-up display processing device provided in the embodiment of the present application, or the computer device provided in the embodiment of the present application, wherein the page pop-up display processing device may be implemented in hardware or software.
[0029] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0030] For example, the page pop-up window display processing method of the embodiment of the present application can be applied to the pop-up window display processing system, please refer to Figure 1 , Figure 1 It is a framework schematic diagram of a pop-up window display processing system provided in an embodiment of the present application, and the pop-up window display processing system may include a client, an operation platform, and a decision center. Among them, the client is used to display a page, and a pop-up window can be further displayed on the page displayed by the client. Among them, the operation platform is used to edit and manage the pop-up window activity configuration file, such as creating a pop-up window activity configuration file, and modifying, adding, deleting, etc. the configuration items of the created pop-up window activity configuration file. Among them, the decision center executes the specific process of the page pop-up window display processing method of the embodiment of the present application, such as determining whether a pop-up window is needed, the style of the pop-up window, and clicking a jump link based on the pop-up window activity configuration file and the page monitoring event, and the decision center can specifically be a computer device, a server, etc. It can be understood that in some embodiments, the operation platform and the decision center can be integrated into a computer device or server, and in some embodiments, the operation platform and the decision center can also be integrated into different computer devices or servers respectively.
[0031] For example, in some embodiments, the decision center may implement the following steps:
[0032] When there is a page activity event of the client, the target page information of the page activity event is obtained through the page section function of the client; a pop-up activity configuration file issued by the operation platform of the client is received, wherein the pop-up activity configuration file includes at least one pop-up configuration item; if a pop-up configuration item of the page activity event exists in the pop-up activity configuration file, the target pop-up configuration item of the page activity event is obtained from the pop-up activity configuration file based on the target page information; based on the target pop-up configuration item, the page pop-up display corresponding to the page activity event is triggered.
[0033] For example, in some embodiments, the pop-up window configuration item includes pop-up window setting attributes and page callback method name, and the decision center can implement the following steps:
[0034] The pop-up window setting attribute of the target pop-up window configuration item is passed to the callback function corresponding to the page callback method name of the target pop-up window configuration item; and the page pop-up window display corresponding to the page activity event is triggered by the callback function.
[0035] For example, in some embodiments, the pop-up window setting attributes include a pop-up window style and a pop-up window jump link, and the decision center may implement the following steps:
[0036] Through the callback function, according to the pop-up window style of the target pop-up window configuration item and the pop-up window jump link of the target pop-up window configuration item, a page pop-up window corresponding to the page activity event is generated and displayed.
[0037] For example, in some embodiments, the decision center may implement the following steps:
[0038] When there is a page activity event of the client, a page listening event fed back by the page section function of the client is received, wherein when the page activity event occurs, the page information collection interface of the page section function is called, and the page information collection interface is used to transmit the target page information of the page activity event, and the page listening event carries the target page information transmitted by the page information collection interface; the page listening event is parsed to obtain the target page information of the page activity event.
[0039] For example, in some embodiments, the target page information includes the page name of the page activity event and the page activity method name of the page activity event, and the pop-up window configuration item includes the page name and the page activity method name. The decision center can implement the following steps:
[0040] The page listening event is parsed to obtain the page name of the page activity event and the page activity method name of the page activity event; from each pop-up configuration item of the pop-up activity configuration file, a first pop-up configuration item whose page name is the same as the page name of the page activity event is searched; if the page activity method name of the first pop-up configuration item is the same as the page activity method name of the page activity event, it is determined that the pop-up configuration item of the page activity event exists in the pop-up activity configuration file.
[0041] For example, in some embodiments, the decision center may implement the following steps:
[0042] From the pop-up configuration items of the pop-up activity configuration file, find out the first pop-up configuration item whose page name is the same as the page name of the page activity event; from the first pop-up configuration item, find out the second pop-up configuration item whose page activity method name is the same as the page activity method name of the page activity event, to serve as the target pop-up configuration item of the page activity event.
[0043] For example, in some embodiments, the target page information includes the page name of the page activity event, the pop-up window configuration item includes the page name, and the decision center can implement the following steps:
[0044] Parse the page listening event to obtain the page name of the page activity event; detect whether there is a first pop-up configuration item in the pop-up activity configuration file whose page name is the same as the page name of the page activity event; if the first pop-up configuration item exists in the pop-up activity configuration file, determine whether the pop-up configuration item of the page activity event exists in the pop-up activity configuration file.
[0045] See also Figure 2 , Figure 2 It is a flow chart of a method for processing a page pop-up window display provided by an embodiment of the present application. Figure 1 The decision center in the pop-up window display processing system shown is used as an example for explanation. For the convenience of description, the execution subject will be omitted in the following text. The page pop-up window display processing method includes steps 201 to 204, wherein:
[0046] 201. When there is a page activity event of the client, obtain target page information of the page activity event through the page section function of the client.
[0047] The client page refers to the page displayed on the client, for example, the home page, chat page, setting page, business product details page (such as insurance product details page) displayed on the client.
[0048] Among them, page activity events refer to events such as display and exit of the client page, which are used to capture the timing of display and exit of the client page, so as to pop up a pop-up window at the appropriate time of entering the client page display or exiting the client page.
[0049] Among them, in aspect-oriented programming (AOP), aspects are used to define a set of cross-cutting concerns, that is, functions that span multiple modules (such as logging and transaction processing), and additional logic can be inserted before and after method calls. In this embodiment, the page aspect function is a client page pop-up window display function implemented based on aspect technology. The page aspect function can insert additional logic before and after the client page display method call (such as determining whether to pop up a window before calling the page display method; displaying a pop-up window after calling the page display method) to realize dynamic configuration of pop-ups.
[0050] Among them, the target page information is the page information of the page activity event monitored by the page section function, such as the page name (that is, the name of the client page, for example, the page name can be the home page, chat page, settings page, business product details page), page activity method name (for example, when the page activity event is to enter the client page display, the page activity method name can be "Activity Created"; for example, when the page activity event is to exit the client page, the page activity method name can be "Activity Stopped").
[0051] Exemplarily, step 201 may specifically include: when there is a page activity event of the client, receiving a page listening event fed back by the page section function of the client, wherein when there is the page activity event, the page information collection interface of the page section function is called, the page information collection interface is used to transmit the target page information of the page activity event, and the page listening event carries the target page information transmitted by the page information collection interface; parsing the page listening event to obtain the target page information of the page activity event. In this way, it can ensure that the page information (such as the page name, etc.) of the page activity event (such as the display or exit of the page) of the client is accurately collected, and the accuracy of obtaining the subsequent target pop-up configuration items is improved.
[0052] Depending on the page activity event, there are many specific implementations of step 201, which include, for example:
[0053] (1) The page activity event is the page activity event entering the client page display. At this time, the page information collection interface of the page section function is the first page information collection interface (such as the interface onActivityCreated). When the page section function of the client detects the page activity event of entering the client page display, the first page information collection interface onActivityCreated is called, and the page information of the client page is transmitted through the first page information collection interface onActivityCreated of the page section function, so that the target page information of the page activity event (i.e., entering the client page display) can be obtained through the page section function of the client.
[0054] Taking the client's Android native page as an example, please refer to Figure 3 , the page section function can be the interface Application.ActivityLifecycleCallbacks. When each Android native page is created, the function onActivityCreated of the interface Application.ActivityLifecycleCallbacks will be called, and the page information of the Android native page, such as the page name and page activity method name of the Android native page, will be transmitted through the function onActivityCreated as the target page information. It can be seen that when the interface Application.ActivityLifecycleCallbacks monitors the creation of an Android native page, the page information of the Android native page will be transmitted through the function onActivityCreated of the interface Application.ActivityLifecycleCallbacks. The interface Application.ActivityLifecycleCallbacks will feedback the page monitoring event carrying the page information of the Android native page (i.e. the target page information) to the decision center, so that the decision center can know that the Android native page has been created, so that the decision center can judge whether a pop-up window is needed, the style of the pop-up window, and the click jump link, etc. according to the target page information carried by the page monitoring event and the pop-up window activity configuration file issued by the operation platform.
[0055] (2) The page activity event is the page activity event of exiting the client page. In this case, the page information collection interface of the page section function is the second page information collection interface (such as the interface onActivityCreated). When the page section function of the client detects the page activity event of exiting the client page, the second page information collection interface onActivityStopped is called, and the page information of the client page is transmitted through the second page information collection interface onActivityStopped of the page section function, so that the target page information of the page activity event (i.e., exiting the client page) can be obtained through the page section function of the client.
[0056] Taking the client's Android native page as an example, please refer to Figure 3 , the page section function can be the interface Application.ActivityLifecycleCallbacks. When each Android native page is created, the function onActivityStopped of the interface Application.ActivityLifecycleCallbacks will be called, and the page information of the Android native page, such as the page name and page activity method name of the Android native page, will be transmitted through the function onActivityStopped as the target page information. It can be seen that when the interface Application.ActivityLifecycleCallbacks monitors the exit of the Android native page, the page information of the Android native page will be transmitted through the function onActivityStopped of the interface Application.ActivityLifecycleCallbacks. The interface Application.ActivityLifecycleCallbacks will feedback the page monitoring event carrying the page information of the Android native page (that is, the target page information) to the decision center, so that the decision center can know that the Android native page has exited, so that the decision center can judge whether a pop-up window is needed, the style of the pop-up window, and the click jump link, etc. according to the target page information carried by the page monitoring event and the pop-up window activity configuration file issued by the operation platform.
[0057] 202. Receive a pop-up activity configuration file sent by the operating platform of the client.
[0058] The pop-up window activity configuration file includes at least one pop-up window configuration item.
[0059] Each pop-up window configuration item includes page information and pop-up window triggering information. Exemplarily, the pop-up window activity configuration file may be in the form of a JSON array, each array item of the JSON array is a pop-up window configuration item, and the pop-up window configuration item exists in the form of a JSON object.
[0060] The page information may include a page name (recorded as activityName) and a page activity method name (recorded as activityMethod).
[0061] Among them, the pop-up window trigger information can be a routing protocol (denoted as action), and its format can be as follows: native: / / module / method? params=custom parameters, where the custom parameters can specifically be pop-up window setting information such as pop-up window style and pop-up window jump link, native represents the protocol header, module represents the module name, and method represents the method name. Specifically, the pop-up window trigger information j associated with each page information i can include the pop-up window setting attributes corresponding to the page information i (such as pop-up window style and pop-up window jump link, etc.) and the page callback method name corresponding to the page information i. For example, Figure 3 As shown, the key-value of each pop-up configuration item is as follows:
[0062] activityName: page name
[0063] activityMethod: page activity method name
[0064] action: pop-up window trigger information (i.e. action)
[0065] If activityName and activityMethod match successfully in the decision center, the action in action will be automatically executed. action is a routing protocol, and its format is as follows:
[0066] native: / / module / method?params=custom parameters
[0067] The protocol is parsed by the routing system, and the matching routing method implemented in the code is executed. Native represents the protocol header, module represents the module name, method represents the method name, and params is followed by custom parameters. The routing system matches the corresponding method through the protocol header, module name, and method name, and then passes the parameters after params to the method to execute the logic in the method, such as popping up a pop-up window for insurance.
[0068] In some embodiments, the page information includes the page name. In this case, each pop-up configuration item includes the page name and pop-up trigger information (the pop-up trigger information may further include the pop-up style, pop-up jump link, etc.).
[0069] In some embodiments, the page information includes the page name and the page activity method name. In this case, each pop-up window configuration item includes the page name, the page activity method name, and the pop-up window trigger information (the pop-up window trigger information may further include the pop-up window style, the pop-up window jump link, etc.). For example, as shown in Table 1 below, the pop-up window activity configuration file may include multiple pop-up window configuration items (such as configuration items 1, 2, 3, ...), for configuration item 1: the page name activityName is the home page, the page activity method name activityMethod is Activity Created, the pop-up window trigger information is native: / / module / method? params=custom parameter 1, and so on.
[0070] Table 1
[0071]
[0072]
[0073] Among them, operation management personnel can edit and manage pop-up activity configuration files on the client's operation platform, for example, create a pop-up activity configuration file, modify, add, delete, etc. the configuration items of the created pop-up activity configuration file. When the pop-up activity configuration file is created and updated (such as modifying, adding, deleting, etc. the configuration items based on the created pop-up activity configuration file), it can be sent to the decision center. The decision center will use the latest version of the pop-up activity configuration file to determine whether a pop-up is needed, the style of the pop-up, and the click jump link, etc., so that the page implementation and the pop-up setting can be decoupled without pre-embedded pop-up prompts in each page.
[0074] After the decision center receives the page listening event, first, based on the target page information carried by the listening event, it is determined whether there is a pop-up configuration item for the page activity event in the pop-up activity configuration file; if there is a pop-up configuration item for the page activity event in the pop-up activity configuration file, it is determined that a pop-up is required, and the process proceeds to step 203 to complete the pop-up display; otherwise, if there is no pop-up configuration item for the page activity event in the pop-up activity configuration file, it is determined that a pop-up is not required, and step 203 is not entered, but the next page listening event is continued to arrive. There are multiple ways to "determine whether there is a pop-up configuration item for the page activity event in the pop-up activity configuration file", exemplarily including the following method 1 and method 2:
[0075] Method 1: Compare page names.
[0076] At this time, the page listening event is parsed to obtain the page name of the page activity event. "Determining whether there is a pop-up window configuration item for the page activity event in the pop-up window activity configuration file" can specifically be reported as follows: Steps A1 to A3:
[0077] A1. Detect whether there is a first pop-up window configuration item in the pop-up window activity configuration file, the page name of which is the same as the page name of the page activity event.
[0078] A2. If the pop-up window activity configuration file contains the first pop-up window configuration item, determining whether the pop-up window activity configuration file contains the pop-up window configuration item of the page activity event.
[0079] A3. If the pop-up window activity configuration file does not contain the first pop-up window configuration item, determine that the pop-up window activity configuration file does not contain the pop-up window configuration item of the page activity event.
[0080] Specifically, if the pop-up window activity configuration file contains the first pop-up window configuration item, then it is determined that the pop-up window activity configuration file contains the pop-up window configuration item of the page activity event, and it is determined that a pop-up window is needed, and the process proceeds to step 203 to complete the pop-up window display; otherwise, if the pop-up window activity configuration file does not contain the first pop-up window configuration item, then it is determined that the pop-up window activity configuration file does not contain the pop-up window configuration item of the page activity event, and it is determined that a pop-up window is not needed at this time, and the process does not proceed to step 203, but continues to wait for the arrival of the next page listening event.
[0081] Therefore, by detecting whether there is a first pop-up configuration item in the pop-up activity configuration file whose page name is the same as the page name of the page activity event, it can be ensured that whether the client's page activity event (such as page display or exit) requires a pop-up window is accurately judged, thereby ensuring that the pop-up window is triggered at the right time and improving the rationality of the pop-up logic.
[0082] Method 2: Compare the page name and the page activity method name.
[0083] At this time, the page listening event is parsed to obtain the page name of the page activity event and the page activity method name of the page activity event, and "determining whether there is a pop-up window configuration item for the page activity event in the pop-up window activity configuration file" can specifically report the following steps B1 to B4:
[0084] B1. Searching for a first pop-up window configuration item whose page name is the same as the page name of the page activity event from among the pop-up window configuration items of the pop-up window activity configuration file.
[0085] B2. Detect whether the page activity method name of the first pop-up window configuration item is the same as the page activity method name of the page activity event.
[0086] B3. If the page activity method name of the first pop-up window configuration item is the same as the page activity method name of the page activity event, it is determined that the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file.
[0087] B4. If the page activity method name of the first pop-up window configuration item is different from the page activity method name of the page activity event, it is determined that the pop-up window configuration item of the page activity event does not exist in the pop-up window activity configuration file.
[0088] Specifically, if the page activity method name of the first pop-up window configuration item is the same as the page activity method name of the page activity event, it is determined that the pop-up window activity configuration file contains a pop-up window configuration item for the page activity event, and it is determined that a pop-up window is required, and the process proceeds to step 203 to complete the pop-up window display; otherwise, if the page activity method name of the first pop-up window configuration item is different from the page activity method name of the page activity event, it is determined that the pop-up window activity configuration file contains no pop-up window configuration item for the page activity event, and it is determined that a pop-up window is not required at this time, and the process does not proceed to step 203, but continues to wait for the next page listening event to arrive.
[0089] Therefore, by detecting whether the page activity method name of the first pop-up configuration item is the same as the page activity method name of the page activity event, it can be ensured that whether the client's page activity event (such as page display or exit) requires a pop-up window is accurately judged, thereby ensuring that the pop-up window is triggered at the right time and improving the rationality of the pop-up logic.
[0090] 203. If the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file, obtain the target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information.
[0091] The implementation method of “determining whether there is a pop-up window configuration item of a page activity event in the pop-up window activity configuration file” is similar. There are many implementation methods for step 203, which include, for example:
[0092] (1) The target page information includes the page name activityName of the page activity event. At this time, step 203 may specifically include: searching for a first pop-up configuration item whose page name is the same as the page name of the page activity event from each pop-up configuration item of the pop-up activity configuration file; and using the first pop-up configuration item as the target pop-up configuration item of the page activity event. Thus, by searching for a pop-up configuration item based on the page name of the client's page activity event (such as page display or exit) as the target pop-up configuration item of the page activity event, the matching degree between the target pop-up configuration item and the pop-up rule of the client page can be improved, thereby improving the rationality of the pop-up logic.
[0093] For example, referring to Table 1, assuming that the page name activityName of the page activity event is the insurance product details page, you can find the configuration item (such as configuration item 5 or 6) whose page name activityName is the insurance product details page from the pop-up configuration items of the pop-up activity configuration file shown in Table 1 as the target pop-up configuration item for the page activity event.
[0094] (2) The target page information includes the page name activityName of the page activity event, and the page activity method name activityMethod of the page activity event. At this time, step 203 may specifically include: searching for a first pop-up configuration item whose page name is the same as the page name of the page activity event from each pop-up configuration item of the pop-up activity configuration file; searching for a second pop-up configuration item whose page activity method name is the same as the page activity method name of the page activity event from the first pop-up configuration item, as the target pop-up configuration item of the page activity event. Thus, by searching for a pop-up configuration item as the target pop-up configuration item of the page activity event according to the page name and page activity method name of the client's page activity event (such as page display or exit), the matching degree between the target pop-up configuration item and the pop-up rule of the client page can be improved, thereby improving the rationality of the pop-up logic.
[0095] For example, referring to Table 1, assuming that the page name activityName of the page activity event is Home Page and the page activity method name activityMethod is Activity Stopped, you can find the configuration item (that is, configuration item 2) whose page name activityName is Home Page and whose page activity method name activityMethod is Activity Stopped from the pop-up configuration items of the pop-up activity configuration file shown in Table 1 as the target pop-up configuration item for the page activity event.
[0096] The first pop-up window configuration item refers to a pop-up window configuration item in each pop-up window configuration item of the pop-up window activity configuration file, in which the page name contained is the same as the page name of the page activity event.
[0097] The second pop-up window configuration item refers to a pop-up window configuration item in which the page activity method name contained in the first pop-up window configuration item is the same as the page activity method name of the page activity event.
[0098] 204. Based on the target pop-up window configuration item, trigger the page pop-up window display corresponding to the page activity event.
[0099] Exemplarily, each pop-up window configuration item includes a pop-up window setting attribute and a page callback method name. Step 204 may specifically include: passing the pop-up window setting attribute of the target pop-up window configuration item to the callback function corresponding to the page callback method name of the target pop-up window configuration item; triggering the page pop-up window display corresponding to the page activity event through the callback function.
[0100] Furthermore, the pop-up window setting attributes include a pop-up window style and a pop-up window jump link. The callback function corresponding to the page callback method name of the target pop-up window configuration item can be used to generate and display a page pop-up window corresponding to the page activity event according to the pop-up window style of the target pop-up window configuration item and the pop-up window jump link of the target pop-up window configuration item.
[0101] Please refer to Figure 3 The specific implementation process of step 204 is described below by way of example:
[0102] (1) The target page information includes the page name activityName of the page activity event.
[0103] First, in step 203: from each pop-up configuration item of the pop-up activity configuration file, find out the first pop-up configuration item whose page name is the same as the page name of the page activity event; use the first pop-up configuration item as the target pop-up configuration item of the page activity event. For example, referring to Table 1, assuming that the page name activityName of the page activity event is the insurance product details page, then from each pop-up configuration item of the pop-up activity configuration file shown in Table 1, find out the configuration item (such as configuration item 5) whose page name activityName is the insurance product details page as the target pop-up configuration item of the page activity event.
[0104] Then, in step 204, the pop-up window trigger information in the target pop-up window configuration item is first routed and parsed through the routing system to obtain the protocol header, module name, page callback method name to match the corresponding callback function, and the custom parameter 5 after params (that is, the pop-up window setting properties of the target pop-up window configuration item, including the pop-up window style and the pop-up window jump link); then the custom parameters after params (that is, the pop-up window setting properties of the target pop-up window configuration item, including the pop-up window style and the pop-up window jump link) are passed to the callback function corresponding to the page callback method name of the target pop-up window configuration item, and the logic in the callback function is executed to trigger the page pop-up window display corresponding to the page activity event, such as popping up an insurance pop-up window.
[0105] (2) The target page information includes the page name activityName of the page activity event and the page activity method name activityMethod of the page activity event.
[0106] First, in step 203: from each pop-up configuration item of the pop-up activity configuration file, find out the first pop-up configuration item whose page name is the same as the page name of the page activity event; from the first pop-up configuration item, find out the second pop-up configuration item whose page activity method name is the same as the page activity method name of the page activity event, as the target pop-up configuration item of the page activity event. For example, referring to Table 1, assuming that the page name activityName of the page activity event is the homepage and the page activity method name activityMethod is Activity Stopped, then from each pop-up configuration item of the pop-up activity configuration file shown in Table 1, find out the configuration item (i.e., configuration item 2) whose page name activityName is the homepage and whose page activity method name activityMethod is Activity Stopped, as the target pop-up configuration item of the page activity event.
[0107] Then, in step 204, the pop-up window trigger information in the target pop-up window configuration item is first routed and parsed through the routing system to obtain the protocol header, module name, page callback method name to match the corresponding callback function, and the custom parameter 2 after params (that is, the pop-up window setting properties of the target pop-up window configuration item, including the pop-up window style and the pop-up window jump link); then the custom parameters after params (that is, the pop-up window setting properties of the target pop-up window configuration item, including the pop-up window style and the pop-up window jump link) are passed to the callback function corresponding to the page callback method name of the target pop-up window configuration item, and the logic in the callback function is executed to trigger the page pop-up window display corresponding to the page activity event, such as popping up an insurance pop-up window.
[0108] From the above content, it can be seen that by configuring the pop-up activity configuration file through the operation platform, obtaining the target page information of the client page activity event through the page section function of the client, and obtaining the target pop-up configuration item of the page activity event from the pop-up activity configuration file to trigger the page pop-up display corresponding to the page activity event, thereby realizing the client's page pop-up display, so that the pop-up can be selected when the client's page exits or displays. On the first hand, since the pop-up activity configuration file does not need to be embedded in the client's page in advance, there is no need to modify the new version of the client code when modifying the pop-up rules, avoiding the problem of being unable to modify the pop-up rules of the old version of the client that has been released, improving the real-time effectiveness of pop-up rule modifications, and reducing the complexity of pop-up maintenance on the client page. Secondly, the page section function is based on aspect-oriented programming technology, which can insert additional logic before and after the method call. The page section function detects page activity events and triggers the page pop-up display corresponding to the page activity event. The section technology is used to uniformly obtain the client's page display or exit timing. At the same time, the dynamically issued pop-up activity configuration file is used in the operation platform to realize dynamic pop-up activity configuration; realize dynamic binding of page events and pop-up activities, improve the configurability of pop-up activities, and unbind them from the client version, which can fully meet the operation requirements of operation product personnel.
[0109] In addition, in order to better implement the page pop-up window display processing method in the embodiment of the present application, based on the page pop-up window display processing method, the embodiment of the present application also provides a page pop-up window display processing device, such as Figure 4 FIG. 4 is a schematic diagram of a structure of an embodiment of a page pop-up window display processing device provided in an embodiment of the present application. The page pop-up window display processing device 400 includes:
[0110] The first acquisition unit 401 is used to acquire target page information of the page activity event through the page section function of the client when there is a page activity event of the client;
[0111] The receiving unit 402 is configured to receive a pop-up window activity configuration file issued by the operation platform of the client, wherein the pop-up window activity configuration file includes at least one pop-up window configuration item;
[0112] A second acquisition unit 403 is configured to acquire a target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information if the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file;
[0113] The trigger unit 404 is used to trigger the display of the page pop-up window corresponding to the page activity event based on the target pop-up window configuration item.
[0114] In some embodiments, the pop-up window configuration item includes pop-up window setting attributes and page callback method name; the trigger unit 404 is specifically used to:
[0115] Passing the pop-up window setting attribute of the target pop-up window configuration item to the callback function corresponding to the page callback method name of the target pop-up window configuration item;
[0116] The page pop-up window corresponding to the page activity event is triggered by the callback function.
[0117] In some embodiments, the pop-up window setting attributes include a pop-up window style and a pop-up window jump link, and the trigger unit 404 is specifically used to:
[0118] Through the callback function, according to the pop-up window style of the target pop-up window configuration item and the pop-up window jump link of the target pop-up window configuration item, a page pop-up window corresponding to the page activity event is generated and displayed.
[0119] In some embodiments, the first acquiring unit 401 is specifically used to:
[0120] When there is a page activity event of the client, a page listening event fed back by the page section function of the client is received, wherein when there is the page activity event, a page information collection interface of the page section function is called, the page information collection interface is used to transmit the target page information of the page activity event, and the page listening event carries the target page information transmitted by the page information collection interface;
[0121] The page monitoring event is parsed to obtain target page information of the page activity event.
[0122] In some embodiments, the target page information includes the page name of the page activity event and the page activity method name of the page activity event, and the pop-up window configuration item includes the page name and the page activity method name; the first acquisition unit 401 is specifically used to:
[0123] Parsing the page listening event to obtain the page name of the page activity event and the page activity method name of the page activity event;
[0124] In some embodiments, the page pop-up window display processing device further includes a determination unit (not shown in the figure). The determination unit is specifically used to:
[0125] From each pop-up window configuration item of the pop-up window activity configuration file, searching for a first pop-up window configuration item whose page name is the same as the page name of the page activity event;
[0126] If the page activity method name of the first pop-up window configuration item is the same as the page activity method name of the page activity event, it is determined that the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file.
[0127] In some embodiments, the first acquisition unit 401 is specifically used for: 6. The page pop-up window display processing method according to claim 5, characterized in that the acquiring the target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information comprises:
[0128] From each pop-up window configuration item of the pop-up window activity configuration file, find a first pop-up window configuration item whose page name is the same as the page name of the page activity event;
[0129] From the first pop-up window configuration item, a second pop-up window configuration item whose page activity method name is the same as the page activity method name of the page activity event is searched out to serve as a target pop-up window configuration item of the page activity event.
[0130] In some embodiments, the target page information includes the page name of the page activity event, and the pop-up window configuration item includes the page name; the first acquisition unit 401 is specifically used to:
[0131] The parsing of the page monitoring event to obtain target page information of the page activity event includes:
[0132] Parsing the page monitoring event to obtain the page name of the page activity event;
[0133] In some embodiments, the page pop-up window display processing device further includes a determination unit (not shown in the figure). The determination unit is specifically used to:
[0134] Detecting whether there is a first pop-up window configuration item in the pop-up window activity configuration file whose page name is the same as the page name of the page activity event;
[0135] If the pop-up window activity configuration file contains the first pop-up window configuration item, then determining whether the pop-up window activity configuration file contains the pop-up window configuration item of the page activity event.
[0136] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous page pop-up display processing method embodiment, which will not be repeated here.
[0137] See also Figure 5 , Figure 5A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0138] like Figure 5 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0139] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any page pop-up window display processing method.
[0140] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0141] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any page pop-up window display processing method.
[0142] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0143] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0144] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0145] When there is a page activity event of the client, the target page information of the page activity event is obtained through the page section function of the client; a pop-up activity configuration file issued by the operation platform of the client is received, wherein the pop-up activity configuration file includes at least one pop-up configuration item; if a pop-up configuration item of the page activity event exists in the pop-up activity configuration file, the target pop-up configuration item of the page activity event is obtained from the pop-up activity configuration file based on the target page information; based on the target pop-up configuration item, the page pop-up display corresponding to the page activity event is triggered.
[0146] A person of ordinary skill in the art will appreciate that all or part of the steps in the above-mentioned page pop-up display processing method may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0147] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute any page pop-up display processing method provided in the embodiment of the present application.
[0148] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0149] In the above-mentioned page pop-up window display processing device and computer-readable storage medium embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described page pop-up window display processing device, computer-readable storage medium and corresponding units can refer to the description of the page pop-up window display processing method in the above embodiment, and will not be repeated here.
[0150] The above is a detailed introduction to a page pop-up display processing method, device, computer equipment and computer-readable storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A page pop-up window display processing method, It is characterized in that The method comprises: When there is a page activity event of the client, the target page information of the page activity event is obtained through the page section function of the client; Receiving a pop-up window activity configuration file issued by an operation platform of the client, wherein the pop-up window activity configuration file includes at least one pop-up window configuration item; If the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file, obtaining the target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information; Based on the target pop-up window configuration item, a page pop-up window corresponding to the page activity event is triggered to display.
2. The page pop-up window display processing method according to claim 1, It is characterized in that The pop-up window configuration items include pop-up window setting properties and page callback method name; The triggering of the target page pop-up window display corresponding to the page activity event based on the target pop-up window configuration item includes: Passing the pop-up window setting attribute of the target pop-up window configuration item to the callback function corresponding to the page callback method name of the target pop-up window configuration item; The page pop-up window corresponding to the page activity event is triggered by the callback function.
3. The page pop-up window display processing method according to claim 2, It is characterized in that The pop-up window setting attributes include a pop-up window style and a pop-up window jump link, and the page pop-up window display corresponding to the page activity event triggered by the callback function includes: Through the callback function, according to the pop-up window style of the target pop-up window configuration item and the pop-up window jump link of the target pop-up window configuration item, a page pop-up window corresponding to the page activity event is generated and displayed.
4. The page pop-up window display processing method according to claim 1, It is characterized in that When there is a page activity event of the client, obtaining target page information of the page activity event through the page section function of the client includes: When there is a page activity event of the client, a page listening event fed back by the page section function of the client is received, wherein when there is the page activity event, a page information collection interface of the page section function is called, the page information collection interface is used to transmit the target page information of the page activity event, and the page listening event carries the target page information transmitted by the page information collection interface; The page monitoring event is parsed to obtain target page information of the page activity event.
5. The page pop-up window display processing method according to claim 4, It is characterized in that The target page information includes the page name of the page activity event and the page activity method name of the page activity event, and the pop-up window configuration item includes the page name and the page activity method name; The parsing of the page monitoring event to obtain the target page information of the page activity event includes: Parsing the page listening event to obtain the page name of the page activity event and the page activity method name of the page activity event; The method further comprises: From each pop-up window configuration item of the pop-up window activity configuration file, searching for a first pop-up window configuration item whose page name is the same as the page name of the page activity event; If the page activity method name of the first pop-up window configuration item is the same as the page activity method name of the page activity event, it is determined that the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file.
6. The page pop-up window display processing method according to claim 5, It is characterized in that The acquiring, based on the target page information, from the pop-up window activity configuration file, a target pop-up window configuration item of the page activity event includes: From each pop-up window configuration item of the pop-up window activity configuration file, find a first pop-up window configuration item whose page name is the same as the page name of the page activity event; From the first pop-up window configuration item, a second pop-up window configuration item whose page activity method name is the same as the page activity method name of the page activity event is searched out to serve as a target pop-up window configuration item of the page activity event.
7. The page pop-up window display processing method according to claim 4, It is characterized in that The target page information includes the page name of the page activity event, and the pop-up window configuration item includes the page name; The parsing of the page monitoring event to obtain target page information of the page activity event includes: Parsing the page monitoring event to obtain the page name of the page activity event; The method further comprises: Detecting whether there is a first pop-up window configuration item in the pop-up window activity configuration file whose page name is the same as the page name of the page activity event; If the pop-up window activity configuration file contains the first pop-up window configuration item, then determining whether the pop-up window activity configuration file contains the pop-up window configuration item of the page activity event.
8. A page pop-up window display processing device, It is characterized in that The page pop-up window display processing device comprises: A first acquisition unit, configured to acquire target page information of a page activity event of a client through a page section function of the client when there is a page activity event of the client; A receiving unit, configured to receive a pop-up window activity configuration file issued by an operation platform of the client, wherein the pop-up window activity configuration file includes at least one pop-up window configuration item; a second acquiring unit, configured to acquire a target pop-up window configuration item of the page activity event from the pop-up window activity configuration file based on the target page information if the pop-up window configuration item of the page activity event exists in the pop-up window activity configuration file; A trigger unit is used to trigger the display of a page pop-up window corresponding to the page activity event based on the target pop-up window configuration item.
9. A computer device, It is characterized in that The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the page pop-up window display processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and the computer program is loaded by a processor to execute the page pop-up window display processing method described in any one of claims 1 to 7.
