CN114168135A - Display method and device of push information, electronic equipment and storage medium - Google Patents

Display method and device of push information, electronic equipment and storage medium Download PDF

Info

Publication number
CN114168135A
CN114168135A CN202111461397.0A CN202111461397A CN114168135A CN 114168135 A CN114168135 A CN 114168135A CN 202111461397 A CN202111461397 A CN 202111461397A CN 114168135 A CN114168135 A CN 114168135A
Authority
CN
China
Prior art keywords
component
information
push
event
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111461397.0A
Other languages
Chinese (zh)
Inventor
郭昀霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202111461397.0A priority Critical patent/CN114168135A/en
Publication of CN114168135A publication Critical patent/CN114168135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a display method and device of push information, electronic equipment and a storage medium; the method comprises the following steps: receiving push information issued by a server, wherein the push information comprises target information, component information, display rules and event information; providing a push interface on the graphical user interface according to the display mode determined by the display rule; configuring a corresponding trigger event for a component displayed in a pushing interface based on the event information; and when the occurrence of the configured trigger event on the component is detected, controlling to execute the operation corresponding to the configured trigger event. The information required by the establishment of the push interface is acquired in a mode of receiving the information of the server, free customization of the interface can be quickly realized without changing an application program, and the event is bound for the component in the push interface based on the event information, so that the push interface has a certain interaction function, and the function of the push interface is enriched.

Description

