CN107132963B - Red dot message display method, red dot message elimination method and corresponding devices - Google Patents

Red dot message display method, red dot message elimination method and corresponding devices Download PDF

Info

Publication number
CN107132963B
CN107132963B CN201710316228.5A CN201710316228A CN107132963B CN 107132963 B CN107132963 B CN 107132963B CN 201710316228 A CN201710316228 A CN 201710316228A CN 107132963 B CN107132963 B CN 107132963B
Authority
CN
China
Prior art keywords
red
identification information
message
point
red dot
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
CN201710316228.5A
Other languages
Chinese (zh)
Other versions
CN107132963A (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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201710316228.5A priority Critical patent/CN107132963B/en
Publication of CN107132963A publication Critical patent/CN107132963A/en
Application granted granted Critical
Publication of CN107132963B publication Critical patent/CN107132963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The embodiment of the invention provides a red dot message display method, an elimination method and a corresponding device, wherein the red dot message display method comprises the following steps: receiving a red point query request sent by a client aiming at a current page, wherein the red point query request comprises at least one embedded point identification information; determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the association relation between the preset embedded dot identification information and the red dot message identification information; and determining a corresponding target red dot message according to the at least one piece of red dot message identification information, and providing the target red dot message to the client, so that the client displays the target red dot message in the current page and displays a red dot identification at a corresponding position. By adopting the technical scheme, the embodiment of the invention realizes the red dot display message processing in the configuration layer, can improve the real-time performance of red dot message processing, does not have the red dot display caching problem and improves the user experience.

Description

Red dot message display method, red dot message elimination method and corresponding devices
Technical Field
The embodiment of the invention relates to the technical field of information processing, in particular to a red dot message display method, a red dot message elimination method and a corresponding device.
Background
The red dot message refers to a red dot identifier and corresponding update information for reminding a user in an Application program (APP) display page or a browser page, and when a message which is not read by the user exists, the red dot identifier is usually displayed at a message position which is not read by the user to remind the user of the message.
When the existing red dot message processing technology is used for displaying red dot messages, a hierarchical relationship table of a parent page and a child page is usually required to be established, for example, a linkage logic relationship between a main page and a child page is established, page messages are updated regularly, specifically, all unread information can be loaded from a bottom page, and corresponding messages are fed back to an upper page step by step, so that the red dot messages of all pages are processed and displayed and controlled. If the message state in the sub-page is changed, the sub-page feeds the message state back to the upper page, and then the upper page performs operations such as display or elimination processing on the corresponding red dots, processing of the red dot messages in each level of pages is realized depending on hierarchical interaction between the main page and the sub-page, and when the red dot message is maintained, the red dot relationship is maintained through the corresponding hierarchical relationship, so that the maintenance process is complicated, time is consumed for information transmission between the pages when page switching is performed, a client possibly displays the locally cached red dot messages, the latest red dot messages cannot be displayed for users in time, the red dot message processing real-time performance is poor, and the user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a red dot message display method, an elimination method, and a corresponding device, so as to solve the technical defect of poor real-time performance of the existing red dot message processing technology.
In a first aspect, an embodiment of the present invention provides a red dot message display method, including:
receiving a red point query request sent by a client aiming at a current page, wherein the red point query request comprises at least one embedded point identification information;
determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the association relation between the preset embedded dot identification information and the red dot message identification information;
and determining a corresponding target red dot message according to the at least one piece of red dot message identification information, and providing the target red dot message to the client, so that the client displays the target red dot message in the current page and displays a red dot identification at a corresponding position.
In a second aspect, an embodiment of the present invention provides another red dot message display method, including:
acquiring at least one embedded point identification information of a current page and sending a red point query request to a server so that the server determines at least one red point message identification information according to the at least one embedded point identification information and an incidence relation between preset embedded point identification information and red point message identification information, determines a corresponding target red point message according to the at least one red point message identification information, and provides the determined target red point message to a client, wherein the red point query request comprises the at least one embedded point identification information;
receiving the target red dot message returned by the server;
and displaying the target red dot message in the current page and displaying a red dot mark at a corresponding position.
In a third aspect, an embodiment of the present invention provides a red dot message elimination method, including:
receiving a red dot elimination request sent by a client based on a red dot elimination operation of a current page by a user, wherein the red dot elimination request comprises at least one elimination buried dot identification information corresponding to the red dot elimination operation;
determining at least one piece of red dot message identification information according to the at least one piece of elimination embedded dot identification information and the preset incidence relation between the elimination embedded dot identification information and the red dot message identification information;
and adjusting the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information, and feeding back the adjustment result to the client so as to enable the client to eliminate the red dot identification of the corresponding position.
In a fourth aspect, an embodiment of the present invention provides a red dot message display apparatus, including:
the query request receiving module is used for receiving a red point query request sent by a client aiming at a current page, wherein the red point query request comprises at least one embedded point identification information;
the display configuration module is used for determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the incidence relation between the preset embedded dot identification information and the red dot message identification information;
and the display message sending module is used for determining a corresponding target red dot message according to the at least one piece of red dot message identification information and providing the target red dot message to the client so that the client displays the target red dot message in the current page and displays the red dot identification at a corresponding position.
In a fifth aspect, an embodiment of the present invention provides another red dot message display apparatus, including:
the query request sending module is used for acquiring at least one embedded point identification information of a current page and sending a red point query request to a server so that the server determines at least one red point message identification information according to the at least one embedded point identification information and the association relation between the preset embedded point identification information and the red point message identification information, determines a corresponding target red point message according to the at least one red point message identification information and provides the determined target red point message to a client, wherein the red point query request comprises the at least one embedded point identification information;
the display message receiving module is used for receiving the target red dot message returned by the server;
and the display module is used for displaying the target red dot message in the current page and displaying the red dot identification at the corresponding position.
In a sixth aspect, an embodiment of the present invention further provides a device for eliminating a red dot message, including:
the system comprises an elimination request receiving module, a red point elimination request processing module and a red point elimination request processing module, wherein the elimination request receiving module is used for receiving a red point elimination request sent by a client based on a red point elimination operation of a current page by a user, and the red point elimination request comprises at least one elimination buried point identification information corresponding to the red point elimination operation;
the elimination configuration module is used for determining at least one piece of red dot message identification information according to the at least one piece of elimination embedded dot identification information and the preset incidence relation between the elimination embedded dot identification information and the red dot message identification information;
and the elimination module is used for adjusting the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information and feeding back the adjustment result to the client so as to enable the client to eliminate the red dot identification of the corresponding position.
According to the technical scheme provided by the embodiment of the invention, the red point query request sent by the client aiming at the current page is received, the corresponding red point identification information is matched according to the embedded point identification information included in the red point query request, and the corresponding red point message is provided for the client according to the red point identification information, so that the client can display the red point message. By adopting the technical scheme, the embodiment of the invention can improve the real-time performance of red dot message processing and improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a red dot message display method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a red dot message display method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a red dot message elimination method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a red dot message display device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a red dot message display device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a red dot message erasing apparatus according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart illustrating a red dot message display method according to an embodiment of the present invention. The method can be executed by a corresponding red point message display device, wherein the device can be realized by software and/or hardware and can be generally integrated in information processing equipment. The method can be executed by a server, and particularly can be executed by a server in the background of the server. As shown in fig. 1, the method comprises the steps of:
step 110, receiving a red point query request sent by a client for a current page, wherein the red point query request includes at least one piece of embedded point identification information.
For example, the buried point identification information may be understood as identification information set according to a position in the page where the red dot needs to be displayed, such as setting a buried point ID. The client can extract the embedded point identification information in the page aiming at the current page, and sends a red point query request to a server at the background of the server according to the embedded point identification information.
For example, the timing of sending the red point query request by the client for the current page may include the following cases: in the two cases, the client sends a red dot query request containing embedded dot identification information to a server of the server background of the current page, and the server can obtain the red dot message update condition in real time according to the red dot query request and feed back the red dot message update condition to the client. In addition, if the current page is not changed, a time interval for sending the red point query request can be set, for example, once every 2 seconds, and each time the server receives the red point query request, the update condition of the red point message is obtained and fed back to the client.
And step 120, determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the association relationship between the preset embedded dot identification information and the red dot message identification information.
For example, the red dot message identification information may be understood as identification information set according to a red dot message in the server, such as setting a red dot ID, and the association relationship between the embedded dot identification information and the red dot message identification information may be understood as a configuration table of the embedded dot ID and the red dot ID set in the server, and the server obtains a corresponding red dot ID by querying the configuration table of the embedded dot ID and the red dot ID according to the embedded dot ID included in the red dot query request. Wherein, one buried point ID can correspond to a plurality of red point IDs.
Illustratively, corresponding embedded point identification information can be defined for each display page, and an association relationship between all embedded point identification information and red point message identification information contained in each page is pre-established in the server, that is, all embedded point ID and red point ID configuration tables.
Step 130, according to the at least one piece of red dot message identification information, determining a corresponding target red dot message and providing the target red dot message to the client, so that the client displays the target red dot message in the current page and displays a red dot identification at a corresponding position.
Illustratively, the server may obtain the corresponding red dot message according to the determined red dot message identification information and provide the red dot message to the client, so that the client displays the corresponding red dot message and the red dot identification to remind the user of viewing the red dot message and the red dot identification. Wherein, one piece of red dot identification information can correspond to a plurality of pieces of red dot information.
According to the technical scheme provided by the embodiment, the red dot query request sent by the client to the current page is received, the client sends the red dot query request to the server for each current page, the corresponding red dot identification information is matched according to the embedded dot identification information included in the red dot query request, and then the red dot message corresponding to the red dot identification information is provided for the client, so that the client displays the red dot message. Paying attention to the processing of the red dot display message in the configuration layer can improve the real-time performance of red dot message processing, the latest red dot message is displayed every time when a page is displayed, the red dot display cache problem does not exist, and the user experience is improved.
Optionally, determining a corresponding target red dot message according to the at least one red dot message identification information, and providing the target red dot message to the client, may include:
pulling the corresponding red dot message according to the at least one red dot message identification information; determining a state of the pulled red dot message, wherein the state of the red dot message comprises read and unread; determining a target red dot message from the red dot messages with unread states; and providing the target red dot message to the client.
For example, the state of the red dot message may be set with a corresponding identifier in the database, for example, a certain field is set for identifying, specifically, a red dot message state bit is set, a value of the state bit is 0 indicating that the red dot message is read, a value of the state bit is 1 indicating that the red dot message is unread, the server may pull the red dot message corresponding to the red dot identifier information from the database, in the pulling process, judge the state bit for identifying the state of each red dot message, thereby determine the state of each red dot message, filter the red dot message if the state of a certain red dot message is read, and if the state of a certain red dot message is unread, pull the red dot message out and provide the red dot message to the client, thereby implementing updating of the red dot message on the current page.
In addition, after all the red dot messages are pulled out, the state of the red dot messages can be judged and filtered at the server or the client, and the state of each red dot message can be judged and filtered only before the red dot message is displayed at the client.
Optionally, the current page is a page based on a fifth generation hypertext markup language H5, and the embedded point identification information is an HTML tag;
the receiving of the red point query request sent by the client for the current page may include:
and receiving a query red point request sent by the client in an AJAX mode aiming at the current H5 page.
Typically, H5 refers to the 5 th generation HTML, and also to all digital products produced in the H5 language. HTML is an English abbreviation of hypertext markup language, most of web pages viewed on the internet are written by HTML, hypertext refers to that non-character elements such as pictures, links, even music and programs can be contained in the pages, and mark means that the hypertext must be marked by beginning and end marks containing attributes, and a browser can display the content of the web pages by decoding HTML. Asynchronous JavaScript And XML (AJAX) refer to a web page development technology for creating interactive web page applications, which is used for creating a fast dynamic web page, And through exchanging a small amount of data with a server, AJAX can enable the web page to realize Asynchronous updating, namely, under the condition that the whole web page is not reloaded, a certain part of the web page is updated, so that the updating speed of the web page is greatly increased.
For example, the buried point identification information may be understood as a hypertext markup language HTML tag set in the page H5, and specifically, a corresponding tag attribute ID number identification may be set in the HTML tag, that is, the above-mentioned buried point identification.
Illustratively, the client sends a red dot query request to the server in an AJAX mode according to the embedded dot identification information of the current page, so that the server receives the request and determines at least one piece of red dot message identification information according to the association relationship between the preset embedded dot identification information and the red dot message identification information. The red point query request is sent to the server in the AJAX mode when the page is displayed every time, the real-time performance of red point message processing is improved, the server returns the latest red point message for being displayed by the client, the red point display cache problem does not exist, and the user experience is improved.
Example two
Fig. 2 is a flowchart illustrating a red dot message display method according to a second embodiment of the present invention. The method is applicable to the case where the client displays the red dot message returned by the server, and may be executed by a corresponding red dot message display apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal device, and the method may be executed by the client, and specifically may be executed by the terminal device of the client. As shown in fig. 2, the method comprises the steps of:
step 210, obtaining at least one embedded point identification information of the current page and sending a red point query request to a server.
The red point query request sent by the client enables the server to determine at least one piece of red point message identification information according to the at least one piece of embedded point identification information and the association relationship between the preset embedded point identification information and the red point message identification information, determine a corresponding target red point message according to the at least one piece of red point message identification information, and provide the determined target red point message to the client, wherein the red point query request comprises the at least one piece of embedded point identification information.
Illustratively, when a client loads a current page, the client can search HTML tags with embedded point identification information in all HTML tags of the current page, extract the embedded point identification information corresponding to each found HTML tag, and send a red point query request to a server. When the client loads the current page, the client can understand that a user wakes up a certain application or loads a certain page, and the embedded point identification information in the HTML tag can be added in a self-defined manner in the attribute of the HTML tag in advance according to the display requirement of the page.
Optionally, after obtaining at least one piece of embedded point identification information of the current page, constructing an embedded point identification array according to the at least one piece of embedded point identification information; and sending a red point query request to a server according to the buried point identification array.
Illustratively, according to the embedded point identification information of the current page, an identification array is constructed, for example, an embedded point ID array is constructed, a red point query request is generated by the embedded point ID array and is sent to the server, so that red point messages required to be displayed on the current page are searched in batches, the query efficiency is improved, and the real-time performance of red point message processing is further improved.
Specifically, taking a page based on H5 as an example, a JS (javascript) mechanism is executed each time the page is loaded, the page loads a public JS, all embedded point IDs of the page are filtered through the public JS, an embedded point ID array is constructed according to the filtered embedded point IDs, the embedded point ID array is used as an AJAX parameter, a corresponding red point query request is sent to a server in an AJAX manner, it is ensured that a subsequent server returns a latest red point message for the current page, and the latest red point message is provided for a client to be displayed, the red point display cache problem does not exist, and user experience is improved.
And step 220, receiving the target red dot message returned by the server.
Illustratively, the server determines at least one piece of red dot message identification information according to the embedded dot identification information contained in the red dot query request sent by the client and the incidence relation between the embedded dot identification information and the red dot message identification information preset in the server, pulls and filters the corresponding red dot message, and returns the pulled red dot message to the client again according to the incidence relation between the preset embedded dot identification information and the red dot message identification information, so that the client receives the target red dot message returned by the server.
Step 230, displaying the target red dot message in the current page and displaying a red dot mark at a corresponding position.
Illustratively, the client adds the red dot message to the corresponding position of the HTML tag corresponding to the embedded dot identification information according to the embedded dot identification information corresponding to the returned red dot message, so that the red dot message returned by the server is displayed at the corresponding display position of the page, the update of the red dot message is realized, and the red dot mark is displayed at the corresponding display position to remind the user of the existence of the unread message.
According to the technical scheme provided by the embodiment, the client side acquires the corresponding embedded point identification information for each current page, sends the red point query request to the server side according to the embedded point identification information corresponding to each page, receives and displays the red point message returned by the server for each current page, can improve the real-time property of red point message processing, displays the latest red point message of the current page every time the page is displayed, does not have the red point display cache problem, and improves the user experience.
Optionally, before obtaining at least one piece of embedded point identification information of the current page and sending a red point query request to the server, the method may further include: determining at least one embedded point for displaying the red point message according to the display content of the current page; and defining corresponding embedded point identification information for the at least one embedded point.
For example, the pre-buried point may be understood as a position in the page where the red dot message needs to be displayed, for example, a pre-buried point may be set at a "friend circle" position in the WeChat page, and each pre-buried point in the page code has a corresponding HTML tag. Specifically, each embedded point for displaying the red dot message can be set in the page according to the display content requirement of the page, embedded point identification information is added in the attribute of the HTML tag corresponding to the embedded point, and if the embedded point ID number is added, unique identification is carried out on the corresponding HTML tag, so that the embedded point identification information of the current page can be extracted subsequently.
Illustratively, pre-embedded points corresponding to each page can be determined according to the display content requirements of each page, and embedded point identification information corresponding to the pre-embedded points is provided for the server, so that the server establishes the association relationship between all the embedded point identification information of all the pages and red point message identification information, when a client loads a certain page, the server can search corresponding red point messages according to the embedded point identification information of the page and provide the red point messages for the client for display, the red point messages can be displayed without passing through the hierarchical relationship between the pages but depending on the configuration relationship between the embedded point identification information and the red point message identification information established by the server, the coupling of a red point message display system is reduced, the system is simple and convenient to maintain, and has strong configurability, and can be configured at any time and take effect at any time. If the embedded point identification information and the corresponding red point message identification information need to be added, deleted or changed, corresponding operation is directly carried out in a corresponding configuration table established in the server.
EXAMPLE III
Fig. 3 is a flowchart illustrating a red dot message elimination method according to a third embodiment of the present invention. The method is applicable to the case where the server performs elimination processing on the red dot message of the client, and may be executed by a red dot message elimination device, where the device may be implemented by software and/or hardware, and may be generally integrated in an information processing device, and the method may be executed by the server, and specifically may be executed by a server in the background of the server. As shown in fig. 3, the method comprises the steps of:
step 310, receiving a red dot elimination request sent by a client based on a red dot elimination operation of a current page by a user, wherein the red dot elimination request comprises at least one piece of elimination buried dot identification information corresponding to the red dot elimination operation.
For example, the erasing embedded point identification information may be understood as identification information set at a position where red dot identification needs to be erased according to a user operation, and the erasing embedded point identification information may be set in a corresponding HTML tag attribute, such as setting an erasing embedded point ID, and defining a corresponding erasing action at a page display position corresponding to the erasing embedded point ID.
Illustratively, when a user performs a deletion action, such as clicking an icon or a button, or viewing a loaded page, the deletion buried point identification information for the user operation in the current page is extracted, and a red point deletion request containing the deletion buried point identification information is sent to the server.
Specifically, taking a page based on H5 as an example, determining a corresponding elimination buried point ID for the operation of the user on the current page, taking the elimination buried point ID as a parameter of AJAX, and sending a corresponding red point elimination request to the server in the AJAX manner.
And step 320, determining at least one piece of red dot message identification information according to the at least one piece of elimination embedded dot identification information and the preset incidence relation between the elimination embedded dot identification information and the red dot message identification information.
For example, the red dot message identification information may be understood as identification information set according to a red dot message in the server, such as a red dot ID, and the association relationship between the elimination buried dot identification information and the red dot message identification information may be understood as an elimination buried dot ID and red dot ID configuration table set in the server, and the server may obtain a corresponding red dot ID by querying the configuration table for eliminating the buried dot ID and red dot ID according to the buried dot ID included in the red dot elimination request, where one buried dot ID may correspond to a plurality of red dot IDs, for example, the red dot ID corresponding to the elimination buried dot ID-1 may include 011 and 012.
Illustratively, the elimination embedded point identification information of a unique identification is set at the position of all pages where red point identification is required to be eliminated according to the operation of a user at a client, and is provided for a server, so that the server establishes the incidence relation between the elimination embedded point identification information of all pages and red point message identification information, when the user performs elimination operation on a certain page, the server can search corresponding red point messages according to the elimination embedded point identification information of the page, adjust the state of the red point messages and feed back the red point messages to the client, the red point messages can be displayed without passing through the hierarchical relation between the pages but depending on the configuration relation between the elimination embedded point identification information and the red point message identification information established by the server, the coupling of a red point message display system is reduced, the system is simple and convenient to maintain and has strong configurability, and can be configured at any time, can take effect at any time. And if the embedded point identification information and the corresponding red point message identification information need to be added, deleted or changed, directly carrying out corresponding operation in a corresponding configuration table established in the server.
And step 330, adjusting the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information, and feeding back the adjustment result to the client so that the client eliminates the red dot identification of the corresponding position.
For example, the server determines a corresponding red dot message according to red dot identification information corresponding to the erasing action of the user, and adjusts a state corresponding to the red dot message to be read, where the state of the red dot message may be identified by setting a field in the database, for example, setting a red dot message state bit, where a value of the state bit is 0 to indicate that the red dot message is read, and a value of the state bit is 1 to indicate that the red dot message is unread. For example, if the user reads the red dot message corresponding to 011 in the red dot ID, the status bit of the red dot message corresponding to 011 is adjusted from 1 to 0.
For example, when a user performs an erasing operation on a current page, the state of a red dot message corresponding to the user operation is adjusted to be read in the server, at this time, due to the erasing operation of the user, the client enters a next page, when the client returns to the current page, the red dot query request is sent to the server again in the AJAX manner, at this time, since the state of the red dot message corresponding to the erasing operation of the user has changed to be read, after the adjusted red dot message is fed back to the client, the client erases a red dot identifier at an embedded point corresponding to the red dot message when the corresponding page is displayed.
The existing red dot elimination technology is generally used for reminding of red dot messages of APP, local cache exists in pages of the APP, if information displayed to a user in a certain page can be cached locally, when the user executes corresponding operation on the page to enter a next page and then returns the page from the next page, due to the fact that control of the red dot messages is achieved through hierarchical relation interaction between the pages, the red dot messages are possibly not processed timely, and the cache problem occurs.
According to the technical scheme provided by the embodiment, the elimination embedded point identification information is set at the client, so that when a user executes elimination operation on the current page, the elimination embedded point identification information aiming at the user operation is obtained, a corresponding red point elimination request is sent to the server, and the state of the red point message corresponding to the user operation is adjusted in real time, so that the accuracy of the red point message state subsequently fed back to the client is ensured. The method and the device can improve the real-time performance of red dot message processing, display the latest red dot message every time when the page is displayed, avoid the problem of red dot display cache and improve user experience.
Example four
Fig. 4 is a schematic structural diagram of a red dot message display device according to a fourth embodiment of the present invention. The apparatus, which may be implemented by software and/or hardware, is generally integrated in an information processing device, and may determine a red dot message by performing a corresponding red dot message display method. As shown in fig. 4, the apparatus may include: a query request receiving module 410, a display configuration module 420 and a display message sending module 430.
The query request receiving module 410 is configured to receive a red dot query request sent by a client for a current page, where the red dot query request includes at least one piece of embedded dot identification information.
And the display configuration module 420 is configured to determine at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and an association relationship between preset embedded dot identification information and red dot message identification information.
And a display message sending module 430, configured to determine, according to the at least one red dot message identifier information, a corresponding target red dot message and provide the target red dot message to the client, so that the client displays the target red dot message in the current page and displays a red dot identifier at a corresponding position.
According to the technical scheme provided by the embodiment, the red dot query request sent by the client to the current page is received, the client sends the red dot query request to the server for each current page, the corresponding red dot identification information is matched according to the embedded dot identification information included in the red dot query request, and then the red dot message corresponding to the red dot identification information is provided for the client, so that the client displays the red dot message. Paying attention to the processing of the red dot display message in the configuration layer can improve the real-time performance of red dot message processing, the latest red dot message is displayed every time when a page is displayed, the red dot display cache problem does not exist, and the user experience is improved.
On the basis of the foregoing embodiment, the display message sending module 430 may include:
the message pulling unit is used for pulling the corresponding red dot message according to the at least one red dot message identification information;
the state judgment unit is used for determining the state of the pulled red dot message, wherein the state of the red dot message comprises read and unread;
the message determining unit is used for determining the target red dot message from the red dot message with the unread state;
and the message sending unit is used for providing the target red dot message to the client.
On the basis of the above embodiments, the current page is a page based on a fifth generation hypertext markup language H5, and the embedded point identification information is a hypertext markup language HTML tag;
the query request receiving module 410 is specifically configured to: and receiving a query red point request sent by the client in an AJAX mode aiming at the current H5 page.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a red dot message display device according to a fifth embodiment of the present invention. The device can be realized by software and/or hardware, is generally integrated in the terminal equipment of the client, and can display the red point message by executing a corresponding red point message display method. As shown in fig. 5, the apparatus may include: a query request sending module 510, a display message receiving module 520 and a display module 530.
The query request sending module 510 is configured to obtain at least one piece of embedded point identification information of a current page and send a red point query request to a server, so that the server determines at least one piece of red point message identification information according to the at least one piece of embedded point identification information and an association relationship between preset embedded point identification information and red point message identification information, determines a corresponding target red point message according to the at least one piece of red point message identification information, and provides the determined target red point message to a client, where the red point query request includes the at least one piece of embedded point identification information;
a display message receiving module 520, configured to receive the target red dot message returned by the server;
a display module 530, configured to display the target red dot message in the current page and display a red dot identifier at a corresponding position.
According to the technical scheme provided by the embodiment, the client side acquires the corresponding embedded point identification information for each current page, sends the red point query request to the server side according to the embedded point identification information corresponding to each page, receives and displays the red point message returned by the server for each current page, can improve the real-time property of red point message processing, displays the latest red point message of the current page every time the page is displayed, does not have the red point display cache problem, and improves the user experience.
On the basis of the above embodiment, the apparatus may further include:
the embedded point determining module is used for determining at least one embedded point for displaying the red point according to the display content of the current page before acquiring at least one embedded point identification information of the current page and sending a red point query request to the server;
and the embedded point identification setting module is used for defining corresponding embedded point identification information for the at least one embedded point.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a red dot message erasing apparatus according to a sixth embodiment of the present invention. The apparatus, which may be implemented by software and/or hardware, is generally integrated in an information processing device, and may adjust the state of a red dot message by performing a red dot message elimination method. As shown in fig. 6, the apparatus may include: a cancel request receiving module 610, a cancel configuration module 620 and a cancel module 630.
The elimination request receiving module 610 is configured to receive a red dot elimination request sent by a client based on a red dot elimination operation of a user on a current page, where the red dot elimination request includes at least one elimination buried dot identification information corresponding to the red dot elimination operation;
the elimination configuration module 620 is configured to determine at least one piece of red dot message identification information according to the at least one piece of elimination buried dot identification information and an association relationship between preset elimination buried dot identification information and red dot message identification information;
and an eliminating module 630, configured to adjust the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information, and feed back an adjustment result to the client, so that the client eliminates the red dot identification at the corresponding position.
According to the technical scheme provided by the embodiment, the elimination embedded point identification information is set at the client, so that when a user executes elimination operation on the current page, the elimination embedded point identification information aiming at the user operation is obtained, a corresponding red point elimination request is sent to the server, and the state of the red point message corresponding to the user operation is adjusted in real time, so that the accuracy of the red point message state subsequently fed back to the client is ensured. The method and the device can improve the real-time performance of red dot message processing, display the latest red dot message every time when the page is displayed, avoid the problem of red dot display cache and improve user experience.
The red dot message display and elimination device provided in the above embodiments may respectively perform the red dot message display and elimination method provided in the embodiments of the present invention, and has functional modules and advantageous effects corresponding to the corresponding methods. Technical details not described in detail in the above embodiments may be referred to a red dot message display and elimination method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A red dot message display method is applied to a server and comprises the following steps:
receiving a red point query request sent by a client aiming at a current page, wherein the red point query request comprises at least one embedded point identification information;
determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the association relation between the preset embedded dot identification information and the red dot message identification information, wherein the association relation is a configuration table of the embedded dot identification information and the red dot message identification information;
and determining a corresponding target red dot message according to the at least one piece of red dot message identification information, and providing the target red dot message to the client, so that the client displays the target red dot message in the current page and displays a red dot identification at a corresponding position.
2. The method of claim 1, wherein determining and providing a corresponding target red dot message to the client according to the at least one red dot message identification information comprises:
pulling the corresponding red dot message according to the at least one red dot message identification information;
determining a state of the pulled red dot message, wherein the state of the red dot message comprises read and unread;
determining a target red dot message from the red dot messages with unread states;
and providing the target red dot message to the client.
3. The method according to claim 1, wherein the current page is a page based on the fifth generation hypertext markup language H5, and the embedded point identification information is a hypertext markup language HTML tag;
the receiving of the red point query request sent by the client for the current page includes:
and receiving a query red point request sent by the client in an AJAX mode aiming at the current H5 page.
4. A red dot message display method is applied to a client and comprises the following steps:
acquiring at least one embedded point identification information of a current page and sending a red point query request to a server so that the server determines at least one red point message identification information according to the at least one embedded point identification information and an incidence relation between preset embedded point identification information and red point message identification information, wherein the incidence relation is a configuration table of the embedded point identification information and the red point message identification information, determines a corresponding target red point message according to the at least one red point message identification information, and provides the determined target red point message to a client, and the red point query request comprises the at least one embedded point identification information;
receiving the target red dot message returned by the server;
and displaying the target red dot message in the current page and displaying a red dot mark at a corresponding position.
5. The method of claim 4, before obtaining at least one of the embedded point identification information of the current page and sending a red point query request to the server, further comprising:
determining at least one embedded point for displaying the red points according to the display content of the current page;
and defining corresponding embedded point identification information for the at least one embedded point.
6. A red dot message elimination method is applied to a server and comprises the following steps:
receiving a red dot elimination request sent by a client based on a red dot elimination operation of a current page by a user, wherein the red dot elimination request comprises at least one elimination buried dot identification information corresponding to the red dot elimination operation;
determining at least one piece of red point message identification information according to the at least one piece of elimination embedded point identification information and a preset incidence relation between the elimination embedded point identification information and the red point message identification information, wherein the incidence relation is a configuration table of the embedded point identification information and the red point message identification information;
and adjusting the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information, and feeding back the adjustment result to the client so as to enable the client to eliminate the red dot identification of the corresponding position.
7. A red dot message display device applied to a server includes:
the query request receiving module is used for receiving a red point query request sent by a client aiming at a current page, wherein the red point query request comprises at least one embedded point identification information;
the display configuration module is used for determining at least one piece of red dot message identification information according to the at least one piece of embedded dot identification information and the incidence relation between the preset embedded dot identification information and the red dot message identification information, wherein the incidence relation is a configuration table of the embedded dot identification information and the red dot message identification information;
and the display message sending module is used for determining a corresponding target red dot message according to the at least one piece of red dot message identification information and providing the target red dot message to the client so that the client displays the target red dot message in the current page and displays the red dot identification at a corresponding position.
8. The apparatus according to claim 7, wherein the current page is a page based on the fifth generation hypertext markup language H5, and the embedded point identification information is a hypertext markup language HTML tag;
the query request receiving module is specifically configured to: and receiving a query red point request sent by the client in an AJAX mode aiming at the current H5 page.
9. A red dot message display device is applied to a client and comprises:
the query request sending module is used for acquiring at least one embedded point identification information of a current page and sending a red point query request to a server so that the server determines at least one red point message identification information according to the at least one embedded point identification information and a preset incidence relation between the embedded point identification information and the red point message identification information, wherein the incidence relation is a configuration table of the embedded point identification information and the red point message identification information, determines a corresponding target red point message according to the at least one red point message identification information, and provides the determined target red point message to a client, and the red point query request comprises the at least one embedded point identification information;
the display message receiving module is used for receiving the target red dot message returned by the server;
and the display module is used for displaying the target red dot message in the current page and displaying the red dot identification at the corresponding position.
10. A red dot message elimination device applied to a server comprises:
the system comprises an elimination request receiving module, a red point elimination request processing module and a red point elimination request processing module, wherein the elimination request receiving module is used for receiving a red point elimination request sent by a client based on a red point elimination operation of a current page by a user, and the red point elimination request comprises at least one elimination buried point identification information corresponding to the red point elimination operation;
the elimination configuration module is used for determining at least one piece of red dot message identification information according to the at least one piece of elimination embedded dot identification information and the preset incidence relation between the elimination embedded dot identification information and the red dot message identification information, wherein the incidence relation is a configuration table of the embedded dot identification information and the red dot message identification information;
and the elimination module is used for adjusting the state of the corresponding red dot message from unread to read according to the at least one red dot message identification information and feeding back the adjustment result to the client so as to enable the client to eliminate the red dot identification of the corresponding position.
CN201710316228.5A 2017-05-08 2017-05-08 Red dot message display method, red dot message elimination method and corresponding devices Active CN107132963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710316228.5A CN107132963B (en) 2017-05-08 2017-05-08 Red dot message display method, red dot message elimination method and corresponding devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710316228.5A CN107132963B (en) 2017-05-08 2017-05-08 Red dot message display method, red dot message elimination method and corresponding devices

Publications (2)

Publication Number Publication Date
CN107132963A CN107132963A (en) 2017-09-05
CN107132963B true CN107132963B (en) 2020-09-08

Family

ID=59732353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710316228.5A Active CN107132963B (en) 2017-05-08 2017-05-08 Red dot message display method, red dot message elimination method and corresponding devices

Country Status (1)

Country Link
CN (1) CN107132963B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825594B (en) * 2018-08-07 2023-10-24 阿里巴巴(中国)有限公司 Data reporting and issuing method, client and server
CN109446450B (en) * 2018-10-30 2022-01-28 五八有限公司 List browsing method, device, terminal and storage medium based on red dot tracking
CN110083283B (en) * 2019-05-06 2020-06-26 北京字节跳动网络技术有限公司 Method, device and system for managing information
CN110215696A (en) * 2019-07-23 2019-09-10 网易(杭州)网络有限公司 Label display methods, device, electronic equipment and the storage medium of game
CN111555962B (en) * 2020-04-30 2023-04-07 中国平安财产保险股份有限公司 Red dot message prompting method, device, equipment and storage medium
CN112100553B (en) * 2020-08-11 2023-11-17 深圳市拓邦软件技术有限公司 Webpage configuration method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906614A (en) * 2004-01-26 2007-01-31 国际商业机器公司 Method, system, and program for handling anchor text
CN102841885A (en) * 2011-06-21 2012-12-26 北大方正集团有限公司 Method and device for building object anchoring relationship
CN103974226A (en) * 2013-01-25 2014-08-06 中兴通讯股份有限公司 Distributed location management method and system in heterogeneous network
CN105550184A (en) * 2014-10-31 2016-05-04 阿里巴巴集团控股有限公司 Information obtaining method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477969B2 (en) * 2006-12-12 2016-10-25 Yahoo! Inc. Automatic feed creation for non-feed enabled information objects
US8621491B2 (en) * 2008-04-25 2013-12-31 Microsoft Corporation Physical object visualization framework for computing device with interactive display
CN101662493B (en) * 2008-08-25 2012-10-03 阿里巴巴集团控股有限公司 Data acquiring method, system and server of user access path
US10223411B2 (en) * 2013-03-06 2019-03-05 Nuance Communications, Inc. Task assistant utilizing context for improved interaction
CN103310004A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Method, device and equipment for displaying number of unread messages
CN103533038A (en) * 2013-09-30 2014-01-22 华南理工大学 Remote control system based on HTML(hypertext markup language)5 and remote control method of remote control system
CN105242818B (en) * 2014-05-30 2019-06-18 阿里巴巴集团控股有限公司 A kind of removing method and device notifying red dot
CN104200380B (en) * 2014-09-18 2017-12-19 北京国双科技有限公司 The localization method and device of promotion message
CN106156189B (en) * 2015-04-21 2020-01-21 阿里巴巴集团控股有限公司 Label generation method and device, and information acquisition method and device
CN106445484B (en) * 2015-08-12 2019-09-13 北京易数科技有限公司 The method and system of data tracking are realized by Software Development Kit
CN106066826A (en) * 2016-05-24 2016-11-02 北京金山安全软件有限公司 Automatic testing method and device for buried point and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906614A (en) * 2004-01-26 2007-01-31 国际商业机器公司 Method, system, and program for handling anchor text
CN102841885A (en) * 2011-06-21 2012-12-26 北大方正集团有限公司 Method and device for building object anchoring relationship
CN103974226A (en) * 2013-01-25 2014-08-06 中兴通讯股份有限公司 Distributed location management method and system in heterogeneous network
CN105550184A (en) * 2014-10-31 2016-05-04 阿里巴巴集团控股有限公司 Information obtaining method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
优云老王谈埋点:人生处处有埋点(三);Daisy;《http://www.chanpin100.com/article/100551?utm_source=tuicool&utm_medium=referralwww.tuicool.com/articles/aEVZZ3Z》;20160819;正文第1-8页 *

Also Published As

Publication number Publication date
CN107132963A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN107132963B (en) Red dot message display method, red dot message elimination method and corresponding devices
US7865544B2 (en) Method and system for providing XML-based asynchronous and interactive feeds for web applications
CN102934105B (en) Cooperation cursor in resident word processor
KR101782163B1 (en) Techniques to modify a document using a latent transfer surface
US8407290B2 (en) Dynamic data sharing using a collaboration-enabled web browser
CN106055337B (en) Interface generation method and device
US11029905B2 (en) Integrated learning using multiple devices
US20120060087A1 (en) System and method for converting an existing website into a mobile compatible website
US20120304068A1 (en) Presentation format for an application tile
CA2992484A1 (en) Video-production system with social-media features
US20190297125A1 (en) Method and electronic device for editing content
US20130007586A1 (en) Method and system for creating and using web feed display templates
WO1998055953B1 (en) System and method for integrating a message into a graphical environment
CN106155673B (en) Method, device, server and user equipment for realizing page content editor
CN107077500B (en) Extracting similar group elements
US8239754B1 (en) System and method for annotating data through a document metaphor
CN106951270B (en) Code processing method, system and server
JP2008117374A (en) Page additional information sharing management method
US9092538B2 (en) System and method for determining the data model used to create a web page
US20170017618A1 (en) Unified publishing platform
CN111949256A (en) Webpage real-time preview editing method, device, equipment and storage medium
US20170070470A9 (en) Automatic, Interest-Based Notifications
CA2714228C (en) Complex input to image transformation for distribution
JP2012133515A (en) Information processor, information processing method, program and information processing system
CN106210918B (en) User interface updating method and system

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