Interactive control display method, device, electronic device and storage medium
By passing the control display logo in the application using the jump protocol, the problem of inconsistent display of interactive controls in different function pages is solved, and the unified display of interactive controls and the reduction of application maintenance costs are achieved.
Patent Information
- Application Number
- CN202210326756.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In the application, the interactive controls that provide the same function in different function pages are not uniform in display effects, which affects the visual display effect of the page and increases the maintenance cost of the application.
By responding to the user's selection operation of the notification message, the jump protocol corresponding to the notification message is obtained. The jump protocol includes at least a control display identifier. If the control display identifier represents the display interactive control, the interactive control will be displayed while displaying the application page.
It realizes the unified display of interactive controls in different application pages, ensures the consistency of control display effects and reduces the maintenance cost of the application.
Smart Images

Figure CN114721618B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of interface interaction technology, and in particular to a method for displaying an interactive control, a display device for an interactive control, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of mobile Internet, smart terminals are becoming the main platform for human-computer interaction. In real life, smart terminals have become a must-have for everyone and a window for people to interact with the world every day. They play an important role for everyone. For smart terminals, different applications can be run. When a user uses an application, when there is a new message, the application can push the corresponding message to the user through a global notification. For example, when the application is running in the background, the corresponding notification message can be pushed to the user through a lock screen interface reminder, a notification center reminder, and a banner reminder. The user can enter the relevant page of the application by selecting the notification message to browse the relevant content. In this process, for an application, it can provide different functions, and different functions correspond to different function pages. In different function pages, there are interactive controls that can provide the same function. However, different function pages are often developed by different development teams, resulting in the interactive controls that provide the same function in different function pages needing to be processed by different development teams, which not only easily leads to the inconsistency of the interactive controls display, affecting the visual display effect of the page, but also requires developers to perform repeated work, greatly increasing the maintenance cost of the application. Summary of the invention
[0003] An embodiment of the present invention provides a method, device, electronic device and computer-readable storage medium for displaying interactive controls to solve or partially solve the problem of inconsistent control display effects and high application maintenance costs when interactive controls with the same functions are displayed on different function pages in an application.
[0004] An embodiment of the present invention discloses a method for displaying an interactive control, comprising:
[0005] In response to a selection operation on a notification message, acquiring a jump protocol corresponding to the notification message, the jump protocol at least including a control display identifier;
[0006] An application page corresponding to the jump protocol is displayed, and if the control display identifier indicates displaying an interactive control, the interactive control is displayed while displaying the application page.
[0007] Optionally, it also includes:
[0008] In response to a selection operation on the interactive control, an interactive operation corresponding to the interactive control is performed.
[0009] Optionally, the interactive control includes an evaluation control, and in response to a selection operation on the interactive control, performing an interactive operation corresponding to the interactive control includes:
[0010] In response to a selection operation on the evaluation control, displaying an evaluation page corresponding to the evaluation control;
[0011] In response to an input operation on the evaluation page, evaluation information on the application page is obtained.
[0012] Optionally, displaying an interactive control while displaying the application page includes:
[0013] Get the control display parameters;
[0014] While displaying the application page, an interactive control corresponding to the control display parameter is displayed.
[0015] Optionally, a graphical user interface is provided through an electronic terminal, the control display parameter includes at least one of a display position, a display size, and a display type, and while displaying the application page, displaying an interactive control corresponding to the control display parameter includes:
[0016] While the application page is displayed in the graphical user interface, an interactive control is displayed at a target position in the graphical user interface corresponding to the display position according to the display size and the display type.
[0017] Optionally, providing a graphical user interface through an electronic terminal, in response to a selection operation on a notification message, determining an application page corresponding to the notification message, and acquiring a jump protocol corresponding to the application page and a control display identifier for the application page, including:
[0018] Displaying a notification center in the graphical user interface, the notification center including at least one notification message;
[0019] In response to a selection operation on the notification message, obtaining a target notification message corresponding to the selection operation, and determining an application page corresponding to the notification message;
[0020] A jump protocol corresponding to the application page and a control display identifier for the application page are obtained.
[0021] The embodiment of the present invention further discloses a display device for an interactive control, comprising:
[0022] A parameter input module, configured to obtain a jump protocol corresponding to the notification message in response to a selection operation on the notification message, wherein the jump protocol at least includes a control display identifier;
[0023] The control display module is used to display the application page corresponding to the jump protocol. If the control display identifier represents the display of the interactive control, the interactive control is displayed while displaying the application page.
[0024] Optionally, it also includes:
[0025] The interactive operation response module is used to execute the interactive operation corresponding to the interactive control in response to the selection operation on the interactive control.
[0026] Optionally, the interactive control includes an evaluation control, and the interactive operation response module is specifically used to:
[0027] In response to a selection operation on the evaluation control, displaying an evaluation page corresponding to the evaluation control;
[0028] In response to an input operation on the evaluation page, evaluation information on the application page is obtained.
[0029] Optionally, the control display module is specifically used for:
[0030] Get the control display parameters;
[0031] While displaying the application page, an interactive control corresponding to the control display parameter is displayed.
[0032] Optionally, a graphical user interface is provided by an electronic terminal, the control display parameter includes at least one of a display position, a display size, and a display type, and the control display module is specifically used for:
[0033] While the application page is displayed in the graphical user interface, an interactive control is displayed at a target position in the graphical user interface corresponding to the display position according to the display size and the display type.
[0034] Optionally, a graphical user interface is provided through an electronic terminal, and the parameter input module is specifically used for:
[0035] Displaying a notification center in the graphical user interface, the notification center including at least one notification message;
[0036] In response to a selection operation on the notification message, obtaining a target notification message corresponding to the selection operation, and determining an application page corresponding to the notification message;
[0037] A jump protocol corresponding to the application page and a control display identifier for the application page are obtained.
[0038] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0039] The memory is used to store computer programs;
[0040] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0041] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.
[0042] The embodiments of the present invention include the following advantages:
[0043] In an embodiment of the present invention, it can be applied to an electronic terminal. When a user views a notification message pushed by an application, the terminal can obtain a jump protocol corresponding to the notification message in response to a selection operation on the notification message. The jump protocol at least includes a control display identifier, and then the application page corresponding to the jump protocol can be jumped and displayed. If the control display identifier represents the display of an interactive control, the interactive control is displayed while the application page is displayed. Therefore, when the user views the application page corresponding to the notification message, the control display identifier is passed in the jump protocol, so that the terminal can display the corresponding interactive control while displaying the application page. On the one hand, for different application pages, the interactive control can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive control. On the other hand, the display of the interactive control is controlled by passing the control display identifier in the form of a jump protocol, which can effectively avoid the development of controls for different application pages and greatly reduce the maintenance cost of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flowchart of a method for displaying an interactive control provided in an embodiment of the present invention;
[0045] Figure 2 is a structural block diagram of a display device of an interactive control provided in an embodiment of the present invention;
[0046] Figure 3 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0047] Figure 4is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] As an example, in an application, different application functions can be provided to meet different needs of users. Different application functions can correspond to different application pages. For an application, it is often developed and maintained by multiple development teams. For example, one development team is responsible for the development and maintenance of one or more application functions of the application. In an application, different application pages can often reuse interactive controls with the same function. For example, evaluation controls can provide corresponding evaluation functions on the house source page, car source page, job search page, etc. For such interactive controls that can be reused in different application pages, if different development teams develop a set of control display methods corresponding to the application functions, it will result in different display methods for interactive controls with the same function in the same application, which seriously affects the visual display effect of the application page. At the same time, because different development teams need to perform repeated work, unnecessary workload is increased, which greatly increases the maintenance cost of the application.
[0050] In this regard, one of the core invention points of the present invention is that when a user views a notification message pushed by an application, the terminal can respond to a selection operation on the notification message and obtain a jump protocol corresponding to the notification message. The jump protocol at least includes a control display identifier, and then the application page corresponding to the jump protocol can be jumped and displayed. If the control display identifier represents the display of an interactive control, the interactive control is displayed while the application page is displayed. Therefore, when the user views the application page corresponding to the notification message, the control display identifier is passed in the jump protocol, so that the terminal can display the corresponding interactive control while displaying the application page. On the one hand, for different application pages, the interactive control can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive control. On the other hand, the display of the interactive control is controlled by passing the control display identifier in the form of a jump protocol, which can effectively avoid the development of controls for different application pages and greatly reduce the maintenance cost of the application.
[0051] Reference Figure 1 , shows a flowchart of a method for displaying an interactive control provided in an embodiment of the present invention, which may specifically include the following steps:
[0052] Step 101, in response to a selection operation on a notification message, obtaining a jump protocol corresponding to the notification message, wherein the jump protocol at least includes a control display identifier;
[0053] Optionally, the embodiments of the present invention may be applied to an electronic terminal, in which a corresponding application may be run, and an application interface may be displayed through a graphical user interface of the electronic terminal so that a user may perform corresponding operations in the application interface. The electronic terminal may be a desktop computer, a laptop computer, a tablet computer, a mobile terminal, etc., and the application may include a life application, an audio application, a game application, a job search application, etc.
[0054] Notification messages may include messages pushed based on the user's subscription to application functions, conversation messages received by the application, and messages for personalized recommendations made by the application based on user portraits, etc. For example, a user may subscribe to a housing recommendation function provided by a certain application in the application. When there is a housing that meets the user's subscription requirements, the application may push the corresponding notification message so that the user can browse the corresponding housing information through the notification message; it may be a conversation message sent by other users when the user is having a conversation with other users in the application; it may also be a message that when the user turns on personalized recommendations in the application, the application pushes content regularly based on the user portrait, etc. The present invention does not impose any restrictions on this.
[0055] In a specific implementation, for application pages that need to display interactive controls with the same functions, or interactive pages that need to display interactive controls, operators or developers can add corresponding control display identifiers to the jump protocols corresponding to the notification messages that need to be pushed, so that when users browse the application pages corresponding to the notification messages, the display of related interactive controls can be controlled by the control display identifiers. Specifically, if the conditions are met or the operator actively pushes, the application can push the corresponding notification message, and the terminal can display the notification message. If the user can select the corresponding notification message, the terminal can jump to the corresponding application page so that the user can browse the content corresponding to the notification message. Among them, when the user selects a notification message, the terminal can first determine the application page corresponding to the notification message, and obtain the jump protocol corresponding to the application page. The jump protocol carries the corresponding control display identifier. The terminal can use the control display identifier to determine whether to display the corresponding interactive control when the application displays the application page corresponding to the notification message.
[0056] Among them, the control display identifier can be an identifier used to determine whether the interactive control is displayed, which can correspond to different values. For example, the control display identifier can be showEvaluateBtn. When showEvaluateBtn is true, it can be characterized as displaying the interactive control; when showEvaluateBtn is false, it can be characterized as not displaying the interactive control, etc. In addition, whether to display the interactive control can also be determined by other values, and the present invention is not limited to this.
[0057] In an optional embodiment, a graphical user interface is provided through an electronic terminal. When an application pushes a notification message, the electronic terminal can display a notification center in the graphical user interface. The notification center includes at least one notification message. Then, in response to a selection operation input by the user for the notification message, the target notification message corresponding to the selection operation can be obtained, and the application page corresponding to the notification message can be determined, and a jump protocol corresponding to the application page can be obtained. If the jump protocol carries a control display identifier, the terminal can determine whether to display the corresponding interactive control based on the control display identifier.
[0058] Step 102: displaying an application page corresponding to the jump protocol. If the control display identifier indicates displaying an interactive control, displaying the interactive control while displaying the application page.
[0059] After the terminal determines the jump protocol corresponding to the notification message, it can start the application according to the jump protocol or put the application running in the background into the foreground, and then display the application page corresponding to the notification message in the application. At the same time, in the process of creating the application page, the control display identifier in the jump protocol can be identified. If the control display identifier is characterized by displaying interactive controls, the terminal can display the corresponding interactive controls while displaying the application page; if the control display identifier is characterized by not displaying interactive controls, the terminal can only display the application page. When the user views the application page corresponding to the notification message, by passing the control display identifier in the jump protocol, the terminal can display the corresponding interactive controls while displaying the application page. On the one hand, for different application pages, the interactive controls can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive controls. On the other hand, by transmitting the control display identifier by means of the jump protocol to control the display of the interactive controls, it can effectively avoid the development of controls for different application pages, greatly reducing the maintenance cost of the application.
[0060] Optionally, the jump between pages can be performed by using the jump protocol to find the corresponding application page from the routing table. After the terminal determines the jump protocol according to the notification message selected by the user, the jump protocol can be used to obtain the application page corresponding to the notification message. When it is necessary to display the interactive control in the corresponding application page, the operator or developer can add the control display identifier to the jump protocol. For example, the jump protocol can be main: / / jump / huangye / list?showEvaluateBtn=true&otherParams=1212121212, etc., where "showEvaluateBtn=true" is a control display identifier that represents the display of the interactive control.
[0061] In a specific implementation, for the display of an application page, the terminal can, after determining the application page corresponding to the jump protocol, run the application corresponding to the jump protocol, and open the application page corresponding to the jump protocol in the application, and then obtain the life cycle corresponding to the application page. If the life cycle indicates that the application page is in the creation stage, the jump protocol is parsed to obtain the control display identifier and obtain the control display parameters, so that while displaying the application page, it is possible to determine whether to display the interactive control corresponding to the control display parameters based on the control display identifier.
[0062] For applications, the application startup process: Application-onCreate indicates application creation. At this time, the registerActivityLifecycleCallbacks method can be called to register the monitoring of the Activity lifecycle of all pages in the application. When a page in the application executes the lifecycles such as onCreate and onResume, we can receive the corresponding callback. Among them, there is only one Application in an application, so some global initialization can be performed when the application is created, such as the initialization of the network library. After finding the corresponding application page according to the jump protocol, the jump (open) operation can be performed, that is, jump to the corresponding page. At this time, the corresponding page will execute the lifecycles such as onCreate, onStart, and onResume. For the lifecycle of the application page, it can include different stages such as onCreate() page creation, onStart() page initial loading, onResume() page reloading, onPause() page interruption, onStop() page termination, and onDestroy() page uninstallation. The terminal can monitor the lifecycle of the application page corresponding to the notification message in the application, and when it is determined that the application page is in the creation stage, parse the jump protocol to obtain the control indication mark to execute the logic of displaying the interactive control.
[0063] When it is determined that the interactive control needs to be displayed, the terminal can obtain the corresponding control display parameters, and then display the corresponding interactive control in the graphical user interface according to the control display parameters, so that the user can perform the corresponding interactive operation through the interactive control in the process of browsing the application page. Among them, the control display parameters include at least one of the display position, display size and display type. When the terminal displays the application page in the graphical user interface, it displays the interactive control at the target position corresponding to the display position in the graphical user interface according to the display size and display type. Therefore, for different application pages, the interactive control can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive control.
[0064] Optionally, for interactive controls, they can be controls configured for performing the same function for different application functions of the application, for example, virtual buttons, pictures, texts, and other controls that can interact with users. When the interactive controls are displayed in application pages corresponding to different application functions, they can be displayed in the same display position, display size, and display type, thereby ensuring the consistency of the display of the interactive controls and improving the visual beauty of the application display.
[0065] In one example, assuming that the interactive control is an evaluation control set for different application functions, which can be used to evaluate application functions, application pages, etc., the terminal displays the evaluation control while displaying the corresponding application page, and the user can evaluate the application function, application page, etc. through the evaluation control according to his own needs. Specifically, the terminal can respond to the selection operation on the evaluation control and display the evaluation page corresponding to the evaluation control, and then respond to the user's input operation on the evaluation page to obtain the evaluation information for the application page, and then the terminal can send the evaluation information input by the user to the server, so that the server can optimize the application function, application page, etc. of the application program according to the user's evaluation information, thereby providing users with better services.
[0066] In one example, the terminal can display the notification messages pushed by the application in the notification center. When the user selects one of the notification messages, the terminal can obtain the jump protocol corresponding to the notification message, such as main: / / jump / huangye / list?showEvaluateBtn=true&otherParams=1212121212, and then determine the application corresponding to the notification message, run the corresponding application, and then parse the jump protocol to obtain the control display identifier "showEvaluateBtn=true" carried in the jump protocol, so as to control the display of the interactive control. Then the terminal can determine the application page corresponding to the notification message based on the jump protocol, run the corresponding application and open the application page corresponding to the jump protocol in the application, and then obtain the life cycle corresponding to the application page, and when the life cycle indicates that the application page is a creation time, parse the jump protocol to obtain the control indication identifier. Since the control indication identifier is true, it indicates that the interactive control needs to be displayed, the control display parameters can be obtained, and the interactive control can be displayed in the terminal's graphical user interface according to the control display parameters, so that the user can perform corresponding interactive operations through the interactive control. Therefore, on the one hand, for different application pages, the interactive control can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive control. On the other hand, the display of the interactive control is controlled by transmitting the control display identifier by means of the jump protocol, which can effectively avoid the development of controls for different application pages and greatly reduce the maintenance cost of the application.
[0067] In addition, the interactive controls and application pages can belong to different layers, and the interactive controls can always be displayed in a fixed position of the graphical user interface, that is, when the user browses the content of the application page, the interactive controls will not change as the application page slides.
[0068] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.
[0069] In an embodiment of the present invention, it can be applied to an electronic terminal. When a user views a notification message pushed by an application, the terminal can respond to a selection operation on the notification message, obtain a jump protocol and a control display identifier corresponding to the notification message, and add the control display identifier in the jump protocol. Then, the application page corresponding to the jump protocol can be jumped and displayed. If the control display identifier represents the display of an interactive control, the interactive control is displayed while the application page is displayed. Therefore, when the user views the application page corresponding to the notification message, the control display identifier is passed in the jump protocol, so that the terminal can display the corresponding interactive control while displaying the application page. On the one hand, for different application pages, the interactive control can be displayed in the same way, which effectively ensures the consistency of the display effect of the interactive control. On the other hand, the display of the interactive control is controlled by transmitting the control display identifier in the form of a jump protocol, which can effectively avoid the development of controls for different application pages and greatly reduce the maintenance cost of the application.
[0070] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0071] Reference Figure 2 , shows a structural block diagram of a display device of an interactive control provided in an embodiment of the present invention, which may specifically include the following modules:
[0072] The parameter input module 201 is used to obtain a jump protocol corresponding to the notification message in response to a selection operation on the notification message, wherein the jump protocol at least includes a control display identifier;
[0073] The control display module 202 is used to display the application page corresponding to the jump protocol. If the control display identifier represents displaying an interactive control, the interactive control is displayed while displaying the application page.
[0074] In an optional embodiment, it also includes:
[0075] The interactive operation response module is used to execute the interactive operation corresponding to the interactive control in response to the selection operation on the interactive control.
[0076] In an optional embodiment, the interactive control includes an evaluation control, and the interactive operation response module is specifically used to:
[0077] In response to a selection operation on the evaluation control, displaying an evaluation page corresponding to the evaluation control;
[0078] In response to an input operation on the evaluation page, evaluation information on the application page is obtained.
[0079] In an optional embodiment, the control display module 202 is specifically used for:
[0080] Get the control display parameters;
[0081] While displaying the application page, an interactive control corresponding to the control display parameter is displayed.
[0082] In an optional embodiment, a graphical user interface is provided by an electronic terminal, the control display parameter includes at least one of a display position, a display size, and a display type, and the control display module 202 is specifically used for:
[0083] While the application page is displayed in the graphical user interface, an interactive control is displayed at a target position in the graphical user interface corresponding to the display position according to the display size and the display type.
[0084] In an optional embodiment, a graphical user interface is provided by an electronic terminal, and the parameter input module 201 is specifically used for:
[0085] Displaying a notification center in the graphical user interface, the notification center including at least one notification message;
[0086] In response to a selection operation on the notification message, obtaining a target notification message corresponding to the selection operation, and determining an application page corresponding to the notification message;
[0087] A jump protocol corresponding to the application page and a control display identifier for the application page are obtained.
[0088] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0089] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, it includes a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304.
[0090] Memory 303, used for storing computer programs;
[0091] The processor 301 is used to execute the program stored in the memory 303 to implement the following steps:
[0092] In response to a selection operation on a notification message, acquiring a jump protocol corresponding to the notification message, the jump protocol at least including a control display identifier;
[0093] An application page corresponding to the jump protocol is displayed, and if the control display identifier indicates displaying an interactive control, the interactive control is displayed while displaying the application page.
[0094] In an optional embodiment, it also includes:
[0095] In response to a selection operation on the interactive control, an interactive operation corresponding to the interactive control is performed.
[0096] In an optional embodiment, the interactive control includes an evaluation control, and in response to a selection operation on the interactive control, performing an interactive operation corresponding to the interactive control includes:
[0097] In response to a selection operation on the evaluation control, displaying an evaluation page corresponding to the evaluation control;
[0098] In response to an input operation on the evaluation page, evaluation information on the application page is obtained.
[0099] In an optional embodiment, displaying the interactive control while displaying the application page includes:
[0100] Get the control display parameters;
[0101] While displaying the application page, an interactive control corresponding to the control display parameter is displayed.
[0102] In an optional embodiment, a graphical user interface is provided by an electronic terminal, the control display parameter includes at least one of a display position, a display size, and a display type, and while displaying the application page, displaying an interactive control corresponding to the control display parameter includes:
[0103] While the application page is displayed in the graphical user interface, an interactive control is displayed at a target position in the graphical user interface corresponding to the display position according to the display size and the display type.
[0104] In an optional embodiment, a graphical user interface is provided by an electronic terminal, and in response to a selection operation on a notification message, determining an application page corresponding to the notification message, and acquiring a jump protocol corresponding to the application page and a control display identifier for the application page include:
[0105] Displaying a notification center in the graphical user interface, the notification center including at least one notification message;
[0106] In response to a selection operation on the notification message, obtaining a target notification message corresponding to the selection operation, and determining an application page corresponding to the notification message;
[0107] A jump protocol corresponding to the application page and a control display identifier for the application page are obtained.
[0108] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0109] The communication interface is used for communication between the above terminal and other devices.
[0110] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0111] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] like Figure 4As shown, in another embodiment provided by the present invention, a computer-readable storage medium 401 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method for displaying the interactive controls described in the above embodiment.
[0113] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for displaying the interactive control described in the above embodiment.
[0114] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0115] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0116] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for displaying an interactive control, characterized in that: include: In response to a selection operation on a notification message, acquiring a jump protocol corresponding to the notification message, the jump protocol at least including a control display identifier; Displaying an application page corresponding to the jump protocol, and if the control display identifier indicates displaying an interactive control, displaying the interactive control while displaying the application page; The displaying of the application page corresponding to the jump protocol includes: Determine the application page corresponding to the notification message based on the jump protocol, run the application corresponding to the application page and open the application page in the application; The life cycle corresponding to the application page is obtained, and when the life cycle indicates that the application page is in the page creation stage, the jump protocol is parsed to obtain the control display identifier, and the life cycle at least includes a page creation stage, a page initial loading stage, a page reloading stage, a page interruption stage, a page suspension stage and a page unloading stage.
2. The method according to claim 1, characterized in that Also includes: In response to a selection operation on the interactive control, an interactive operation corresponding to the interactive control is performed.
3. The method according to claim 2, characterized in that The interactive control includes an evaluation control, and in response to a selection operation on the interactive control, performing an interactive operation corresponding to the interactive control includes: In response to a selection operation on the evaluation control, displaying an evaluation page corresponding to the evaluation control; In response to an input operation on the evaluation page, evaluation information on the application page is obtained.
4. The method according to claim 1, characterized in that: The step of displaying the interactive controls while displaying the application page includes: Get the control display parameters; While displaying the application page, an interactive control corresponding to the control display parameter is displayed.
5. The method according to claim 4, characterized in that Providing a graphical user interface through an electronic terminal, the control display parameter includes at least one of a display position, a display size, and a display type, and displaying an interactive control corresponding to the control display parameter while displaying the application page, including: While the application page is displayed in the graphical user interface, an interactive control is displayed at a target position in the graphical user interface corresponding to the display position according to the display size and the display type.
6. The method according to claim 1, characterized in that Providing a graphical user interface through an electronic terminal, in response to a selection operation on a notification message, determining an application page corresponding to the notification message, acquiring a jump protocol corresponding to the application page and a control display identifier for the application page, including: Displaying a notification center in the graphical user interface, the notification center including at least one notification message; In response to a selection operation on the notification message, obtaining a target notification message corresponding to the selection operation, and determining an application page corresponding to the notification message; A jump protocol corresponding to the application page and a control display identifier for the application page are obtained.
7. A display device for an interactive control, characterized in that: include: A parameter input module, configured to obtain a jump protocol corresponding to the notification message in response to a selection operation on the notification message, wherein the jump protocol at least includes a control display identifier; A control display module, used to display an application page corresponding to the jump protocol, and if the control display identifier indicates displaying an interactive control, then displaying the interactive control while displaying the application page; The control display module is specifically used to determine the application page corresponding to the notification message based on the jump protocol, run the application corresponding to the application page and open the application page in the application; obtain the life cycle corresponding to the application page, and when the life cycle indicates that the application page is in the page creation stage, parse the jump protocol to obtain the control display identifier, and the life cycle at least includes the page creation stage, the page initial loading stage, the page reloading stage, the page interruption stage, the page termination stage and the page unloading stage.
8. The method according to claim 7, characterized in that Also includes: The interactive operation response module is used to execute the interactive operation corresponding to the interactive control in response to the selection operation on the interactive control.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 6 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and apparatus for calling interactive control
CN107092475A
Information interaction method and device
CN112968977A
Interaction method and terminal equipment
CN113342218A