Display method and device of push information, electronic equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for displaying push information, electronic equipment and a storage medium.
Background
Currently in many networking applications, information can be pushed to users. The information is usually displayed in a push interface mode, and can be used for various prompts, popularization and the like, and the styles and functions of the push interface are different under different information push requirements.
However, the existing push interface has simple and single style and function, one or more styles are fixed, and only the document prompt function is realized, so that the free customization of the push interface is difficult to meet. In order to realize free customization of the interface, technicians are required to frequently modify the application program according to each pushing requirement, and the modified content is released when the version is released, so that a large amount of time and labor are consumed, and the free customization of the pushing interface is difficult to realize quickly.
Disclosure of Invention
The embodiment of the application provides a display method and device of push information, electronic equipment and a storage medium, and free customization of a push interface can be quickly achieved.
The embodiment of the application provides a display method of push information, which provides a graphical user interface through terminal equipment, and comprises the following steps: receiving push information issued by a server, wherein the push information comprises target information, component information, a display rule and event information; providing a push interface on the graphical user interface according to the display mode determined by the display rule, wherein the push interface is generated based on the component corresponding to the component information, and the content displayed in the push interface comprises the target information and at least part of the components; configuring a corresponding trigger event for the component displayed in the push interface based on the event information; and when detecting that the trigger event configured on the component occurs, controlling to execute the operation corresponding to the configured trigger event.
The embodiment of the present application further provides a display device for pushing information, which provides a graphical user interface through a terminal device, and the device includes: the receiving module is used for receiving push information issued by the server, wherein the push information comprises target information, component information, display rules and event information; the pushing module is used for providing a pushing interface on the graphical user interface according to the display mode determined by the display rule, wherein the pushing interface is generated based on the component corresponding to the component information, and the content displayed in the pushing interface comprises the target information and at least part of the components; the configuration module is used for configuring a corresponding trigger event for the component displayed in the push interface based on the event information; and the control module is used for controlling and executing the operation corresponding to the configured trigger event when the trigger event configured on the component is detected to occur.
In some embodiments, the event information further includes a response event corresponding to the trigger event, and the configuration module is further configured to:
and configuring the triggering event and a response event corresponding to the triggering event for the component displayed in the pushing interface based on the event information.
In some embodiments, the control module is further to:
and when a trigger event configured on the component occurs, controlling to execute a response event corresponding to the trigger event.
In some embodiments, the push module is further to:
generating a component based on the component information;
combining the component and the target information into the push interface;
and displaying the push interface on the graphical user interface according to the display mode determined by the display rule.
In some embodiments, the component information includes a component identifier and an attribute parameter corresponding to the component identifier, and the push module is further configured to:
acquiring a component identifier in the component information and an attribute parameter corresponding to the component identifier;
querying a local component library for corresponding component materials based on the component identification, and configuring the component materials based on the attribute parameters to generate the component.
In some embodiments, the event information includes a component identification and a trigger event corresponding to the component identification, and the configuration module is further configured to:
determining a target component corresponding to the component identifier in the event information in the pushing interface;
and configuring a trigger event corresponding to the component identifier in the event information for the target component.
In some embodiments, the presentation rule includes a presentation position, a position offset value, and a jog mode, and the pushing module is further configured to:
determining the display position of the push interface on the graphical user interface according to the display position and the position deviation value;
and controlling the pushing interface to appear at the display position in the inching mode.
In some embodiments, the push information presentation device is further configured to:
receiving target information issued by a server;
and displaying the target information on the graphical user interface according to a default display mode in the terminal equipment.
The embodiment of the application also provides electronic equipment, which comprises a memory, a storage and a control unit, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in any one of the methods for presenting push information provided by the embodiments of the present application.
The embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to perform any of the steps in the method for displaying push information provided in the embodiment of the present application.
The method and the device for pushing the information can receive the pushing information sent by the server, wherein the pushing information comprises target information, component information, event information and display rules; and providing a push interface according to the display rule, the component information and the target information, binding a trigger event for the components in the push interface based on the event information, and controlling to execute corresponding operation when the trigger event is detected. The information required by the establishment of the push interface is acquired in a mode of receiving the information of the server, free customization of the interface can be quickly realized without changing an application program, and the event is bound for the component in the push interface based on the event information, so that the push interface has a certain interaction function, the function of the push interface is enriched, and free customization of the push interface can be quickly realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a system diagram illustrating a method for displaying push information according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for displaying push information according to an embodiment of the present application;
fig. 3 is a partial flow diagram of a method for presenting push information provided on the basis of the embodiment provided in fig. 2;
FIG. 4 is a schematic diagram for determining a display position of a push interface according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a hidden push interface provided by an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for presenting push information according to another embodiment of the present application;
FIG. 7 is a schematic illustration of a prompt interface provided by an embodiment of the present application;
FIG. 8 is a schematic view of one embodiment of the present application providing a package interface;
fig. 9 is a schematic structural diagram of a display apparatus for pushing information provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a display method and device of push information, electronic equipment and a storage medium.
The display device for pushing information may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet Computer, an intelligent bluetooth device, a notebook Computer, or a Personal Computer (PC), and the like; the server may be a single server or a server cluster composed of a plurality of servers.
Referring to fig. 1, fig. 1 is a schematic system diagram illustrating a method for displaying push information according to an embodiment of the present disclosure. The system may include at least one terminal device 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal apparatus 1000 held by the user can be connected to the server 2000 through the network 4000. Wherein the terminal device 1000 is any device having computing hardware capable of supporting and executing a software product corresponding to a page display; the server 2000 may be a single server, or may be a cluster of servers; the network 4000 may be a wireless network or a wired network, such as a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, and so on. In addition, different terminal devices 1000 may also be connected to other terminals or to the server 2000 using their own bluetooth network or hotspot network. In addition, the system may further include at least one database 3000, the database 3000 storing data generated when the user uses the terminal device 1000.
The terminal device 1000 may provide a graphical user interface, and when executing the method for displaying the push information, the terminal device 1000 may receive the push information sent by the server 2000, where the push information includes target information, component information, display rules, and event information; the terminal device 1000 may provide a push interface on the graphical user interface according to a display manner determined by a display rule, where the push interface is generated based on a component corresponding to the component information, and content displayed in the push interface includes the target information and at least part of the component; configuring a corresponding trigger event for a component displayed in a pushing interface based on the event information; and when detecting that the trigger event configured on the component occurs, controlling to execute the operation corresponding to the configured trigger event.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
Referring to fig. 2, a schematic flow chart of a method for displaying push information provided in an embodiment of the present application is shown, where the method is executable by an electronic device, and the electronic device may be a terminal device with a display screen, such as a mobile phone, a tablet computer, an intelligent bluetooth device, a notebook computer, or a personal computer, and the following only takes the terminal device as an example to describe in detail, and the method specifically includes the following steps: s110 to S140.
S110, receiving push information issued by a server, wherein the push information comprises target information, component information, display rules and event information.
The server may issue the push information to the terminal device through a Transmission Control Protocol (TCP), so that the terminal device may receive the push information actively sent by the server, where the server may refer to a server corresponding to an application installed in the terminal device.
The push information refers to relevant information of a push interface to be displayed, and may include target information, component information, presentation rules, and event information.
The component is an object graphically displayed on the screen, such as a displayed button, a displayed label, and the like, and the component information refers to information required when the component is displayed, such as the size, the shape, the displayed position, the color, and the like of the component. The event information refers to an interaction event in the push interface, for example, when a control displayed in the push interface is clicked, a new interface can be opened, or when the push interface appears for 10s, the push interface can be automatically closed, and the like. The presentation rule refers to a presentation mode of the push interface, for example, the push interface is displayed in the center of the graphical user interface, displayed on the right, or the push interface appears in some animation mode, and the like.
And S120, providing a push interface on the graphical user interface according to the display mode determined by the display rule.
The push interface is generated based on the component corresponding to the component information, and the content displayed in the push interface can comprise the target information and at least part of the component. After receiving the push information sent by the server, the terminal device can analyze the push information to obtain target information, component information and display rules therein. Based on the component information, a component can be generated, and the component and the target information can jointly form a push interface. Based on the display rule, the display mode can be determined, and the push interface is displayed on the graphical user interface according to the display mode.
That is, the terminal device may generate a push interface according to the received push information, and display the generated push interface on the graphical user interface according to the display rule, so that the user can view or operate the push interface conveniently. Specifically, referring to fig. 3, a schematic flow chart of providing a push interface is shown, which specifically includes the following steps: s121 to S123.
And S121, generating a component based on the component information.
The component information may include a component identification and attribute parameters corresponding to the component identification. The component identifier refers to unique identifier information of the component, and the attribute parameter refers to information required for creating the component, which may specifically include a component type, a component size, a component position, component background information, and the like.
The component type may include a label type, a button type, and the like; the module size refers to the shape and size of the module, for example, the module shape is a rectangle, the length of the rectangle is 20cm, and the width of the rectangle is 10 cm; the component position refers to a display position of the component, and specifically, the coordinate representation of the central point of the component can be used; the component background information may refer to a color of the component, background image information of the component, and the like.
In some embodiments, a local component library may be stored in the terminal device in advance, the local component library may be downloaded to the terminal device together when the application program is downloaded, and the local component library includes a correspondence between the component identifier and the component material.
When generating a component based on the component information, acquiring a component identifier in the component information and an attribute parameter corresponding to the component identifier; and querying corresponding component materials in a local component library based on the component identification, and configuring the component materials based on the attribute parameters to generate the components.
Specifically, the component identifier can be obtained from the component information, and the component material corresponding to the component identifier is searched in the local component library based on the component identifier, so that the component identifier, the component material and the attribute parameter have a corresponding relationship, the component material and the attribute parameter corresponding to the same component identifier are determined, and the component can be obtained by configuring the component material with the attribute parameter.
For example, the component information includes a component identifier a and a corresponding attribute parameter a1, a component identifier B and a corresponding attribute parameter B1, the local component library includes a component identifier a and a corresponding component material a2, and a component identifier B and a corresponding component material B2. After the component identifications A and B in the component information are read, the local component library is queried to obtain component materials A2 corresponding to the component identification A and component materials B2 corresponding to the component identification B. The visible component identifier A, the attribute parameter A1 and the component material A2 have a corresponding relationship, and the visible component identifier B, the attribute parameter B1 and the component material B2 have a corresponding relationship.
The component material a2 is configured with the attribute parameter a1, so that a component corresponding to the component identifier a can be generated, and the component material B2 is configured with the attribute parameter B1, so that a component corresponding to the component identifier B can be generated.
S122, combining the assembly and the target information into the push interface.
The target information refers to text information displayed in the push interface, and after the component is generated based on the component information, the component and the target information can be combined into the push interface.
In some embodiments, the target information may be displayed in superimposition with the component, i.e., the target information is displayed on the component. In some embodiments, the target information and the component may be displayed separately, i.e., the display area of the target information and the display area of the component do not overlap. The specific setting may be according to actual needs, and is not specifically limited herein.
S123, displaying the pushing interface on the graphical user interface according to the display mode determined by the display rule.
After the push interface is generated, the push interface needs to be displayed, when the push interface is displayed, a display mode can be determined according to a display rule, and the push interface is displayed on a graphical user interface according to the display mode, wherein the graphical user interface is an interface provided in an application program, and the push interface is also an interface provided in the application program.
The presentation rules may include a presentation position, a position offset value, and a jog mode. The display position refers to a display position of the push interface, such as centered display, left display, right display, and the like; the position offset value refers to the offset of the display position; the jog mode refers to a presentation animation of the push interface, e.g., a rotation appears, a fly-in appears from the left side of the screen, etc.
When the push interface is provided on the graphical user interface, the display position of the push interface on the graphical user interface can be determined according to the display position and the position offset value. For example, the display position is a centered display, the position offset value is (x, y), and assuming that x may represent a horizontal offset value, x may represent a right offset if it is positive, and a left offset if it is negative; y may represent a vertical offset value, an upward offset when a positive value of y, and a downward offset when a negative value of y. Referring to FIG. 4, a schematic diagram of determining a display location of a push interface is shown. Wherein 101 is a graphical user interface, 102 is a position when the push interface is displayed in the middle, the position deviation values are positive numbers, and 103 is a display position determined according to the display position and the position deviation values, that is, a final display position of the push interface.
In some embodiments, the push information sent by the server may include only the target information, the terminal device sets a default style and a display rule, and after the terminal device receives the target information, the target information is displayed on the graphical user interface according to the default style and the display rule. And the default style and the display rule in the terminal equipment are preset and are downloaded to the terminal equipment along with the application program.
It can be understood that the target information, the component information, the event information and the display rule in the push information can be adapted to different push requirements for modification, and the target information, the component information, the event information and the display rule are sent to the client in a message sending mode through the server, so that long-time waiting is not needed, and the requirement of timeliness of a push interface can be met.
S130, configuring a corresponding trigger event for the component displayed in the push interface based on the event information.
In a push interface composed of the component generated based on the component information and the target information, only the graphical representation is provided, and any interaction function is not provided.
In some implementations, the event information can include trigger events, and components displayed within the push interface can be configured with corresponding trigger events based on the event information.
In some embodiments, the event information further includes a response event corresponding to the trigger event, and configuring the corresponding trigger event for the component displayed in the push interface may be configuring the trigger event for the component displayed in the push interface and the response event corresponding to the trigger event based on the event information.
The response event refers to an event defined in the application program in advance, and when the trigger event is received, the response event can be triggered. For example, the triggering event on the component identified as a is a click operation, and the response event is to open page 1, which means that when the click operation on the component identified as a is detected, page 1 is opened.
Specifically, the event information may further include a component identifier, where the component identifier, the trigger event, and the response event have a corresponding relationship, the components displayed in the push interface are generated based on the component information, and each component has a unique component identifier while generating the component.
After the event information is obtained, a target component corresponding to the component identifier in the event information in the push interface can be determined; and configuring a trigger event corresponding to the component identifier in the event information and a response event corresponding to the trigger event for the target component.
For example, the components displayed in the push interface have component identifications of component a, component B, and component C, respectively. The components in the event information are identified as a component A and a component C, so that the component A and the component C can be determined as target components, then the trigger event and the response event corresponding to the component A in the event information are bound with the component A displayed in the push interface, and the trigger event and the response event corresponding to the component C in the event information are bound with the component C displayed in the push interface.
Thus, component a and component C displayed in the push interface have an interactive function, and component C does not have an interactive function.
And S140, when the trigger event configured on the component is detected to occur, controlling to execute the operation corresponding to the configured trigger event.
As described above, the event information includes the component identifier, the trigger event, and the response event corresponding to the trigger event. When a triggering event is detected on a component corresponding to the component identification, a response event corresponding to the triggering event may be executed.
The trigger event and the response event corresponding to the trigger event can be set according to actual needs. When the trigger event is detected, a response event can be executed, wherein the response event is a predefined event in the application program, and therefore, the push interface can be ensured to interact with the application program.
In some embodiments, the event information may further include an event parameter, and the event parameter may be passed to the application program after the trigger event is detected, so as to implement a corresponding response event.
In some implementations, the trigger event can include an interactive operation, which can refer to a user operation, such as a click operation, a slide operation, a drag operation, a double-click operation, and so forth. It may also refer to a combination operation, for example, a combination of a click operation and a slide operation, a combination of a click operation and a click operation, and the like. The specific setting can be performed according to actual needs, and is not specifically limited herein.
When the trigger event is an interactive operation, it may be that when an interactive operation action is detected on the component corresponding to the component identifier, a response event corresponding to the interactive operation is acquired and executed, so as to implement interaction between the push interface and the application program.
For example, the interaction is a click operation on component A, and the response event is an open page D. When the click operation acting on the component A displayed in the push interface is detected, the page D can be obtained as the response event, the event parameters required by opening the interface D are transmitted to the client, the interface D is determined, and the page D can be opened after the component A is clicked.
In some embodiments, the trigger event may include a timing operation and a preset time duration, that is, when the preset time duration is reached, the trigger event may be considered to be detected. Specifically, the preset duration may refer to an occurrence duration of the push interface, and may be a duration of the push interface when the push interface occurs, and when the occurrence duration is equal to the preset duration, a response event corresponding to the timing operation is acquired and the response event is executed.
For example, the triggering event is a timing operation, the preset time duration is 10s, the response event is to control the virtual character to move to the target position, and when the push interface is detected to appear for 10 seconds, the virtual character can be automatically controlled to move to the target position.
Upon detection of a triggering event acting on a component, the push interface may be hidden in order for the user to have a better visual effect to observe the executed response event.
In one embodiment, the push interface can be reduced to a control after detecting a triggering event acting on the component. Referring to fig. 5, a schematic diagram of a hidden push interface is shown, where a graphical user interface is 104, the push interface is reduced to a control 105, and a user can expand the control 105 to the push interface again by clicking or by a preset key operation, so that the user can view content in the push interface at any time.
For example, when the push interface is an active task guide in a game, a task to be executed may be generally displayed in the push interface, and if two tasks need to be executed, a position transmission control corresponding to each task is displayed in the push interface at two positions Z1 and Z2 in the game scene, respectively, and when a user clicks the corresponding control, the position transmission control may be transmitted to the position corresponding to the task. Then, after the user clicks the control corresponding to the Z1 position, the push interface may be reduced to a control, so that the user controls the virtual character to perform the task at the Z1 position, and when the user wants to perform another task, the user may expand the push interface again to facilitate the user to perform subsequent operations.
It should be noted that the control 105 may be in any shape, and may be specifically configured according to actual needs, and is not specifically limited herein.
The display method of the push information provided by the embodiment of the application can be applied to various prompt scenes, such as activity prompt in a game application program, guide prompt in a live broadcast room, account upgrading prompt and the like. The scheme provided by the embodiment of the application can receive the push information sent by the server; providing a push interface on the graphical user interface based on the component information, the target information and the display rule in the push information; configuring a corresponding trigger event for a component displayed in a pushing interface based on the event information; when a trigger event is detected, an operation corresponding to the configured trigger event may be performed.
The server receives the push information, a push interface can be generated based on the push information and displayed in time, repeated development of the application program can be avoided, a large amount of time consumed by version waiting can be avoided, and free customization of the push interface can be achieved rapidly. And moreover, the event information is used for binding the trigger event for the component, so that the push interface is not a simple text prompt any more, but has a certain interaction function, high interaction between the push interface and an application program can be realized, and the functionality of the push interface is enhanced.
The method described in the above embodiments is further described in detail below.
In various application programs, for example, live applications and game applications, change of user account levels is usually involved, and when a user level reaches a certain value, a reward can be issued to a user.
As shown in fig. 6, a specific flow of the display method for pushing information is as follows:
s210, the terminal equipment receives push information issued by the server, wherein the push information comprises target information, component information, display rules and event information.
And S220, the terminal equipment provides a prompt interface on the graphical user interface according to the display mode determined by the display rule.
And S230, configuring a corresponding trigger event for the component displayed in the prompt interface by the terminal equipment based on the event information.
S240, when detecting that the trigger event configured on the component occurs, the terminal device controls and executes the operation corresponding to the configured trigger event.
After receiving the push information sent by the server, the terminal equipment can analyze target information, component information, event information and display rules in the push information; and generating a prompt interface based on the component information and the target information, displaying the prompt interface according to the display rule, and configuring a trigger event for the component displayed in the prompt interface according to the event information so as to execute corresponding operation when the trigger event is detected.
It appears to the user that after entering the application, a prompt window appears on the display screen, and text and components corresponding to the upgrade prompt may be displayed in the prompt window. Referring specifically to FIG. 7, a schematic diagram of a prompt interface is shown. In fig. 7, it is shown that a certain reward can be obtained after upgrading, if the user clicks the package viewing control in fig. 7, the package can be opened for viewing, specifically, the prompt interface is closed, and the package interface is displayed, please refer to fig. 8, which shows a schematic diagram of the package interface.
As can be seen from the above, by the method for displaying push information provided in the embodiment of the present application, push information can be directly obtained from a server, a prompt interface is analyzed and assembled and displayed for a component in the prompt interface, a trigger event is bound to the component in the prompt interface, and when the trigger event is detected, a corresponding operation is controlled and executed, so as to implement interaction between the prompt interface and an application program. When the prompt interface needs to be changed, the changed prompt interface can be displayed in time and the user can be prompted in time only by changing the push information of the server and without changing the application program. In addition, the trigger event is configured for the component according to the event information, so that the prompt interface can respond to user operation or other trigger events, the interaction between the prompt interface and the application program is enhanced, and the functionality of the prompt interface is improved.
In order to better implement the method, an embodiment of the present application further provides a display apparatus for pushing information, where the display apparatus for pushing information may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers.
For example, in this embodiment, a terminal device in which a display device for pushing information is specifically integrated is taken as an example, and the method in this embodiment of the present application is described in detail.
For example, as shown in fig. 9, the push message presentation apparatus 300 may include a receiving module 310, a pushing module 320, a configuration module 330, and a control module 340.
A receiving module 310, configured to receive push information sent by a server, where the push information includes target information, component information, a display rule, and event information; the pushing module 320 is configured to provide a pushing interface on the graphical user interface according to the display mode determined by the display rule, where the pushing interface is generated based on a component corresponding to the component information, and content displayed in the pushing interface includes the target information and at least part of the component; a configuration module 330, configured to configure a corresponding trigger event for a component displayed in the push interface based on the event information; the control module 340 is configured to, when detecting that a trigger event configured on the component occurs, control to execute an operation corresponding to the configured trigger event.
In some embodiments, the event information further includes a response event corresponding to the trigger event, and the configuration module 330 is further configured to configure the trigger event and the response event corresponding to the trigger event for the component displayed in the push interface based on the event information.
In some embodiments, the control module 340 is further configured to control execution of a response event corresponding to a trigger event configured on the component when the trigger event occurs.
In some embodiments, the pushing module 320 is further configured to generate a component based on the component information; combining the component and the target information into the push interface; and displaying the push interface on the graphical user interface according to the display mode determined by the display rule.
In some embodiments, the component information includes a component identifier and an attribute parameter corresponding to the component identifier, and the pushing module 320 is further configured to obtain the component identifier and the attribute parameter corresponding to the component identifier in the component information; querying a local component library for corresponding component materials based on the component identification, and configuring the component materials based on the attribute parameters to generate the component.
In some embodiments, the event information includes a component identifier and a trigger event corresponding to the component identifier, and the configuration module 330 is further configured to: determining a target component corresponding to the component identifier in the event information in the pushing interface; and configuring a trigger event corresponding to the component identifier in the event information for the target component.
In some embodiments, the display rule includes a display position, a position offset value, and a slow-motion manner, and the pushing module 320 is further configured to determine a display position of the pushing interface on the graphical user interface according to the display position and the position offset value; and controlling the pushing interface to appear at the display position in the inching mode.
In some embodiments, the push information presentation apparatus 300 is further configured to: receiving target information issued by a server; and displaying the target information on the graphical user interface according to a default display mode in the terminal equipment.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the display apparatus for push information of this embodiment may receive push information sent by a server, where the push information includes target information, component information, event information, and a display rule; and providing a push interface according to the display rule, the component information and the target information, binding a trigger event for the components in the push interface based on the event information, and controlling to execute corresponding operation when the trigger event is detected.
The information required by the establishment of the push interface is acquired in a mode of receiving the information of the server, the interface can be freely customized without changing an application program, the push interface can be changed at any time and displayed in real time, and events are bound for components in the push interface based on event information, so that the push interface has a certain interaction function, the function of the push interface is enriched, and the free customization of the push interface can be quickly realized.
Correspondingly, the embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, and the terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game machine, a Personal computer, and a Personal Digital Assistant (PDA).
As shown in fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device configurations shown in the figures do not constitute limitations of the electronic device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The processor 401 is a control center of the electronic device 400, connects various parts of the whole electronic device 400 by using various interfaces and lines, performs various functions of the electronic device 400 and processes data by running or loading software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device 400.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, so as to implement various functions:
receiving push information issued by a server, wherein the push information comprises target information, component information, a display rule and event information;
providing a push interface on the graphical user interface according to the display mode determined by the display rule, wherein the push interface is generated based on the component corresponding to the component information, and the content displayed in the push interface comprises the target information and at least part of the components;
configuring a corresponding trigger event for the component displayed in the push interface based on the event information;
and when detecting that the trigger event configured on the component occurs, controlling to execute the operation corresponding to the configured trigger event.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 10, the electronic device 400 further includes: touch-sensitive display screen 403, radio frequency circuit 404, audio circuit 405, input unit 406 and power 407. The processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power source 407. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 403 may be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. The display panel may be used, among other things, to display information entered by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 401, and can receive and execute commands sent by the processor 401. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel may transmit the touch operation to the processor 401 to determine the type of the touch event, and then the processor 401 may provide a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 403 may also be used as a part of the input unit 406 to implement an input function.
In the embodiment of the present application, an application program is executed by the processor 401 to generate a graphical user interface on the touch display screen 403. The touch display screen 403 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone. The audio circuit 405 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, which is then processed by the audio data output processor 401 and then transmitted to, for example, another electronic device via the rf circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the electronic device 400. Optionally, the power source 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power supply 407 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown in fig. 10, the electronic device 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the electronic device provided in this embodiment may receive push information sent by a server, where the push information includes target information, component information, event information, and a presentation rule; and providing a push interface according to the display rule, the component information and the target information, binding a trigger event for the components in the push interface based on the event information, and controlling to execute corresponding operation when the trigger event is detected.
The server receives the push information, a push interface can be generated based on the push information and displayed in time, repeated development of the application program can be avoided, a large amount of time consumed by version waiting can be avoided, and free customization of the push interface can be achieved rapidly. And moreover, the event information is used for binding the trigger event for the component, so that the push interface is not a simple text prompt any more, but has a certain interaction function, high interaction between the push interface and an application program can be realized, and the functionality of the push interface is enhanced.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, where the computer programs can be loaded by a processor to execute the steps in any one of the methods for presenting push information provided by the embodiments of the present application. For example, the computer program may perform the steps of:
receiving push information issued by a server, wherein the push information comprises target information, component information, a display rule and event information;
providing a push interface on the graphical user interface according to the display mode determined by the display rule, wherein the push interface is generated based on the component corresponding to the component information, and the content displayed in the push interface comprises the target information and at least part of the components;
configuring a corresponding trigger event for the component displayed in the push interface based on the event information;
and when detecting that the trigger event configured on the component occurs, controlling to execute the operation corresponding to the configured trigger event.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method for displaying push information provided in the embodiment of the present application, beneficial effects that can be achieved by any method for displaying push information provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the apparatus, the storage medium, and the electronic device for displaying push information provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A display method of push information is characterized in that a graphical user interface is provided through terminal equipment, and the method comprises the following steps:
receiving push information issued by a server, wherein the push information comprises target information, component information, a display rule and event information;
providing a push interface on the graphical user interface according to the display mode determined by the display rule, wherein the push interface is generated based on the component corresponding to the component information, and the content displayed in the push interface comprises the target information and at least part of the components;
configuring a corresponding trigger event for the component displayed in the push interface based on the event information;
and when detecting that the trigger event configured on the component occurs, controlling to execute the operation corresponding to the configured trigger event.
2. The method of claim 1, wherein the event information further comprises a response event corresponding to the trigger event;
configuring a corresponding trigger event for the component displayed in the push interface based on the event information, wherein the triggering event comprises:
and configuring the triggering event and a response event corresponding to the triggering event for the component displayed in the pushing interface based on the event information.
3. The method according to claim 2, wherein the controlling, when the occurrence of the configured trigger event on the component is detected, the performing of the operation corresponding to the configured trigger event includes:
and when a trigger event configured on the component occurs, controlling to execute a response event corresponding to the trigger event.
4. The method of claim 1, wherein providing a push interface on the graphical user interface in the presentation manner determined by the presentation rule comprises:
generating a component based on the component information;
combining the component and the target information into the push interface;
and displaying the push interface on the graphical user interface according to the display mode determined by the display rule.
5. The method of claim 4, wherein the component information comprises a component identifier and an attribute parameter corresponding to the component identifier;
the generating a component based on the component information includes:
acquiring a component identifier in the component information and an attribute parameter corresponding to the component identifier;
querying a local component library for corresponding component materials based on the component identification, and configuring the component materials based on the attribute parameters to generate the component.
6. The method of claim 1, wherein the event information comprises a component identifier and a trigger event corresponding to the component identifier;
configuring a corresponding trigger event for the component displayed in the push interface based on the event information, wherein the triggering event comprises:
determining a target component corresponding to the component identifier in the event information in the pushing interface;
and configuring a trigger event corresponding to the component identifier in the event information for the target component.
7. The method of claim 1, wherein the presentation rules include a presentation position, a position offset value, and a jog mode;
providing a push interface on the graphical user interface according to the display mode determined by the display rule, wherein the push interface comprises:
determining the display position of the push interface on the graphical user interface according to the display position and the position deviation value;
and controlling the pushing interface to appear at the display position in the inching mode.
8. The method of any one of claims 1-7, further comprising:
receiving target information issued by a server;
and displaying the target information on the graphical user interface according to a default display mode in the terminal equipment.
9. A display device for pushing information, wherein a graphical user interface is provided through a terminal device, the device comprising:
the receiving module is used for receiving push information issued by the server, wherein the push information comprises target information, component information, display rules and event information;
the pushing module is used for providing a pushing interface on the graphical user interface according to the display mode determined by the display rule, wherein the pushing interface is generated based on the component corresponding to the component information, and the content displayed in the pushing interface comprises the target information and at least part of the components;
the configuration module is used for configuring a corresponding trigger event for the component displayed in the push interface based on the event information;
and the control module is used for controlling and executing the operation corresponding to the configured trigger event when the trigger event configured on the component is detected to occur.
10. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to execute the steps of the method for presenting push information according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps of the method for presenting pushed information according to any one of claims 1 to 8.
CN202111461397.0A 2021-12-02 2021-12-02 Display method and device of push information, electronic equipment and storage medium Pending CN114168135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111461397.0A CN114168135A (en) 2021-12-02 2021-12-02 Display method and device of push information, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111461397.0A CN114168135A (en) 2021-12-02 2021-12-02 Display method and device of push information, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114168135A true CN114168135A (en) 2022-03-11

