CN114416241A - Business identifier display method and device, electronic equipment and storage medium - Google Patents

Business identifier display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114416241A
CN114416241A CN202111652607.4A CN202111652607A CN114416241A CN 114416241 A CN114416241 A CN 114416241A CN 202111652607 A CN202111652607 A CN 202111652607A CN 114416241 A CN114416241 A CN 114416241A
Authority
CN
China
Prior art keywords
service
identifier
display
target
information
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.)
Granted
Application number
CN202111652607.4A
Other languages
Chinese (zh)
Other versions
CN114416241B (en
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202111652607.4A priority Critical patent/CN114416241B/en
Publication of CN114416241A publication Critical patent/CN114416241A/en
Application granted granted Critical
Publication of CN114416241B publication Critical patent/CN114416241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a method and a device for displaying a service identifier, electronic equipment and a storage medium, and the scheme is as follows: receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, wherein the target software comprises a plurality of first services; and calling a target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service. Through the technical scheme provided by the embodiment of the application, the display of the service identifications of different services is completed by the target interface, the service interfaces of the services are not required to manage the service identifications respectively, the unified management of the service identifications of the services in the target software is realized, and the management complexity and the management difficulty of the service identifications are reduced.

Description

Business identifier display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for displaying a service identifier, an electronic device, and a storage medium.
Background
The service identifier is identification information for guiding a user to select and view the service in the target software. The service identifier can be represented in various forms, such as a red dot identifier, a number identifier, a character identifier and a pattern identifier.
Currently, when each page of the target software is displayed, the service interface of each service included in the page manages the service identifier of the service. That is, the service interface of each service is used for management when the service identifier corresponding to each service is displayed and hidden, so that the service identifiers of each service in the target software are not uniformly managed, and the management complexity and the management difficulty of the service identifiers are greatly increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide a service identifier display method, an apparatus, an electronic device, and a storage medium, so as to implement unified management of service identifiers of various services in target software, and reduce management complexity and management difficulty of the service identifiers. The specific technical scheme is as follows:
in a first aspect of the present application, a method for displaying a service identifier is provided, where the method includes:
receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, wherein the target software comprises a plurality of first services;
and calling the target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service.
Optionally, the identifier display information includes path information and data information of the service identifier;
the step of calling the target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service, includes:
when a first page where the first service is located is displayed, calling the target interface, and determining the position of the first service in the first page according to the path information of the service identifier in the identifier display information of the first service;
determining a display mode of the service identifier of the first service according to the data information of the service identifier in the identifier display information of the first service;
and displaying the service identifier of the first service in a preset area of the position of the first service according to the display mode.
Optionally, the display mode includes one or more of red dot display, digital display, character display and pattern display;
the step of displaying the service identifier of the first service in the preset area of the position of the first service according to the display mode includes:
if the display mode is the red dot display, displaying a red dot identification in a preset area of the position where the first service is located;
if the display mode is the digital display, determining a target numerical value corresponding to the service identifier of the first service according to data information in identifier display information of the first service, and displaying the digital identifier corresponding to the target numerical value in a preset area where the first service is located;
if the display mode is the character display, determining a target character corresponding to the service identifier of the first service according to data information in the identifier display information of the first service, and displaying the character identifier corresponding to the target character in a preset area where the first service is located;
and if the display mode is the pattern display, determining a target pattern corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the pattern identifier corresponding to the target pattern in a preset area at the position of the first service.
Optionally, the method further includes, before the calling the target interface and displaying the service identifier of the first service in a preset area of the location of the first service according to the identifier display information of the first service, further including:
receiving, through the target interface, frequency control information of a service identifier displayed for the first page, where the frequency control information includes a first number;
calling the target interface, and counting the number of services with identification display information in the first page to obtain a second number;
the step of calling the target interface and displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service comprises the following steps:
and when the second quantity is not greater than the first quantity, or when the second quantity is greater than the first quantity but the first service meets a preset display condition, calling the target interface, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service.
Optionally, after the calling the target interface and displaying the service identifier of the first service in the preset area where the first service is located according to the identifier display information of the first service, the method further includes:
if the first service has a corresponding second service, calling the target interface, and updating the identifier display information of the second service according to the identifier display information of the first service, wherein the second service is a father node of the first service in a preset service tree of the target software;
and calling the target interface when the second page where the second service is located is displayed, and displaying the service identifier of the second service in a preset area where the second service is located according to the updated identifier display information of the second service.
Optionally, after the target interface is called, and the service identifier of the first service is displayed in the preset area of the location of the first service according to the identifier display information of the first service, the method further includes:
receiving consumption information of a service identifier for the first service through the target interface;
and calling the target interface, discarding the identification display information of the first service according to the consumption information, and updating the identification display information of the second service through the target interface.
Optionally, before the calling of the target interface and the displaying of the service identifier of the first service in the preset area of the location of the first service according to the identifier display information of the first service, the method further includes:
receiving a service identification parameter of a service identification aiming at the first service through the target interface;
the step of calling the target interface and displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service comprises the following steps:
and calling the target interface, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service and the service identifier parameter.
In a second aspect of the present application, there is also provided a service identifier display apparatus, where the apparatus includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, and the target software comprises a plurality of first services;
and the first display module is used for calling the target interface when displaying the first page of the first service, and displaying the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service.
Optionally, the identifier display information includes path information and data information of the service identifier;
the first display module, comprising:
the first determining submodule is used for calling the target interface when a first page where the first service is located is displayed, and determining the position where the first service is located in the first page according to the path information of the service identifier in the identifier display information of the first service;
the second determining submodule is used for determining the display mode of the service identifier of the first service according to the data information of the service identifier in the identifier display information of the first service;
and the display submodule is used for displaying the service identifier of the first service in a preset area of the position of the first service according to the display mode.
Optionally, the display mode includes one or more of red dot display, digital display, character display and pattern display;
the display submodule is specifically configured to display a red dot identifier in a preset area where the first service is located if the display mode is the red dot display;
if the display mode is the digital display, determining a target numerical value corresponding to the service identifier of the first service according to data information in identifier display information of the first service, and displaying the digital identifier corresponding to the target numerical value in a preset area where the first service is located;
if the display mode is the character display, determining a target character corresponding to the service identifier of the first service according to data information in the identifier display information of the first service, and displaying the character identifier corresponding to the target character in a preset area where the first service is located;
and if the display mode is the pattern display, determining a target pattern corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the pattern identifier corresponding to the target pattern in a preset area at the position of the first service.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive, through the target interface, frequency control information of a service identifier displayed for the first page before the service identifier of the first service is displayed in a preset region where the first service is located according to identifier display information of the first service when the target interface is called, where the frequency control information includes a first number;
the counting module is used for calling the target interface and counting the number of the services with the identification display information in the first page to obtain a second number;
the first display module is specifically configured to, when the second number is not greater than the first number, or when the second number is greater than the first number but the first service satisfies a preset display condition, invoke the target interface, and display the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service.
Optionally, the apparatus further comprises:
the updating module is used for calling the target interface, displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service, calling the target interface if the first service has a corresponding second service, and updating the identifier display information of the second service according to the identifier display information of the first service, wherein the second service is a father node of the first service in a preset service tree of the target software;
and the second display module is used for calling the target interface when displaying the second page where the second service is located, and displaying the service identifier of the second service in a preset area where the second service is located according to the updated identifier display information of the second service.
Optionally, the apparatus further comprises:
a third receiving module, configured to receive, through the target interface, consumption information of a service identifier for the first service after the target interface is called, and the service identifier of the first service is displayed in a preset area where the first service is located according to identifier display information of the first service;
and the discarding module is used for calling the target interface, discarding the identification display information of the first service according to the consumption information, and updating the identification display information of the second service through the target interface.
Optionally, the apparatus further comprises:
a fourth receiving module, configured to invoke the target interface, and receive, according to the identifier display information of the first service, a service identifier parameter of the service identifier for the first service through the target interface before displaying the service identifier of the first service in a preset area where the first service is located;
the first display module is specifically configured to invoke the target interface, and display the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service and the service identifier parameter.
In a third aspect of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the service identifier display method when executing the program stored in the memory.
In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program implements any of the steps of the service identifier presentation method described above.
In a fifth aspect of this embodiment, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above-mentioned service identifier presentation methods.
According to the technical scheme provided by the embodiment of the application, the identification display information sent by the service interface corresponding to the first service in the target software is received through the target interface, and when the first page where the first service is located is displayed, the service identification of the first service is displayed according to the identification display information of the first service by calling the target interface. That is, the identifier display information sent by the service interface of each service is received through the target interface, so that when the page is displayed, the service identifier of each service included in the page is displayed in the page. Compared with the related technology, the display of the service identification of different services is completed by the target interface, the service interface of each service is not needed to manage the service identification, the unified management of the service identification of each service in the target software is realized, and the management complexity and the management difficulty of the service identification are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a page corresponding to my service in a certain video software;
fig. 2 is a first flowchart of a service identifier displaying method according to an embodiment of the present application;
fig. 3 is a second flowchart of a service identifier displaying method according to an embodiment of the present application;
fig. 4 is a third flowchart illustrating a service identifier displaying method according to an embodiment of the present application;
FIG. 5 is a page corresponding to the message service shown in FIG. 1;
fig. 6 is a fourth flowchart illustrating a service identifier displaying method according to an embodiment of the present application;
fig. 7 is a fifth flowchart of a service identifier displaying method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a preset service tree according to an embodiment of the present application;
fig. 9 is a sixth flowchart of a service identifier displaying method according to an embodiment of the present application;
fig. 10 is a seventh flowchart of a service identifier displaying method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a service identifier display apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
As shown in fig. 1, fig. 1 is a schematic diagram of a page corresponding to my service in a certain video software.
In the page 101 shown in fig. 1, a region 106 shows various services included in the video software, i.e., a home service, an instant video service, a member service, a discovery service, and my service. The regions 102-105 shown in fig. 1 illustrate sub-services included in my service. Such as viewing history services, collection and reservation services, download services, etc. in area 105.
When the page 101 shown in fig. 1 is displayed, the service interface of each service included in the page 101 is displayed or hidden corresponding to the service identifier of each service. For example, the display and hiding of the numerical identifier with the numerical value of 31 at the upper right corner of my service in the page 101 are managed by the service interface corresponding to my service, and the display and hiding of the character identifier of the free red envelope and the pattern identifier of the red envelope pattern after the service of the creation center are managed by the service interface corresponding to the creation center.
Therefore, in the related art, the service identifier of each service is displayed or hidden and managed by the corresponding service interface, so that the service identifiers of the services in the target software are not uniformly managed, and the management complexity and the management difficulty of the service identifiers are increased.
In order to solve the problems in the related art, the embodiments of the present application provide a service identifier display method. The method is applied to electronic equipment, such as mobile phone panels and other equipment. The electronic device includes a target interface corresponding to a service identification Software Development Kit (SDK), where the target interface corresponding to the SDK is used to uniformly manage service identifications of services in target Software. Here, the electronic device is not particularly limited.
As shown in fig. 2, fig. 2 is a first flowchart of a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S201, receiving, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S202, when the first page where the first service is located is displayed, a target interface is called, and the service identifier of the first service is displayed in a preset area where the first service is located according to the identifier display information of the first service.
Through the method shown in fig. 2, the identifier display information sent by the service interface corresponding to the first service in the target software is received through the target interface, and when the first page where the first service is located is displayed, the service identifier of the first service is displayed according to the identifier display information of the first service by calling the target interface. That is, the identifier display information sent by the service interface of each service is received through the target interface, so that when the page is displayed, the service identifier of each service included in the page is displayed in the page. Compared with the related technology, the display of the service identification of different services is completed by the target interface, the service interface of each service is not needed to manage the service identification, the unified management of the service identification of each service in the target software is realized, and the management complexity and the management difficulty of the service identification are reduced.
The following examples are given to illustrate the examples of the present application. For ease of understanding, the following description will be made with the target interface as the execution principal and is not intended to be limiting in any way.
In step S201, the identifier display information sent by the service interface corresponding to the first service in the target software is received through the target interface, where the target software includes a plurality of first services.
In an optional embodiment, the electronic device may send the information acquisition request to a service interface corresponding to each service in the target software through the target interface. After receiving the information acquisition request, the service interface corresponding to each service can acquire the identifier display information of the service and return the acquired identifier display information. At this time, the electronic device receives the identifier display information sent by the service interface corresponding to each service through the target interface. The first service may be any service in the target software.
When the electronic device sends the information acquisition request, the information acquisition request may be sent to a service interface corresponding to each service in the target software, or the information acquisition request may be sent only to the service interface of each service included in the page to be displayed in the target software.
In another optional embodiment, for a service interface corresponding to each service in the target software, the service interface of the service may monitor whether the identifier display information of the service is updated in real time. When the identifier display information of the service is updated, the service interface of the service may actively send the identifier display information at the current time (i.e., the updated identifier display information). At this time, the electronic device displays the received identifier of the service. And the first service is marked as a service for updating the identifier display information.
For ease of understanding, the page 101 shown in fig. 1 is described as an example. At some point, a new message is received by the message service corresponding to the numeric identifier 31 in the area 102. At this time, the service interface of the message service will monitor that the identifier display information of the message service is sent and changed, for example, the number of messages in the identifier display information is updated to 32. And the identification display information updated by the service interface of the message service is sent to the electronic equipment.
In this embodiment of the present application, the first service may be any service in the target software. The number of the first services is plural. Here, the first service and the number of the first services are not particularly limited. For convenience of understanding, the embodiment of the present application is only illustrated by taking one first service as an example, and does not have any limiting effect.
In an optional embodiment, in order to facilitate the electronic device to display the service identifier at a later stage according to the identifier display information of each first service, the electronic device may store the received identifier display information of each service interface after receiving the identifier display information sent by each service interface. Here, the storage method of the identification display information is not particularly limited.
In the embodiment of the present application, the target software may be video software, chat software, or the like. Here, the target software is not particularly limited. In the embodiment of the present application, only the target software is taken as an example for description, and does not perform any limiting function.
In step S202, when the first page where the first service is located is displayed, the target interface is called, and the service identifier of the first service is displayed in the preset area where the first service is located according to the identifier display information of the first service.
In this step, when the electronic device determines to display the first page including the first service, the target structure may be called, and the service identifier of the first service is displayed in the first page according to the identifier display information of the first service. Namely, the service identifier of the first service is displayed in the preset area of the position of the first service in the first page.
In this embodiment of the present application, the target Interface is integrated with a service identifier SDK, and the service identifier SDK may be used for processing logic such as data calculation of the service identifier and User Interface (UI) display, disappearance, and update. That is, the target interface has service identification corresponding to the processing logic of two layers, namely the processing logic of the data layer and the processing logic of the UI layer. And the processing logic user at the data layer determines whether the service identifier meets the preset display condition and the display data corresponding to the service identifier. And the processing logic at the UI layer is used for displaying/hiding the service identifier in the user interface.
The position of the first service is the relative position of the first service in the first page. According to different user setting conditions or different page layouts, the positions of all services in the first page are different. Here, the location where the first service is located is not particularly limited.
In addition, the preset area of the position of the first service is different according to the difference of each service type and the difference of the position size of each service. The page 101 shown in fig. 1 is also taken as an example. In the page 101 shown in fig. 1, the preset area where the message service is located is the upper right corner area of the icon corresponding to the message service. And creating a preset area of the positions of the central service and the wallet service as the right area of the positions of the respective service icons. Here, the preset area of the location of the first service is not specifically limited.
In this embodiment of the application, the first page may be a default page displayed on a display screen of the electronic device when the target software is started. Or the page displayed in the display screen after the page switching is performed in the running process of the target software. Here, the first page is not particularly limited, and a method of determining to present the first page is not specifically described.
The service mark can be one or more of a red dot mark, a digital mark, a character mark and a pattern mark
In an optional embodiment, the identifier exposure information may include path information and data information of the service identifier.
The data information of the service identifier includes, but is not limited to, an identifier (Identity, ID) of the service identifier, a display mode/discard mode of the service identifier, a duration range of the service identifier, display data of the service identifier, and the like. The display data of the service identifier includes but is not limited to characters, numbers and patterns. Here, the data information of the service identifier and the presentation data of the service expression are not particularly limited.
The above embodiment is described by taking only the presentation of the service identifier of the first page (i.e. the first service) as an example. The method for displaying the service identifier of the other service in the first page may refer to the method for displaying the service identifier of the first service, and here, the displaying of the service identifier of the other service in the first page is not specifically described.
In an optional embodiment, based on the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. As shown in fig. 3, fig. 3 is a second flowchart of a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S301, receiving, by a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S301 is the same as step S201.
Step S302, when the first page where the first service is located is displayed, a target interface is called, and the position where the first service is located is determined in the first page according to the path information of the service identifier in the identifier display information of the first service.
In this embodiment of the present application, the path information of the service identifier at least includes a page (denoted as page) where the service identifier is located, a block (denoted as block) where the first service is located, and a location (denoted as place) where the first service is located. That is, the path information of the service identifier may be expressed as: page-block-place.
For ease of understanding, the message service in fig. 1 is described as an example. In the page 101 shown in fig. 1, the page 101 where the message service is located is a page corresponding to my service, and is denoted as page-my, the block where the message service is located in the page 101 is a top navigation block corresponding to the area 102, and is denoted as block-top navigation, and the location where the message service is located is a location where the message icon is located, and is denoted as place-message icon. Therefore, in page 101, the path information of the message traffic can be expressed as: my-top navigation-message icon.
When the first page where the first service is located is displayed, the electronic device may determine, by calling the target interface, a position of the first service in the first page according to the processing logic of the data plane in the target interface and the path information of the service identifier included in the identifier display information of the first service.
Still taking the path information of the message service as: my-top navigation-message icon is illustrated as an example. When the electronic device displays the page 101 corresponding to my service shown in fig. 1, the location where the message service is located in the page 101 may be determined as the location where the message icon is located according to the location where the message service is located in the path information of the message service (i.e., the message icon).
Step S303, determining a display mode of the service identifier of the first service according to the data information of the service identifier in the identifier display information of the first service.
In an optional embodiment, when the data information included in the identifier display information of the first service includes the display mode of the service identifier, the electronic device may determine, by calling the target interface, the display mode as the display mode of the service identifier of the first service according to the processing logic of the data plane in the target interface.
In another optional embodiment, when the data information included in the identifier display information of the first service does not include the display mode of the service identifier, the electronic device may determine, by calling the target interface, the display mode of the service identifier of the first service according to the processing logic of the data plane in the target interface and the display data of the service identifier in the data information included in the identifier display information.
For example, when the display data in the data information included in the identifier display information of the first service is a character, the electronic device may determine that the display mode of the service identifier of the first service is character display.
For another example, when the display data in the data information included in the identifier display information of the first service is a pattern, the electronic device may determine that the display mode of the service identifier of the first service is pattern display.
In the embodiment of the present application, the service identifier may be displayed in a red dot display mode, a digital display mode, a text display mode and a pattern display mode. The pattern display may include a static pattern display and a dynamic pattern display. In addition, the service identifier may be displayed in a combination of multiple display modes, for example, the service identifier of a certain service may be displayed in red dots or characters. Here, the display mode of the service identifier is not particularly limited.
Step S304, displaying the service identifier of the first service in a preset area of the position of the first service according to the display mode.
In this step, the electronic device calls the target interface, and may display a service identifier View (View) of the first service in a preset area of the first service location on the first page according to the processing logic of the UI layer in the target interface and the display manner of the service identifier of the first service. I.e. to expose the service identity of the first service.
Through the steps S302 to S304, the electronic device can accurately display the service identifier of the first service in the preset area of the location where the first service is located according to the identifier display information of the first service through the target interface.
In an optional embodiment, based on the method shown in fig. 3, an embodiment of the present application further provides a service identifier display method. As shown in fig. 4, fig. 4 is a third flowchart illustrating a service identifier displaying method provided in the embodiment of the present application. The method refines the step S304 into steps S3041 to S3044.
Step S3041, if the display mode is red dot display, displaying a red dot identifier in a preset area where the first service is located.
In this step, when the display mode of the service identifier of the first service determined in the step S303 is red dot display, the electronic device may display the red dot identifier in a preset area of the location of the first service through the target interface.
For ease of understanding, the above description is given by way of example in fig. 1. When the electronic device determines that the display mode corresponding to the service identifier for viewing the history service in the page 101 is red dot display, the electronic device may display the red dot identifier on the right side of the position where the viewing history icon is located in the region 105 shown in the page 101 through the target interface. At this time, the user can determine that there is a newly added historical viewing video in the viewing history according to the red dot identification.
Step S3042, if the display mode is digital display, determining a target value corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the digital identifier corresponding to the target value in a preset area where the first service is located.
In this step, when the display mode of the service identifier of the first service determined in the step S303 is digital display, the electronic device may determine, through the target interface, a target value corresponding to the service identifier of the first service according to display data included in data information in the identifier display information of the first service. That is, the target value corresponding to the service identifier of the first service that needs to be displayed in the first page is determined. At this time, the electronic device may display the digital identifier corresponding to the target value in the preset area where the first service is located through the target interface.
In an optional embodiment, when the sub-service does not exist in the first service, the presentation data of the service identifier in the identifier presentation information of the first service may be a numerical value corresponding to the first service. At this time, the target value may be display data of the service identifier in the identifier display information of the first service.
For ease of understanding, the description will be made by taking fig. 5 as an example. Fig. 5 is a page corresponding to the message service shown in fig. 1.
The page 501 shown in fig. 5 includes multiple services, that is, the message service shown in fig. 1 includes multiple sub-services, such as the comment/reply service shown in fig. 2, a newly added attention service, a received approval service, and the like.
In the page 501 shown in FIG. 5, none of the Member service, platform Notification service, and Activity helper service include sub-services. When the server of the target software pushes a new notification message, that is, the display data of the service identifier in the identifier display information corresponding to the platform notification service is the notification message. At this time, the electronic device may determine, according to the presentation data, that the target value corresponding to the platform notification service is 1. The electronic device may display a digital red dot with a value of 1 on the right side of the location where the platform notification service is located. The digital red dot is the service identifier of the platform notification service.
In another optional embodiment, when the first service has a plurality of sub-services, the display data of the service identifier in the identifier display information of the first service may be a numerical value corresponding to each sub-service. At this time, the target value may be determined by the display data of the service identifier in the identifier display information of the first service.
In an optional embodiment, the electronic device may determine, as the presentation data of the service identifier of the first service, a numerical value corresponding to a target sub-service in a plurality of sub-services included in the first service. The target sub-service may be any sub-service in which the indication display information exists in a plurality of sub-services included in the first service.
For ease of understanding, the description will be made by taking the above fig. 1 and 5 as an example. Since the message service in the page 101 shown in fig. 1 includes all services in the page 501 shown in fig. 5, when the display mode of the message service is digital display, the electronic device may determine a target value corresponding to the message service from a value of display data corresponding to any service indicating display information in the page 501, so as to display a digital identifier corresponding to the target value in the page 101.
For example, when the display data in the identifier display information of the newly added interested service is 10 in the page 501 shown in fig. 5, the electronic device may determine that the target value corresponding to the message service shown in fig. 1 is 10. The electronic device may present a numerical red dot having a value of 10 in the upper right hand corner of the message icon shown in fig. 1.
In another optional embodiment, the electronic device may calculate a sum of values of display data in the identifier display information of the multiple sub-services included in the first service, to obtain a target value corresponding to the service identifier of the first service.
For ease of understanding, the above description will be made by taking fig. 1 and 5 as an example. Now, it is assumed that the display data in the identifier display information of the comment/reply service in the page 501 shown in fig. 5 is 10, the display data in the identifier display information of the newly added concerned service is 15, and the display data in the received identifier display information of the approval service is 20. The electronic device may determine that the target value corresponding to the message service in the page 101 is 45 ═ 10+15+ 20. At this time, the electronic device may present a numerical red dot having a numerical value of 45 in the upper right corner of the message icon shown in fig. 1.
In this embodiment, the determination method of the target value corresponding to the service identifier of the first service is not specifically limited.
Step S3043, if the display mode is text display, determining a target text corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying a text identifier corresponding to the target text in a preset area where the first service is located.
In this step, when the display mode of the service identifier of the first service determined in the step S303 is text display, the electronic device may determine, through the target interface, the target text corresponding to the service identifier of the first service according to the display data included in the data information in the identifier display data of the first service. Namely, the target character corresponding to the service identifier of the first service which needs to be displayed on the first page is determined. At this time, the electronic device may display the text identifier corresponding to the target text in the preset area where the first service is located through the target interface.
In an optional embodiment, when determining a target character corresponding to the service identifier of the first service, the target character may be a keyword/title or the like in the presentation data included in the identifier presentation information of the first service. For example, the wallet service shown in fig. 1 corresponds to a member sending a 3-month guest (VIP) and a free red envelope corresponding to an authoring center service.
In another optional embodiment, when determining the target text corresponding to the service identifier of the first service, the target text may also be a first preset number of texts in the presentation data included in the identifier presentation information of the first service.
For ease of understanding, the platform notification service shown in fig. 5 is still used as an example for description. Assume now that the server of the target software pushes a notification message to the electronic device. At this time, the display data included in the identifier display information of the platform notification service is the notification message. The electronic device can determine the two words which are preset in front of the notification message as the target words corresponding to the service identifier of the platform notification service.
The first preset number may be set according to the number of the characters that can be accommodated in the preset area where the first service is located, and the first preset number is not specifically limited herein.
In this embodiment, the determination method of the target text corresponding to the service identifier of the first service is not specifically limited.
Step S3044, if the display mode is pattern display, determining a target pattern corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the pattern identifier corresponding to the target pattern in a preset area where the first service is located.
In this step, when the display mode of the service identifier of the first service determined in the step S303 is pattern display, the electronic device may determine, through the target interface, a target pattern corresponding to the service identifier of the first service according to display data included in data information in the identifier display data of the first service. At this time, the electronic device may display a pattern identifier corresponding to the target pattern in a preset area where the first service is located through the target interface.
In an optional embodiment, the target pattern corresponding to the service identifier of the first service may be a pattern included in the presentation data.
For ease of understanding, the description is made in conjunction with fig. 5 above. Now, suppose that 20 people pay attention to the user logged in the area 103 in the page 101 shown in fig. 1, at this time, the display data included in the identifier display information of the newly added attention service may include the user ID and the user avatar of the newly added attention 20 people. At this time, the electronic device may determine the second preset number of user avatars in the presentation data as the target patterns corresponding to the service identifiers of the newly added attention services.
The second preset number of user avatars may be user avatars corresponding to a second preset number of users whose attention time is closest to the current time among the 20 user avatars. The second preset number may be set according to the number of user avatars that can be accommodated in the preset area where the first service is located. Here, the second predetermined number is not particularly limited.
In another optional embodiment, the target pattern corresponding to the service identifier of the first service may be a pattern obtained from a preset pattern library according to the display data. For example, the red packet pattern in the service identifier corresponding to the authoring center service shown in fig. 1.
Here, the method of determining the target pattern corresponding to the service identifier of the first service is not particularly limited.
The steps S3041 to S3044 are executed according to the display mode included in the identifier display information of the first service, and the execution of the steps S3041 to S3044 is not particularly limited.
In the above steps S3041 to S3044, the description is made for the display modes of the red dot display, the number display, the character display, and the pattern display. In addition, in the application process, a certain service can adopt a mode of combining a plurality of display modes to display the service identifier of the service. The display mode of the service identifier corresponding to the authoring center service and the wallet service shown in fig. 1 is obtained by combining text display and pattern display. Here, the method for displaying the service identifier by combining multiple display modes is not specifically described.
Through the steps S3041 to S3044, the electronic device may respectively use different display modes for different services through the target interface, so as to display the service identifier of each service, thereby effectively improving the diversity of the service identifier display modes and the diversity of the service identifiers.
In an optional embodiment, based on the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. As shown in fig. 6, fig. 6 is a fourth flowchart illustrating a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S601, receiving, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S601 is the same as step S201.
Step S602, receiving, through the target interface, frequency control information of the service identifier displayed for the first page, where the frequency control information includes a first number.
In this step, for each page in the target software, the user may set the maximum number of service identifiers displayed on the page, that is, the first number. After the user sets the number of the service identifiers displayed in the first page, the electronic device receives frequency control information, triggered by the user, for the first page through the target interface. The frequency control information includes a first number set by the user for the first page, that is, the maximum number of the service identifiers displayed on the first page.
The first number may be set according to a user requirement, and the first number is not particularly limited.
Step S603, call the target interface, and count the number of services having the identifier display information in the first page to obtain a second number.
In this step, for each service included in the first page, the electronic device calls the target interface to count the number of services having the identifier display information in the first page, so as to obtain a second number.
In an optional embodiment, the electronic device may count, through the target interface, the number of pieces of identifier presentation information in which the page is the first page according to the path information of the service identifier in the identifier presentation information stored in the target interface, so as to obtain the second number.
Step S604, if the first page where the first service is located is displayed, when the second number is not greater than the first number, or when the second number is greater than the first number but the first service meets the preset display condition, calling the target interface, and displaying the service identifier of the first service in the preset area where the first service is located according to the identifier display information of the first service.
In this embodiment of the application, after obtaining the first number and the second number through the step S602 and the step S603, the electronic device may call the target interface to determine whether the second number is greater than the first number, and when the second number is greater than the first number, determine whether the first service meets a preset display condition, which may specifically include the following cases.
In case one, the second number is less than or equal to the first number.
In case two, the second number is greater than the first number, but the first service satisfies the preset display condition.
And in case III, the second number is larger than the first number, but the first service does not meet the preset display condition.
In an optional embodiment, when the first condition or the second condition occurs, the electronic device may determine that the service identifier of the first service may be presented in the first page. At this time, the electronic device may call the target interface, and display the service identifier of the first service in the preset area where the first service is located according to the identifier display information of the first service. The method for displaying the service identifier of the first service may refer to the above description, and is not described herein again.
In another optional embodiment, when the third case is described above, the electronic device may determine that the service identifier of the first service may not be displayed in the first page. That is, the service identifiers corresponding to other first number of services will be displayed in the first page, and the service identifier of the first service will not be displayed.
In this embodiment of the application, the preset display condition may be a preset priority of each service in the first page, or a storage duration of the identifier display information corresponding to each service.
In an alternative embodiment, the preset display condition may be represented as: the first number of services with the highest priority are preset.
In another alternative embodiment, the preset display condition may be further expressed as: and displaying the services corresponding to the information by the first quantity of identifiers with the shortest storage time.
In the embodiments of the present application, the preset display conditions are not specifically described.
Compared with the prior art, each service interface independently manages the service identification, the electronic equipment can effectively ensure that the number of the service identifications displayed on the first page does not exceed the first number by receiving the frequency control information, so that the condition that all the services display the corresponding service identifications is avoided, the management of the service identifications displayed on each page in the target software is enhanced, the attractiveness of page display is improved, and the user perception is improved.
In an optional embodiment, based on the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. As shown in fig. 7, fig. 7 is a fifth flowchart illustrating a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S701, receiving, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S702, when the first page where the first service is located is displayed, a target interface is called, and the service identifier of the first service is displayed in a preset area where the first service is located according to the identifier display information of the first service.
The above steps S701 to S702 are the same as the above steps S201 to S202.
Step S703, if the first service has a corresponding second service, calling the target interface, and updating the identifier display information of the second service according to the identifier display information of the first service, where the second service is a parent node of the first service in a preset service tree of the target software.
In the embodiment of the application, the electronic device may pre-construct a preset service tree of the target software according to a first incidence relation between each page and each service in the target software and a second incidence relation between different services. Each node in the preset service tree is a service included in the target software.
For ease of understanding, the description will be made with reference to fig. 1, 5, and 8 as an example. Fig. 8 is a schematic structural diagram of a preset service tree according to an embodiment of the present application.
The preset service tree shown in fig. 8 has a three-layer structure, i.e., the first layer to the third layer shown in fig. 8. The node 801 is a root node, the nodes 802 to 804 are leaf nodes of the node 801, the node 805 is a leaf node of the node 802, the nodes 806 and 807 are leaf nodes of the node 803, and the node 808 is a leaf node of the node 804.
Now assume that node 801 is the service node corresponding to my service shown in fig. 1. The nodes 802-804 in the second layer may be service nodes corresponding to any three services in the area 102, the area 103, the area 104, and the area 105 of the page 101.
If the node 803 is a service node corresponding to the message service shown in the page 101, the node 806 and the node 807 shown in fig. 8 may be nodes corresponding to any two services among the services included in the page 501 shown in fig. 5.
In the embodiment of the present application, each service node in the preset service tree of the target software may be added and deleted according to a requirement of a user. Here, the service node in the preset service tree is not particularly limited.
In the preset service tree of the target software, when a first service in the first page has a parent node, that is, the first service is a sub-service of a second service in the second page, the electronic device may call the target interface after receiving the identifier display information of the first service, and update the identifier display information of the second service based on the identifier display information of the first service to obtain updated identifier display information of the second service.
The step S703 may be executed after the step S702, before the step S702, or simultaneously with the step S702, and the execution order of the step S702 and the step S703 is not particularly limited.
Step S704, when the second page where the second service is located is displayed, the target interface is called, and the service identifier of the second service is displayed in the preset area where the second service is located according to the updated identifier display information of the second service.
For ease of understanding, the first service described above is the comment/reply service in the page shown in fig. 5. The service identification of the comment/reply service is a digital red dot with a value of 20. Now the user selects to view the parent node of the comment/reply service, i.e. the page 101 where the message service is located, by clicking the return button 503 shown in fig. 5. If the identifier presentation information of the message service in the page 101 is determined according to the identifier presentation information of the comment/reply service shown in fig. 5, the service identifier of the message service in the page 101 shown in fig. 1 is a digital red dot with a value of 20.
In this embodiment of the application, through the steps S703 to S704, the electronic device may update, through the target interface, the identifier display information corresponding to the parent node (i.e., the second service) according to the identifier display information of the first service, which ensures accuracy of the identifier display information of each service displayed in the second page when the second service is displayed on the second page.
In an optional embodiment, for the preset service tree of the target software, the electronic device may receive a deletion instruction for a first target node in the preset service tree. And after receiving the deletion instruction, the electronic equipment deletes the first target node and all child nodes of the first target node from the preset service tree.
For ease of understanding, the preset service tree shown in fig. 8 is taken as an example for explanation. Now, assume that the electronic device receives a deletion instruction for the node 804, at this time, the electronic device may delete the node 804 from the preset traffic tree, and a leaf node (i.e., the node 808) of the node 804.
In an optional embodiment, for the preset service tree of the target software, the electronic device may receive an add instruction for the second target node. The add instruction includes an overall link path associated with the second target node. After receiving the adding instruction, the electronic device adds the second target node and all leaf nodes of the second target node in a preset service tree according to the adding instruction including the whole link path related to the second target node.
For ease of understanding, the preset service tree shown in fig. 8 is still used as an example for description. Assume now that node 803, node 806, and node 807 are not included in the preset traffic tree.
At some point, the electronic device receives an add instruction for node 803. The add instruction includes two global link paths, path 1: node 801-node 803-node 806, and path 2: node 801-node 803-node 807. At this time, the electronic device may add the node 803, the node 806, and the node 807 in the preset service tree according to the path 1 and the path 2, so as to obtain the preset service tree shown in fig. 8.
In an optional embodiment, according to the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. As shown in fig. 9, fig. 9 is a sixth flowchart illustrating a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S901, receiving, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S902, when the first page where the first service is located is displayed, the target interface is called, and the service identifier of the first service is displayed in the preset area of the location where the first service is located according to the identifier display information of the first service.
The above-described steps S901 to S902 are the same as the above-described steps S201 to S202.
Step S903, receiving consumption information of the service identifier for the first service through the target interface.
In this embodiment of the application, in the first page display process, for each service in the first page, if a service identifier is displayed in a preset region where the service is located, when a user performs a preset operation on the service, the electronic device receives consumption information of the service identifier for the service through the target interface.
And when the user executes the preset operation aiming at the first service in the first page, the electronic equipment receives the consumption information aiming at the service identifier of the first service.
The consumption information may include path information of the first service, where the path information may be represented as: page-block-place.
In an optional embodiment, the preset operation may be that the user performs a click operation on the effective area where the first service is located.
For example, the user clicks on the viewing history service in the page 101 shown in fig. 1, and at this time, the electronic device receives the consumption information of the service identifier for the viewing history service.
In another optional embodiment, the preset operation may be that the user performs a click operation on the effective area where the first service is located, so as to jump to a page corresponding to the first service, and the display duration of the page is longer than the preset duration.
For example, a user clicks a message service in the page 101 shown in fig. 1, the page currently displayed by the electronic device is switched from the page 101 shown in fig. 1 to the page 501 shown in fig. 5, and when the display duration of the page is longer than a preset duration, the electronic device receives consumption information of a service identifier for the message service.
In another optional embodiment, the preset operation may be that the user clicks a preset button on a page corresponding to the first service.
For example, when the user clicks the brush button 502 in the page 501 shown in FIG. 5, the electronic device will receive consumption information for the message service. The path information in the consumption information is the path information corresponding to each service in the page 501 shown in fig. 5.
Step S904, the target interface is called, the identifier display information of the first service is discarded according to the consumption information, and the identifier display information of the second service is updated through the target interface.
In an optional embodiment, when the first service does not have the corresponding second service, if the consumption information is received, the electronic device may determine that the service identifier of the first service has been consumed, and at this time, the electronic device discards the identifier display information of the first service by calling the target interface according to the path information of the first service in the consumption information. Namely, the service identifier of the first service is hidden according to the processing logic of the UI layer in the target interface.
In another optional embodiment, when the first service has the corresponding second service, after receiving the consumption information, the electronic device calls the target interface to discard the identifier display information of the first service according to the path information of the first service in the consumption information, and at this time, the identifier display information of the first service is empty. In addition, since the second service includes the first service, the identifier display information of the first service is included in the identifier display information of the second service. And when the service display information of the first service is empty, the electronic equipment reversely updates the identifier display information of each service comprising the first service according to the service tree. That is, the first service is used as a parent node, and the identifier display information of each child node is updated in a reverse direction, that is, the identifier display information of the first service included in the identifier display information of the second service is discarded.
In the embodiment of the application, after receiving the consumption information of the service identifier for the first service, the electronic device discards the identifier display information of the first service by calling the target interface, so that the identifier of the first service is not displayed any more in the first page display process, and thus the accuracy of displaying and hiding each service identifier is effectively ensured.
Moreover, by updating the identification display information of each service including the first service, the timeliness of the update of the identification display information of each service and the accuracy of the updated identification display information are effectively ensured, so that the service identification display of each service in the page where each service is located is ensured.
In an optional embodiment, the electronic device may send a notification message for the identifier presentation information to the service interface of the first service through the target interface while discarding the identifier presentation information of the first service. After receiving the notification message, the service interface of the first service may determine that the service identifier of the first service has been consumed, and at this time, the service interface of the first service may discard the identifier presentation information.
In an optional embodiment, according to the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. As shown in fig. 10, fig. 10 is a seventh flowchart illustrating a service identifier displaying method provided in the embodiment of the present application. The method comprises the following steps.
Step S1001, receiving, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services.
Step S1001 is the same as step S201.
Step S1002 receives a service identifier parameter of a service identifier for a first service through a target interface.
In this step, for each service in the target software, the user may set a service identifier parameter when the service identifier of the service is displayed according to the user's own requirements. At this time, the electronic device may receive the service identifier parameter for each service identifier through the target interface. I.e. the electronic device will receive the service identification parameter for the service identification of the first service.
The service identifier parameters include, but are not limited to, a display mode of the service identifier, a color of the service identifier, and a size of the service identifier. Here, the service identification parameter is not particularly limited.
Step S1003, when the first page where the first service is located is displayed, a target interface is called, and the service identifier of the first service is displayed in a preset area of the position where the first service is located according to the identifier display information of the first service and the service identifier parameters.
The method for displaying the service identifier of the first service according to the service identifier parameter may refer to the method for displaying the service identifier of the first service based on the identifier display information, and is not specifically described herein.
Through the step S1002 and the step S1003, when the electronic device displays the service identifier of each service, the service identifier can be displayed according to the service identifier parameter set by the user, so that flexibility and diversity of service identifier display are improved.
Based on the same inventive concept, according to the service identifier display method provided by the embodiment of the present application, the embodiment of the present application further provides a service identifier display apparatus. As shown in fig. 11, fig. 11 is a schematic structural diagram of a service identifier display apparatus according to an embodiment of the present application. The apparatus includes the following modules.
A first receiving module 1101, configured to receive, through a target interface, identifier display information sent by a service interface corresponding to a first service in target software, where the target software includes a plurality of first services;
the first display module 1102 is configured to call a target interface when displaying a first page where the first service is located, and display a service identifier of the first service in a preset area where the first service is located according to identifier display information of the first service.
Optionally, the identifier presentation information includes path information and data information of the service identifier;
the first display module 1102 includes:
the first determining submodule is used for calling a target interface when a first page where the first service is located is displayed, and determining the position where the first service is located in the first page according to the path information of the service identifier in the identifier display information of the first service;
the second determining submodule is used for determining the display mode of the service identifier of the first service according to the data information of the service identifier in the identifier display information of the first service;
and the display submodule is used for displaying the service identifier of the first service in a preset area of the position of the first service according to the display mode.
Optionally, the display mode includes one or more of red dot display, digital display, character display and pattern display;
the display submodule can be specifically used for displaying the red dot identification in a preset area of the position of the first service if the display mode is red dot display;
if the display mode is digital display, determining a target numerical value corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the digital identifier corresponding to the target numerical value in a preset area where the first service is located;
if the display mode is character display, determining a target character corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the character identifier corresponding to the target character in a preset area where the first service is located;
and if the display mode is pattern display, determining a target pattern corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the pattern identifier corresponding to the target pattern in a preset area of the position of the first service.
Optionally, the service identifier display apparatus may further include:
the second receiving module is used for receiving frequency control information aiming at the service identifier displayed on the first page through the target interface before the service identifier of the first service is displayed in a preset area of the position of the first service according to the identifier display information of the first service after the target interface is called, wherein the frequency control information comprises a first number;
the counting module is used for calling the target interface and counting the number of the services with the identification display information in the first page to obtain a second number;
the first display module 1102 may be specifically configured to, when the second number is not greater than the first number, or when the second number is greater than the first number but the first service meets a preset display condition, call the target interface, and display the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service.
Optionally, the service identifier display apparatus may further include:
the updating module is used for calling the target interface, displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service, calling the target interface if the first service has a corresponding second service, and updating the identifier display information of the second service according to the identifier display information of the first service, wherein the second service is a father node of the first service in a preset service tree of target software;
and the second display module is used for calling the target interface when displaying the second page where the second service is located, and displaying the service identifier of the second service in the preset area where the second service is located according to the updated identifier display information of the second service.
Optionally, the service identifier display apparatus may further include:
the third receiving module is used for receiving consumption information of the service identifier aiming at the first service through the target interface after the service identifier of the first service is displayed in a preset area where the first service is located according to the identifier display information of the first service after the target interface is called;
and the discarding module is used for calling the target interface, discarding the identification display information of the first service according to the consumption information, and updating the identification display information of the second service through the target interface.
Optionally, the service identifier display apparatus may further include:
the fourth receiving module is used for calling the target interface, and receiving the service identification parameters aiming at the service identification of the first service through the target interface before the service identification of the first service is displayed in the preset area of the position of the first service according to the identification display information of the first service;
the first display module 1102 is specifically configured to invoke the target interface, and display the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service and the service identifier parameter.
By the device provided by the embodiment of the application, the identification display information sent by the service interface corresponding to the first service in the target software is received through the target interface, and when the first page where the first service is located is displayed, the service identification of the first service is displayed according to the identification display information of the first service by calling the target interface. That is, the identifier display information sent by the service interface of each service is received through the target interface, so that when the page is displayed, the service identifier of each service included in the page is displayed in the page. Compared with the related technology, the display of the service identification of different services is completed by the target interface, the service interface of each service is not needed to manage the service identification, the unified management of the service identification of each service in the target software is realized, and the management complexity and the management difficulty of the service identification are reduced.
Based on the same inventive concept, according to the service identifier presentation method provided by the embodiment of the present application, the embodiment of the present application further provides an electronic device, as shown in fig. 12, including a processor 1201, a communication interface 1202, a memory 1203 and a communication bus 1204, where the processor 1201, the communication interface 1202 and the memory 1203 complete mutual communication through the communication bus 1204,
a memory 1203 for storing a computer program;
the processor 1201 is configured to implement the following steps when executing the program stored in the memory 1203:
receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, wherein the target software comprises a plurality of first services;
and calling a target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service.
According to the electronic equipment provided by the embodiment of the application, the identification display information sent by the service interface corresponding to the first service in the target software is received through the target interface, and when the first page where the first service is located is displayed, the service identification of the first service is displayed according to the identification display information of the first service by calling the target interface. That is, the identifier display information sent by the service interface of each service is received through the target interface, so that when the page is displayed, the service identifier of each service included in the page is displayed in the page. Compared with the related technology, the display of the service identification of different services is completed by the target interface, the service interface of each service is not needed to manage the service identification, the unified management of the service identification of each service in the target software is realized, and the management complexity and the management difficulty of the service identification are reduced.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Based on the same inventive concept, according to the service identifier presentation method provided in the embodiments of the present application, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the service identifier presentation method in any of the embodiments is implemented.
Based on the same inventive concept, according to the service identifier presentation method provided in the embodiments of the present application, the embodiments of the present application further provide a computer program product containing instructions, which, when running on a computer, causes the computer to execute any of the service identifier presentation methods in the embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as the apparatus, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A service identifier display method is characterized by comprising the following steps:
receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, wherein the target software comprises a plurality of first services;
and calling the target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service.
2. The method of claim 1, wherein the identifier exposure information comprises path information and data information of a service identifier;
the step of calling the target interface when the first page where the first service is located is displayed, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service, includes:
when a first page where the first service is located is displayed, calling the target interface, and determining the position of the first service in the first page according to the path information of the service identifier in the identifier display information of the first service;
determining a display mode of the service identifier of the first service according to the data information of the service identifier in the identifier display information of the first service;
and displaying the service identifier of the first service in a preset area of the position of the first service according to the display mode.
3. The method of claim 2, wherein the display mode comprises one or more of a red dot display, a number display, a text display and a pattern display;
the step of displaying the service identifier of the first service in the preset area of the position of the first service according to the display mode includes:
if the display mode is the red dot display, displaying a red dot identification in a preset area of the position where the first service is located;
if the display mode is the digital display, determining a target numerical value corresponding to the service identifier of the first service according to data information in identifier display information of the first service, and displaying the digital identifier corresponding to the target numerical value in a preset area where the first service is located;
if the display mode is the character display, determining a target character corresponding to the service identifier of the first service according to data information in the identifier display information of the first service, and displaying the character identifier corresponding to the target character in a preset area where the first service is located;
and if the display mode is the pattern display, determining a target pattern corresponding to the service identifier of the first service according to the data information in the identifier display information of the first service, and displaying the pattern identifier corresponding to the target pattern in a preset area at the position of the first service.
4. The method according to claim 1, wherein before invoking the target interface and displaying the service identifier of the first service in the preset area of the location where the first service is located according to the identifier display information of the first service, the method further comprises:
receiving, through the target interface, frequency control information of a service identifier displayed for the first page, where the frequency control information includes a first number;
calling the target interface, and counting the number of services with identification display information in the first page to obtain a second number;
the step of calling the target interface and displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service comprises the following steps:
and when the second quantity is not greater than the first quantity, or when the second quantity is greater than the first quantity but the first service meets a preset display condition, calling the target interface, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service.
5. The method according to claim 1, wherein after the calling the target interface and displaying the service identifier of the first service in the preset area of the location where the first service is located according to the identifier display information of the first service, the method further comprises:
if the first service has a corresponding second service, calling the target interface, and updating the identifier display information of the second service according to the identifier display information of the first service, wherein the second service is a father node of the first service in a preset service tree of the target software;
and calling the target interface when the second page where the second service is located is displayed, and displaying the service identifier of the second service in a preset area where the second service is located according to the updated identifier display information of the second service.
6. The method according to claim 5, wherein after the target interface is called, and the service identifier of the first service is displayed in the preset area where the first service is located according to the identifier display information of the first service, the method further comprises:
receiving consumption information of a service identifier for the first service through the target interface;
and calling the target interface, discarding the identification display information of the first service according to the consumption information, and updating the identification display information of the second service through the target interface.
7. The method according to claim 1, wherein before invoking the target interface and displaying the service identifier of the first service in a preset area of a location where the first service is located according to the identifier display information of the first service, the method further comprises:
receiving a service identification parameter of a service identification aiming at the first service through the target interface;
the step of calling the target interface and displaying the service identifier of the first service in a preset area of the position of the first service according to the identifier display information of the first service comprises the following steps:
and calling the target interface, and displaying the service identifier of the first service in a preset area where the first service is located according to the identifier display information of the first service and the service identifier parameter.
8. A service identification presentation apparatus, said apparatus comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving identification display information sent by a service interface corresponding to a first service in target software through a target interface, and the target software comprises a plurality of first services;
and the first display module calls the target interface when displaying the first page of the first service, and displays the service identifier of the first service in a preset area at the position of the first service according to the identifier display information of the first service.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN202111652607.4A 2021-12-30 2021-12-30 Service identifier display method and device, electronic equipment and storage medium Active CN114416241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111652607.4A CN114416241B (en) 2021-12-30 2021-12-30 Service identifier display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111652607.4A CN114416241B (en) 2021-12-30 2021-12-30 Service identifier display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114416241A true CN114416241A (en) 2022-04-29
CN114416241B CN114416241B (en) 2023-10-27

Family

ID=81269731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111652607.4A Active CN114416241B (en) 2021-12-30 2021-12-30 Service identifier display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114416241B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7433935B1 (en) * 2005-04-29 2008-10-07 Hewlett-Packard Development Company, L.P. Self-adapting plug-in service
CN101578577A (en) * 2007-01-07 2009-11-11 苹果公司 Application programming interfaces for gesture operations
US20150073955A1 (en) * 2013-09-12 2015-03-12 Jonathan A. Gilman Management interface for business management applications
CN105389323A (en) * 2014-08-29 2016-03-09 三星电子株式会社 Method for selecting area on web page and electronic device thereof
KR101877828B1 (en) * 2018-02-26 2018-08-08 주식회사 리앙커뮤니케이션즈 User interface integrated platform system based on artificial intelligence
CN110069738A (en) * 2019-04-26 2019-07-30 福建皮皮跳动科技有限公司 Information processing method, device, terminal device and server
US20190391826A1 (en) * 2017-01-26 2019-12-26 Just Eat Holding Limited Network method and apparatus
CN111092877A (en) * 2019-12-12 2020-05-01 北京金山云网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN113434228A (en) * 2021-06-21 2021-09-24 青岛海尔科技有限公司 Page request method and device, storage medium and electronic device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7433935B1 (en) * 2005-04-29 2008-10-07 Hewlett-Packard Development Company, L.P. Self-adapting plug-in service
CN101578577A (en) * 2007-01-07 2009-11-11 苹果公司 Application programming interfaces for gesture operations
US20150073955A1 (en) * 2013-09-12 2015-03-12 Jonathan A. Gilman Management interface for business management applications
CN105389323A (en) * 2014-08-29 2016-03-09 三星电子株式会社 Method for selecting area on web page and electronic device thereof
US20190391826A1 (en) * 2017-01-26 2019-12-26 Just Eat Holding Limited Network method and apparatus
KR101877828B1 (en) * 2018-02-26 2018-08-08 주식회사 리앙커뮤니케이션즈 User interface integrated platform system based on artificial intelligence
CN110069738A (en) * 2019-04-26 2019-07-30 福建皮皮跳动科技有限公司 Information processing method, device, terminal device and server
CN111092877A (en) * 2019-12-12 2020-05-01 北京金山云网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN111459529A (en) * 2020-05-26 2020-07-28 北京拓世寰宇网络技术有限公司 Application software updating method and device, readable medium and equipment
CN113434228A (en) * 2021-06-21 2021-09-24 青岛海尔科技有限公司 Page request method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114416241B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
US9495716B2 (en) Expanding a social network by the action of a single user
KR101541620B1 (en) Persistent personal messaging in a distributed system
US11129063B2 (en) Method, terminal and system for updating transmission paths
US20090319929A1 (en) Interface for multiple user spaces
CN104104588B (en) Instant message display methods and device
CN101321078A (en) Selective user monitoring in an online environment
CN109831532B (en) Data sharing method, device, equipment and medium
US11561675B2 (en) Method and apparatus for visualization of public welfare activities
CN110598143B (en) Method, related device and system for displaying instant communication content
CN107172196A (en) A kind of business interaction methods, devices and systems
US20130086225A1 (en) Mechanism for the contextual obscuring of digital data
KR20140126152A (en) Method and server for providing service of using music contents
US9450905B2 (en) Information sharing system, information sharing method, and information storage medium
CN106815501A (en) The application management method and device of mobile terminal
US20230120293A1 (en) Method and apparatus for visualization of public welfare activities
CN112242948A (en) Group session processing method and device, computer equipment and storage medium
KR20070014408A (en) Avatar management method and system
US10958762B2 (en) Method for communicating a status of presence of a group of users in a virtual communication space provided by a communication server on a communication network
CN114416241B (en) Service identifier display method and device, electronic equipment and storage medium
CN101777993A (en) Topological graph construction method and system
US20080052389A1 (en) Method and apparatus for inferring the busy state of an instant messaging user
JP6670079B2 (en) Server, communication providing method, and computer program
CN116016420A (en) Task list sharing method, device, equipment and medium
CN113064531B (en) Virtual resource interaction method and device, storage medium and electronic equipment
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant