CN114416241B - Service identifier display method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114416241B
CN114416241B CN202111652607.4A CN202111652607A CN114416241B CN 114416241 B CN114416241 B CN 114416241B CN 202111652607 A CN202111652607 A CN 202111652607A CN 114416241 B CN114416241 B CN 114416241B
Authority
CN
China
Prior art keywords
service
identifier
display
identification
target
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.)
Active
Application number
CN202111652607.4A
Other languages
Chinese (zh)
Other versions
CN114416241A (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

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

Abstract

The embodiment of the application provides a service identifier display method, a device, electronic equipment and a storage medium, wherein 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 when the first page where the first service is located is displayed, calling a target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the identification display information of the first service. By the technical scheme provided by the embodiment of the application, the display of the service identifiers of different services is completed by the target interface, the service interfaces of all the services are not required to respectively manage the service identifiers, the unified management of the service identifiers of all the services in the target software is realized, and the management complexity and the management difficulty of the service identifiers are reduced.

Description

Service 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 service identifier display method, a device, an electronic device, and a storage medium.
Background
The service identification refers to identification information which guides a user to select and view a service in target software. The service identifier may be represented in various forms, such as a red dot identifier, a numerical identifier, a text identifier, and a pattern identifier.
Currently, when each page of the target software is displayed, a service interface of each service included in the page manages a service identifier of the service. The service interfaces of the services are managed by displaying and hiding the service identifiers corresponding to each service, so that the service identifiers of the services in the target software are not uniformly managed, and the management complexity and management difficulty of the service identifiers are greatly increased.
Disclosure of Invention
The embodiment of the application aims to provide a service identifier display method, a device, electronic equipment and a storage medium, so as to realize unified management of service identifiers of all services in target software and reduce the management complexity and management difficulty of the service identifiers. The specific technical scheme is as follows:
in a first aspect of the present application, there is provided a service identifier displaying method, 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 when a first page where the first service is located is displayed, calling the target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the identification display information of the first service.
Optionally, the identifier display information includes path information and data information of the service identifier;
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 a preset area where the first service is located according to the identifier display information of the first service, including:
when a first page where the first service is located is displayed, calling the target interface, and determining the location 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 identification of the first service in a preset area where the first service is located according to the display mode.
Optionally, the display mode includes one or more of red dot display, digital display, text display and pattern display;
the step of displaying the service identifier of the first service in the preset area where the first service is located according to the display mode includes:
if the display mode is the red point display, displaying a red point mark in a preset area of the position of the first service;
if the display mode is the 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 a digital identifier corresponding to the target value in a preset area where the first service is located;
if the display mode is the 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 the text identifier corresponding to the target text in a preset area where the first service is located;
if the display mode is the pattern display, determining a target pattern corresponding to the service identification of the first service according to the data information in the identification display information of the first service, and displaying the pattern identification corresponding to the target pattern in a preset area where the first service is located.
Optionally, before invoking 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:
receiving frequency control information of service identifiers displayed on the first page through the target interface, wherein the frequency control information comprises a first quantity;
invoking 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 where the first service is located according to the identifier display information of the first service comprises the following steps:
and when the second number is not greater than the first number or 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 identification of the first service in a preset area where the first service is located according to the identification display information of the first service.
Optionally, 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 includes:
If the first service has a corresponding second service, calling the target interface, and updating the identification display information of the second service according to the identification 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 when a second page where the second service is located is displayed, calling the target interface, and displaying the service identification of the second service in a preset area where the second service is located according to the updated identification 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 where the first service is located according to the identifier display information of the first service, the method further includes:
receiving consumption information of a service identifier of 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 invoking 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:
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 where the first service is located according to the identifier display information of the first service comprises the following steps:
and calling the target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the service identification parameter and the identification display information of the first service.
In a second aspect of the present application, there is also provided a service identifier display device, the device including:
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, wherein the target software comprises a plurality of first services;
the first display module is used for calling the target interface when displaying a first page where the first service is located, and displaying the service identification of the first service in a preset area where the first service is located according to the identification 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 includes:
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 identification in the identification display information of the first service;
the second determining submodule is used for 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 the display sub-module is used for displaying the service identifier of the first service in a preset area where the first service is located according to the display mode.
Optionally, the display mode includes one or more of red dot display, digital display, text display and pattern display;
the display sub-module is specifically configured to display a red dot identifier in a preset area where the first service is located if the display mode is that the red dot is displayed;
if the display mode is the 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 a digital identifier corresponding to the target value in a preset area where the first service is located;
If the display mode is the 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 the text identifier corresponding to the target text in a preset area where the first service is located;
if the display mode is the pattern display, determining a target pattern corresponding to the service identification of the first service according to the data information in the identification display information of the first service, and displaying the pattern identification corresponding to the target pattern in a preset area where the first service is located.
Optionally, the apparatus further includes:
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 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 when the target interface is called;
the statistics 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 call the target interface 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, 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 apparatus further includes:
the updating module is used for calling the target interface, after 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, if the first service has a corresponding second service, 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 a second page where the second service is located, and displaying the service identification of the second service in a preset area where the second service is located according to the updated identification display information of the second service.
Optionally, the apparatus further includes:
the third receiving module is used for receiving consumption information of the service identifier of 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 apparatus further includes:
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 for a service identifier of 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, display, according to the identifier display information of the first service, a service identifier of the first service in a preset area where the first service is located according to 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 service identifier display method steps when executing the program stored in the memory.
In a fourth aspect of the embodiments of the present application, there is further provided a computer readable storage medium, in which a computer program is stored, the computer program implementing any one of the above-mentioned service identifier presentation method steps when executed by a processor.
In a fifth aspect of the present application there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the above-described service identification 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. The target interface is used for receiving the identification display information sent by the service interface of each service, so that the service identification of each service included in the page is displayed in the page when the page is displayed. Compared with the related art, the display of the service identifiers of different services is completed by the target interface, the service interfaces of the services are not required to manage the service identifiers respectively, unified management of the service identifiers of the services in the target software is realized, and the management complexity and the management difficulty of the service identifiers 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 business in a piece of video software;
fig. 2 is a schematic flow chart of a first method for displaying service identifiers according to an embodiment of the present application;
fig. 3 is a second flowchart of a service identifier display method according to an embodiment of the present application;
fig. 4 is a third flow chart of a service identifier display 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 of a service identifier display method according to an embodiment of the present application;
fig. 7 is a fifth flowchart of a service identifier display 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 display method according to an embodiment of the present application;
fig. 10 is a seventh flowchart of a service identifier display method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a service identifier display device 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 accompanying 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 business in a certain video software.
In the page 101 shown in fig. 1, the area 106 shows various services included in the video software, namely, a home page service, a follow-up video service, a member service, a discovery service, and a my service. The area 102-area 105 shown in fig. 1 illustrates the sub-businesses that my business includes. Such as viewing history services, collection and subscription 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 displays or hides the service identifier corresponding to the respective service. For example, the display and hiding of the digital identifier with the value 31 in the upper right corner of my business in the page 101 is managed by the business interface corresponding to my business, and the display and hiding of the text identifier of the free-to-get-red packet and the pattern identifier of the red packet pattern after the business of the creation center is managed by the business interface corresponding to the creation center.
Therefore, in the related art, the display or the hiding of the service identifier of each service is managed by the corresponding service interface, so that the service identifier of each service in the target software is not uniformly managed, and the management complexity and the management difficulty of the service identifier are increased.
In order to solve the problems in the related art, the embodiment of the application provides a service identifier display method. The method is applied to electronic equipment such as mobile phone flat plates and the like. The electronic equipment comprises a target interface corresponding to a service identification software development kit (Software Development Kit, SDK), wherein the target interface corresponding to the service identification SDK is used for uniformly managing service identifications of all services in target software. Here, the electronic device is not particularly limited.
Fig. 2 is a schematic flow chart of a first method for displaying service identifiers according to an embodiment of the present application. The method comprises the following steps.
Step S201, receiving, through a target interface, identification 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 a first page where a first service is located is displayed, a target interface is called, and a 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.
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. The target interface is used for receiving the identification display information sent by the service interface of each service, so that the service identification of each service included in the page is displayed in the page when the page is displayed. Compared with the related art, the display of the service identifiers of different services is completed by the target interface, the service interfaces of the services are not required to manage the service identifiers respectively, unified management of the service identifiers of the services in the target software is realized, and the management complexity and the management difficulty of the service identifiers are reduced.
The following describes embodiments of the present application by way of specific examples. For ease of understanding, the following description uses the target interface as an execution body, and is not meant to be limiting.
For the step S201, that is, 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 alternative embodiment, the electronic device may send the information obtaining request to the 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 identification display information of the service and return the acquired identification 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 can be sent to a service interface corresponding to each service in the target software, or the information acquisition request can 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 in real time whether the identifier display information of the service is updated. When the identifier display information of the service is updated, the service interface of the service can actively send the identifier display information (i.e. updated identifier display information) at the current moment. At this time, the electronic device displays the received identification of the service. The first service is marked as a service for identifying the update of the 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 digital identifier 31 in the area 102. At this time, the service interface of the message service sends the monitored identification display information of the message service to change, for example, the number of messages in the identification display information is updated to 32. And the updated identification display information of the service interface of the message service is sent to the electronic equipment.
In the 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 easy understanding, the embodiment of the present application is only illustrated by taking one first service as an example, and is not limited in any way.
In an optional embodiment, in order to facilitate the electronic device to display the service identifier according to the identifier display information of each first service in the later period, 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, and the like. Here, the target software is not particularly limited. In the embodiment of the present application, only the target software is taken as the video software for illustration, and the present application is not limited in any way.
For the step S202, when the first page where the first service is located is displayed, the target interface is called, and according to the identifier display information of the first service, the service identifier of the first service is displayed in the preset area where the first service is located.
In this step, when the electronic device determines to display the first page including the first service, the electronic device may call the target structure, and display the service identifier of the first service in the first page according to the identifier display information of the first service. That is, the service identifier of the first service is displayed in a preset area where the first service is located in the first page.
In the embodiment of the application, the target Interface is integrated with a service identifier SDK, and the service identifier SDK can be used for processing logic of data calculation of service identifiers and User Interface (UI) display, disappearance, update and the like. That is, the target interface has service identifiers corresponding to two levels of processing logic, namely, data level processing logic and UI level processing logic. The processing logic user of the data layer determines whether the service identifier meets preset display conditions and display data corresponding to the service identifier. The processing logic at the UI level is used to expose/hide the service identity at the user interface.
The position of the first service is the relative position of the first service in the first page. According to the user setting condition or different page typesetting, the position of each service in the first page is 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 different service types and the different sizes of the positions of the services. The page 101 shown in fig. 1 is still 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. The preset area of the positions of the creation center service and the wallet service is the right area of the positions of the respective service icons. Here, the preset area where the first service is located is not specifically limited.
In the embodiment of the application, the first page may be a default page displayed in a display screen of the electronic device when the target software is started. And the method can also be a page displayed in a display screen after the page is switched in the running process of the target software. Here, the above-described first page is not particularly limited, and a method of determining to display the first page is not particularly described.
The service identifier can be one or more of red dot identifier, digital identifier, text identifier and pattern identifier
In an alternative embodiment, the identifier presentation information may include path information and data information of a service identifier.
The data information of the service identifier includes, but is not limited to, identifier (Identity, ID) of the service identifier, display mode/discarding mode of the service identifier, duration range of the service identifier, display data of the service identifier, and the like. Wherein, the display data of the service identification comprises words, 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 will be described by taking, as an example, only the presentation of the service identifier of one service on the first page (i.e., the above first service). The method for displaying the service identifiers of the other services in the first page can refer to the method for displaying the service identifiers of the first service, and the displaying of the service identifiers of the other services in the first page is not specifically described.
In an alternative embodiment, based on the method shown in fig. 2, the embodiment of the application further provides a service identifier display method. Fig. 3 is a schematic diagram of a second flow chart of a service identifier displaying method according to an embodiment of the present application. The method comprises the following steps.
Step S301, receiving, through a target interface, identification 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 a first page where the first service is located is displayed, a target interface is called, and the location of the first service is determined in the first page according to the path information of the service identification in the identification display information of the first service.
In the 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 above 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, which 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, which is denoted as block=top navigation, and the position where the message service is located is the position where the message icon is located, which is denoted as place=message icon. Thus, in page 101, the path information of the message traffic can be expressed as: my-top navigation-message icon.
When a first page where the first service is located is displayed, the electronic device can determine the position of the first service in the first page according to the processing logic of the data layer in the target interface and the path information of the service identifier included in the identifier display information of the first service by calling the target interface.
The path information of the message service is still as follows: my-top navigation-message icon is illustrated as an example. When the electronic device displays the page 101 corresponding to the my service shown in fig. 1, the location of the message service in the page 101 may be determined to be the location of the message icon according to the location of the message service (i.e., the message icon) in the path information of the message service.
Step S303, according to the data information of the service identification in the identification display information of the first service, determining the display mode of the service identification of the first service.
In an optional embodiment, when the data information included in the identifier display information of the first service includes a display manner of a service identifier, the electronic device may determine, by calling the target interface, the display manner as a display manner of the service identifier of the first service according to processing logic of a 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 a display manner of a service identifier, the electronic device may determine, by calling the target interface, a display manner of the service identifier of the first service according to processing logic of a data plane in the target interface and 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 identification display information of the first service is text, the electronic device may determine that the display mode of the service identification of the first service is text display.
For another example, when the display data in the data information included in the identification display information of the first service is a pattern, the electronic device may determine that the display manner of the service identification of the first service is pattern display.
In the embodiment of the application, the display mode of the service mark can be red dot display, digital display, text display and pattern display. The pattern presentation may include a static pattern presentation and a dynamic pattern presentation, among others. In addition, the display mode of the service identifier may be a combination of multiple display modes, for example, the display mode of the service identifier of a certain service may be a combination of red dot display and text display. Here, the manner of displaying the service identifier is not particularly limited.
Step S304, according to the display mode, displaying the service identification of the first service in the preset area where the first service is located.
In this step, the electronic device invokes the target interface, and may display, according to processing logic of a UI layer in the target interface, a service identifier View (View) of the first service in a preset area where the first service of the first page is located according to a service identifier display manner of the first service. I.e. the service identity of the first service is presented.
Through the steps S302-S304, the electronic device may accurately display, through the target interface, 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 an alternative embodiment, based on the method shown in fig. 3, the embodiment of the application further provides a service identifier display method. Fig. 4 is a schematic diagram of a third flow chart of a service identifier displaying method according to an embodiment of the present application, as shown in fig. 4. The method refines the above step S304 into the following steps, step S3041-step S3044.
Step S3041, if the display mode is red dot display, displaying the red dot mark in a preset area of the position of the first service.
In this step, when the display manner 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 the preset area where the first service is located through the target interface.
For ease of understanding, the description of FIG. 1 above is presented as an example. When the electronic device determines that the display mode corresponding to the service identifier of the viewing 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 area 105 shown in the page 101 through the target interface. At this time, the user can determine that there is a newly added history viewing video in the viewing history based on 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 manner 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 the data information in the identifier display information of the first service. And determining a target value corresponding to the service identifier of the first service required to be displayed in the first page. At this time, the electronic device may display, through the target interface, a digital identifier corresponding to the target value in a preset area where the first service is located.
In an optional embodiment, when the first service does not have a sub-service, the display data of the service identifier in the identifier display information of the first service may be a 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 is given with reference to fig. 5. Fig. 5 is a page corresponding to the message service shown in fig. 1.
The page 501 shown in fig. 5 includes a plurality of services, that is, a plurality of sub-services, such as comment/reply services shown in fig. 2, a new attention service, a received praise service, and the like, included in the message service shown in fig. 1.
In the page 501 shown in fig. 5, none of the member service, the platform notification service, and the activity assistant service include sub-services. When the server of the target software pushes a new notification message, namely, 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 display data, that the target value corresponding to the platform notification service is 1. The electronic device may display a digital red dot on the right side of the location where the platform notification service is located, where the digital red dot has a value of 1. The digital red dots are service identifiers 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 value corresponding to each sub-service. At this time, the target value may be determined for 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 value corresponding to a target sub-service in the plurality of sub-services included in the first service. The target sub-service may be any sub-service with indication display information in a plurality of sub-services included in the first service.
For ease of understanding, the description is given by way of example with reference to fig. 1 and 5. Since the message service in the page 101 shown in fig. 1 includes all the 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 the target value corresponding to the message service by using the value of the display data corresponding to any service having the display information in the page 501, so as to display the digital identifier corresponding to the target value in the page 101.
For example, when the display data in the identification display information of the service of interest is newly added to the page 501 shown in fig. 5 by 10, the electronic device may determine that the target value corresponding to the message service shown in fig. 1 is 10. The electronic device may show a numerical red dot with 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 display data in the identifier display information of the plurality of 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 is given by way of example only with reference to fig. 1 and 5. Now, assume that the display data in the identification display information of the comment/reply service in the page 501 shown in fig. 5 is 10, the display data in the identification display information of the newly added attention service is 15, and the display data in the identification display information of the received 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 show a numerical red dot with a value of 45 in the upper right corner of the message icon shown in fig. 1.
In the embodiment of the present application, the determination manner 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 the text identifier corresponding to the target text in a preset area where the first service is located.
In this step, when the display manner 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 display data included in the data information in the display data of the identifier of the first service. And determining the target text corresponding to the service identifier of the first service required to be displayed on the first page. At this time, the electronic device may display, through the target interface, a text identifier corresponding to the target text in a preset area where the first service is located.
In an alternative embodiment, when determining the target text corresponding to the service identifier of the first service, the target text may be a keyword/title or the like in the display data included in the identifier display information of the first service. For example, the wallet business shown in fig. 1 corresponds to a member delivering a 3 month guest (Very Important Person, VIP), and a free red packet corresponding to a creation center business.
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 display data included in the identifier display information of the first service.
For ease of understanding, the platform notification service illustrated in fig. 5 will be described as an example. Now assume that the server of the target software pushes a notification message to the electronic device. At this time, the display data included in the identification display information of the platform notification service is the notification message. The electronic device may determine the two characters of the pre-set generic of the notification message as the target characters corresponding to the service identifier of the platform notification service.
The first preset number may be set according to the number of characters that can be accommodated in a preset area where the first service is located, where the first preset number is not specifically limited.
In the embodiment of the present application, the determination manner 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 manner 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, the target pattern corresponding to the service identifier of the first service according to display data included in the data information in the display data of the identifier of the first service. At this time, the electronic device may display, through the target interface, a pattern identifier corresponding to the target pattern in a preset area where the first service is located.
In an optional embodiment, the target pattern corresponding to the service identifier of the first service may be a pattern included in the display data.
For ease of understanding, the description is provided with reference to fig. 5. Now, suppose that 20 persons pay attention to the user logged in by the area 103 in the page 101 shown in fig. 1, at this time, the display data included in the identification display information of the newly-added attention service may include the user ID and the user avatar of the newly-added 20 persons. At this time, the electronic device may determine the second preset number of user portraits in the presentation data as the target pattern corresponding to the service identifier of the newly added service of interest.
The second preset number of user head portraits may be user head portraits corresponding to a second preset number of users whose attention time is closest to the current time, among the 20 user head portraits. The second preset number may be set according to the number of user photos that can be accommodated in the preset area where the first service is located. Here, the second preset 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 manner of determining the target pattern corresponding to the service identifier of the first service is not particularly limited.
The steps S3041 to S3044 are performed according to the display manner included in the identification display information of the first service, and the steps S3041 to S3044 are not particularly limited.
In the above steps S3041 to S3044, the display modes of red dot display, digital display, text display and pattern display are described respectively. In addition, in the application process, a certain service can adopt a mode of combining multiple display modes to display the service identifier of the service. The display mode of the business identifier corresponding to the creation center business and the wallet business shown in fig. 1 is obtained by combining text display and pattern display. Here, a method for displaying the service identifier by combining multiple display modes is not specifically described.
Through the steps S3041-S3044, the electronic equipment can respectively adopt different display modes aiming at different services through the target interfaces, so that service identifiers of the services are displayed, the diversity of the display modes of the service identifiers is effectively improved, and the diversity of the service identifiers is improved.
In an alternative embodiment, based on the method shown in fig. 2, the embodiment of the application further provides a service identifier display method. Fig. 6 is a schematic diagram of a fourth flow chart of a service identifier displaying method according to an embodiment of the present application. The method comprises the following steps.
Step S601, receiving, by a target interface, identification 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.
In step S602, frequency control information of a service identifier displayed for a first page is received through a target interface, 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 identities that the page exhibits, i.e. the first number. After the user sets the number of the service identifiers displayed in the first page, the electronic device receives the frequency control information, triggered by the user, aiming at the first page through the target interface. The frequency control information comprises a first quantity set by a user for the first page, namely the maximum quantity of service identifiers displayed by the first page.
The first number may be set according to a user's requirement, and is not particularly limited herein.
Step S603, calling a target interface, and counting the number of services with identification 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 with identification display information in the first page, so as to obtain a second number.
In an optional embodiment, the electronic device may obtain the second number by counting, through the target interface, the number of the identifier display information of the first page in the path information according to the path information of the service identifier in the identifier display information stored in the target interface.
In 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 a preset display condition, the target interface is called, and according to the identifier display information of the first service, the service identifier of the first service is displayed in a preset area where the first service is located.
In the embodiment of the present application, after the first number and the second number are obtained 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 determine whether the first service meets the preset display condition when the second number is greater than the first number, which may specifically include the following cases.
In case one, the second number is smaller than or equal to the first number.
And in the second case, the second number is larger than the first number, but the first service meets the preset display condition.
And in the third case, the second number is larger than the first number, but the first service does not meet the preset display condition.
In an alternative embodiment, when the first case or the second case occurs, the electronic device may determine that the service identifier of the first service may be displayed in the first page. At this time, the electronic device may call the target interface, and display, according to the identifier display information of the first service, the service identifier of the first service in a preset area where the first service is located. The method for displaying the service identifier of the first service may be referred to the above description, and will not be described herein.
In another alternative embodiment, when the third case is the 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 the other first number of services are displayed on the first page, and the service identifiers of the first service are not displayed.
In the embodiment of the application, the preset display condition can be set according to the preset priority of each service in the first page or the storage duration of the identification display information corresponding to each service.
In an alternative embodiment, the preset display condition may be expressed as: the first number of services with the highest priority is preset.
In another alternative embodiment, the preset display condition may be further expressed as: and storing the first number of the services corresponding to the identification display information with the shortest time.
In the embodiment of the present application, the preset display conditions are not specifically described.
Compared with the related art, each service interface independently manages the service identifiers thereof, and the electronic equipment can effectively ensure that the number of the service identifiers 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 identifiers is avoided, the management of the service identifiers 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 alternative embodiment, based on the method shown in fig. 2, the embodiment of the application further provides a service identifier display method. Fig. 7 is a schematic diagram of a fifth flow chart of a service identifier displaying method according to an embodiment of the present application. The method comprises the following steps.
Step S701, receiving, by a target interface, identification 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 a first page where a first service is located is displayed, a target interface is called, and a 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.
The steps S701 to S702 are the same as the steps S201 to S202.
In step S703, if the first service has a corresponding second service, the target interface is invoked, and the identifier display information of the second service is updated according to the identifier display information of the first service, where the second service is a parent node of the first service in the preset service tree of the target software.
In the embodiment of the application, the electronic device can pre-construct the preset service tree of the target software according to the first association relation between each page and each service in the target software and the second association 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 is given by way of example with reference to fig. 1, 5 and 8. 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. Wherein node 801 is a root node, node 802-node 804 is a leaf node of node 801, node 805 is a leaf node of node 802, node 806 and node 807 are leaf nodes of node 803, and node 808 is a leaf node of node 804.
Let us now assume that node 801 is a 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 in the services included in the page 501 shown in fig. 5.
In the embodiment of the application, each service node in the preset service tree of the target software can be added and deleted according to the requirement of the user. Here, the service nodes in the preset service tree are not particularly limited.
In the preset service tree of the target software, when a father node exists in the first service in the first page, that is, when the first service is a child service of the second service in the second page, the electronic device may call the target interface after receiving the identifier display information of the first service, update the identifier display information of the second service based on the identifier display information of the first service, and obtain updated identifier display information of the second service.
The step S703 may be performed after the step S702, may be performed before the step S702, and may be performed simultaneously with the step S702, and the order of performing 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 identification of the second service is displayed in the preset area where the second service is located according to the updated identification display information of the second service.
For easy understanding, the first service 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. The user now selects to view the parent node of the comment/reply service, i.e., the page 101 on which the message service is located, by clicking on the back button 503 shown in fig. 5. If the identification display information of the message service in the page 101 is determined according to the identification display information of the comment/reply service shown in fig. 5, the service identification of the message service in the page 101 shown in fig. 1 is a digital red dot with a value of 20.
In the embodiment of the present application, through the above steps S703 to S704, the electronic device may update the identifier display information corresponding to the parent node (i.e., the above second service) according to the identifier display information of the first service, which ensures the accuracy of the identifier display information of each service displayed in the second page when the second page where the second service is located is displayed.
In an alternative embodiment, for the preset service tree of the target software, the electronic device may receive a deletion instruction for the first target node in the preset service tree. And the electronic equipment deletes the first target node and all child nodes of the first target node from the preset service tree after receiving the deleting instruction.
For ease of understanding, the preset service tree shown in fig. 8 is taken as an example for illustration. Now assume that the electronic device receives a delete instruction for node 804, at which point the electronic device may delete node 804 from the preset service tree, as well as the leaf nodes of node 804 (i.e., node 808).
In an alternative embodiment, the electronic device may receive an add instruction for the second target node for the preset service tree of the target software. 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 integral link path related to the second target node included in the adding instruction.
For ease of understanding, the preset service tree shown in fig. 8 is still used as an example. Now assume that node 803, node 806, and node 807 are not included in the preset service tree.
At some point, the electronic device receives an add instruction for node 803. The add instruction includes two overall link paths, namely path 1: node 801-node 803-node 806, path 2: node 801-node 803-node 807. At this time, the electronic device may add nodes 803, 806, and 807 to the preset service tree according to the paths 1 and 2, to obtain the preset service tree as shown in fig. 8.
In an alternative embodiment, according to the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. Fig. 9 is a schematic diagram of a sixth flow chart of a service identifier displaying method according to an embodiment of the present application. The method comprises the following steps.
Step S901, receiving, by a target interface, identification 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 a first page where a first service is located is displayed, a target interface is called, and a 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.
The steps S901 to S902 are the same as the steps S201 to S202.
In step S903, the consumption information of the service identifier for the first service is received through the target interface.
In the embodiment of the application, in the process of displaying the first page, if a service identifier is displayed in a preset area where the service is located for each service in the first page, when a user executes a preset operation on the service, the electronic device receives consumption information of the service identifier for the service through the target interface.
When the user executes the preset operation for the first service in the first page, the electronic device receives consumption information of the service identifier for the first service.
The consumption information may include path information of the first service, where the path information may be expressed as: page-block-place.
In an optional embodiment, the foregoing preset operation may be a click operation performed by the user in an effective area where the first service is located.
For example, the user performs a click operation on the viewing history service in the page 101 shown in fig. 1, and at this time, the electronic device receives consumption information of the service identifier for the viewing history service.
In another optional embodiment, the foregoing preset operation may be that the user performs a click operation on an effective area where the first service is located, so that the user jumps to a page corresponding to the first service, and the display time period of the page is longer than a preset time period.
For example, the user performs a clicking operation on the 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 time of the page is longer than the preset time, the electronic device receives consumption information of the service identifier for the message service.
In still another alternative embodiment, the preset operation may be that the user clicks a preset button in 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 path information corresponding to each service in the page 501 shown in fig. 5.
Step S904, a target interface is called, the identification display information of the first service is discarded according to the consumption information, and the identification 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. I.e. hiding the service identity of the first service according to the processing logic of the UI level in the target interface.
In another optional embodiment, when the first service has a corresponding second service, after receiving the consumption information, the electronic device invokes 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, where the identifier display information of the first service is empty. In addition, since the first service is included in the second service, the identification display information of the first service is included in the identification display information of the second service. And when the service display information of the first service is empty, the electronic equipment reversely updates the identification display information of each service comprising the first service according to the service tree. Namely, the first service is taken as a father node, and the identification display information of each child node is reversely updated, namely, the identification display information of the first service included in the identification display information of the second service is discarded.
In the embodiment of the application, after the electronic equipment receives the consumption information of the service identifier aiming at the first service, the identifier of the first service is not displayed any more in the first page display process by calling the target interface to discard the identifier display information of the first service, so that the accuracy of displaying and hiding the identifiers of the services is effectively ensured.
Furthermore, by updating the identification display information of each service including the first service, the timeliness of updating the identification display information of each service and the accuracy of the updated identification display information are effectively ensured, so that the guarantee is provided for the service identification display of each service in the page where each service is located.
In an optional embodiment, the electronic device may send, while discarding the identifier display information of the first service, a notification message for the identifier display information to the service interface of the first service through the target interface. 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 display information.
In an alternative embodiment, according to the method shown in fig. 2, an embodiment of the present application further provides a service identifier display method. Fig. 10 is a schematic diagram of a seventh flow chart of a service identifier displaying method according to an embodiment of the present application. The method comprises the following steps.
In step S1001, identification display information sent by a service interface corresponding to a first service in target software is received through a target interface, where the target software includes a plurality of first services.
Step S1001 is the same as step S201.
Step S1002, receiving, through a target interface, a service identification parameter of a service identification for a first service.
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 own requirement. At this time, the electronic device may receive the service identification parameter for each service identification through the above-mentioned 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, the target interface is called, and according to the identifier display information of the first service, the service identifier of the first service is displayed in the preset area where the first service is located according to the service identifier parameter.
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, which is not described herein in detail.
Through the step S1002 and the step S1003, when the electronic device displays the service identifier of each service, the electronic device can display the service identifier 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, the embodiment of the application also provides a service identifier display device according to the service identifier display method provided by the embodiment of the application. Fig. 11 is a schematic structural diagram of a service identifier display device according to an embodiment of the present application, as shown in fig. 11. The device comprises the following modules.
The first receiving module 1101 is configured to receive, through a target interface, identification 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 the target interface when displaying the first page where the first service is located, 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 identifier display 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 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 identification in the identification display information of the first service;
the second determining submodule is used for 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 the display sub-module is used for displaying the service identifier of the first service in a preset area where the first service is located according to a display mode.
Optionally, the display mode includes one or more of red dot display, digital display, text display and pattern display;
the display sub-module can be specifically used for displaying the red dot mark in a preset area where the first service is located if the display mode is red dot display;
if the display mode is digital display, determining a target value corresponding to the service identification of the first service according to the data information in the identification display information of the first service, and displaying the digital identification corresponding to the target 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 identification of the first service according to the data information in the identification display information of the first service, and displaying the character identification corresponding to the target character in a preset area where the first service is located;
If the display mode is pattern display, determining a target pattern corresponding to the service identification of the first service according to the data information in the identification display information of the first service, and displaying the pattern identification corresponding to the target pattern in a preset area of the position of the first service.
Optionally, the service identifier display device may further include:
the second receiving module is used for receiving the frequency control information aiming at the service identifier displayed on the first page through the target interface before displaying the service identifier of the first service in the preset area where the first service is positioned according to the identifier display information of the first service when the target interface is called;
the statistics 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 call the target interface 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, 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 device may further include:
the updating module is used for calling the target interface after 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, and if the first service has a corresponding second service, 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 the preset service tree of the target software;
the second display module is used for calling the target interface when displaying a second page where the second service is located, and displaying the service identification of the second service in a preset area where the second service is located according to the updated identification display information of the second service.
Optionally, the service identifier display device may further include:
the third receiving module is used for receiving consumption information of the service identifier of 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;
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 device may further include:
a fourth receiving module, configured to invoke a target interface, and receive, through the target interface, a service identifier parameter for a service identifier of a first service before displaying the 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;
the first display module 1102 is specifically configured to invoke the target interface, display, according to the identifier display information of the first service, a service identifier of the first service in a preset area where the first service is located according to the service identifier parameter.
According to the device provided by the embodiment of the application, 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. The target interface is used for receiving the identification display information sent by the service interface of each service, so that the service identification of each service included in the page is displayed in the page when the page is displayed. Compared with the related art, the display of the service identifiers of different services is completed by the target interface, the service interfaces of the services are not required to manage the service identifiers respectively, unified management of the service identifiers of the services in the target software is realized, and the management complexity and the management difficulty of the service identifiers are reduced.
Based on the same inventive concept, according to the service identifier displaying method provided by the above 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 communication with each other through the communication bus 1204,
a memory 1203 for storing a computer program;
the processor 1201, when executing the program stored in the memory 1203, performs 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 when the first page where the first service is located is displayed, calling a target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the identification 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. The target interface is used for receiving the identification display information sent by the service interface of each service, so that the service identification of each service included in the page is displayed in the page when the page is displayed. Compared with the related art, the display of the service identifiers of different services is completed by the target interface, the service interfaces of the services are not required to manage the service identifiers respectively, unified management of the service identifiers of the services in the target software is realized, and the management complexity and the management difficulty of the service identifiers are reduced.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Based on the same inventive concept, according to the service identifier display method provided by the above embodiment of the present application, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the service identifier display method in any one of the above embodiments is implemented.
Based on the same inventive concept, according to the service identifier display method provided by the above embodiment of the present application, the embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the service identifier display method described in any one of the above embodiments.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments such as apparatus, the description is relatively simple as it is substantially similar to the method embodiments, as relevant points are found in the partial description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (9)

1. A method for displaying service identifiers, the method comprising:
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;
when a first page where the first service is located is displayed, calling the target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the identification display information of the first service;
the identification display information comprises path information and data information of service identification;
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 a preset area where the first service is located according to the identifier display information of the first service, including:
when a first page where the first service is located is displayed, calling the target interface, and determining the location 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 identification of the first service in a preset area where the first service is located according to the display mode.
2. The method of claim 1, wherein the display means comprises one or more of red dot display, digital display, text display, and pattern display;
the step of displaying the service identifier of the first service in the preset area where the first service is located according to the display mode includes:
if the display mode is the red point display, displaying a red point mark in a preset area of the position of the first service;
if the display mode is the 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 a digital identifier corresponding to the target value in a preset area where the first service is located;
if the display mode is the 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 the text identifier corresponding to the target text in a preset area where the first service is located;
If the display mode is the pattern display, determining a target pattern corresponding to the service identification of the first service according to the data information in the identification display information of the first service, and displaying the pattern identification corresponding to the target pattern in a preset area where the first service is located.
3. The method of claim 1, wherein before invoking the target interface to 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, further comprising:
receiving frequency control information of service identifiers displayed on the first page through the target interface, wherein the frequency control information comprises a first quantity;
invoking 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 where the first service is located according to the identifier display information of the first service comprises the following steps:
and when the second number is not greater than the first number or 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 identification of the first service in a preset area where the first service is located according to the identification display information of the first service.
4. The method of claim 1, wherein after invoking the target interface to 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, further comprising:
if the first service has a corresponding second service, calling the target interface, and updating the identification display information of the second service according to the identification 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 when a second page where the second service is located is displayed, calling the target interface, and displaying the service identification of the second service in a preset area where the second service is located according to the updated identification display information of the second service.
5. The method of claim 4, wherein after invoking the target interface to 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 further comprises:
receiving consumption information of a service identifier of 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.
6. The method of claim 1, wherein before invoking the target interface to 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 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 where the first service is located according to the identifier display information of the first service comprises the following steps:
and calling the target interface, and displaying the service identification of the first service in a preset area where the first service is located according to the service identification parameter and the identification display information of the first service.
7. A service identification display device, the device comprising:
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, wherein the target software comprises a plurality of first services;
The first display module is used for calling the target interface when displaying a first page where the first service is located, and displaying the service identification of the first service in a preset area where the first service is located according to the identification display information of the first service;
the identification display information comprises path information and data information of service identification;
the first display module includes:
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 identification in the identification display information of the first service;
the second determining submodule is used for 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 the display sub-module is used for displaying the service identifier of the first service in a preset area where the first service is located according to the display mode.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-6 when executing a program stored on a memory.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
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 CN114416241A (en) 2022-04-29
CN114416241B true 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 (9)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150073955A1 (en) * 2013-09-12 2015-03-12 Jonathan A. Gilman Management interface for business management applications
GB201701333D0 (en) * 2017-01-26 2017-03-15 Just Eat Holding Ltd Network method and apparatus

Patent Citations (9)

* 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
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
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
CN114416241A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US8352546B1 (en) Contextual and location awareness for device interaction
US9087363B2 (en) Methods, systems, and computer readable media for managing multiple personas within end user applications
US11582052B2 (en) Method, system, and non-transitory computer readable record medium for managing messages based on context
US20110184792A1 (en) Social network rewards
CN111814089B (en) Page rendering method and device, rendering server and storage medium
US10949788B2 (en) Systems and methods for social influence based loyalty and customer experience management in mobile communication networks
US10158730B2 (en) Context based communication management
US11561675B2 (en) Method and apparatus for visualization of public welfare activities
CN111427484A (en) Unread session processing method and device
CN110138848A (en) A kind of release information method for pushing and equipment
CN110351111A (en) A kind of subscription processing method, network node and customer data base
CN106815501A (en) The application management method and device of mobile terminal
US9450905B2 (en) Information sharing system, information sharing method, and information storage medium
US20170149967A1 (en) Managing Communication Events
CN113010255B (en) Interaction method and device based on binding session group and computer equipment
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
CN109039670A (en) The sharing method and device of team's configuration method, team's allocation plan
CN110830306A (en) Method, device, storage medium and electronic equipment for determining influence of network user
US20080052389A1 (en) Method and apparatus for inferring the busy state of an instant messaging user
CN115037654B (en) Flow statistics method, device, electronic equipment and readable storage medium
US8385942B1 (en) End-user interaction framework
CN112235120B (en) Group combination method and electronic equipment
CN113541976B (en) Tissue creation method and device, electronic equipment and storage medium
JP6670079B2 (en) Server, communication providing method, and computer program

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