Family

ID=80482462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111461397.0A Pending CN114168135A (en) 2021-12-02 2021-12-02 Display method and device of push information, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114168135A (en)

Similar Documents

Publication Publication Date Title
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
WO2022252528A1 (en) Information presentation method and apparatus
EP4002075A1 (en) Interface display method and apparatus, terminal, and storage medium
CN110399583B (en) Page display method and device, electronic equipment and storage medium
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN108039963B (en) Container configuration method and device and storage medium
CN110795666A (en) Webpage generation method, device, terminal and storage medium
CN108776599B (en) Management method and device for preloaded application, storage medium and intelligent terminal
EP2908231A1 (en) Object suspension realizing method and device
CN108710512B (en) Application program preloading method and device, storage medium and intelligent terminal
CN112399006B (en) File sending method and device and electronic equipment
CN109032732B (en) Notification display method and device, storage medium and electronic equipment
CN108984142B (en) Split screen display method and device, storage medium and electronic equipment
CN111240774A (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
CN109144447A (en) Split screen window adjusting method, device, storage medium and electronic equipment
CN113126875B (en) Virtual gift interaction method and device, computer equipment and storage medium
CN113332719A (en) Virtual article marking method, device, terminal and storage medium
CN112286611A (en) Icon display method and device and electronic equipment
CN112163174A (en) Message display method and device, storage medium and computer equipment
CN109104640B (en) Virtual gift presenting method and device and storage equipment
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN114168135A (en) Display method and device of push information, electronic equipment and storage medium
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN113126867B (en) Browser control method and device, browser, terminal and storage medium
CN112783386A (en) Page jump method, device, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination