Popup window configuration file generation method, popup window display method and popup window display device
The pop-up configuration file is directly generated and displayed through the visual pop-up configuration interface, which solves the problems of frequent, disordered and single-style pop-ups in the existing technology, improves the efficiency of pop-up configuration and display, and reduces user churn and development Personnel workload.
Patent Information
- Application Number
- CN202410588820.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, pop-up windows often suffer from the problems of 'frequent pop-ups', 'disordered pop-ups', 'random pop-ups' and 'single style' when displayed, leading to user loss, and developers need to frequently modify application codes and re-release the version. , resulting in low release efficiency.
Provide a pop-up window configuration file generation method and display method, directly configure the pop-up window properties through the visual pop-up window configuration interface, and generate a pop-up window configuration file for display in the application, without modifying the application code, directly based on the pop-up window The configuration interface generates and displays pop-up windows, improving configuration and display efficiency.
It achieves the efficiency and diversity of pop-up window configuration, reduces user churn, avoids the process of developers frequently modifying codes and re-issuing versions, and improves the efficiency and user experience of pop-up window display.
Smart Images

Figure CN118656139A
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a method for generating a pop-up configuration file, a pop-up display method, an apparatus, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] In daily life, when using applications on mobile phones or computer devices, we often receive various pop-up windows. However, due to technical limitations, the pop-up windows often appear "frequently", "disorderly", "randomly", and "single style". Therefore, it is necessary to properly handle the release of pop-up windows to reduce user loss.
[0003] In the related art, the properties of the pop-up window displayed in the application file can be configured by modifying the code of the application file in the user terminal. For example, in order to solve the problem of "single style" of the pop-up window, the code related to the pop-up window style in the application code file of the application that displays the pop-up window can be modified, and the updated application code file can be republished to the application download platform for users to re-download the application code file to display a new pop-up window. When the new pop-up window is displayed, its pop-up window style is the updated pop-up window style. However, the current pop-up window publishing method has the problem of being inefficient when publishing. Summary of the invention
[0004] Based on this, it is necessary to provide an efficient method for generating a pop-up configuration file, a pop-up display method, an apparatus, a computer device, a computer-readable storage medium and a computer program product for the above technical problems.
[0005] In a first aspect, the present application provides a method for generating a pop-up configuration file, comprising:
[0006] In response to a pop-up window configuration operation on the application, a pop-up window configuration interface is displayed, where the pop-up window configuration interface includes a configuration interface;
[0007] In response to the attribute configuration operation triggered by the configuration interface, pop-up window attribute data is obtained;
[0008] Based on the pop-up window attribute data, a pop-up window configuration file for displaying the pop-up window in the application is generated.
[0009] In a second aspect, the present application further provides a device for generating a pop-up configuration file, the device comprising:
[0010] A pop-up window configuration operation processing module, used to display a pop-up window configuration interface in response to a pop-up window configuration operation on an application, where the pop-up window configuration interface includes a configuration interface;
[0011] The attribute configuration operation processing module is used to obtain pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface;
[0012] The pop-up window configuration file generation module is used to generate a pop-up window configuration file for displaying a pop-up window in an application based on pop-up window attribute data.
[0013] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0014] In response to a pop-up window configuration operation on the application, a pop-up window configuration interface is displayed, where the pop-up window configuration interface includes a configuration interface;
[0015] In response to the attribute configuration operation triggered by the configuration interface, pop-up window attribute data is obtained;
[0016] Based on the pop-up window attribute data, a pop-up window configuration file for displaying the pop-up window in the application is generated.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0018] In response to a pop-up window configuration operation on the application, a pop-up window configuration interface is displayed, where the pop-up window configuration interface includes a configuration interface;
[0019] In response to the attribute configuration operation triggered by the configuration interface, pop-up window attribute data is obtained;
[0020] Based on the pop-up window attribute data, a pop-up window configuration file for displaying the pop-up window in the application is generated.
[0021] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0022] In response to a pop-up window configuration operation on the application, a pop-up window configuration interface is displayed, where the pop-up window configuration interface includes a configuration interface;
[0023] In response to the attribute configuration operation triggered by the configuration interface, pop-up window attribute data is obtained;
[0024] Based on the pop-up window attribute data, a pop-up window configuration file for displaying the pop-up window in the application is generated.
[0025] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for generating a pop-up configuration file provide a visual pop-up configuration interface in response to a pop-up configuration operation on an application, so that the pop-up properties can be configured directly based on the configuration interface in the pop-up configuration interface to directly generate a pop-up configuration file for displaying a pop-up in the application. In the present application, there is no need to modify the application code file of the application that displays the pop-up window, nor is there any need to re-issue the application code file of the application. The generation of the pop-up configuration file can be achieved directly based on the pop-up configuration interface, thereby improving the efficiency of the pop-up configuration.
[0026] In a sixth aspect, the present application further provides a pop-up window display method, the method comprising:
[0027] Receiving a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0028] Parse the pop-up window attribute data in the pop-up window configuration file;
[0029] Based on the pop-up window attribute data, a pop-up window is displayed on the application page.
[0030] In a seventh aspect, the present application further provides a pop-up window display device, the device comprising:
[0031] A pop-up window configuration file receiving module is used to receive a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0032] Pop-up window configuration file parsing module, used to parse pop-up window attribute data in the pop-up window configuration file;
[0033] The pop-up window display module is used to display a pop-up window on the application page based on the pop-up window attribute data.
[0034] In an eighth aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0035] Receiving a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0036] Parse the pop-up window attribute data in the pop-up window configuration file;
[0037] Based on the pop-up window attribute data, a pop-up window is displayed on the application page.
[0038] In a ninth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0039] Receiving a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0040] Parse the pop-up window attribute data in the pop-up window configuration file;
[0041] Based on the pop-up window attribute data, a pop-up window is displayed on the application page.
[0042] In a tenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0043] Receiving a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0044] Parse the pop-up window attribute data in the pop-up window configuration file;
[0045] Based on the pop-up window attribute data, a pop-up window is displayed on the application page.
[0046] The above-mentioned pop-up display method, device, computer equipment, computer-readable storage medium and computer program product do not need to re-release the application code file of the application, nor do they need to download the re-released application code file again on the application download platform. Instead, they directly receive the pop-up configuration file for the application and parse the pop-up attribute data in the pop-up configuration file. Based on the pop-up attribute data, the efficiency of displaying the pop-up on the page of the application is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] FIG1 is a diagram of an application environment of a pop-up window display method according to an embodiment;
[0049] Figure 2 A schematic diagram of a process for generating a pop-up configuration file in one embodiment;
[0050] Figure 3A schematic diagram of selecting or creating a pop-up window template on a pop-up window configuration interface in a specific application example;
[0051] Figure 4 A schematic diagram of a pop-up window configuration interface in a specific application example;
[0052] Figure 5 A schematic diagram of a pop-up window display method in one embodiment;
[0053] Figure 6 It is a schematic diagram of the push-pull combination method in the pop-up window display process in a specific application example;
[0054] Figure 7 A schematic diagram of a pop-up window display method and its supporting system in a specific application example;
[0055] Figure 8 A data interaction diagram of a pop-up window display method in a specific application example;
[0056] Fig. 9 It is a structural block diagram of a device for generating a pop-up configuration file in one embodiment;
[0057] Fig.10 is a structural block diagram of a pop-up window display device in an embodiment;
[0058] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0060] At present, when using application software on mobile phones or computer devices, various pop-up windows are often received. However, due to technical limitations, pop-up windows often appear "frequently", "disorderly", "randomly", and "single style". Therefore, it is necessary to properly handle the display process of pop-up windows to reduce user loss.
[0061] In the related art, taking the problem of "single style" in the display process of the above pop-up window as an example, an XML (Extensible Markup Language) file can be preset in the developer's server in advance. The XML file includes configuration data such as the style of each node in the pop-up window template. For example, the style of each node in the pop-up window template includes but is not limited to at least one of the color, size, and position of each node. When the user browses the application, the application end of the user terminal obtains the XML file in the developer's server, modifies the style of each node in the local preset pop-up window template according to the configuration data in the XML file, and displays the pop-up window corresponding to the preset pop-up window template with the modified style to the user. Furthermore, if it is necessary to modify the logic of each control in the pop-up window, or to modify the release strategy of the pop-up window, the developer needs to modify the program code on the application side at the development end to generate a new application-side program file, which contains the updated logic of each control or the updated release strategy of the pop-up window. The new application-side program file is then republished to the application download platform of the user terminal, and the user actively downloads the new application-side program file from the application download platform to enable the pop-up window with the modified logic of each control or the post-release strategy to be displayed to the customer in the new application side.
[0062] However, although the above method can solve the problem of "single style" that occurs when the current pop-up window is released, if the logic of each control in the pop-up window or the release strategy of the pop-up window needs to be modified, the developer needs to modify the code related to the node logic and release strategy of the preset pop-up window template in the program code of the application end, and re-issue the modified application end code to the application download platform of the user terminal, and then the user actively downloads the new application file from the application download platform. In other words, if a large modification is required to the local preset pop-up window template, such as when the control logic of the local preset pop-up window template changes or the release strategy changes, the developer needs to re-modify the program file on the application end, and it is also necessary to wait for the application file on the application end to be re-issued before actively downloading the application file on the new application end, so as to realize the pop-up window display to the user with the modified logic of each node or the post-release strategy in the new application end. Further, the developer re-modifies, re-issues, and re-downloads the program file on the application end for a long period of time, and it is impossible to realize efficient pop-up window display. Therefore, the present application provides an efficient pop-up window display method.
[0063] In the pop-up window display method of the present application, there are a pop-up window configuration file generation stage and a pop-up window display stage. In the pop-up window configuration file generation stage, by responding to the pop-up window configuration operation of the application, a visual pop-up window configuration interface is provided, so that the pop-up window properties can be configured directly based on the configuration interface in the pop-up window configuration interface, so as to directly generate a pop-up window configuration file for displaying the pop-up window in the application. In the present application, there is no need to modify the application code file of the application that displays the pop-up window, nor is there any need to re-issue the application code file of the application. The generation of the pop-up window configuration file can be achieved directly based on the pop-up window configuration interface, thereby improving the pop-up window configuration efficiency. In the pop-up window display stage, there is no need to re-issue the application code file of the application, nor is there any need to download the re-issued application code file again on the application download platform. Instead, the pop-up window configuration file for the application is directly received, and the pop-up window attribute data in the pop-up window configuration file is parsed. Based on the pop-up window attribute data, the efficiency of displaying the pop-up window on the page of the application is improved.
[0064] The pop-up window configuration file method and pop-up window display method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the operation terminal 102 communicates with the pop-up window template management platform 104 through the network, and the pop-up window template management platform 104 communicates with the user terminal 106 through the network, wherein the operation terminal is a terminal owned by the operator who performs the pop-up window configuration, and the user terminal is a terminal that displays the pop-up window. The data storage system can store the data that the pop-up window template management platform 104 needs to process. The data storage system can be integrated on the pop-up window template management platform 104, or it can be placed on the cloud or other network servers. Among them, the operation terminal 102 and the user terminal 106 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. In other application scenarios, the operation terminal 102 may also be other terminals, such as a development terminal.
[0065] Specifically, the operator triggers a pop-up window configuration operation for the application in the operation terminal 102. The operation terminal 102 responds to the pop-up window configuration operation for the application and displays a pop-up window configuration interface to the operator. The pop-up window configuration interface includes a configuration interface. The operator triggers an attribute configuration operation through the configuration interface in the pop-up window configuration interface. The operation terminal 102 responds to the attribute configuration operation triggered through the configuration interface, obtains pop-up window attribute data, and generates a pop-up window configuration file for displaying a pop-up window in the application based on the pop-up window attribute data. Further, the operation terminal 102 sends the pop-up window configuration file to the pop-up window template management platform 104.
[0066] When a user opens an application in the user terminal 106, the user terminal 106 downloads a pop-up configuration file for the application from the pop-up template management platform 104, and the user terminal 106 receives the pop-up configuration file for the application; parses the pop-up attribute data in the pop-up configuration file; and displays a pop-up on the application page based on the pop-up attribute data.
[0067] In an exemplary embodiment, Figure 2 As shown, a method for generating a pop-up configuration file is provided, and the method is applied to the operation terminal 102 in FIG. 1 as an example for explanation.
[0068] S100, in response to a pop-up window configuration operation on an application, displaying a pop-up window configuration interface.
[0069] Among them, the application is the application service built into the terminal. The pop-up window is a container used to convey information, status feedback or guide users to the user. The pop-up window configuration operation is to configure the pop-up window that needs to be displayed in the application. The pop-up window configuration interface includes a configuration interface, which refers to an interface that allows operators to configure the properties of the pop-up window.
[0070] Specifically, there is a pop-up configuration tool in the operation terminal. When the pop-up configuration tool is run, the operation terminal will display a visual pop-up configuration interface. Multiple application identifiers are displayed in the pop-up configuration interface. The operator triggers the pop-up configuration operation for one of the application identifiers, that is, triggers the pop-up configuration operation for the application. The operation terminal responds to the pop-up configuration operation for the application and displays the pop-up configuration interface to the operator.
[0071] Since the pop-up window configuration interface includes a configuration interface, the operator can configure the properties of the pop-up window through the configuration interface. Further, the configuration interface can be represented in the form of a selection box or an input box, and the operator can select the properties of the pop-up window through the selection box or input the properties of the pop-up window through the input box.
[0072] S200, in response to a property configuration operation triggered through a configuration interface, obtaining pop-up window property data.
[0073] Among them, the attribute is the attribute of the pop-up window, and there is more than one attribute of the pop-up window, including but not limited to at least one of the pop-up window layout, pop-up window type, pop-up window style, pop-up window content, and pop-up window routing. The attribute configuration operation is an operation to configure at least one attribute of the pop-up window layout, pop-up window type, pop-up window style, pop-up window content, and pop-up window routing. The attribute configuration operation can be a selection operation performed on the attribute, or it can be an input operation performed on the attribute. The pop-up window attribute data is the data value corresponding to the pop-up window attribute.
[0074] Specifically, there is more than one attribute of the pop-up window, and there is more than one configuration interface for configuring the attribute in the pop-up window configuration interface. Each configuration interface configures one attribute, and the configuration interface in the pop-up window configuration interface includes but is not limited to: at least one of a layout configuration interface, a pop-up window type configuration interface, a style configuration interface, a content configuration interface, and a routing configuration interface. Based on at least one attribute configuration interface among the layout configuration interface, the pop-up window type configuration interface, the style configuration interface, the content configuration interface, the routing configuration interface, and other attribute configuration interfaces, the attributes of the pop-up window are configured one by one to obtain the pop-up window attribute data corresponding to each attribute configuration interface.
[0075] The operator triggers the attribute configuration operation corresponding to the attribute configuration interface through the attribute configuration interface in the pop-up window configuration interface, and the operation terminal responds to the attribute configuration operation triggered by the attribute configuration interface to obtain the pop-up window attribute data. For example, the operator triggers the pop-up window layout configuration operation corresponding to the layout configuration interface through the layout configuration interface in the pop-up window configuration interface, and the operation terminal responds to the layout attribute configuration operation triggered by the layout configuration interface to obtain the pop-up window layout data in the pop-up window attribute data; for another example, the operator triggers the pop-up window style configuration operation corresponding to the style configuration interface through the style configuration interface in the pop-up window configuration interface, and the operation terminal responds to the style attribute configuration operation triggered by the style configuration interface to obtain the pop-up window style data in the pop-up window attribute data.
[0076] S300, generating a pop-up window configuration file for displaying a pop-up window in an application based on the pop-up window attribute data.
[0077] The pop-up window configuration file is a file that contains pop-up window attribute data and can render the pop-up window attribute data in the application to display the pop-up window.
[0078] Specifically, the pop-up window attribute data obtained by each attribute configuration interface is summarized to obtain the final pop-up window attribute data. The pop-up window attribute data is parsed to generate a pop-up window configuration file, which is used to render the pop-up window attribute data in the application to display the pop-up window corresponding to the pop-up window attribute data.
[0079] Furthermore, the pop-up configuration file is uploaded to the pop-up template management platform, so that when the user subsequently clicks on the application of the user terminal, the user terminal can obtain the pop-up configuration file corresponding to the application from the pop-up template management platform, and render the pop-up window based on the pop-up configuration file to display the pop-up window in the application.
[0080] In the above-mentioned method for generating a pop-up configuration file, a visual pop-up configuration interface is provided in response to a pop-up configuration operation on an application, so that the pop-up properties can be configured directly based on the configuration interface in the pop-up configuration interface, so as to directly generate a pop-up configuration file for displaying a pop-up window in the application. In the present application, there is no need to modify the application code file of the application that displays the pop-up window, nor is there any need to re-issue the application code file of the application. The generation of the pop-up configuration file can be achieved directly based on the pop-up configuration interface, thereby improving the efficiency of the pop-up configuration.
[0081] In one embodiment, the pop-up window configuration interface can be a pop-up window configuration interface of an existing pop-up window template. In the pop-up window configuration interface of an existing pop-up window template, the operator can modify the properties of the existing pop-up window template. In other words, the operator can choose to create a new pop-up window template or modify the pop-up window properties based on the existing pop-up window template, and trigger the corresponding pop-up window configuration interface. Figure 3 The figure shows the interface where operators select an existing pop-up window template or create a new pop-up window template in the pop-up window configuration interface. When the operator selects to create a new template, the pop-up window identification configuration interface and pop-up window type configuration interface corresponding to the new template will be displayed on the pop-up window configuration interface.
[0082] In an exemplary embodiment, the configuration interface includes a layout configuration interface, the pop-up window attribute data includes pop-up window layout data, and the attribute configuration operation includes a pop-up window layout configuration operation;
[0083] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0084] In response to a pop-up window layout configuration operation triggered through a layout configuration interface, pop-up window layout data is determined.
[0085] Among them, layout refers to the hierarchical relationship between the controls in the pop-up window. Controls refer to components that can be seen and interacted with in the pop-up window. Hierarchical relationships include but are not limited to parallel relationships and nested relationships. Parallel relationships refer to the existence of species concepts at the same level in the same genus concept. The parallel relationship between these species concepts exists. In this application, the parallel relationship means that the controls are at the same level; the nested relationship is an inclusion relationship, that is, a double label contains other labels. In this application, the nested relationship means that a control contains another control. The layout configuration interface is an interface for configuring the hierarchical relationship between the controls in the pop-up window. The pop-up layout data is used to describe the hierarchical relationship between the controls in the pop-up window. The pop-up layout configuration operation is an operation to configure the hierarchical relationship between the controls in the pop-up window.
[0086] Specifically, the pop-up window includes several controls, and there is a certain hierarchical relationship between the controls. For example, the hierarchical relationship between control A and control B can be a parallel relationship, and the hierarchical relationship between control A and control C can be a nested relationship. The operator triggers the pop-up window layout configuration operation through the layout configuration interface in the pop-up window configuration interface to configure the hierarchical relationship between the controls in the pop-up window.
[0087] Furthermore, in the process of configuring the hierarchical relationship between the pop-up window controls, the operator can select at least two controls in the pop-up window configuration interface and trigger the pop-up window layout configuration operation of the layout configuration interface to determine the hierarchical relationship between the selected controls.
[0088] When the layout configuration interface is represented in the form of a selection box, after the operator selects any at least two controls in the pop-up configuration interface, a pop-up layout configuration operation of the layout configuration interface is triggered. At this time, the operation terminal responds to the pop-up layout configuration operation and displays the optional hierarchical relationship information in the pop-up configuration interface. The operator selects a certain hierarchical relationship information based on the optional hierarchical relationship information. The operation terminal responds to the selection operation of a certain hierarchical relationship information, determines the pop-up layout data, and displays the pop-up layout data on the layout configuration interface.
[0089] When the layout configuration interface is represented in the form of an input box, after the operator selects any at least two controls in the pop-up configuration interface, the operator inputs the hierarchical relationship between the selected controls on the layout configuration interface. The operation terminal responds to the pop-up layout configuration operation of the layout configuration interface, determines the pop-up layout data, and displays the pop-up layout data on the layout configuration interface.
[0090] Furthermore, before configuring the hierarchical relationship between the controls in the pop-up window, first, the controls in the pop-up window need to be configured. The controls are divided according to the style of the controls, including but not limited to at least one of text controls, image controls, etc. The controls are divided according to whether they can be triggered, and the controls can also include triggerable controls and non-triggerable controls. When configuring the controls in the pop-up window, at least one of the text controls, image controls, etc. in the pop-up window is configured. For example, the pop-up window can be configured to display text control A, image control B, text control C, etc. In addition, the hierarchical relationship between the controls in the pop-up window does not need to be configured one by one, and the hierarchical relationship between some of the controls can be customized and configured.
[0091] In a specific application, three controls are configured in the pop-up window configuration interface, namely, text control A, image control B, and text control C. The user selects text control A and image control B in turn, and selects the hierarchical relationship information as a nested relationship in the layout configuration interface. The operation terminal responds to the pop-up window layout configuration operation triggered by the layout configuration interface, and determines that the pop-up window layout data is that the image control B is nested in the text control A. Similarly, the user selects text control A and text control C in turn, and selects the hierarchical relationship information as a parallel relationship in the layout configuration interface. The operation terminal responds to the pop-up window layout configuration operation triggered by the layout configuration interface, and determines that the pop-up window layout data is that the text control A is parallel to the text control C. Then the final pop-up window layout data is: the image control B is nested in the text control A, and the text control A and the text control C are parallel.
[0092] In one embodiment, in response to a pop-up window layout configuration operation triggered through a layout configuration interface, the determined pop-up window layout data also includes an overall size of the pop-up window, a pop-up window identifier, and identifiers of each control in the pop-up window.
[0093] In the above embodiment, there is no need to modify the application code file of the application that displays the pop-up window, nor is there any need to re-issue the application code file of the application. Instead, the pop-up window layout configuration operation is triggered through the layout configuration interface to enable the operation terminal to determine the pop-up window layout data, thereby achieving efficient configuration of the hierarchical relationship between the controls in the pop-up window.
[0094] In one embodiment, the configuration interface further includes a pop-up window type configuration interface, the pop-up window attribute data further includes pop-up window type information, and the attribute configuration operation includes a pop-up window type configuration operation;
[0095] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0096] In response to a pop-up window type configuration operation triggered by a pop-up window type configuration interface, obtaining pop-up window type information;
[0097] Based on the pop-up window attribute data, a pop-up window configuration file is generated for displaying the pop-up window in the application, including:
[0098] Based on the pop-up window layout data and the pop-up window type information, a pop-up window configuration file for displaying the pop-up window in the application is generated.
[0099] Among them, the pop-up window type includes several types, for example, the pop-up window type includes but is not limited to: at least one of version upgrade, authorization pop-up window, user agreement, function guide, and operation activities. The pop-up window type configuration interface can be represented in the form of an input box or a selection box. When the pop-up window type configuration interface is an input box, the pop-up window type configuration operation includes inputting the pop-up window type; when the pop-up window type configuration interface is a selection box, the pop-up window type configuration operation includes selecting the pop-up window type.
[0100] Specifically, a pop-up type configuration interface is displayed on the operation terminal. When the pop-up type configuration interface is represented in the form of an input box, the operation personnel inputs the pop-up type information based on the pop-up type configuration interface; when the pop-up type configuration interface is represented in the form of a selection box, the operation personnel interacts with the pop-up type configuration interface, for example, by clicking on the pop-up type configuration interface, double-clicking the pop-up type configuration interface, and long pressing the pop-up type configuration interface. The operation terminal responds to the pop-up type configuration operation of the pop-up type configuration interface and displays the pop-up type selectable information. The operation personnel selects the pop-up type information from the pop-up type selectable information displayed in the operation terminal to configure the pop-up type.
[0101] The operation terminal obtains the pop-up type information input or selected by the operator in response to the selection operation triggered by the pop-up type configuration interface, and generates a pop-up configuration file for displaying the pop-up in the application based on the pop-up layout data and the pop-up type information.
[0102] Furthermore, based on the pop-up window layout data and pop-up window type information, the generated pop-up window configuration file can be a dsl (domain-specific language) file, and the dsl file is specifically an index.json file, and the index.json file describes the pop-up window layout data and pop-up window type information in the json format, that is, it describes the pop-up window type, the pop-up window identifier, the overall size of the pop-up window, and the identifiers of each control in the pop-up window. In addition, in each dsl file, a custom expression can be used, and the custom expression can be at least one of the expressions such as value, comparison, condition judgment, etc., to describe the pop-up window layout data and pop-up window type information.
[0103] In one embodiment, each pop-up window type corresponds to a priority. When the user terminal displays the pop-up window based on the pop-up window type information in the pop-up window attribute data, the pop-up window will be displayed in the application in sequence based on the priority corresponding to the pop-up window type. For example, the pop-up window types include, but are not limited to: version upgrade, authorization pop-up window, user agreement, function guide, and at least one of the operation activities, the priority corresponding to the version upgrade is level 1, the priority corresponding to the authorization pop-up window is level 2, the priority corresponding to the user agreement is level 3, the priority corresponding to the function guide is level 4, and the priority corresponding to the operation activity is level 5. When the pop-up window type is selected as version upgrade, the priority corresponding to the pop-up window is level 1. The priority level increases from level 1 to level 5, or it can decrease from level 1 to level 5.
[0104] In one embodiment, not only does the pop-up window have pop-up window type information, but each control in the pop-up window also has its corresponding type, for example, a control may be a text type, a control may be an image type, etc. The type of each control in the pop-up window may also be described in the index.josn file.
[0105] In a specific application, the specific example of the index.josn file is as follows:
[0106] index.json
[0107] {
[0108] "id": "HelloWorld", / / Popup window ID
[0109] "type": "Normal", / / Popup window type
[0110] "constraint-size": {
[0111] "width": 375, / / pop-up window width
[0112] "height": 240 / / pop-up window height
[0113] },
[0114] "layers": [ / / Types and hierarchical relationships of controls (View) in the pop-up window
[0115] {
[0116] "id": "text", / / View ID
[0117] "type": "text" / / Control (View) type
[0118] },…]}
[0119] In the above embodiment, the operator is supported to trigger the pop-up window type configuration operation through the pop-up window type configuration interface, so that the configurable pop-up window elements are richer. And there is no need to modify the application code file of the application, nor is there any need to re-download the application code file of the application from the application download platform. Instead, the pop-up window type configuration operation is triggered directly through the pop-up window type configuration interface, which improves the efficiency of generating pop-up window configuration files related to the pop-up window type information and pop-up window layout data. Furthermore, by selecting the pop-up window type, the priority corresponding to the pop-up window type is automatically associated with the pop-up window, avoiding the problem of inefficiency caused by frequent communication with developers due to the selection of priority, and greatly improving the efficiency of generating pop-up window configuration files.
[0120] In one embodiment, the configuration interface includes a style configuration interface, the pop-up window attribute data includes pop-up window style data, and the attribute configuration operation includes a style configuration operation;
[0121] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0122] In response to a style configuration operation triggered by a style configuration interface, pop-up window style data is determined.
[0123] The style refers to at least one of the size, color, and display position of each control in the pop-up window, and the pop-up window style data represents the style of each control in the pop-up window. The style configuration interface can be represented in the form of an input box or a selection box. When the style configuration interface is an input box, the style configuration operation includes inputting the pop-up window style; when the style configuration interface is a selection box, the style configuration operation includes selecting the pop-up window style.
[0124] Specifically, a style configuration interface is displayed on the operation terminal. When the style configuration interface is represented in the form of an input box, the operation personnel inputs the pop-up style information based on the style configuration interface; when the style configuration interface is represented in the form of a selection box, the operation personnel interacts with the style configuration interface, for example, by clicking on the style configuration interface, double-clicking the style configuration interface, long pressing the style configuration interface, etc. The operation terminal responds to the style configuration operation of the style configuration interface and displays the pop-up style selectable information. The operation personnel selects the pop-up style data from the pop-up style selectable information displayed in the operation terminal to configure the pop-up style.
[0125] In response to a selection operation triggered by the style configuration interface, the operation terminal obtains the pop-up window style data input or selected by the operation personnel, and generates a pop-up window configuration file for displaying the pop-up window in the application based on the pop-up window style data.
[0126] Furthermore, based on the pop-up window style data, the pop-up window configuration file generated can also be a dsl file, but the dsl file is different from the dsl file generated based on the pop-up window type information and the pop-up window layout data. The dsl file generated based on the pop-up window type information and the pop-up window layout data is an index.json file, which describes the pop-up window layout data and the pop-up window type information; and in this embodiment, based on the pop-up window style data, the dsl file generated is an index.css file, and the index.css file describes the style of each control in the pop-up window in a general Css specification format.
[0127] In a specific application, taking a text control as an example, the parts related to the style of the text control in the index.css file include:
[0128] #text / / text control {
[0129] width: 100%; / / width
[0130] height: 30px; / / height
[0131] color: #ff0303; / / color
[0132] font-size: 25px; / / text size
[0133] font-weight: 700; / / text thickness
[0134] line-height:30px; / / line height
[0135] }
[0136] #HelloWorld {
[0137] width: 100%; / / width
[0138] height: 240px; / / height
[0139] align-items: center; / / Alignment position
[0140] background-color: green; / / background color
[0141] }
[0142] In this embodiment, operators are supported to trigger style configuration operations through a style configuration interface, so that the elements for configuring pop-up windows are richer, and there is no need to modify the application code files of the application program. Instead, the style configuration operations are directly triggered through the style configuration interface, which can improve the efficiency of generating pop-up configuration files related to pop-up style data.
[0143] In one embodiment, the configuration interface includes a content configuration interface, the pop-up window attribute data includes content binding data, and the attribute configuration operation includes a content configuration operation;
[0144] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0145] In response to a content configuration operation triggered through a content configuration interface, content binding data is determined.
[0146] The content binding data is used to indicate the binding relationship between the content display control and the displayed content in the pop-up window. The displayed content can be a picture or text, and the content display control is a control in the pop-up window that can display a picture or text. The content configuration interface can be represented in the form of an input box or a selection box. The content configuration operation includes the operation of inputting the content corresponding to the content display control or the operation of selecting the content corresponding to the content display control.
[0147] Specifically, a content configuration interface is displayed on the operation terminal. For the content display control, when the content configuration interface is represented in the form of an input box, the operation personnel inputs the content corresponding to the content display control based on the content configuration operation; when the content configuration interface is represented in the form of a selection box, the operation personnel interacts with the content configuration interface, for example, by clicking on the content configuration interface, double-clicking the content configuration interface, long pressing the content configuration interface, etc. The operation terminal responds to the triggering operation of the content configuration interface, displays the content selectable information corresponding to the content display control, and the operation personnel selects the display content from the content selectable information displayed in the operation terminal to configure the display content corresponding to the content display control.
[0148] In response to the content configuration operation triggered by the content configuration interface, the operation terminal obtains the display content input or selected by the operator, obtains the content binding data corresponding to the display content, and generates a pop-up configuration file for displaying the pop-up window in the application based on the content binding data.
[0149] Furthermore, based on the pop-up window configuration file, the generated pop-up window configuration file is also a dsl file, and the dsl file is an index.databinding file. The index.databinding file describes the content binding data of the content display control in the pop-up window in a json format.
[0150] For example, control A is a content display control. For control A, the content configuration interface of control A is triggered. In response to the content configuration operation triggered by the content configuration interface, it is determined that the content binding data is the text "Confirm". Based on the content binding data, an index.databinding file is generated. When the pop-up window is subsequently rendered based on the index.databinding file, the user terminal displays a control with the text "Confirm" in the pop-up window.
[0151] In a specific application, taking the display content of "hello world" as an example, the index.databinding file is as follows:
[0152] index.databinding (data / event binding relationship)
[0153] {
[0154] "data": {
[0155] "text" / / text control: {
[0156] "value": "'Hello World'" / / Display content is Hello World
[0157] }}
[0158] In this embodiment, operators are supported to trigger content configuration operations through the content configuration interface, so that the elements for configuring the pop-up window are richer, and there is no need to modify the application code file of the application, nor to re-download the application code file of the application from the application download platform. Instead, the content configuration operation is triggered directly through the content configuration interface, thereby improving the generation efficiency of the pop-up configuration file related to the content binding data.
[0159] In one embodiment, the configuration interface includes a routing configuration interface, the pop-up window attribute data includes jump routing information, and the attribute configuration operation includes a routing configuration operation;
[0160] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0161] In response to a routing configuration operation triggered by a routing configuration interface, a candidate page identifier of a triggerable control in a pop-up window is displayed; in response to a selection operation of selecting a jump page from the candidate pages, jump routing information is determined, and the jump routing information is used to represent the association relationship between the triggerable control in the pop-up window and the jump page.
[0162] Among them, routing refers to the path from a certain network device to a certain destination; candidate page identification refers to the routing table of jumpable pages, which is a collection of routing information of several pages. The routing configuration interface can be represented in the form of an input box or a selection box. Routing configuration operations include but are not limited to operations based on candidate page identification, inputting routes or selecting routes. Jump routing information is the subsequent jump action after triggering the triggerable control, including but not limited to jumping to all pages in the application, external browsers, applets, closing pop-ups and pages, exiting the application, etc.
[0163] Specifically, a routing configuration interface is displayed on the operation terminal. For the triggerable control in the pop-up window, based on the routing configuration operation of the operator on the routing configuration interface corresponding to the triggerable control, the candidate page identifier of the triggerable control in the pop-up window is displayed, that is, the routing identifier of each candidate page corresponding to the triggerable control in the pop-up window is displayed. The operator obtains the candidate page identifier, selects or inputs the page identifier to be jumped from multiple page identifiers, that is, selects or inputs the page identifier to be jumped from multiple pages, and the operation terminal responds to the operation of selecting or inputting the page identifier of the jump page from several candidate page identifiers corresponding to the candidate page identifier, and determines the jump routing information corresponding to the jump page, that is, determines the association relationship between the triggerable control and the jump page.
[0164] Further, the operation terminal generates a pop-up window configuration file for displaying a pop-up window in the application based on the jump routing information. Further, based on the jump routing information, the pop-up window configuration file generated is also a dsl file, which is used to describe the association relationship between the triggerable control in the pop-up window and the jump page.
[0165] In a specific application, the display process of the candidate page identifier is supported by the dynamic routing system, and the acquisition process includes:
[0166] A. When developing an application, add annotations to the pages that need to support routing. For example, if you need to support routing on the login page, that is, you need to jump to the login page, you can add @MDPRouter name="user / login" to the class code of the login page.
[0167] B. When building an application, scan the annotations of all pages in the application, and generate candidate page identifiers based on the annotations added to the pages that need to support routing. The candidate page identifiers are used to manage the correspondence between routing identifiers and entity pages. For example, name="Login Page" | key="user / login" value="UserLogin.class", where "Login Page" is the routing identifier and "UserLogin.class" is the entity page, that is, the actual page that can be jumped to.
[0168] C. Upload the generated candidate page identifier to the database of the server or the local operation terminal. When the operator triggers the routing configuration operation through the routing configuration interface, the candidate page identifier can be obtained from the database of the server or the local operation terminal and displayed in the operation terminal.
[0169] In a specific application, the routing configuration operation of the present application can also be extended to any service, not limited to page jumps, and can perform any action. For example, when a triggerable control is triggered, a voice monitoring service can be started to meet the business needs of all scenarios.
[0170] In the above embodiment, by responding to the routing configuration operation triggered by the routing configuration interface, it is convenient for the operator to specify the jump page of the triggerable control. For example, the operator can jump to the login page through a triggerable control in the pop-up window, enriching the element range of the pop-up window configuration, and there is no need to modify the routing-related code in the application code file of the application, nor is there any need to re-download the application code file of the application from the application download platform. Instead, the route corresponding to the triggerable control is configured directly through the routing configuration interface, thereby improving the efficiency of generating pop-up window configuration files related to the jump routing information.
[0171] In one embodiment, based on the property configuration operation triggered by the operator through the visual configuration interface, four dsl files can be obtained, including: an index.json file, an index.css file, an index.databinding file, and a routing configuration file.
[0172] 1. The operation terminal obtains pop-up window layout data in response to the pop-up window layout configuration operation triggered by the layout configuration interface. The operation terminal obtains pop-up window type information in response to the pop-up window type configuration operation triggered by the pop-up window type configuration interface. Based on the pop-up window layout data and pop-up window type information, an index.json file is generated. The index.json file is used to describe the hierarchical relationship between the pop-up window type and each control in the pop-up window.
[0173] 2. The operation terminal responds to the style configuration operation triggered by the style configuration interface, obtains the pop-up window style data, and generates the index.css file based on the pop-up window style data. The index.json file is used to represent the style of each control in the pop-up window.
[0174] 3. The operation terminal obtains content binding data in response to the content configuration operation triggered by the content configuration interface, and generates an index.databinding file based on the content binding data. The index.databinding file is used to represent the binding relationship between the content display control and the displayed content in the pop-up window.
[0175] 4. In response to the routing configuration operation triggered by the routing configuration interface, the operating terminal displays the candidate page identifiers of the triggerable controls in the pop-up window; in response to the selection operation of selecting a jump page from the candidate pages, the jump routing information is obtained, and based on the jump routing information, a routing configuration file is generated. The routing configuration file is used to describe the association relationship between the triggerable controls in the pop-up window and the jump page.
[0176] The operation terminal uploads the above four dsl files to the pop-up template management platform, and publishes the above four dsl files according to certain strategies for user terminals to download, parse and render.
[0177] In this embodiment, by uploading four pop-up window configuration files to the pop-up window template management platform, there is no need to modify the application code file of the application, nor to re-download the application code file of the application from the application download platform, but directly trigger the pop-up window attribute configuration operation through the attribute configuration interface, thereby improving the efficiency of pop-up window configuration file generation. Furthermore, it supports comprehensive configuration of the layout, type, content, and routing of the pop-up window, realizes the configuration of multiple elements of the pop-up window, and realizes diversity in the pop-up window configuration process.
[0178] In one embodiment, the configuration interface includes a pop-up condition configuration interface, the pop-up window attribute data includes a pop-up condition, and the attribute configuration operation includes a pop-up condition configuration operation;
[0179] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0180] In response to a pop-up condition configuration operation triggered by a pop-up condition configuration interface, multiple pop-up condition configuration items are displayed; in response to a condition configuration operation triggered on at least one pop-up condition configuration item, a pop-up condition for indicating a pop-up window in an application is determined.
[0181] The pop-up condition refers to the pop-up condition of the pop-up window of the page when the user terminal enters a certain page, and the pop-up condition includes at least one of the customer group corresponding to the pop-up window, the pop-up timing, the pop-up frequency, etc. The pop-up condition configuration item includes: at least one of the customer group configuration item, the pop-up timing configuration item, the pop-up frequency configuration item, etc.
[0182] Specifically, a pop-up condition configuration interface is displayed on the operation terminal. Based on the attribute configuration operation triggered by the operation personnel on the pop-up condition configuration interface, multiple pop-up condition configuration items are displayed, that is, at least one of the customer group configuration item, the pop-up timing configuration item, the pop-up frequency configuration item, etc. The operation personnel configure the pop-up condition corresponding to each pop-up condition configuration item from the multiple pop-up condition configuration items, for example, the customer group configuration item is configured as a female customer group, the pop-up timing configuration item is configured as an entry page, and the pop-up frequency configuration item is configured as once a minute.
[0183] The operation terminal responds to the condition configuration operation triggered by at least one pop-up condition configuration item, obtains the pop-up condition corresponding to each condition configuration item, and the configured pop-up condition is used to indicate the pop-up condition of the pop-up window in the application.
[0184] In a specific application, the pop-up condition configuration process is supported by the "User Behavior Collection System" and the "CDP (Customer Data Platform) System". The configuration process of each pop-up condition specifically includes:
[0185] A. Configuration items for customer groups corresponding to pop-up windows: Through the user behavior collection system, collect data such as user behavior characteristics and behavior habits, and perform pre-processing operations such as cleaning, filtering, and storage on the data. Analyze the stored data from multiple user dimensions to determine the user's label. Then, based on user labels, classify users. For example, distinguish users by risk tolerance: conservative, medium risk, aggressive, etc.; distinguish users by income and financial dimensions: ordinary, middle class, high net worth, etc. Based on the customer group configuration items, operators can select any type of user as the customer group for which pop-up windows can be displayed, that is, the configured pop-up window will only take effect on the selected customer group.
[0186] B. Configuration items for pop-up timing: operators can choose the timing of pop-up windows. Common pop-up window timings include but are not limited to: cold start, warm start, hot start, exiting the application, entering the page, exiting the page, and at least one of the following events on the page.
[0187] That is, when the operation terminal displays the pop-up timing configuration item, the operation terminal displays multiple pop-up timing identifiers in response to the pop-up timing configuration operation triggered by the pop-up timing configuration item. Further, the operation terminal determines the pop-up timing in response to the selection operation of the multiple pop-up timing identifiers.
[0188] Furthermore, the acquisition process of multiple pop-up timing identifiers is supported by the "Policy Center" system, and the principle is as follows:
[0189] First, when developing an application, add an annotation after the page or method event where a pop-up window is required. If you need to support pop-ups when the home page is started and exited, you need to add @MDPDialog name="Homepage" to the home page class code. If you need to support pop-ups after a user successfully logs in, you need to add @MDPDialog name="User login successful" to the successful login method. Then, when building the application, scan all annotations in the application and preset a hook method before each annotation class or method to reserve more pop-up window logic for the future. For example, a class will preset a hook before the creation and stop life cycle methods of the class. Finally, save all annotation names in a collection and upload it to the database on the server or the local operation terminal. In response to the pop-up timing configuration operation triggered by the pop-up timing configuration item, the operation terminal obtains multiple pop-up timing identifiers from the database or the local operation terminal, and displays them on the operation terminal so that the operator can select the pop-up timing of the pop-up window from multiple pop-up timing identifiers.
[0190] C. Pop-up frequency configuration items: Pop-up frequency configuration items can be subdivided into: pop-up number configuration items, pop-up interval configuration items, pop-up validity period configuration items, etc.
[0191] For example, the operator can configure the pop-up window to appear 10 times, the pop-up interval to be 480 minutes, and the pop-up window validity period to be 2024 / 06 / 01 08:00. Subsequently, after the user terminal obtains the configuration information of the above pop-up frequency configuration item, first, the validity period of the pop-up window is judged. If the current system time is not later than 2024 / 06 / 01 08:00, it continues to read the local history of the user terminal to see whether the number of times the pop-up window has been popped up is less than 10. If it is less than 10, it can be determined whether the interval between the time of the most recent pop-up window and the current system time is within 480 minutes. If so, the pop-up windows are inserted into the pop-up window manager in sequence according to the priority of the pop-up windows to support pop-up on the user terminal.
[0192] In the above embodiment, by configuring the customer group of the pop-up window, the pop-up window is displayed only to the selected customer group, which can support refined operations; further, by configuring at least one of the multiple configuration items such as the customer group of the pop-up window, the pop-up timing, the pop-up frequency, etc., the pop-up conditions of the pop-up window can be configured from multiple dimensions, and then the pop-up conditions of the pop-up window can be accurately and comprehensively determined. There is no need to modify the code related to the pop-up conditions in the application code file of the application program, and there is no need to re-release the application code file. Instead, the configuration is performed directly through the pop-up condition configuration interface, which improves the efficiency of generating the pop-up configuration file.
[0193] In one embodiment, the configuration interface includes a validation condition configuration interface, the pop-up window attribute data includes a configuration file validation condition, and the attribute configuration operation includes a validation condition configuration operation;
[0194] In response to the attribute configuration operation triggered by the configuration interface, the pop-up window attribute data is obtained, including:
[0195] In response to a validation condition configuration operation triggered through a validation condition configuration interface, a configuration file validation condition is determined.
[0196] The configuration file effectiveness condition is used to indicate the configuration file effectiveness condition of the pop-up window configuration effectiveness time and the pop-up window configuration effectiveness range.
[0197] Specifically, an effective condition configuration interface is displayed on the operation terminal. The operation personnel trigger the effective condition configuration interface to perform the effective condition configuration operation. The operation terminal responds to the effective condition configuration operation triggered by the effective condition configuration interface, configures the pop-up configuration effective time and the pop-up configuration effective range, and obtains the configuration file effective condition based on the configured pop-up configuration effective time and the pop-up configuration effective range.
[0198] In an actual application, the pop-up configuration effective time can generally be configured to be immediate or scheduled, such as 24*60 minutes, that is, the pop-up configuration file takes effect after one day. The pop-up configuration effective range can generally be configured to be uniform or accelerated. For example, when the pop-up configuration effective range is configured to be accelerated, the number of user terminals that take effect at the beginning is small, and the rate of increase in the number of subsequent user terminals that take effect gradually increases.
[0199] In this embodiment, there is no need to modify the code related to the effectiveness conditions of the pop-up window in the application code file of the application, nor is there any need to re-release the application code file. Instead, the effectiveness conditions of the pop-up window are efficiently configured through the effectiveness condition configuration interface, thereby improving the efficiency of generating the pop-up window configuration file.
[0200] In one embodiment, the present application supports modifying all properties of a pop-up window in the pop-up window configuration interface, without modifying the application code file of the application that displays the pop-up window, without re-issuing the application code file of the application, and without downloading the re-issued application code file again on the application download platform, thereby greatly improving the efficiency of business operations. Among them, including:
[0201] 1) Support background modification of the layout and style in the pop-up template, such as the background color of the pop-up, button animation effects, the hierarchical relationship of each control in the pop-up, etc., and it takes effect in real time.
[0202] 2) Support background modification of pop-up window logic jump route, such as whether clicking a button opens the mini program or exits the application, etc., and it takes effect in real time.
[0203] 3) Support background modification of pop-up window conditions, such as whether the pop-up box pops up on the home page or the login page, as well as target customer groups, validity period, number of times, intervals, etc., and it takes effect in real time.
[0204] 4) Support background modification of the effective conditions of the pop-up box, such as effective time, effective scope, etc., and it takes effect in real time.
[0205] To achieve the above technical effects, this application uses a pop-up window configuration interface to generate a pop-up window configuration file, such as Figure 4 As shown, it is a pop-up window configuration interface diagram in a specific application. In the pop-up window configuration interface, on the left are pop-up window templates and the identifiers of each control. As shown in the figure, local template 1 and local template 2 are displayed. The controls in local template 1 include control 1, control 2, control 3, etc. The middle is the pop-up window preview interface during pop-up window configuration, and on the right are multiple pop-up window attribute configuration interfaces, including pop-up window identifier configuration interface, pop-up window type configuration interface, pop-up window style configuration interface, pop-up window content configuration interface, pop-up window routing configuration interface, pop-up window pop-up condition configuration interface, and pop-up window effective condition configuration interface. Through multiple pop-up window attribute configuration interfaces, the configuration of each attribute of the pop-up window can be realized on the pop-up window configuration interface, and the configured data can be previewed on the pop-up window preview interface.
[0206] In an exemplary embodiment, Figure 5 As shown, a pop-up window display method is provided, and the method is applied to the user terminal 106 in FIG1 as an example for description. Among them:
[0207] S400: Receive a pop-up window configuration file for an application.
[0208] The pop-up window configuration file is generated by configuring the pop-up window attributes based on the configuration interface provided by the pop-up window configuration interface.
[0209] Specifically, the pop-up configuration file includes four dsl files, namely index.json file, index.css file, index.databinding file, and routing configuration file. The four dsl files are all generated based on the configuration interface provided by the pop-up configuration interface to configure the pop-up properties. Among them, the index.json file is used to describe the pop-up layout data and pop-up type information of the pop-up window, the index.css file is used to represent the style of each control in the pop-up window, the index.databinding file is used to represent the binding relationship between the content display control and the displayed content in the pop-up window, and the routing configuration file is used to represent the association relationship between the triggerable control in the pop-up window and the jump page.
[0210] When a user opens an application in a user terminal, the user terminal can send a pop-up display request to the pop-up template management platform. The pop-up template management platform pushes the pop-up configuration file corresponding to the pop-up window to the user terminal. The user terminal filters the pop-up windows that meet the conditions based on the user's customer group ID, the scene ID of the user terminal at this time, and the user's terminal ID, that is, the pop-up windows whose customer group conditions in the pop-up configuration file corresponding to the pop-up window match the user's customer group ID, the scene ID matches the pop-up timing, and the terminal ID matches the effective range of the pop-up configuration, and the filtered pop-up windows are placed in the pop-up manager of the newly created queue structure according to the corresponding priority.
[0211] Before placing the qualified pop-up window configuration file into the pop-up window manager of the newly created queue structure according to the corresponding priority, it is also possible to verify whether the pop-up window is effective according to the pop-up window configuration effective time corresponding to the pop-up window configuration file. If the verification is successful, it means that the pop-up window is effective. In addition, it is also possible to verify whether the user terminal can pop up the pop-up window according to at least one of the pop-up number, interval, validity period, etc. corresponding to the pop-up window configuration file. If the verification is successful, it means that the user terminal can pop up the pop-up window.
[0212] The user terminal obtains the pop-up windows from the pop-up window manager in sequence, and obtains the pop-up window configuration file corresponding to the pop-up window, parses the dsl file in the pop-up window configuration file, and converts it into entity information. In order to reduce the time the user waits to download the pop-up window configuration file, all local pop-up window configuration files will be polled locally on the user terminal first, and it will be determined whether the pop-up window corresponding to the pop-up window configuration file exists locally on the user terminal. If it does, there is no need to download the pop-up window configuration file corresponding to the pop-up window; if it does not exist, it is necessary to download the pop-up window configuration file corresponding to the pop-up window, and save the downloaded pop-up window configuration file to the local user terminal. Furthermore, since the user terminal will preset some templates when packaging, and will also preload the latest templates when starting or switching to the foreground, general users will not have to wait for the template to be downloaded.
[0213] In one embodiment, the user terminal can send a pop-up window display request to the pop-up window template management platform by requesting an interface. After the request interface is successful, it can also be checked whether the data in the pop-up window configuration file has been tampered with.
[0214] S500: parsing pop-up window attribute data in the pop-up window configuration file.
[0215] Specifically, multiple pop-up window configuration files are parsed to obtain pop-up window attribute data in the pop-up window configuration files. When the pop-up window configuration file is an index.json file, the pop-up window attribute data includes pop-up window layout data and pop-up window type information; when the pop-up window configuration file is an index.css file, the pop-up window attribute data includes pop-up window style data; when the pop-up window configuration file is an index.databinding file, the pop-up window attribute data includes content binding data corresponding to the content display control; when the pop-up window configuration file is a routing configuration file, the pop-up window attribute data includes jump routing information corresponding to the triggerable control. Further, the pop-up window attribute data is parsed to obtain the style, display content, etc. contained in the pop-up window attribute data.
[0216] S600: Display a pop-up window on a page of the application based on the pop-up window attribute data.
[0217] Specifically, the user terminal renders the data therein based on the parsed pop-up window attribute data, including pop-up window layout data, pop-up window type information, pop-up window style data, content binding data corresponding to the content display control, and jump routing information corresponding to the triggerable control, so as to display the pop-up window on the application page.
[0218] In the above pop-up display method, there is no need to re-release the application code file of the application, nor is there any need to download the re-released application code file again on the application download platform. Instead, the pop-up configuration file for the application is directly received, and the pop-up attribute data in the pop-up configuration file is parsed. Based on the pop-up attribute data, the efficiency of displaying the pop-up on the application page is improved.
[0219] In a specific application example, Figure 6 As shown, in order to reduce the time for the configuration to take effect, the present application also adopts a combination of push and pull to realize the display of pop-up windows.
[0220] Among them, in the operation terminal, the operation personnel configure / modify the pop-up window attributes based on the configuration interface provided by the pop-up window configuration interface, generate a pop-up window configuration file, and upload the pop-up window configuration file to the pop-up window template management platform.
[0221] On the user terminal, the user starts the application and initializes the polling thread. The user can also configure the polling time interval and fatigue value. Based on the polling time interval, all local pop-up configuration files are continuously polled on the user terminal. When a pop-up window is needed, it is determined whether the polling fatigue value is met. If not, the pop-up template management platform's general configuration interface is requested through the short-chain channel to send a pop-up display request to the pop-up template management platform. The pop-up template management platform pushes the pop-up configuration file to the user terminal through the long-chain channel based on the internal push center. The user terminal screens the pop-up windows that meet the conditions based on the user's customer group ID, the user terminal's current scene ID, and the user's terminal ID. Then, the user terminal compares the version number of the pop-up configuration file corresponding to the pop-up window to determine whether the pop-up window corresponding to the pop-up configuration file exists locally in the user terminal. If so, there is no need to download the pop-up configuration file corresponding to the pop-up window; if not, the sub-configuration interface of the pop-up template management platform is requested through the short link channel to download the pop-up configuration file corresponding to the required pop-up window, and the downloaded pop-up configuration file is updated to the local user terminal to update the previous cache information of the local Tonghu terminal. In addition, the user terminal can also push update notifications to the user.
[0222] In one embodiment, when the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data, and jump routing information, displaying the pop-up window on the page of the application based on the pop-up window attribute data includes:
[0223] Determine the hierarchical relationship between controls in the pop-up window from the pop-up window layout data; determine the control style of each control in the pop-up window from the pop-up window style data; determine the binding relationship between the content display control and the displayed content in the pop-up window from the content binding data; determine the association relationship between the triggerable control in the pop-up window and the jump page from the jump routing information; render and display the pop-up window on the page of the application according to the hierarchical relationship, control style, the binding relationship between the content display control and the displayed content, and the association relationship between the triggerable control and the jump page.
[0224] Specifically, when the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data, and jump routing information, the hierarchical relationship between the controls in the pop-up window can be determined from the pop-up window layout data; the control style of each control in the pop-up window can be determined from the pop-up window style data; the binding relationship between the content display control and the displayed content in the pop-up window can be determined from the content binding data; and the association relationship between the triggerable control in the pop-up window and the jump page can be determined from the jump routing information. The pop-up window is rendered and displayed on the page of the application according to the hierarchical relationship, control style, binding relationship between the content display control and the displayed content, and association relationship between the triggerable control and the jump page.
[0225] For example, for pop-up window layout data, the position of the pop-up window and the hierarchical relationship between the controls in the pop-up window can be determined through the index.json file corresponding to the pop-up window layout data, and because the user terminal cannot directly parse the FlexBox layout information, this application can refer to the open source framework Yoga to process the Flexbox layout. For example, "constraint-size": {"width": 375, "height": 240} represents the total width and height of the pop-up window.
[0226] When the pop-up window style data is background-color: green, the background color of the pop-up window is green. At this time, the background color of the pop-up window in the user terminal is green. In actual applications, the code in the configuration file related to the pop-up window style data in the Android operating system will be converted to setBackGround(R.color.green).
[0227] When the content binding data is a binding relationship between text control B and the display content "hello world", the display content of text control B in the pop-up window displayed on the user terminal is "hello world". In actual applications, the code in the configuration file related to the content binding data in the Android operating system will be converted to setTextView("HelloWorld").
[0228] In one embodiment, when the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data and part of the jump routing information, it is only necessary to display the pop-up window on the page of the application according to the data in the pop-up window attribute data. For example, when the user terminal already has pop-up window layout data, pop-up window style data, and content binding data, the pop-up window attribute data that needs to be configured includes: jump routing information. Further, from the jump routing information, the association relationship between the triggerable control in the pop-up window and the jump page is determined; according to the association relationship between the triggerable control and the jump page, as well as the existing pop-up window layout data, pop-up window style data, and content binding data, the pop-up window is rendered and displayed on the page of the application.
[0229] In this embodiment, when the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data and jump routing information, the elements in the pop-up window are determined from multiple pop-up window attribute data dimensions, and the pop-up window is comprehensively rendered on the page of the application according to the hierarchical relationship, control style, binding relationship between content display controls and displayed content, and association relationship between triggerable controls and jump pages, thereby improving the efficiency of displaying pop-up windows.
[0230] In one embodiment, the pop-up window attribute data includes pop-up window type information;
[0231] Based on the pop-up window attribute data, a pop-up window is displayed on the application page, including:
[0232] Determine a pop-up priority of the pop-up window according to the pop-up window type information; determine a pop-up order of the pop-up window according to the pop-up priority of the pop-up window; and display the pop-up window on the page of the application according to the pop-up order.
[0233] Specifically, each pop-up type information corresponds to a pop-up priority. For example, the pop-up types include but are not limited to: version upgrade, authorization pop-up, user agreement, function guidance, and at least one of operation activities. The priority corresponding to the version upgrade is level 1, the priority corresponding to the authorization pop-up is level 2, the priority corresponding to the user agreement is level 3, the priority corresponding to the function guidance is level 4, and the priority corresponding to the operation activity is level 5.
[0234] In the case where there are multiple pop-up windows that need to be popped up, the pop-up priority of the pop-up windows is determined based on the pop-up window type information of the pop-up windows, and the pop-up order of the pop-up windows is determined according to the pop-up priority of the pop-up windows, so that the pop-up windows are displayed one by one on the page of the application. For example, there are five pop-up windows that need to be popped up on the page of the application, namely, version upgrade, authorization pop-up, user agreement, function guide, and operation activities. On the page of the application, the pop-up order of the five pop-up windows is: version upgrade type pop-up, authorization pop-up type pop-up, user agreement type pop-up, function guide type pop-up, and operation activity type pop-up.
[0235] In this embodiment, by determining the pop-up window priority corresponding to the pop-up window type information based on the pop-up window type information, the pop-up windows can be popped up in order of priority, thereby solving the problem of disorderly pop-up windows in the prior art and improving the user experience.
[0236] In a specific application example, Figure 7 As shown, the pop-up window display method supports the participation of multiple systems, such as dynamic template system, dynamic routing system, user label system, intelligent strategy system, real-time configuration center, etc. The specific steps and their supporting systems are as follows:
[0237] 1. Pop-up window configuration interface on the operation terminal:
[0238] S1. Configure pop-up window type information. This step is supported by the dynamic template system.
[0239] S2. Configure the pop-up window layout data, including the hierarchical relationship between the controls in the pop-up window. This step is supported by the dynamic template system.
[0240] S3. Configure the style data of each control in the pop-up window and the content binding data of the content display control. This step is supported by the dynamic template system.
[0241] S4. Configure the jump routing data, that is, the association between the triggerable controls in the pop-up window and the jump page. This step is supported by the dynamic routing system.
[0242] S5. Configure the customer group corresponding to the pop-up window. This step is supported by the user tag system.
[0243] S6. Configure pop-up conditions other than the pop-up customer group, including pop-up timing, pop-up frequency, etc. The pop-up frequency includes the number of pop-ups, pop-up interval, and pop-up validity period. This step is supported by the intelligent strategy system.
[0244] S7. Configure the effective conditions, including the effective time and effective range of the pop-up window configuration. This step is supported by the intelligent policy system.
[0245] S8. Upload the pop-up window configuration file generated based on the above configuration data to the pop-up window template management platform. This step is supported by the real-time configuration center.
[0246] 2. Pop-up template management platform
[0247] S9. After the pop-up configuration file takes effect, this step is supported by the real-time configuration center.
[0248] 2. For user terminals:
[0249] S10. When the application is started, a pop-up window display request is sent to the pop-up window template management platform. The pop-up window template management platform sends the pop-up window configuration file to the user terminal in a push-pull combination manner. This step is supported by the real-time configuration center.
[0250] S11. Obtain a pop-up configuration file. This step is supported by the intelligent policy system.
[0251] S12, filter the pop-up window configuration files corresponding to the pop-up windows that meet the conditions, for example, the pop-up window configuration files corresponding to the pop-up windows that meet the pop-up conditions and the effectiveness conditions. In actual applications, the user terminal can actively filter or passively filter. This step is supported by the intelligent policy system.
[0252] S13. A new pop-up window manager is created, and pop-up window configuration files corresponding to the pop-up windows that meet the conditions are sequentially placed into the pop-up window manager according to the order of the pop-up window priorities.
[0253] S14. Parse the jump route file in the pop-up window configuration file, and bind the triggerable control to the corresponding jump route. This step is supported by the dynamic routing system.
[0254] S15, parsing the pop-up window style data and content binding data in the pop-up window configuration file, and drawing and rendering the pop-up window style and the display content of the content display control based on the pop-up window style data and the content binding data. This step is supported by the dynamic template system.
[0255] S16. Parse the pop-up window layout data to obtain the final pop-up window. This step is supported by the dynamic template system.
[0256] S17, upload tracking points to obtain the operation data of the pop-up window in the future, this step is supported by the dynamic template system. Tracking points refer to the relevant technology and implementation process for capturing, processing and sending specific user behaviors or events.
[0257] In a specific application example, take the example of an operator creating a pop-up window template and configuring the pop-up window attribute data. The data interaction during the pop-up window display process is as follows: Figure 8 As shown, the process is supported by a dynamic template system, including:
[0258] 1. Operation Terminal
[0259] S111. The operation terminal obtains pop-up window layout data in response to the pop-up window layout configuration operation triggered by the layout configuration interface in the pop-up window template. The operation terminal obtains pop-up window type information in response to the pop-up window type configuration operation triggered by the pop-up window type configuration interface. Based on the pop-up window layout data and the pop-up window type information, the generated dsl file is an index.json file. The index.json file is used to describe the pop-up window type, pop-up window size, the hierarchical relationship between the controls in the pop-up window, and the type of the controls in the pop-up window.
[0260] S112: The operation terminal obtains pop-up window style data in response to the style configuration operation triggered by the style configuration interface. Based on the pop-up window style data, the generated dsl file is the index.css file. The index.json file is used to represent the style of each control in the pop-up window.
[0261] S113: The operation terminal obtains content binding data in response to the content configuration operation triggered by the content configuration interface, and generates a dsl file based on the content binding data, which is an index.databinding file. The index.databinding file is used to indicate the binding relationship between the content display control and the displayed content in the pop-up window.
[0262] S114. The operating terminal responds to the routing configuration operation triggered by the routing configuration interface, and displays the candidate page identifiers of the triggerable controls in the pop-up window; in response to the selection operation of selecting a jump page from the candidate pages, the jump routing information is obtained. Based on the jump routing information, the generated dsl file is the routing configuration file, and the routing configuration file is used to describe the association relationship between the triggerable controls in the pop-up window and the jump page.
[0263] S115 . The operation terminal determines a pop-up condition for indicating a pop-up window in the application program in response to the conditional configuration operation on the pop-up timing configuration item, the pop-up frequency configuration item, and the pop-up customer group configuration item.
[0264] S116: In response to the effectiveness condition configuration operation triggered by the effectiveness condition configuration interface, determine the configuration file effectiveness condition of the pop-up window configuration effectiveness time and the pop-up window configuration effectiveness range.
[0265] S117. Upload the above four dsl files to the pop-up template management platform.
[0266] 2. Pop-up template management platform
[0267] S121. The pop-up template management platform provides a pop-up configuration file download service.
[0268] 3. User Terminal
[0269] S131. When the application is started, a pop-up window display request based on the user terminal is sent to the pop-up window template management platform.
[0270] S132: Filter pop-up windows that meet the conditions, and download pop-up window configuration files corresponding to the pop-up windows that meet the conditions.
[0271] S133, verifying the pop-up window configuration file.
[0272] S134. Convert the pop-up window configuration file from the dsl file to the enitity file, and start building the view tree of the pop-up window.
[0273] S135. Based on the enitity file converted from the index.json file, configure the type and layout of the pop-up window.
[0274] S136. Based on the enitity file converted from the index.css file, configure the style of each control in the pop-up window.
[0275] S137. Based on the enitity file converted from the index.databinding file, configure the binding relationship between the content display control and the displayed content in the pop-up window.
[0276] S138. Based on the enitity file converted from the routing configuration file, configure the jump route corresponding to the triggerable control in the pop-up window.
[0277] S139. Based on the type and layout of the pop-up window, the style of each control in the pop-up window, the binding relationship between the content display control and the displayed content in the pop-up window, and the corresponding jump route of the triggerable control in the pop-up window, the pop-up window is rendered to obtain the pop-up window finally displayed on the interface of the application.
[0278] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0279] Based on the same inventive concept, the embodiment of the present application also provides a device for generating a pop-up window configuration file for implementing the method for generating a pop-up window configuration file involved above, and a pop-up window display device for implementing the pop-up window display method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for generating one or more pop-up window configuration files provided below can refer to the limitations of the method for generating a pop-up window configuration file above, and the specific limitations in the embodiments of the device for generating one or more pop-up window display devices provided can refer to the limitations of the pop-up window display method above, which will not be repeated here.
[0280] In an exemplary embodiment, Fig. 9 As shown, a device for generating a pop-up window configuration file is provided, comprising: a pop-up window configuration operation processing module 100, an attribute configuration operation processing module 200 and a pop-up window configuration file generating module 300, wherein:
[0281] A pop-up window configuration operation processing module 100 is used to display a pop-up window configuration interface in response to a pop-up window configuration operation on an application program, wherein the pop-up window configuration interface includes a configuration interface;
[0282] The attribute configuration operation processing module 200 is used to obtain pop-up window attribute data in response to an attribute configuration operation triggered by the configuration interface;
[0283] The pop-up window configuration file generating module 300 is used to generate a pop-up window configuration file for displaying a pop-up window in an application based on the pop-up window attribute data.
[0284] In one embodiment, the configuration interface includes a layout configuration interface, the pop-up window attribute data includes pop-up window layout data, and the attribute configuration operation includes a pop-up window layout configuration operation; the attribute configuration operation processing module 200 is also used to determine the pop-up window layout data in response to the pop-up window layout configuration operation triggered by the layout configuration interface, and the pop-up window layout data is used to describe the hierarchical relationship between the controls in the pop-up window.
[0285] In one embodiment, the configuration interface also includes a pop-up type configuration interface, the pop-up attribute data also includes pop-up type information, and the attribute configuration operation includes a pop-up type configuration operation; the attribute configuration operation processing module 200 is also used to obtain pop-up type information in response to a pop-up type configuration operation triggered by the pop-up type configuration interface; the pop-up configuration file generation module 300 is also used to generate a pop-up configuration file for displaying a pop-up window in an application based on the pop-up layout data and the pop-up type information.
[0286] In one embodiment, the configuration interface includes a style configuration interface, the pop-up window attribute data includes pop-up window style data, and the attribute configuration operation includes a style configuration operation; the attribute configuration operation processing module 200 is also used to determine the pop-up window style data in response to the style configuration operation triggered by the style configuration interface, and the pop-up window style data represents the style of each control in the pop-up window.
[0287] In one embodiment, the configuration interface includes a content configuration interface, the pop-up window attribute data includes content binding data, and the attribute configuration operation includes a content configuration operation; the attribute configuration operation processing module 200 is also used to determine the content binding data in response to the content configuration operation triggered by the content configuration interface, and the content binding data is used to represent the binding relationship between the content display control and the displayed content in the pop-up window.
[0288] In one embodiment, the configuration interface includes a routing configuration interface, the pop-up window attribute data includes jump routing information, and the attribute configuration operation includes a routing configuration operation; the attribute configuration operation processing module 200 is also used to display the candidate page identifier of the triggerable control in the pop-up window in response to the routing configuration operation triggered by the routing configuration interface; in response to the selection operation of selecting a jump page from the candidate pages, determine the jump routing information, and the jump routing information is used to represent the association relationship between the triggerable control in the pop-up window and the jump page.
[0289] In one embodiment, the configuration interface includes a pop-up condition configuration interface, the pop-up window attribute data includes a pop-up condition, and the attribute configuration operation includes a pop-up condition configuration operation; the attribute configuration operation processing module 200 is also used to display multiple pop-up condition configuration items in response to a pop-up condition configuration operation triggered by the pop-up condition configuration interface; in response to a condition configuration operation triggered on at least one pop-up condition configuration item, determine a pop-up condition for indicating a pop-up window in an application.
[0290] In one embodiment, the configuration interface includes an effective condition configuration interface, the pop-up window attribute data includes the configuration file effective condition, and the attribute configuration operation includes the effective condition configuration operation; the attribute configuration operation processing module 200 is also used to determine the configuration file effective condition in response to the effective condition configuration operation triggered by the effective condition configuration interface, and the configuration file effective condition is used to represent the configuration file effective time and the configuration file effective range of the pop-up window configuration.
[0291] In an exemplary embodiment, Fig.10 As shown, a pop-up window display device is provided, including: a pop-up window configuration file receiving module 400, a pop-up window configuration file parsing module 500 and a pop-up window display module 600, wherein:
[0292] The pop-up window configuration file receiving module 400 is used to receive a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface;
[0293] A pop-up window configuration file parsing module 500 is used to parse the pop-up window attribute data in the pop-up window configuration file;
[0294] The pop-up window display module 600 is used to display a pop-up window on the page of the application based on the pop-up window attribute data.
[0295] In one embodiment, when the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data and jump routing information, the pop-up window display module 600 is also used to determine the hierarchical relationship between the controls in the pop-up window from the pop-up window layout data; determine the control style of each control in the pop-up window from the pop-up window style data; determine the binding relationship between the content display control and the displayed content in the pop-up window from the content binding data; determine the association relationship between the triggerable control in the pop-up window and the jump page from the jump routing information; render and display the pop-up window on the page of the application according to the hierarchical relationship, control style, the binding relationship between the content display control and the displayed content, and the association relationship between the triggerable control and the jump page.
[0296] In one embodiment, the pop-up window attribute data includes pop-up window type information, and the pop-up window display module 600 is also used to determine the pop-up priority of the pop-up window according to the pop-up window type information; determine the pop-up order of the pop-up window according to the pop-up priority of the pop-up window; and display the pop-up window on the page of the application according to the pop-up order.
[0297] Each module in the pop-up window configuration file generation device and the pop-up window display device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0298] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for generating a pop-up configuration file and a method for displaying a pop-up window are implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0299] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0300] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0301] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0302] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0303] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0304] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0305] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating a pop-up configuration file, characterized in that: include: In response to a pop-up window configuration operation on an application, a pop-up window configuration interface is displayed, wherein the pop-up window configuration interface includes a configuration interface; In response to the attribute configuration operation triggered by the configuration interface, obtaining pop-up window attribute data; Based on the pop-up window attribute data, a pop-up window configuration file for displaying a pop-up window in the application is generated.
2. The method according to claim 1, characterized in that The configuration interface includes a layout configuration interface, the pop-up window attribute data includes pop-up window layout data, and the attribute configuration operation includes a pop-up window layout configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a pop-up window layout configuration operation triggered by the layout configuration interface, pop-up window layout data is determined, where the pop-up window layout data is used to describe a hierarchical relationship between controls in the pop-up window.
3. The method according to claim 2, characterized in that The configuration interface further includes a pop-up window type configuration interface, the pop-up window attribute data further includes pop-up window type information, and the attribute configuration operation includes a pop-up window type configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a pop-up window type configuration operation triggered by the pop-up window type configuration interface, obtaining pop-up window type information; The generating, based on the pop-up window attribute data, a pop-up window configuration file for displaying the pop-up window in the application program comprises: Based on the pop-up window layout data and the pop-up window type information, a pop-up window configuration file for displaying a pop-up window in the application is generated.
4. The method according to claim 1, characterized in that: The configuration interface includes a style configuration interface, the pop-up window attribute data includes pop-up window style data, and the attribute configuration operation includes a style configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a style configuration operation triggered by the style configuration interface, pop-up window style data is determined, where the pop-up window style data represents the style of each control in the pop-up window.
5. The method according to claim 1, characterized in that The configuration interface includes a content configuration interface, the pop-up window attribute data includes content binding data, and the attribute configuration operation includes a content configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a content configuration operation triggered by the content configuration interface, content binding data is determined, where the content binding data is used to represent a binding relationship between a content display control and displayed content in the pop-up window.
6. The method according to claim 1, characterized in that The configuration interface includes a routing configuration interface, the pop-up window attribute data includes jump routing information, and the attribute configuration operation includes a routing configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a routing configuration operation triggered by the routing configuration interface, displaying a candidate page identifier of a triggerable control in the pop-up window; In response to a selection operation of selecting a jump page from the candidate pages, jump routing information is determined, where the jump routing information is used to indicate an association relationship between a triggerable control in the pop-up window and the jump page.
7. The method according to claim 1, characterized in that The configuration interface includes a pop-up condition configuration interface, the pop-up window attribute data includes a pop-up condition, and the attribute configuration operation includes a pop-up condition configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to a pop-up condition configuration operation triggered by the pop-up condition configuration interface, displaying a plurality of pop-up condition configuration items; In response to a condition configuration operation triggered on at least one of the pop-up condition configuration items, a pop-up condition for indicating the pop-up window in the application is determined.
8. The method according to claim 1, characterized in that The configuration interface includes a validation condition configuration interface, the pop-up window attribute data includes a configuration file validation condition, and the attribute configuration operation includes a validation condition configuration operation; The step of obtaining pop-up window attribute data in response to the attribute configuration operation triggered by the configuration interface includes: In response to an effective condition configuration operation triggered by the effective condition configuration interface, a configuration file effective condition is determined, wherein the configuration file effective condition is used to represent the configuration file effective time and the configuration file effective range of the pop-up window configuration.
9. A pop-up window display method, characterized in that: The method comprises: Receiving a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface; Parsing the pop-up window attribute data in the pop-up window configuration file; Based on the pop-up window attribute data, a pop-up window is displayed on the page of the application.
10. The method according to claim 9, characterized in that In a case where the pop-up window attribute data includes pop-up window layout data, pop-up window style data, content binding data, and jump routing information, displaying the pop-up window on the page of the application based on the pop-up window attribute data includes: Determining the hierarchical relationship between the controls in the pop-up window from the pop-up window layout data; Determining the control style of each control in the pop-up window from the pop-up window style data; Determining a binding relationship between a content display control and displayed content in the pop-up window from the content binding data; Determine, from the jump routing information, an association relationship between a triggerable control in the pop-up window and a jump page; The pop-up window is rendered and displayed on the page of the application according to the hierarchical relationship, the control style, the binding relationship between the content display control and the displayed content, and the association relationship between the triggerable control and the jump page.
11. The method according to claim 10, characterized in that The pop-up window attribute data includes pop-up window type information; The step of displaying the pop-up window on the page of the application based on the pop-up window attribute data includes: Determining a pop-up priority of the pop-up window according to the pop-up window type information; Determining a pop-up order of the pop-up windows according to the pop-up priorities of the pop-up windows; The pop-up windows are displayed on the page of the application program according to the pop-up order.
12. A device for generating a pop-up configuration file, characterized in that: The device comprises: A pop-up window configuration operation processing module, used to display a pop-up window configuration interface in response to a pop-up window configuration operation on an application, wherein the pop-up window configuration interface includes a configuration interface; An attribute configuration operation processing module, used to obtain pop-up window attribute data in response to an attribute configuration operation triggered through the configuration interface; A pop-up window configuration file generation module is used to generate a pop-up window configuration file for displaying a pop-up window in the application based on the pop-up window attribute data.
13. A pop-up window display device, characterized in that: The device comprises: A pop-up window configuration file receiving module, used to receive a pop-up window configuration file for an application, wherein the pop-up window configuration file is generated by configuring pop-up window attributes based on a configuration interface provided by a pop-up window configuration interface; A pop-up window configuration file parsing module, used to parse the pop-up window attribute data in the pop-up window configuration file; A pop-up window display module is used to display a pop-up window on the page of the application based on the pop-up window attribute data.
14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
