Movatterモバイル変換


[0]ホーム

URL:


CN110134481B - A page processing method, device and related equipment - Google Patents

A page processing method, device and related equipment
Download PDF

Info

Publication number
CN110134481B
CN110134481BCN201910419822.6ACN201910419822ACN110134481BCN 110134481 BCN110134481 BCN 110134481BCN 201910419822 ACN201910419822 ACN 201910419822ACN 110134481 BCN110134481 BCN 110134481B
Authority
CN
China
Prior art keywords
page
message
window
session
display
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
CN201910419822.6A
Other languages
Chinese (zh)
Other versions
CN110134481A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN202310990160.4ApriorityCriticalpatent/CN116841685A/en
Priority to CN201910419822.6Aprioritypatent/CN110134481B/en
Publication of CN110134481ApublicationCriticalpatent/CN110134481A/en
Application grantedgrantedCritical
Publication of CN110134481BpublicationCriticalpatent/CN110134481B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention discloses a page processing method, a device and related equipment, wherein the method comprises the following steps: displaying a target page belonging to a first process; the target page is a foreground display page; when receiving the session message belonging to the second process, displaying an unread message reminding identifier on the target page; and responding to the triggering operation aiming at the unread message reminding identification, creating a session message window according to the session message, and displaying the session message window on the target page. By adopting the invention, the efficiency of the terminal for displaying the message content to the user can be improved.

Description

Translated fromChinese
一种页面处理方法、装置以及相关设备A page processing method, device and related equipment

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种页面处理方法、装置以及相关设备。The present invention relates to the field of computer technology, in particular to a page processing method, device and related equipment.

背景技术Background technique

在生活工作节奏日益加速的今日,用户在使用移动智能设备时往往在多个功能之间来回切换,例如,用户在阅读新闻资讯的同时,若接收到新消息,用户此时就需要查看该消息以及回复消息。Today, with the increasingly accelerated pace of life and work, users often switch back and forth between multiple functions when using mobile smart devices. For example, if a user receives a new message while reading news, the user needs to check the message at this time and reply messages.

若当前显示页面是新闻资讯页面,且此时终端接收到新消息时,终端就会震动用于提示用户存在新消息。用户为了查看该新消息,就要关闭当前的新闻资讯页面,打开新消息所在的通信页面,进而用户就可以在该通信页面中查看新消息的具体内容,以及回复该新消息。If the currently displayed page is a news information page, and the terminal receives a new message at this time, the terminal will vibrate to remind the user that there is a new message. In order to view the new message, the user will close the current news information page and open the communication page where the new message is located, and then the user can view the specific content of the new message on the communication page and reply to the new message.

上述可知,若终端设备在非通信页面中接收到新消息时,首先需要关闭当前页面,再打开通信页面才能向用户展示消息内容,导致向用户传递信息的效率降低。As can be seen from the above, if the terminal device receives a new message on a non-communication page, it first needs to close the current page, and then open the communication page to display the message content to the user, resulting in a reduction in the efficiency of information delivery to the user.

发明内容Contents of the invention

本发明实施例提供一种页面处理方法、装置以及相关设备,可以提高提高终端向用户展示消息内容的效率。Embodiments of the present invention provide a page processing method, device, and related equipment, which can improve the efficiency of displaying message content by a terminal to a user.

本发明实施例一方面提供了一种页面处理方法,包括:On the one hand, an embodiment of the present invention provides a page processing method, including:

显示属于第一进程的目标页面;所述目标页面为前台显示页面;Displaying a target page belonging to the first process; the target page is a foreground display page;

当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识;When a session message belonging to the second process is received, an unread message reminder mark is displayed on the target page;

响应针对所述未读消息提醒标识的触发操作,根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。In response to the trigger operation on the unread message reminder flag, a session message window is created according to the session message, and the session message window is displayed on the target page.

其中,所述当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识,包括:Wherein, when the session message belonging to the second process is received, displaying an unread message reminder on the target page includes:

当接收到属于所述第二进程的所述会话消息,且所述会话消息具有显示优先级时,在所述第二进程中获取与所述会话消息对应的发送用户头像,并获取所述会话消息的数量,作为未读消息数量;When the session message belonging to the second process is received, and the session message has a display priority, obtain in the second process the avatar of the sending user corresponding to the session message, and obtain the session message The number of messages, as the number of unread messages;

基于跨进程同步服务,将所述第一进程的进程状态信息同步至所述第二进程;所述进程状态信息包括前台运行状态;Synchronize the process state information of the first process to the second process based on the cross-process synchronization service; the process state information includes a foreground running state;

若所述第二进程为前台运行状态,且所述会话消息属于未读消息类型,则基于所述跨进程同步服务,将所述未读消息数量和所述发送用户头像同步至所述第一进程;If the second process is in the foreground running state, and the conversation message belongs to the unread message type, then based on the cross-process synchronization service, the number of unread messages and the avatar of the sending user are synchronized to the first process;

在所述第一进程中,根据所述未读消息数量和所述发送用户头像生成所述未读消息提醒标识,并在所述目标页面上显示所述未读消息提醒标识。In the first process, the unread message reminder identifier is generated according to the number of unread messages and the avatar of the sending user, and the unread message reminder identifier is displayed on the target page.

其中,还包括:Among them, also include:

在所述第二进程中,获取所述会话消息的消息摘要,并根据所述消息摘要创建消息列表页面;所述消息列表页面包括消息列表页面窗口;所述消息列表页面窗口包括所述消息摘要;In the second process, obtain the message digest of the conversation message, and create a message list page according to the message digest; the message list page includes a message list page window; the message list page window includes the message digest ;

在所述第一进程对应的任务栈中对所述消息列表页面入栈,并激活所述消息列表页面,以在所述目标页面上显示所述消息列表页面;Pushing the message list page into the task stack corresponding to the first process, and activating the message list page, so as to display the message list page on the target page;

响应针对所述消息列表页面窗口的触发操作,执行根据所述会话消息创建会话消息窗口的步骤。In response to a trigger operation on the message list page window, the step of creating a session message window according to the session message is executed.

其中,所述根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口,包括:Wherein, the creating a session message window according to the session message, and displaying the session message window on the target page include:

在所述第二进程中,创建会话消息页面;所述会话消息页面包括所述会话消息页面窗口;所述会话消息页面窗口包含所述会话消息;In the second process, a session message page is created; the session message page includes the session message page window; the session message page window contains the session message;

将所述会话消息页面窗口确定为所述会话消息窗口;determining the session message page window as the session message window;

在所述任务栈中对所述会话消息页面入栈,并激活所述会话消息页面,以在所述目标页面上显示所述会话消息页面中的所述会话消息页面窗口。Pushing the session message page into the task stack, and activating the session message page, so as to display the session message page window in the session message page on the target page.

其中,所述会话消息页还包括会话消息页面关闭标识;所述消息列表页面还包括消息列表页面关闭标识;所述目标页面还包括目标页面关闭标识;Wherein, the session message page also includes a session message page closing identifier; the message list page also includes a message list page closing identifier; the target page also includes a target page closing identifier;

所述方法还包括:The method also includes:

响应针对所述会话消息页面关闭标识的触发操作、针对所述消息列表页面关闭标识的触发操作、针对所述目标页面关闭标识的触发操作,关闭所述会话消息页面、所述消息列表页面、所述目标页面。Closing the session message page, the message list page, all Describe the target page.

其中,所述所述会话消息页面、所述消息列表页面和所述目标页面均属于与所述任务栈;所述会话消息页面位于所述任务栈栈顶,所述消息列表页面与所述会话消息页面相邻,所述目标页面与所述消息列表页面相邻;Wherein, the session message page, the message list page and the target page all belong to the task stack; the session message page is located at the top of the task stack, and the message list page and the session The message page is adjacent, and the target page is adjacent to the message list page;

所述关闭所述会话消息页面、所述消息列表页面、所述目标页面,包括:The closing of the conversation message page, the message list page, and the target page includes:

将所述会话消息页面从所述任务栈中出栈,以关闭所述会话消息页面;Popping the session message page from the task stack to close the session message page;

将所述消息列表页面从所述任务栈中出栈,以关闭所述消息列表页面;Popping the message list page from the task stack to close the message list page;

将所述目标页面从所述任务栈中出栈,以关闭所述目标页面。Popping the target page from the task stack to close the target page.

其中,所述会话消息页面还包括会话消息页面折叠标识;Wherein, the conversation message page also includes a conversation message page folding mark;

所述方法还包括:The method also includes:

响应针对所述会话消息页面折叠标识的触发操作,获取与所述会话消息对应的发送用户头像;Responding to a trigger operation directed at the page folding identifier of the session message, acquiring the avatar of the sending user corresponding to the session message;

关闭所述会话消息页面,根据所述发送用户头像生成发送用户头像悬浮窗口,并在所述目标页面上显示所述发送用户头像悬浮窗口;Closing the session message page, generating a floating window for sending user avatars according to the sending user avatars, and displaying the floating window for sending user avatars on the target page;

响应针对所述发送用户头像悬浮窗口的触发操作,创建消息显示页面,并在所述目标页面上显示所述消息显示页面;所述消息显示页面包括头像页面窗口;所述头像页面窗口包括所述发送用户头像;Responding to the trigger operation for the floating window of the sending user's avatar, create a message display page, and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window includes the send user avatar;

响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作。In response to a trigger operation on the avatar page window, execute a business behavior operation associated with the message display page.

其中,所述响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作,包括:Wherein, the response to the trigger operation of the avatar page window is to execute the business behavior operation associated with the message display page, including:

响应针对所述头像页面窗口的第一滑动操作;所述第一滑动操作对应第一滑动距离和第一滑动方向;Responding to a first sliding operation for the avatar page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;

当所述第一滑动距离和所述第一滑动方向满足页面删除条件时,关闭所述消息显示页面。When the first sliding distance and the first sliding direction meet a page deletion condition, the message display page is closed.

其中,所述头像页面窗口包括第一头像页面窗口和第二头像页面窗口;所述消息显示页面还包括所述会话消息页面窗口;Wherein, the avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window;

所述响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作,包括:In response to the trigger operation of the avatar page window, execute the business behavior operation associated with the message display page, including:

响应所述第一头像页面窗口向所述第二头像页面窗口的第二滑动操作;所述第二滑动操作对应第二滑动距离;Responding to a second sliding operation from the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance;

当所述第二滑动距离满足群组生成条件时,根据所述第一头像页面窗口对应的第一用户对象和所述第二头像页面窗口对应的第二用户对象,创建消息群组页面窗口,并在所述消息显示页面上将所述会话消息页面窗口切换为所述消息群组页面窗口;所述消息群组页面窗口包括所述第一用户对象和所述第二用户对象。When the second sliding distance satisfies the group generation condition, create a message group page window according to the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, And switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

其中,还包括:Among them, also include:

响应针对所述发送用户头像悬浮窗口的第三滑动操作;所述第三滑动操作对应第三滑动距离和第三滑动方向;Responding to a third sliding operation on the floating window of the sending user's avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction;

当所述第三滑动距离和所述第三滑动方向满足用户头像列表显示条件时,根据所述发送用户头像,在所述目标页面上创建用户头像列表悬浮窗口;所述用户头像列表悬浮窗口包含所述发送用户头像。When the third sliding distance and the third sliding direction meet the user avatar list display condition, according to the sending user avatar, create a user avatar list floating window on the target page; the user avatar list floating window includes Said send user avatar.

其中,所述根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口,包括:Wherein, the creating a session message window according to the session message, and displaying the session message window on the target page include:

检测所述会话消息中包含的字符数量;detecting the number of characters contained in the conversation message;

若所述字符数量小于或等于数量阈值,则在所述第二进程中创建第一会话消息悬浮窗口,将所述第一会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第一会话消息悬浮窗口;所述第一会话消息悬浮窗口为静态显示所述会话消息的悬浮窗口;If the number of characters is less than or equal to the number threshold, then create a first conversational message floating window in the second process, determine the first conversational message floating window as the conversational message window, and display the message on the target page displaying the first conversational message floating window; the first conversational message floating window is a floating window statically displaying the conversational message;

若所述字符数量大于所述数量阈值,则在所述第二进程中创建第二会话消息悬浮窗口,将所述第二会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第二会话消息悬浮窗口;所述第二会话消息悬浮窗口为动态显示所述会话消息的悬浮窗口。If the number of characters is greater than the number threshold, then create a second session message suspension window in the second process, determine the second session message suspension window as the session message window, and display on the target page The second conversational message floating window is displayed on the screen; the second conversational message floating window is a floating window for dynamically displaying the conversational message.

其中,所述会话消息包括第一消息和第二消息;所述第一消息属于第三用户对象,所述第二消息属于第四用户对象,且所述第一消息的接收时间戳小于所述第二消息的接收时间戳;Wherein, the conversation message includes a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the receiving time stamp of the first message is less than the the reception timestamp of the second message;

所述方法还包括:The method also includes:

响应针对所述会话消息窗口的触发操作,创建辅助页面;所述辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口;所述第一消息页面窗口包含所述第一消息;所述第三头像页面窗口包括所述第三用户对象对应的用户头像;所述第四头像页面窗口包括所述第四用户对象对应的用户头像;Create an auxiliary page in response to a trigger operation on the session message window; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window includes the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object;

在所述目标页面上显示所述辅助页面;displaying the secondary page on the target page;

响应针对所述辅助页面中的所述第三头像页面窗口向所述第四头像页面窗口的滑动操作,创建包含所述第二消息的第二消息页面窗口,并在所述辅助页面上将所述第一消息页面窗口切换为所述第二消息页面窗口。Responding to the sliding operation from the third avatar page window to the fourth avatar page window in the auxiliary page, creating a second message page window containing the second message, and uploading the second message page window on the auxiliary page The first message page window is switched to the second message page window.

本发明实施例另一方面提供了一种页面处理装置,包括:Another aspect of the embodiment of the present invention provides a page processing device, including:

第一显示模块,用于显示属于第一进程的目标页面;所述目标页面为前台显示页面;The first display module is configured to display a target page belonging to the first process; the target page is a foreground display page;

第二显示模块,用于当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识;The second display module is configured to display an unread message reminder on the target page when receiving a session message belonging to the second process;

响应模块,用于响应针对所述未读消息提醒标识的触发操作;A response module, configured to respond to the trigger operation for the unread message reminder flag;

第一创建模块,用于根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。A first creating module, configured to create a session message window according to the session message, and display the session message window on the target page.

其中,所述第二显示模块,包括:Wherein, the second display module includes:

获取单元,用于当接收到属于所述第二进程的所述会话消息,且所述会话消息具有显示优先级时,在所述第二进程中获取与所述会话消息对应的发送用户头像,并获取所述会话消息的数量,作为未读消息数量;an acquiring unit, configured to acquire, in the second process, the avatar of the sending user corresponding to the session message when the session message belonging to the second process is received and the session message has a display priority, and obtain the number of conversation messages as the number of unread messages;

同步单元,用于基于跨进程同步服务,将所述第一进程的进程状态信息同步至所述第二进程;所述进程状态信息包括前台运行状态;A synchronization unit, configured to synchronize the process state information of the first process to the second process based on a cross-process synchronization service; the process state information includes a foreground running state;

所述同步单元,还用于若所述第二进程为前台运行状态,且所述会话消息属于未读消息类型,则基于所述跨进程同步服务,将所述未读消息数量和所述发送用户头像同步至所述第一进程;The synchronization unit is further configured to: if the second process is in the foreground running state and the conversation message belongs to the unread message type, based on the cross-process synchronization service, the number of unread messages and the sending The user avatar is synchronized to the first process;

所述同步单元,还用于在所述第一进程中,根据所述未读消息数量和所述发送用户头像生成所述未读消息提醒标识,并在所述目标页面上显示所述未读消息提醒标识。The synchronization unit is further configured to, in the first process, generate the unread message reminder mark according to the number of unread messages and the avatar of the sending user, and display the unread message on the target page Message reminder logo.

其中,还包括:Among them, also include:

获取模块,用于在所述第二进程中,获取所述会话消息的消息摘要,并根据所述消息摘要创建消息列表页面;所述消息列表页面包括消息列表页面窗口;所述消息列表页面窗口包括所述消息摘要;An acquisition module, configured to acquire a message digest of the session message in the second process, and create a message list page according to the message digest; the message list page includes a message list page window; the message list page window include a digest of said message;

所述获取模块,还用于在所述第一进程对应的任务栈中对所述消息列表页面入栈,并激活所述消息列表页面,以在所述目标页面上显示所述消息列表页面;The obtaining module is further configured to push the message list page into the task stack corresponding to the first process, and activate the message list page, so as to display the message list page on the target page;

通知模块,用于响应针对所述消息列表页面窗口的触发操作,通知所述第一创建模块执行对应步骤。The notification module is configured to notify the first creation module to execute corresponding steps in response to a trigger operation on the message list page window.

其中,所述第一创建模块,包括:Wherein, the first creation module includes:

第一创建单元,用于在所述第二进程中,创建会话消息页面;所述会话消息页面包括所述会话消息页面窗口;所述会话消息页面窗口包含所述会话消息;A first creating unit, configured to create a session message page in the second process; the session message page includes the session message page window; the session message page window includes the session message;

所述第一创建单元,还用于将所述会话消息页面窗口确定为所述会话消息窗口;The first creating unit is further configured to determine the session message page window as the session message window;

入栈单元,用于在所述任务栈中对所述会话消息页面入栈,并激活所述会话消息页面,以在所述目标页面上显示所述会话消息页面中的所述会话消息页面窗口。A stacking unit, configured to push the session message page in the task stack, and activate the session message page, so as to display the session message page window in the session message page on the target page .

其中,所述会话消息页还包括会话消息页面关闭标识;所述消息列表页面还包括消息列表页面关闭标识;所述目标页面还包括目标页面关闭标识;Wherein, the session message page also includes a session message page closing identifier; the message list page also includes a message list page closing identifier; the target page also includes a target page closing identifier;

所述装置还包括:The device also includes:

所述响应模块,还用于响应针对所述会话消息页面关闭标识的触发操作、针对所述消息列表页面关闭标识的触发操作、针对所述目标页面关闭标识的触发操作;The response module is further configured to respond to a trigger operation directed at the session message page closing identifier, a trigger operation directed at the message list page closing identifier, and a trigger operation directed at the target page closing identifier;

关闭模块,用于关闭所述会话消息页面、所述消息列表页面、所述目标页面。The closing module is used to close the conversation message page, the message list page, and the target page.

其中,所述所述会话消息页面、所述消息列表页面和所述目标页面均属于与所述任务栈;所述会话消息页面位于所述任务栈栈顶,所述消息列表页面与所述会话消息页面相邻,所述目标页面与所述消息列表页面相邻;Wherein, the session message page, the message list page and the target page all belong to the task stack; the session message page is located at the top of the task stack, and the message list page and the session The message page is adjacent, and the target page is adjacent to the message list page;

所述关闭模块,包括:The closing module includes:

第一出栈单元,用于将所述会话消息页面从所述任务栈中出栈,以关闭所述会话消息页面;a first stack popping unit, configured to pop the session message page from the task stack to close the session message page;

第二出栈单元,用于将所述消息列表页面从所述任务栈中出栈,以关闭所述消息列表页面;a second popping unit, configured to pop the message list page from the task stack to close the message list page;

所述第二出栈单元,还用于将所述目标页面从所述任务栈中出栈,以关闭所述目标页面。The second popping unit is further configured to pop the target page from the task stack to close the target page.

其中,所述会话消息页面还包括会话消息页面折叠标识;Wherein, the conversation message page also includes a conversation message page folding mark;

所述装置还包括:The device also includes:

所述响应模块,还用于响应针对所述会话消息页面折叠标识的触发操作,获取与所述会话消息对应的发送用户头像;The response module is further configured to respond to a trigger operation directed at the page folding identifier of the conversation message, and obtain the avatar of the sending user corresponding to the conversation message;

生成模块,用于关闭所述会话消息页面,根据所述发送用户头像生成发送用户头像悬浮窗口,并在所述目标页面上显示所述发送用户头像悬浮窗口;A generating module, configured to close the session message page, generate a floating window for sending user avatars according to the sending user avatars, and display the floating window for sending user avatars on the target page;

所述生成模块,还用于响应针对所述发送用户头像悬浮窗口的触发操作,创建消息显示页面,并在目标页面上显示所述消息显示页面;所述消息显示页面包括头像页面窗口;所述头像页面窗口包括所述发送用户头像;The generation module is also used to create a message display page in response to the trigger operation of the floating window of the sending user's avatar, and display the message display page on the target page; the message display page includes an avatar page window; the The avatar page window includes the sending user avatar;

业务行为操作模块,用于响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作。A business behavior operation module, configured to execute a business behavior operation associated with the message display page in response to a trigger operation on the avatar page window.

其中,所述业务行为操作模块,包括:Wherein, the business behavior operation module includes:

第一响应单元,用于响应针对所述头像页面窗口的第一滑动操作;所述第一滑动操作对应第一滑动距离和第一滑动方向;A first response unit, configured to respond to a first sliding operation for the avatar page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;

关闭单元,用于当所述第一滑动距离和所述第一滑动方向满足页面删除条件时,关闭所述消息显示页面。A closing unit, configured to close the message display page when the first sliding distance and the first sliding direction meet a page deletion condition.

其中,所述头像页面窗口包括第一头像页面窗口和第二头像页面窗口;所述消息显示页面还包括所述会话消息页面窗口;Wherein, the avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window;

所述业务行为操作模块,包括:The business behavior operation module includes:

第二响应单元,用于响应所述第一头像页面窗口向所述第二头像页面窗口的第二滑动操作;所述第二滑动操作对应第二滑动距离;A second response unit, configured to respond to a second sliding operation from the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance;

第二创建单元,用于当所述第二滑动距离满足群组生成条件时,根据所述第一头像页面窗口对应的第一用户对象和所述第二头像页面窗口对应的第二用户对象,创建消息群组页面窗口,并在所述消息显示页面上将所述会话消息页面窗口切换为所述消息群组页面窗口;所述消息群组页面窗口包括所述第一用户对象和所述第二用户对象。The second creation unit is configured to, when the second sliding distance satisfies the group generation condition, according to the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, Create a message group page window, and switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object Two user objects.

其中,还包括:Among them, also include:

所述响应模块,还用于响应针对所述发送用户头像悬浮窗口的第三滑动操作;所述第三滑动操作对应第三滑动距离和第三滑动方向;The response module is also used to respond to a third sliding operation for the floating window of the sending user avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction;

第二创建模块,用于当所述第三滑动距离和所述第三滑动方向满足用户头像列表显示条件时,根据所述发送用户头像,在所述目标页面上创建用户头像列表悬浮窗口;所述用户头像列表悬浮窗口包含所述发送用户头像。The second creating module is used to create a user avatar list floating window on the target page according to the sending user avatar when the third sliding distance and the third sliding direction meet the display conditions of the user avatar list; The user avatar list floating window includes the sending user avatar.

其中,所述第一创建模块,包括:Wherein, the first creation module includes:

检测单元,用于检测所述会话消息中包含的字符数量;a detection unit, configured to detect the number of characters contained in the conversation message;

确定单元,用于若所述字符数量小于或等于数量阈值,则在所述第二进程中创建第一会话消息悬浮窗口,将所述第一会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第一会话消息悬浮窗口;所述第一会话消息悬浮窗口为静态显示所述会话消息的悬浮窗口;A determining unit, configured to create a first conversational message floating window in the second process if the number of characters is less than or equal to a quantity threshold, determine the first conversational message floating window as the conversational message window, and Displaying the first conversational message floating window on the target page; the first conversational message floating window is a floating window statically displaying the conversational message;

所述确定单元,还用于若所述字符数量大于所述数量阈值,则在所述第二进程中创建第二会话消息悬浮窗口,将所述第二会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第二会话消息悬浮窗口;所述第二会话消息悬浮窗口为动态显示所述会话消息的悬浮窗口。The determining unit is further configured to create a second conversation message floating window in the second process if the number of characters is greater than the number threshold, and determine the second conversation message floating window as the conversation message window, and display the second floating window of conversational messages on the target page; the second floating window of conversational messages is a floating window for dynamically displaying the conversational messages.

其中,所述会话消息包括第一消息和第二消息;所述第一消息属于第三用户对象,所述第二消息属于第四用户对象,且所述第一消息的接收时间戳小于所述第二消息的接收时间戳;Wherein, the conversation message includes a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the receiving time stamp of the first message is less than the the reception timestamp of the second message;

所述装置还包括:The device also includes:

所述响应模块,还用于响应针对所述会话消息窗口的触发操作,创建辅助页面;所述辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口;所述第一消息页面窗口包含所述第一消息;所述第三头像页面窗口包括所述第三用户对象对应的用户头像;所述第四头像页面窗口包括所述第四用户对象对应的用户头像;The response module is also used to create an auxiliary page in response to the trigger operation for the session message window; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first The message page window includes the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object;

第三显示模块,用于在所述目标页面上显示所述辅助页面;a third display module, configured to display the auxiliary page on the target page;

所述响应模块,还用于响应针对所述辅助页面中的所述第三头像页面窗口向所述第四头像页面窗口的滑动操作,创建包含所述第二消息的第二消息页面窗口,并在所述辅助页面上将所述第一消息页面窗口切换为所述第二消息页面窗口。The response module is further configured to respond to a sliding operation from the third avatar page window to the fourth avatar page window in the auxiliary page, create a second message page window containing the second message, and Switching the first message page window to the second message page window on the auxiliary page.

本发明实施例另一方面提供了一种电子设备,包括:处理器和存储器;Another aspect of the embodiment of the present invention provides an electronic device, including: a processor and a memory;

所述处理器和存储器相连,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,以执行如本发明实施例中一方面中的方法。The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method in one aspect of the embodiments of the present invention.

本发明实施例另一方面提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,执行如本发明实施例中一方面中的方法。Another aspect of the embodiments of the present invention provides a computer storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the computer program according to the embodiment of the present invention is executed. method in one aspect.

本发明实施例通过显示属于第一进程的目标页面,当接收到属于第二进程的会话消息时,在目标页面上显示未读消息提醒标识;响应针对所述未读消息提醒标识的点击操作,创建包含会话消息的会话消息页面窗口,在目标页面上显示该会话消息。上述可知,相比关闭当前显示页面,再打开会话消息所在的页面向用户展示消息内容,直接在当前显示页面上创建并显示包含消息内容的窗口,无需退出当前显示页面,可以降低终端与用户的交互次数,提高终端向用户展示消息内容的效率。In the embodiment of the present invention, by displaying the target page belonging to the first process, when a session message belonging to the second process is received, an unread message reminder indicator is displayed on the target page; in response to the click operation on the unread message reminder indicator, Creates a session message page window containing a session message, and displays the session message on the target page. As can be seen from the above, compared to closing the current display page, and then opening the page where the session message is located to display the message content to the user, a window containing the message content is directly created and displayed on the current display page without exiting the current display page, which can reduce the interaction between the terminal and the user. Interaction times to improve the efficiency of terminal displaying message content to users.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的一种页面处理的场景示意图;FIG. 1 is a schematic diagram of a scene of page processing provided by an embodiment of the present invention;

图2a是本发明实施例提供的一种页面处理方法的流程示意图;Fig. 2a is a schematic flowchart of a page processing method provided by an embodiment of the present invention;

图2b是本发明实施例提供的一种确定未读消息提醒标识的示意图;Fig. 2b is a schematic diagram of determining an unread message reminder provided by an embodiment of the present invention;

图2c是本发明实施例提供的一种消息列表页面示意图;Fig. 2c is a schematic diagram of a message list page provided by an embodiment of the present invention;

图2d是本发明实施例提供的一种返回第二进程的示意图;Fig. 2d is a schematic diagram of returning to the second process provided by an embodiment of the present invention;

图2e是本发明实施例提供的一种确定会话消息页面的示意图;Fig. 2e is a schematic diagram of a confirmation session message page provided by an embodiment of the present invention;

图3a是本发明实施例提供的另一种页面处理方法的流程示意图;Fig. 3a is a schematic flowchart of another page processing method provided by an embodiment of the present invention;

图3b是本发明实施例提供的一种确定消息显示页面的示意图;Fig. 3b is a schematic diagram of a confirmation message display page provided by an embodiment of the present invention;

图3c是本发明实施例提供的一种窗口切换示意图;Fig. 3c is a schematic diagram of window switching provided by an embodiment of the present invention;

图3d是本发明实施例提供的一种关闭消息显示页面的示意图;Fig. 3d is a schematic diagram of a closing message display page provided by an embodiment of the present invention;

图3e是本发明实施例提供的一种关闭页面窗口的示意图;Fig. 3e is a schematic diagram of closing a page window provided by an embodiment of the present invention;

图3f是本发明实施例提供的一种创建消息群组页面窗口的示意图;Fig. 3f is a schematic diagram of a page window for creating a message group provided by an embodiment of the present invention;

图3g是本发明实施例提供的一种确定用户头像列表悬浮窗口的示意图;Fig. 3g is a schematic diagram of a floating window for determining a list of user avatars provided by an embodiment of the present invention;

图3h是本发明实施例提供的一种滑动用户头像列表悬浮窗口的示意图;Fig. 3h is a schematic diagram of a sliding user avatar list floating window provided by an embodiment of the present invention;

图4a是本发明实施例提供的另一种页面处理方法的流程示意图;Fig. 4a is a schematic flowchart of another page processing method provided by an embodiment of the present invention;

图4b是本发明实施例提供的一种确定会话消息窗口的示意图;Fig. 4b is a schematic diagram of a confirmation session message window provided by an embodiment of the present invention;

图4c是本发明实施例提供的一种切换页面窗口的示意图;Fig. 4c is a schematic diagram of a switching page window provided by an embodiment of the present invention;

图4d是本发明实施例提供的一种确定未读消息提醒标识的交互示意图;Fig. 4d is an interactive schematic diagram of determining an unread message reminder identifier provided by an embodiment of the present invention;

图5是本发明实施例提供的一种页面处理装置的结构示意图;Fig. 5 is a schematic structural diagram of a page processing device provided by an embodiment of the present invention;

图6是是本发明实施例提供的一种电子设备的结构示意图。Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

终端设备当前显示的页面为目标页面,且目标页面是属于第一进程的。当终端设备的第二进程接收到新消息后,在目标页面上显示未读消息提醒标识,该标识是用于提醒用户存在未读新消息。用户触发该未读消息提醒标识后,可以在目标页面上显示消息窗口,该消息窗口包括新消息的消息内容。这样用户不必返新消息所属进程的主界面,在目标页面上就可以查看新消息。The page currently displayed by the terminal device is the target page, and the target page belongs to the first process. When the second process of the terminal device receives the new message, it displays an unread message reminder mark on the target page, and the mark is used to remind the user that there is an unread new message. After the user triggers the unread message reminder flag, a message window may be displayed on the target page, and the message window includes message content of the new message. In this way, the user can check the new message on the target page without returning to the main interface of the process to which the new message belongs.

下述以“天下新闻”APP(Application,应用程序)对应的进程为第一进程,以“消息”APP对应的进程为第二进程为例,具体说明终端设备如何高效率地向用户展示消息内容。The following takes the process corresponding to the "World News" APP (Application, application program) as the first process, and the process corresponding to the "Message" APP as the second process as an example to illustrate how the terminal device can efficiently display message content to the user .

请参见图1,是本发明实施例提供的一种页面处理的场景示意图。终端设备当前显示的页面是页面10a,即页面10a是前台显示页面。从图1可以知道,页面10a属于“天下新闻”APP对应的进程(称为“天下新闻”进程),若此时终端设备中的“消息”APP对应的进程(称为“消息”进程)接收到新消息,“消息”进程就会向“天下新闻”进程发送存在新消息的通知。Please refer to FIG. 1 , which is a schematic diagram of a scene of page processing provided by an embodiment of the present invention. The page currently displayed by the terminal device ispage 10a, that is,page 10a is a foreground display page. It can be known from Fig. 1 that thepage 10a belongs to the process corresponding to the "World News" APP (called the "World News" process), if the process corresponding to the "Message" APP in the terminal device (called the "Message" process) receives When a new message is received, the "message" process will send a notification to the "world news" process that there is a new message.

“天下新闻”进程接收到该通知后,在页面10a上显示未读消息提醒标识10b。若用户点击该未读消息提醒标识10b,“消息”进程创建消息列表页面,消息页面包括消息摘要页面窗口10c,以及透明背景页面窗口10d,“消息”进程将创建好的消息列表页面添加至“天下新闻”进程对应的任务栈中,其中启动任何APP时系统就会为该APP创建对应的任务栈。After the "World News" process receives the notification, it displays an unreadmessage reminder mark 10b on thepage 10a. If the user clicks on the unreadmessage reminder mark 10b, the "message" process creates a message list page, the message page includes a messagesummary page window 10c, and a transparentbackground page window 10d, and the "message" process adds the created message list page to " In the task stack corresponding to the "World News" process, when any APP is started, the system will create a corresponding task stack for the APP.

从终端设备底层数据处理的角度来看,每个页面对应一个activity对象实例,前述中将创建好的消息列表页面添加至“天下新闻”进程对应的任务栈即是将消息列表页面对应的activity对象实例添加至“天下新闻”进程对应的任务栈中,也就是说,消息列表页面以及“天下新闻”进程是共享任务栈的。From the perspective of data processing at the bottom of the terminal device, each page corresponds to an activity object instance. Adding the created message list page to the task stack corresponding to the "World News" process in the above is to add the activity object corresponding to the message list page The instance is added to the task stack corresponding to the "World News" process, that is to say, the message list page and the "World News" process share the task stack.

其中,消息摘要页面窗口10c可以包括发送消息的用户头像以及消息内容的摘要,其中消息内容的摘要可以是消息内容的前N个字符,N是大于等于1的整数。Wherein, the messagesummary page window 10c may include the avatar of the user who sent the message and a summary of the message content, wherein the summary of the message content may be the first N characters of the message content, and N is an integer greater than or equal to 1.

激活消息列表页面对应的activity对象实例(即是激活消息列表页面),以显示消息列表页面,也就是在目标页面上可以显示消息摘要页面窗口10c、透明背景页面窗口10d。Activate the corresponding activity object instance of the message list page (that is, activate the message list page) to display the message list page, that is, the messagesummary page window 10c and the transparentbackground page window 10d can be displayed on the target page.

设置透明背景页面窗口10d是为了提醒用户终端设备当前没有关闭页面10a,这样可以尽可能地保持用户的浏览状态,可以将消息摘要页面窗口10c的尺寸设置得尽可能的小,对应地将透明背景页面窗口10d设置地尽可能地大;当然,也可以不创建透明背景页面窗口10d,而将消息摘要页面窗口10c铺满整个屏幕。The purpose of setting the transparentbackground page window 10d is to remind the user that the terminal device has not closed thepage 10a at present, so that the user's browsing status can be kept as much as possible, and the size of the messagesummary page window 10c can be set as small as possible, and the transparent background is correspondingly Thepage window 10d is set as large as possible; of course, thepage window 10c with a transparent background may not be created, but the messagesummary page window 10c covers the entire screen.

若用户点击消息摘要页面窗口10c,“消息”进程创建消息内容页面,消息内容页面包括消息会话页面窗口10e以及透明背景页面窗口10f,“消息”进程将创建好的消息内容页面添加至“天下新闻”进程对应的任务栈中,即是将创建好的消息内容页面对应的activity对象实例添加至“天下新闻”进程对应的任务栈中。也就是说,消息列表页面、消息内容页面以及“天下新闻”进程是共享任务栈的。其中,消息会话页面窗口10e是包含新消息的消息内容的。If the user clicks the messagesummary page window 10c, the "message" process creates a message content page, the message content page includes a messagesession page window 10e and a transparentbackground page window 10f, and the "message" process adds the created message content page to "World News "In the task stack corresponding to the process, the activity object instance corresponding to the created message content page is added to the task stack corresponding to the "World News" process. That is to say, the message list page, the message content page and the "World News" process share the task stack. Wherein, the messageconversation page window 10e contains the message content of the new message.

激活消息内容页面对应的activity对象实例,以在目标页面上显示消息内容页面,也就是在目标页面上可以显示消息会话页面窗口10e。用户查看了该消息会话页面窗口10e中的消息内容后,可以在消息会话页面窗口10e中编辑并发送回复消息,其中回复消息可以是文字形式、图片形式以及视频形式。The activity object instance corresponding to the message content page is activated to display the message content page on the target page, that is, the messagesession page window 10e can be displayed on the target page. After viewing the message content in the messageconversation page window 10e, the user can edit and send a reply message in the messageconversation page window 10e, wherein the reply message can be in the form of text, picture or video.

后续,用户关闭消息内容页面、消息列表页面后,终端设备的屏幕中显示的就是页面10a,用户可以继续浏览页面10a,由于用户已经查看了消息内容,当然此时页面10a中就不存在未读消息提醒标识10b了。Subsequently, after the user closes the message content page and the message list page,page 10a is displayed on the screen of the terminal device, and the user can continue to browsepage 10a. Since the user has already viewed the message content, of course there is nounread page 10a at this time. The message reminds thelogo 10b.

其中,图1中的终端设备可以包括手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)等。Wherein, the terminal device in FIG. 1 may include a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID, mobile internet device) and the like.

请参见图2a,是本发明实施例提供的一种页面处理方法的流程示意图,如图2a所示,该方法可以包括:Please refer to FIG. 2a, which is a schematic flowchart of a page processing method provided by an embodiment of the present invention. As shown in FIG. 2a, the method may include:

步骤S101,显示属于第一进程的目标页面;所述目标页面为前台显示页面。Step S101, displaying a target page belonging to the first process; the target page is a foreground display page.

具体的,当前在终端设备的屏幕中显示的页面称为目标页面(如上述图1对应实施例中的页面10a),也就是说目标页面是前台正在运行的进程(称为第一进程,如上述图1对应实施例中的“天下新闻”进程)的显示页面,例如,第一进程可以是视频应用程序所创建的进程,或者是阅读应用程序所创建的进程等。Specifically, the page currently displayed on the screen of the terminal device is called the target page (such as thepage 10a in the embodiment corresponding to FIG. 1 above corresponds to the display page of the "World News" process in the embodiment), for example, the first process may be a process created by a video application program, or a process created by a reading application program.

对终端设备来说,每个页面都对应Activity对象实例,Activity对象实例是存储在对应应用程序的任务栈中的。由于此时显示的目标页面,位于第一进程对应任务栈栈顶的Activity对象实例即是目标页面的Activity对象实例(可以称为第三活动对象实例),可以响应用户操作行为的页面是位于任务栈栈顶的页面。For a terminal device, each page corresponds to an Activity object instance, and the Activity object instance is stored in the task stack of the corresponding application program. Due to the target page displayed at this time, the Activity object instance at the top of the task stack corresponding to the first process is the Activity object instance of the target page (can be called the third activity object instance), and the page that can respond to user operation behavior is located in the task The page at the top of the stack.

进程是正在运行的程序的实例,若程序是APP程序,那么进程就是正在运行的APP的实例,从终端设备的操作系统角度来看,每个运行的APP至少对应1个进程,由于每个进程都占用内存的一块独立空间,因此如无特殊工具,进程与进程之间是相互独立的,换句话说进程之间是不通信的。A process is an instance of a running program. If the program is an APP program, then the process is an instance of the running APP. From the perspective of the operating system of the terminal device, each running APP corresponds to at least one process. Because each process Both occupy an independent space of memory, so if there is no special tool, the process and the process are independent of each other, in other words, there is no communication between the processes.

步骤S102,当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识。Step S102, when a conversation message belonging to the second process is received, an unread message reminder indicator is displayed on the target page.

具体的,当终端设备接收到会话消息,且该会话消息属于第二进程(如上述图1对应实施例中的“消息”进程)时,在属于第一进程的目标页面上显示未读消息提醒标识(如上述图1对应实施例中的未读消息提醒标识10b),用于提醒用户存在未读会话消息。未读消息提醒标识可以是圆形,正方形,或者是数值,其中该数值可以是上述第二进程接收到的会话消息的数量数值;也可以是属于第二进程,且属于未读消息类型的会话消息的数量数值。Specifically, when the terminal device receives a session message, and the session message belongs to the second process (such as the "message" process in the embodiment corresponding to Figure 1 above), an unread message reminder is displayed on the target page belonging to the first process The identifier (such as the unreadmessage reminder identifier 10b in the above embodiment corresponding to FIG. 1 ) is used to remind the user that there are unread conversation messages. The unread message reminder mark can be a circle, a square, or a numerical value, wherein the numerical value can be the number of conversation messages received by the second process; it can also be a conversation belonging to the second process and belonging to the unread message type The number of messages.

从终端设备的角度来说,在目标页面上显示未读消息提醒标识,就是第一进程在目标页面对应的Activity对象实例中添加视图对象,该视图对象对应未读消息提醒标识。From the perspective of the terminal device, displaying the unread message reminder on the target page means that the first process adds a view object to the Activity object instance corresponding to the target page, and the view object corresponds to the unread message reminder.

第一进程对应的应用(称为第一应用)和第二进程对应的应用(称为第二应用)可以是两个独立的应用,第一应用也可以是第二应用的嵌入式应用,即访问第一应用的入口在第二应用中。例如,第一应用是小程序应用。The application corresponding to the first process (referred to as the first application) and the application corresponding to the second process (referred to as the second application) may be two independent applications, and the first application may also be an embedded application of the second application, namely The entry to access the first application is in the second application. For example, the first application is an applet application.

一般来说,两个进程之间是不通信的,本发明为了使第二进程接收到会话消息后,在第一进程的目标页面上显示未读消息标识,也就是说两个进程之间可以通信,开发了跨进程同步框架,该同步框架可以提供进程同步服务,即是调用该跨进程同步框架,两个进程之间就可以通信。第二进程可以向第一进程同步与会话消息相关联的信息(例如,发送会话消息的发送用户头像,会话消息的数量等),第一进程也可以向第二进程同步进程状态信息,其中进程状态信息包括前台运行状态和后台等待状态。Generally speaking, there is no communication between the two processes. In order to make the second process receive the session message, the present invention displays an unread message identifier on the target page of the first process, that is to say, the two processes can communicate with each other. For communication, a cross-process synchronization framework has been developed, which can provide process synchronization services, that is, by calling the cross-process synchronization framework, two processes can communicate. The second process can synchronize information associated with the session message to the first process (for example, the avatar of the user who sends the session message, the number of session messages, etc.), and the first process can also synchronize the process state information to the second process, wherein the process Status information includes foreground running status and background waiting status.

第二进程确定接收到的会话消息的数量,作为未读消息数量。基于跨进程同步服务,第一进程向第二进程同步进程状态信息,若第一进程的进程状态信息是前台运行状态,且会话消息属于未读消息类型,再基于跨进程同步服务,第二进程向第一进程同步上述未读消息数量。The second process determines the number of conversation messages received as the number of unread messages. Based on the cross-process synchronization service, the first process synchronizes the process state information with the second process. If the process state information of the first process is the foreground running state, and the session message belongs to the unread message type, then based on the cross-process synchronization service, the second process Synchronize the number of unread messages with the first process.

第一进程可以将未读消息数量对应的数值作为未读消息提醒标识,并在目标页面上显示该未读消息提醒标识。The first process may use the numerical value corresponding to the number of unread messages as an unread message reminder identifier, and display the unread message reminder identifier on the target page.

可选的,若接收到的会话消息具有显示优先级,则第二进程获取与会话消息对应的发送用户的发送用户头像。基于跨进程同步服务,第一进程向第二进程同步进程状态信息,若第一进程的进程状态信息是前台运行状态,且会话消息属于未读消息类型,基于跨进程同步服务,第二进程向第一进程同步上述发送用户头像。第一进程可以将发送用户头像作为未读消息提醒标识,并在目标页面上显示该未读消息提醒标识。Optionally, if the received conversation message has a display priority, the second process acquires the sending user avatar of the sending user corresponding to the conversation message. Based on the cross-process synchronization service, the first process synchronizes process status information to the second process. If the process status information of the first process is the foreground running status, and the session message belongs to the unread message type, based on the cross-process synchronization service, the second process sends The first process synchronizes the sending user avatar. The first process may send the user avatar as an unread message reminder identifier, and display the unread message reminder identifier on the target page.

可选的,若接收到的会话消息具有显示优先级,则第二进程获取与会话消息对应的发送用户的发送用户头像,以及获取会话消息的数量,作为未读消息数量。基于跨进程同步服务,第一进程向第二进程同步进程状态信息,若第一进程的进程状态信息是前台运行状态,且会话消息属于未读消息类型,基于跨进程同步服务,第二进程向第一进程同步上述未读消息数量以及发送用户头像。第一进程可以将未读消息数量对应的数值以及发送用户头像组合为未读消息提醒标识,并在目标页面上显示该未读消息提醒标识。Optionally, if the received conversation message has display priority, the second process obtains the sending user avatar of the sending user corresponding to the conversation message, and obtains the number of conversation messages as the number of unread messages. Based on the cross-process synchronization service, the first process synchronizes process status information to the second process. If the process status information of the first process is the foreground running status, and the session message belongs to the unread message type, based on the cross-process synchronization service, the second process sends The first process synchronizes the number of unread messages and sends user avatars. The first process may combine the numerical value corresponding to the number of unread messages and the avatar of the sending user into an unread message reminder identifier, and display the unread message reminder identifier on the target page.

其中,会话消息是否具有显示优先级是由发送会话消息的发送方与接收会话消息的接收方之间的亲密度决定的。例如,若用户A将用户B标记为特别关心对象,说明用户A与用户B之间的亲密度高,当用户A所在的终端设备接收到来自用户B的会话消息时,此时用户B的会话消息就具有显示优先级;当然还可以根据用户A与用户B之间通信频率来确定他们之间的亲密度。Wherein, whether the conversation message has display priority is determined by the intimacy between the sender who sends the conversation message and the receiver who receives the conversation message. For example, if user A marks user B as an object of special concern, it means that the intimacy between user A and user B is high. When the terminal device where user A is located receives a conversation message from user B, the conversation The message has a display priority; of course, the intimacy between user A and user B can also be determined according to the frequency of communication between them.

需要说明的是,如果具有显示优先级的会话消息的数量是多个,且对应的发送用户也是多个时,可以将发送时间最早的会话消息对应的发送用户头像以及所有会话消息的数量数值组合为未读消息提醒标识。It should be noted that if the number of conversation messages with display priority is multiple, and the corresponding sending users are also multiple, the avatar of the sending user corresponding to the conversation message with the earliest sending time and the number values of all conversation messages can be combined Reminder ID for unread messages.

可选的,第二进程确定第一进程的进程状态信息是前台运行状态后,第二进程对该会话消息的系统通知进行过滤,即是不再目标页面上弹出包含会话消息的系统通知。Optionally, after the second process determines that the process state information of the first process is in the foreground running state, the second process filters the system notification of the session message, that is, no system notification containing the session message pops up on the target page.

请参见图2b,是本发明实施例提供的一种确定未读消息提醒标识的示意图,如图2b所示,页面20a为目标页面,当会话消息具有显示优先级时,第二进程将获取的发送用户头像,基于跨进程同步服务,向第一进程同步上述发送用户头像。第一进程将发送用户头像作为未读消息提醒标识20b,并将该未读消息提醒标识20b显示在目标页面上。Please refer to FIG. 2b, which is a schematic diagram of determining an unread message reminder identifier provided by an embodiment of the present invention. As shown in FIG. 2b, thepage 20a is the target page. When the conversation message has a display priority, the second process will obtain Sending the user avatar, based on the cross-process synchronization service, synchronizing the sending of the user avatar to the first process. The first process will send the user avatar as the unreadmessage reminder identifier 20b, and display the unreadmessage reminder identifier 20b on the target page.

步骤S103,响应针对所述未读消息提醒标识的触发操作,根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。Step S103, in response to the trigger operation on the unread message reminder flag, create a session message window according to the session message, and display the session message window on the target page.

具体的,用户可以点击该未读消息提醒标识,与目标页面对应的Activity组件可以响应该点击操作,并通知第一进程。基于跨进程同步服务,第一进程向第二进同步点击操作信息,第二进程获取上述会话消息的消息摘要,其中消息摘要可以是会话消息的前N个字符。Specifically, the user may click on the unread message reminder indicator, and the Activity component corresponding to the target page may respond to the click operation and notify the first process. Based on the cross-process synchronization service, the first process synchronizes the click operation information to the second process, and the second process obtains the message digest of the above-mentioned conversation message, wherein the message digest may be the first N characters of the conversation message.

第二进程创建包含消息列表页面窗口(如上述图1对应实施例中的消息摘要页面窗口10c)的消息列表页面(如上述图1对应实施例中的消息列表页面),消息列表页面窗口包含消息摘要,发送用户头像,发送用户昵称等。消息列表页面的尺寸可以与屏幕尺寸相同,也可以与屏幕尺寸不同。The second process creates a message list page (such as the message list page in the above-mentioned FIG. 1 corresponding embodiment) that includes a message list page window (such as the messagesummary page window 10c in the above-mentioned FIG. 1 corresponding embodiment), and the message list page window includes a message Summary, send user avatar, send user nickname, etc. The size of the message list page can be the same as the screen size or different from the screen size.

请参见图2c,是本发明实施例提供的一种消息列表页面示意图,图2c中的页面30a即是消息列表页面30a,若会话消息的数量不止一个,可以看出,消息列表页面30a中包括多个消息列表页面窗口(例如,消息列表页面窗口30c)以及透明背景页面窗口30b。第二进程可以按照每个会话消息的接收时间戳在消息列表页面对多个消息列表页面窗口排版,若会话消息具有显示优先级,该会话消息对应的消息列表页面窗口可以位于消息列表页面的顶部。用户还可以滑动消息列表页面,用于上下翻看多个消息列表页面窗口中的消息摘要。Please refer to FIG. 2c, which is a schematic diagram of a message list page provided by an embodiment of the present invention. Thepage 30a in FIG. 2c is themessage list page 30a. A plurality of message list page windows (for example, messagelist page window 30c) and a transparentbackground page window 30b. The second process can layout multiple message list page windows on the message list page according to the receiving time stamp of each session message. If the session message has a display priority, the message list page window corresponding to the session message can be located at the top of the message list page . The user can also slide the message list page to scroll up and down the message summaries in multiple message list page windows.

第二进程还可以在消息列表页面上创建透明背景页面窗口。每个页面都可以看做是多个页面窗口(也可以叫作视图)的组合,页面可以看做是容器,页面窗口可以看做是向容器中添加的内容,页面窗口存在是以页面为依托的。The second process can also create a transparent background page window on the message list page. Each page can be regarded as a combination of multiple page windows (also called views). The page can be regarded as a container, and the page window can be regarded as the content added to the container. The existence of the page window is based on the page. of.

可选的,消息列表页面还可以包括历史消息列表页面窗口,该历史消息列表页面窗口包括历史消息的消息摘要,历史消息即是已读消息。后续若用户点击该历史消息列表页面窗口,创建历史消息页面,该历史消息页面包括历史消息页面窗口,历史消息页面窗口包括历史消息,并在目标页面上显示该历史消息页面。Optionally, the message list page may further include a historical message list page window, and the historical message list page window includes a message summary of the historical message, where the historical message is a read message. If the user subsequently clicks on the historical message list page window, a historical message page is created, the historical message page includes a historical message page window, and the historical message page window includes historical messages, and the historical message page is displayed on the target page.

第二进程将消息列表页面存储在第一进程对应的任务栈中(即是入栈),此时消息列表页面就位于任务栈的栈顶。激活消息列表页面,以在目标页面上显示该消息列表页面。The second process stores the message list page in the task stack corresponding to the first process (that is, pushes it into the stack). At this time, the message list page is located at the top of the task stack. Activate the message list page to display the message list page on the target page.

消息列表页面对应一个Activity对象实例(可以称为第二活动对象实例),消息列表页面窗口就是Activity对象实例中的视图,将消息列表入栈即是将消息列表页面对应的Activity对象实例存储在第一进程对应的任务栈中,此时消息列表页面对应的Activity对象实例就位于任务栈的栈顶。激活位于任务栈栈顶的消息列表页面对应的Activity对象实例,以显示消息列表页面,也就是显示消息列表页面窗口。The message list page corresponds to an Activity object instance (can be called the second activity object instance), the message list page window is the view in the Activity object instance, and pushing the message list onto the stack means storing the Activity object instance corresponding to the message list page in the second In the task stack corresponding to a process, the Activity object instance corresponding to the message list page is at the top of the task stack at this time. Activate the Activity object instance corresponding to the message list page at the top of the task stack to display the message list page, that is, display the message list page window.

可选的,消息列表页面还可以包括返回标识(该返回标识同样可以理解为消息列表页面对应的Activity对象实例中的视图对象),若用户点击该返回标识,终端设备关闭当前消息列表页面,并将前台进程由第一进程切换为第二进程,即第一进程的进程状态信息由前台运行状态切换为后台等待状态;对应地,第二进程的进程状态信息由后台等待状态切换为前台运行状态,此时在终端设备的屏幕上就显示属于第二进程的主界面。Optionally, the message list page can also include a return identifier (this return identifier can also be understood as a view object in the corresponding Activity object instance of the message list page), if the user clicks the return identifier, the terminal device closes the current message list page, and Switch the foreground process from the first process to the second process, that is, the process state information of the first process is switched from the foreground running state to the background waiting state; correspondingly, the process state information of the second process is switched from the background waiting state to the foreground running state , at this time, the main interface belonging to the second process is displayed on the screen of the terminal device.

请参见图2d,是本发明实施例提供的一种返回第二进程的示意图,页面40a是包含未读消息提醒标识的目标页面40a,当用户点击未读消息提醒标识后,在屏幕上显示消息列表页面40b。从图2d可以看出,消息列表页面40b中包括多个消息列表页面窗口,以及返回标识40d。当用户点击该返回标识40d后,将会话消息对应的第二进程作为前台运行进程,即是在屏幕上显示第二进程的主界面40c。Please refer to FIG. 2d, which is a schematic diagram of returning to the second process provided by the embodiment of the present invention. Thepage 40a is thetarget page 40a including the unread message reminder mark. When the user clicks the unread message reminder mark, the message is displayed on the screen.Listing page 40b. It can be seen from FIG. 2d that themessage list page 40b includes multiple message list page windows and areturn identifier 40d. When the user clicks on thereturn sign 40d, the second process corresponding to the conversation message is run as the foreground process, that is, themain interface 40c of the second process is displayed on the screen.

用户点击消息列表页面窗口,在第二进程中,创建包含会话消息页面窗口(如上述图1对应实施例中的消息会话页面窗口10e)的会话消息页面,其中会话消息页面窗口包括会话消息。同样地,会话消息页面的尺寸可以与屏幕尺寸相同,也可以与屏幕尺寸不同。The user clicks the message list page window, and in the second process, a session message page is created including a session message page window (such as the messagesession page window 10e in the embodiment corresponding to FIG. 1 ), wherein the session message page window includes session messages. Likewise, the size of the conversation message page can be the same as the screen size or different from the screen size.

第二进程将会话消息页面存储在第一进程对应的任务栈中(即是入栈),此时会话消息页面就位于任务栈的栈顶,且任务栈中包含会话消息页面(位于栈顶)、其次是消息列表页面,最后是目标页面。激活会话消息页面,以在目标页面上、消息列表页面上显示该会话消息页面。The second process stores the session message page in the task stack corresponding to the first process (that is, pushes it into the stack). At this time, the session message page is at the top of the task stack, and the task stack contains the session message page (at the top of the stack) , followed by the message list page, and finally the target page. Activate the conversation message page to display the conversation message page on the target page, on the message list page.

从终端设备的角度来看,用户点击消息消息列表页面窗口,第二进程创建activity对象实例(称为第一活动对象实例),该第一活动对象实例对应包含会话消息页面窗口的会话消息页面。第二进程将第一活动对象实例添加至第一进程对应的任务栈中,此时任务栈中包括第三活动对象实例,第二活动对象实例以及第一活动对象实例,第一活动对象实例位于栈顶,其次过了是第二活动对象实例,然后是第三活动对象实例。From the perspective of the terminal device, when the user clicks on the message list page window, the second process creates an activity object instance (called the first activity object instance), and the first activity object instance corresponds to the session message page containing the session message page window. The second process adds the first active object instance to the task stack corresponding to the first process. At this time, the task stack includes the third active object instance, the second active object instance and the first active object instance. The first active object instance is located at The top of the stack, followed by the second active object instance, and then the third active object instance.

激活位于栈顶的第一活动对象,以在目标页面和消息列表页面上,显示会话消息页面,即是显示会话消息页面中的会话消息页面窗口。Activating the first active object at the top of the stack to display the session message page on the target page and the message list page, that is, to display the session message page window in the session message page.

第二进程可以在会话消息页面窗口中接收并发送用户输入的回复消息,其中回复消息可以是文字消息,也可以是图像、或者视频消息等。The second process may receive and send a reply message input by the user in the conversation message page window, where the reply message may be a text message, or an image, or a video message, or the like.

若消息列表页面和会话消息页面都只占据屏幕的一部分,对用户来说,在查看会话消息页面中的会话消息页面窗口中的会话消息时,或者在查看消息列表页面中的消息列表页面窗口中的消息摘要时,仍旧可以看到目标页面。即是没有离开属于第一进程的目标页面的同时,就可以查看到属于第二进程的会话消息。If both the message list page and the session message page only occupy a part of the screen, for the user, when viewing the session message in the session message page window in the session message page, or viewing the message list page window in the message list page , you can still see the target page. That is, the session messages belonging to the second process can be viewed without leaving the target page belonging to the first process.

会话消息页面还包括会话消息页面关闭标识;消息列表页面还包括消息列表页面关闭标识;目标页面还包括目标页面关闭标识。当需要关闭前述3个页面时,即是将会话消息页面从任务栈中出栈,以关闭所述会话消息页面;然后是将消息列表页面从任务栈中出栈,以关闭所述消息列表页面;最后是将目标页面从任务栈中出栈,以关闭目标页面。The session message page further includes a session message page closing identifier; the message list page further includes a message list page closing identifier; and the target page further includes a target page closing identifier. When the aforementioned 3 pages need to be closed, the session message page is popped from the task stack to close the session message page; then the message list page is popped from the task stack to close the message list page ; Finally, pop the target page from the task stack to close the target page.

从活动对象实例的角度来看,关闭3个页面即是将3个活动对象实例出栈,按照任务栈的先进后出的结构特性,必然是先将位于栈顶的第一活动对象实例先出栈,然后才是将与第一活动对象实例相邻的第二活动对象实例出栈,最后是将与第二活动对象实例相邻的第三活动对象实例出栈。From the perspective of active object instances, closing three pages means popping three active object instances out of the stack. According to the first-in-last-out structural characteristics of the task stack, the first active object instance at the top of the stack must be first out. stack, and then pop the second active object instance adjacent to the first active object instance from the stack, and finally pop the third active object instance adjacent to the second active object instance from the stack.

用户点击会话消息页面关闭标识,对终端设备来说,就是将消息会话页面对应的第一活动对象实例从任务栈中出栈,以关闭会话消息页面;When the user clicks the session message page closing logo, for the terminal device, the first active object instance corresponding to the message session page is popped from the task stack to close the session message page;

用户点击消息列表页面关闭标识,对终端设备来说,就是将消息列表页面对应的第二活动对象实例从任务栈中出栈,以关闭消息列表页面;When the user clicks the message list page closing logo, for the terminal device, the second active object instance corresponding to the message list page is popped from the task stack to close the message list page;

用户点击目标页面关闭标识,对终端设备来说,就是将目标页面对应的第三活动对象实例从任务栈中出栈,以关闭目标页面。When the user clicks the target page closing logo, for the terminal device, the third active object instance corresponding to the target page is popped from the task stack to close the target page.

可选的,若接收到的会话消息具有显示优先级,且未读消息提醒标识是根据发送用户头像生成的,若用户点击该未读消息提醒标识,第二进程可以不必生成消息列表页面,而直接生成包含会话消息页面窗口的会话消息页面,并在目标页面上显示会话消息页面。Optionally, if the received session message has a display priority, and the unread message reminder is generated according to the avatar of the sending user, if the user clicks on the unread message reminder, the second process does not need to generate a message list page, but Directly generate a session message page including a session message page window, and display the session message page on the target page.

请参见图2e,是本发明实施例提供的一种确定会话消息页面的示意图,如图2e所示,页面50a是包含未读消息提醒标识的目标页面50a,且会话消息具有显示优先级,若用户点击该未读消息提醒标识,第二进程直接生成会话消息页面50b,该会话消息页面50b包括会话消息页面窗口50z。Please refer to FIG. 2e, which is a schematic diagram of a page for determining a conversation message provided by an embodiment of the present invention. As shown in FIG. When the user clicks the unread message reminder mark, the second process directly generates aconversational message page 50b, and theconversational message page 50b includes a conversationalmessage page window 50z.

上述可知,相比关闭当前显示页面,再打开会话消息所在的页面向用户展示消息内容,直接在当前显示页面上创建并显示包含消息内容的窗口,无需退出当前显示页面,可以降低终端与用户的交互次数,提高终端向用户展示消息内容的效率。As can be seen from the above, compared to closing the current display page, and then opening the page where the session message is located to display the message content to the user, a window containing the message content is directly created and displayed on the current display page without exiting the current display page, which can reduce the interaction between the terminal and the user. Interaction times to improve the efficiency of terminal displaying message content to users.

请参见图3a,是本发明实施例提供的另一种页面处理方法的流程示意图,如图3a所示,该方法可以包括:Please refer to FIG. 3a, which is a schematic flowchart of another page processing method provided by an embodiment of the present invention. As shown in FIG. 3a, the method may include:

步骤S201,显示属于第一进程的目标页面;所述目标页面为前台显示页面。Step S201, displaying a target page belonging to the first process; the target page is a foreground display page.

步骤S202,当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识。Step S202, when a conversation message belonging to the second process is received, an unread message reminder mark is displayed on the target page.

步骤S203,响应针对所述未读消息提醒标识的触发操作,根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。Step S203, in response to the trigger operation on the unread message reminder flag, create a session message window according to the session message, and display the session message window on the target page.

其中,步骤S201-步骤S203的具体实现过程可以参见上述图2a对应实施例中的步骤S101-步骤S103。Wherein, for the specific implementation process of step S201-step S203, reference may be made to step S101-step S103 in the above-mentioned embodiment corresponding to FIG. 2a.

步骤S204,响应针对所述会话消息页面折叠标识的触发操作,获取与所述会话消息对应的发送用户头像。Step S204, responding to the trigger operation for the page folding indicator of the conversation message, acquiring the avatar of the sending user corresponding to the conversation message.

具体的,会话消息页面还可以包括会话消息页面折叠标识,当用户点击该折叠标识后,第二进程获取发送会话消息的用户的发送用户头像。Specifically, the conversation message page may further include a conversation message page folding mark, and when the user clicks on the fold mark, the second process acquires the sending user avatar of the user who sent the conversation message.

步骤S205,关闭所述会话消息页面,根据所述发送用户头像生成发送用户头像悬浮窗口,并在所述目标页面上显示所述发送用户头像悬浮窗口。Step S205, closing the conversation message page, generating a floating window of sending user avatar according to the sending user avatar, and displaying the floating window of sending user avatar on the target page.

具体的,关闭会话消息页面(即是将会话消息页面从任务栈中出栈),第二进程生成包含发送用户头像的悬浮窗(称为发送用户头像悬浮窗口),并在目标页面上显示发送用户头像悬浮窗口。Specifically, the session message page is closed (that is, the session message page is popped from the task stack), and the second process generates a floating window (called a floating window for sending user avatar) that contains the sending user's avatar, and displays the sending window on the target page. User avatar floating window.

需要说明的是,由于在操作系统中,悬浮窗是独立于Activity对象的,只要第二进程获取了第一进程的悬浮窗显示权限,就可以将悬浮窗放置在屏幕中,也就是可以在目标页面上显示用户头像悬浮窗口。It should be noted that since the floating window is independent of the Activity object in the operating system, as long as the second process obtains the floating window display permission of the first process, it can place the floating window on the screen, that is, it can be placed on the target The user avatar floating window is displayed on the page.

可选的,若当前发送用户头像悬浮窗口在目标页面上显示,且此时接收到新的会话消息(该新消息是属于发送用户头像悬浮窗口对应的用户的),第二进程可以在发送用户头像悬浮窗口上设置新的会话消息的数量,用于提示用户存在新消息。Optionally, if the currently sending user avatar floating window is displayed on the target page, and a new session message is received at this time (the new message belongs to the user corresponding to the sending user avatar floating window), the second process can The number of new conversation messages is set on the avatar floating window, which is used to prompt the user that there are new messages.

可选的,若当前发送用户头像悬浮窗口在目标页面上显示,且此时接收到新的会话消息(该新消息是不属于发送用户头像悬浮窗口对应的用户的),第二进程可以再创建悬浮窗(称为辅助悬浮窗口),辅助悬浮窗口包含新的会话消息的用户的用户头像。在目标页面上显示辅助悬浮窗口。Optionally, if the currently sending user avatar floating window is displayed on the target page, and a new session message is received at this time (the new message does not belong to the user corresponding to the sending user avatar floating window), the second process can be recreated A floating window (called an auxiliary floating window), where the auxiliary floating window contains the user avatar of the user of the new conversation message. Display a secondary floating window on the target page.

步骤S206,响应针对所述发送用户头像悬浮窗口的触发操作,创建消息显示页面,并在所述目标页面上显示所述消息显示页面;所述消息显示页面包括头像页面窗口;所述头像页面窗口包括所述发送用户头像。Step S206, in response to the trigger operation for the floating window of the sending user's avatar, create a message display page, and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window Include the avatar of the sending user.

具体的,用户点击发送用户头像悬浮窗口,第二进程创建包含头像页面窗口的消息显示页面,在目标页面上显示该消息显示页面,消息显示页面还可以包括消息显示页面窗口。就相当于,折叠了会话消息页面后,生成悬浮窗,点击悬浮窗后,又弹出会话消息页面。Specifically, the user clicks to send the user avatar floating window, and the second process creates a message display page including the avatar page window, and displays the message display page on the target page. The message display page may also include a message display page window. It is equivalent to, after the session message page is folded, a floating window is generated, and after clicking on the floating window, the session message page pops up again.

其中头像页面窗口包含发送用户头像,消息显示页面窗口包含会话消息,此处的消息显示页面窗口与前述中的会话消息页面窗口从表现形式上来说是完全相同的,只是位于不同的页面中。可以知道消息显示页面相比前述中的会话消息页面只是多了一个头像页面窗口。The avatar page window contains the sending user's avatar, and the message display page window contains session messages. The message display page window here is exactly the same as the aforementioned session message page window in terms of form of expression, but it is located in a different page. It can be known that the message display page only has one more avatar page window than the aforementioned conversation message page.

创建消息显示页面的原理,以及显示消息显示页面的原理与前述中创建会话消息页面的原理,以及显示会话消息页面的原理是相同的,此处在不再详述。The principle of creating a message display page and the principle of displaying a message display page are the same as the principle of creating a session message page and displaying a session message page, and will not be described in detail here.

请参见图3b,是本发明实施例提供的一种确定消息显示页面的示意图,页面50c为会话消息页面50c,且该页面包括会话消息页面折叠标识50d。用户点击该会话消息页面折叠标识50d,关闭会话消息页面50c,此时终端设备的屏幕上显示目标页面50e。第二进程创建发送用户头像悬浮窗口50f,并将该发送用户头像悬浮窗口50f显示在目标页面50e上。用户点击发送用户头像悬浮窗口50f,第二进程创建消息显示页面50g,从图3b可以看出,消息显示页面50g包括消息显示页面窗口50h以及头像页面窗口50k。若在用户点击发送用户头像悬浮窗口50f之前,第二进程接收到头像页面窗口50k对应的发送用户的新增会话消息时,可以将上述新增会话消息的数量数值设置在头像页面窗口50k周围。Please refer to FIG. 3b , which is a schematic diagram of a confirmation message display page provided by an embodiment of the present invention. Thepage 50c is aconversation message page 50c, and the page includes a conversation messagepage folding mark 50d. The user clicks the conversation messagepage folding mark 50d to close theconversation message page 50c, and at this time, thetarget page 50e is displayed on the screen of the terminal device. The second process creates a sending useravatar floating window 50f, and displays the sending useravatar floating window 50f on thetarget page 50e. The user clicks to send the floatingwindow 50f of the user's avatar, and the second process creates amessage display page 50g. It can be seen from FIG. 3b that themessage display page 50g includes a messagedisplay page window 50h and anavatar page window 50k. If the second process receives the new conversation message of the sending user corresponding to theportrait page window 50k before the user clicks the sending userportrait floating window 50f, the number value of the above-mentioned newly added conversation messages can be set around theportrait page window 50k.

可选的,头像页面窗口包括第一头像页面窗口和第二头像页面窗口,对应地消息显示页面窗口包括与第一头像页面窗口匹配的第一消息显示页面窗口以及与第二头像页面窗口匹配的第二消息显示页面窗口。当前在消息显示页面中显示的是第一头像页面窗口、第二头像页面窗口以及第一消息显示页面窗口。若用户将第二头像页面窗口向第一头像页面窗口进行滑动,第二进程将消息显示页面中的第一消息显示页面窗口切换为第二消息显示页面窗口,此时在消息显示页面中显示的就是第二头像页面窗口、第二消息显示页面窗口以及第一头像页面窗口。也就是说,在消息显示页面中,用户通过滑动头像页面窗口就可以切换对应的消息显示页面窗口。Optionally, the avatar page window includes a first avatar page window and a second avatar page window, and correspondingly the message display page window includes a first message display page window matching the first avatar page window and a message display page window matching the second avatar page window. The second message displays the page window. Currently displayed on the message display page are the first avatar page window, the second avatar page window and the first message display page window. If the user slides the second avatar page window to the first avatar page window, the second process switches the first message display page window in the message display page to the second message display page window. That is, the second avatar page window, the second message display page window and the first avatar page window. That is to say, in the message display page, the user can switch the corresponding message display page window by sliding the avatar page window.

请参见图3c,是本发明实施例提供的一种窗口切换示意图,页面50m为目标页面,且上述目标页面包括发送用户头像悬浮窗口50p。用户点击发送用户头像悬浮窗口50p,第二进程创建消息显示页面50n,此时消息显示页面50n包括第一头像页面窗口50r、第一消息显示页面窗口50q,以及第二头像页面窗口50t。当用户滑动第二头像页面窗口50t,对应地,在消息显示页面50n中,将第一消息显示页面窗口50q切换为与第二头像页面窗口50t对应的第二头像页面窗口50s。Please refer to FIG. 3 c , which is a schematic diagram of window switching provided by an embodiment of the present invention. Thepage 50m is a target page, and the target page includes a floatingwindow 50p for sending user avatars. The user clicks to send the useravatar floating window 50p, and the second process creates amessage display page 50n. At this time, themessage display page 50n includes a firstavatar page window 50r, a first messagedisplay page window 50q, and a secondavatar page window 50t. When the user slides the secondavatar page window 50t, correspondingly, in themessage display page 50n, the first messagedisplay page window 50q is switched to the secondavatar page window 50s corresponding to the secondavatar page window 50t.

步骤S207,响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作。Step S207, in response to the trigger operation on the avatar page window, execute the business behavior operation associated with the message display page.

具体的,用户可以对头像页面窗口进行滑动操作(称为第一滑动操作),该第一滑动操作对应的滑动距离称为第一滑动距离,滑动方向称为第一滑动方向。当第一滑动距离和第一滑动方向满足预设的页面删除条件时,关闭消息显示页面。Specifically, the user may perform a sliding operation on the avatar page window (called the first sliding operation), the sliding distance corresponding to the first sliding operation is called the first sliding distance, and the sliding direction is called the first sliding direction. When the first sliding distance and the first sliding direction meet the preset page deletion condition, the message display page is closed.

请参见图3d,是本发明实施例提供的一种关闭消息显示页面的示意图,页面50u为消息显示页面50u,消息显示页面50u包含头像页面窗口50v以及消息显示页面窗口50w。用户对滑动头像页面窗口50v进行第一滑动操作,由于第一滑动操作对应的滑动距离和滑动方向满足预设的页面删除条件,关闭消息显示页面50u。此时在屏幕中显示的就是目标页面50x。Please refer to FIG. 3 d , which is a schematic diagram of a closed message display page provided by an embodiment of the present invention. Thepage 50u is amessage display page 50u, and themessage display page 50u includes anavatar page window 50v and a messagedisplay page window 50w. The user performs a first sliding operation on the slidingavatar page window 50v, and closes themessage display page 50u because the sliding distance and sliding direction corresponding to the first sliding operation meet the preset page deletion conditions. What is displayed on the screen at this time is thetarget page 50x.

可选的,头像页面窗口包括第一头像页面窗口和第二头像页面窗口,对应地消息显示页面窗口包括与第一头像页面窗口匹配的第一消息显示页面窗口以及与第二头像页面窗口匹配的第二消息显示页面窗口。若当前消息显示页面显示的是第一头像页面窗口、第二头像页面窗口以及第一消息显示页面窗口,用户可以对第一头像页面窗口进行滑动操作,当上述滑动操作所生成的滑动距离和滑动方向满足预设的窗口删除条件时,关闭消息显示页面中的第一头像页面窗口、第一消息显示页面窗口,对应地在消息显示页面中显示第二头像页面窗口、第二消息显示页面窗口。Optionally, the avatar page window includes a first avatar page window and a second avatar page window, and correspondingly the message display page window includes a first message display page window matching the first avatar page window and a message display page window matching the second avatar page window. The second message displays the page window. If the current message display page displays the first avatar page window, the second avatar page window and the first message display page window, the user can perform a sliding operation on the first avatar page window, when the sliding distance generated by the above sliding operation and the sliding distance When the direction meets the preset window deletion condition, close the first avatar page window and the first message display page window in the message display page, and correspondingly display the second avatar page window and the second message display page window in the message display page.

请参见图3e,是本发明实施例提供的一种关闭页面窗口的示意图,页面60a为消息显示页面60a,此时消息显示页面60a包括第一头像页面窗口60b,第一消息显示页面窗口60c,以及第二头像页面窗口60d。当用户滑动第一头像页面窗口60b,且上述滑动所生成的滑动距离和滑动方向满足预设的窗口删除条件时,关闭消息显示页面60a中的第一头像页面窗口60b、关闭第一消息显示页面窗口60c,在消息显示页面60a显示与第一头像页面窗口60b相邻的第二头像页面窗口60d,以及对应的第二消息显示页面窗口60e。Please refer to FIG. 3e, which is a schematic diagram of closing a page window provided by an embodiment of the present invention. Thepage 60a is amessage display page 60a. At this time, themessage display page 60a includes a firstavatar page window 60b, and a first messagedisplay page window 60c. And the secondavatar page window 60d. When the user slides the firstavatar page window 60b, and the sliding distance and sliding direction generated by the sliding meet the preset window deletion condition, the firstavatar page window 60b in themessage display page 60a is closed, and the first message display page is closed. Thewindow 60c displays a secondavatar page window 60d adjacent to the firstavatar page window 60b on themessage display page 60a, and a corresponding second messagedisplay page window 60e.

头像页面窗口包括第一头像页面窗口和第二头像页面窗口,用户可以将第一头像页面窗口向第二头像页面窗口进行滑动操作(称为第二滑动操作),第二滑动操作对应第二滑动距离。The avatar page window includes a first avatar page window and a second avatar page window. The user can slide the first avatar page window to the second avatar page window (called the second sliding operation), and the second sliding operation corresponds to the second sliding operation. distance.

当第二滑动距离满足群组生成条件时,根据第一头像页面窗口对应的第一用户对象和第二头像页面窗口对应的第二用户对象,在消息显示页面上创建消息群组页面窗口(此处的创建消息群组页面窗口可以理解为在消息显示页面对应的Activity对象实例中新增的视图对象),并在消息显示页面上显示消息群组页面窗口,消息群组页面窗口包括第一用户对象以及第二用户对象。When the second sliding distance satisfies the group generation condition, according to the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, create a message group page window on the message display page (this The creating message group page window at place can be understood as a newly added view object in the Activity object instance corresponding to the message display page), and the message group page window is displayed on the message display page, and the message group page window includes the first user object and a second user object.

请参见图3f,是本发明实施例提供的一种创建消息群组页面窗口的示意图,页面60f是消息显示页面60f,消息显示页面60f包括第一头像页面窗口60g和第二头像页面窗口60j。用户将第一头像页面窗口60g向第二头像页面窗60j进行第二滑动操作,当第二滑动操作所生成的第二滑动距离满足群组生成条件时,第一进程可以拷贝第一头像页面窗口60g和拷贝第二头像页面窗口60j至消息显示页面60f的顶部,用于提示用户所选中的用户对象。当用户点击“立即创建”按钮,根据第一头像页面窗口60g对应的第一用户对象和第二头像页面窗口60j对应的第二用户对象,在消息显示页面60f上创建消息群组页面窗口60h,并显示消息群组页面窗口60h,消息群组页面窗口包括第一用户对象、第二用户对象。Please refer to FIG. 3f, which is a schematic diagram of a page window for creating a message group provided by an embodiment of the present invention. Thepage 60f is amessage display page 60f, and themessage display page 60f includes a firstavatar page window 60g and a secondavatar page window 60j. The user performs a second sliding operation from the firstavatar page window 60g to the secondavatar page window 60j, and when the second sliding distance generated by the second sliding operation satisfies the group generation condition, the first process can copy the firstavatar page window 60g and copy the secondavatar page window 60j to the top of themessage display page 60f for prompting the user of the selected user object. When the user clicks the "Create Now" button, a messagegroup page window 60h is created on themessage display page 60f according to the first user object corresponding to the firstavatar page window 60g and the second user object corresponding to the secondavatar page window 60j, And display the messagegroup page window 60h, the message group page window includes the first user object and the second user object.

可选的,用户除了可以点击发送用户头像悬浮窗口外,还可以对发送用户头像悬浮窗口进行滑动操作(称为第三滑动操作),第三滑动操作对应第三滑动距离和第三滑动方向。Optionally, in addition to clicking on the floating window for sending user avatars, the user may also perform a sliding operation on the floating window for sending user avatars (called a third sliding operation). The third sliding operation corresponds to a third sliding distance and a third sliding direction.

当第三滑动距离和第三滑动方向满足用户头像列表显示条件时,第二进程生成用户头像列表悬浮窗口,并在目标页面上显示该用户头像列表悬浮窗口,该用户头像列表悬浮窗口包括发送用户头像。When the third sliding distance and the third sliding direction meet the display conditions of the user avatar list, the second process generates a floating window of the user avatar list, and displays the floating window of the user avatar list on the target page. The floating window of the user avatar list includes sending user avatar.

若发送用户头像的数量是多个时,那么用户头像列表悬浮窗口是包含所有的发送用户头像的。If the number of sending user avatars is multiple, then the user avatar list floating window contains all sending user avatars.

请参见图3g,是本发明实施例提供的一种确定用户头像列表悬浮窗口的示意图,页面60k是目标页面60k,且目标页面60k包含发送用户头像悬浮窗口60m。用户滑动发送用户头像悬浮窗口60m,当上述滑动所生的第三滑动距离和第三滑动方向满足用户头像列表显示条件,生成用户头像列表悬浮窗口60n,且用户头像列表悬浮窗口60n包含用户头像悬浮窗口60m所包含的所有发送用户头像。Please refer to FIG. 3g , which is a schematic diagram of a floating window for determining a list of user avatars provided by an embodiment of the present invention. Thepage 60k is atarget page 60k, and thetarget page 60k includes a floatingwindow 60m for sending user avatars. The user slides to send the useravatar floating window 60m. When the third sliding distance and the third sliding direction generated by the above sliding meet the display conditions of the user avatar list, a user avatarlist floating window 60n is generated, and the user avatarlist floating window 60n contains the user avatar floating window. All sending user avatars included inwindow 60m.

响应对目标页面的滑动操作(例如,在目标页面中向右滑动),用户头像列表悬浮窗口可以隐藏;当然,隐藏后,用户仍可以通过在目标页面中进行滑动操作,用于将用户头像列表悬浮窗口弹出。In response to a sliding operation on the target page (for example, sliding to the right on the target page), the user avatar list floating window can be hidden; of course, after hiding, the user can still slide the target page to list the user avatar list A floating window pops up.

请参见图3h,是本发明实施例提供的一种滑动用户头像列表悬浮窗口的示意图,页面60p为目标页面,用户可以对目标页面60p中的用户头像列表悬浮窗口60q进行向右滑动操作,以隐藏用户头像列表悬浮窗口60q;或者用户也可以对目标页面60p进行向上(或者向下)滑动操作,以隐藏用户头像列表悬浮窗口60q。后续,用户仍可以在目标页面中进行向左滑动操作,用于将用户头像列表悬浮窗口60q弹出,即将用户头像列表悬浮窗口60q显示在目标页面60q中。Please refer to FIG. 3h, which is a schematic diagram of a floating window of a sliding user avatar list provided by an embodiment of the present invention. Thepage 60p is the target page, and the user can slide to the right on the floatingwindow 60q of the user avatar list in thetarget page 60p to Hide the user avatarlist floating window 60q; or the user can also slide up (or down) thetarget page 60p to hide the user avatarlist floating window 60q. Subsequently, the user can still slide left on the target page to pop up the user avatarlist floating window 60q, that is, to display the user avatarlist floating window 60q on thetarget page 60q.

请参见图4a,是本发明实施例提供的另一种页面处理方法的流程示意图,如图4a所示,该方法可以包括:Please refer to FIG. 4a, which is a schematic flowchart of another page processing method provided by an embodiment of the present invention. As shown in FIG. 4a, the method may include:

步骤S301,显示属于第一进程的目标页面;所述目标页面为前台显示页面。Step S301, displaying a target page belonging to the first process; the target page is a foreground display page.

步骤S302,当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识。Step S302, when a conversation message belonging to the second process is received, an unread message reminder mark is displayed on the target page.

步骤S303,响应针对所述未读消息提醒标识的触发操作,检测所述会话消息中包含的字符数量.Step S303, detecting the number of characters contained in the conversation message in response to the trigger operation for the unread message reminder flag.

具体的,用户可以点击该未读消息提醒标识,与目标页面对应的Activity组件可以响应该点击操作,并通知第一进程。基于跨进程同步服务,第一进程向第二进同步点击操作信息,第二进程检测会话消息包含的字符数量。Specifically, the user may click on the unread message reminder indicator, and the Activity component corresponding to the target page may respond to the click operation and notify the first process. Based on the cross-process synchronization service, the first process synchronizes the click operation information to the second process, and the second process detects the number of characters contained in the session message.

步骤S304,若所述字符数量小于或等于数量阈值,则在所述第二进程中创建第一会话消息悬浮窗口,将所述第一会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第一会话消息悬浮窗口;所述第一会话消息悬浮窗口为静态显示所述会话消息的悬浮窗口。Step S304, if the number of characters is less than or equal to the number threshold, create a first conversational message floating window in the second process, determine the first conversational message floating window as the conversational message window, and The first conversational message floating window is displayed on the target page; the first conversational message floating window is a floating window statically displaying the conversational message.

具体的,若第二进程检测到会话消息中包含的字符数量小于或者等于数量阈值,创建包含会话消息的悬浮窗(称为第一会话消息悬浮窗口),且第一会话消息悬浮窗口中的会话消息是静态展示的。第二进程可以将第一会话消息悬浮窗口确定为会话消息窗口。Specifically, if the second process detects that the number of characters contained in the conversation message is less than or equal to the quantity threshold, a floating window (called the first conversation message floating window) containing the conversation message is created, and the conversation in the first conversation message floating window Messages are displayed statically. The second process may determine the first conversation message floating window as the conversation message window.

步骤S305,若所述字符数量大于所述数量阈值,则在所述第二进程中创建第二会话消息悬浮窗口,将所述第二会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第二会话消息悬浮窗口;所述第二会话消息悬浮窗口为动态显示所述会话消息的悬浮窗口。Step S305, if the number of characters is greater than the number threshold, create a second conversational message floating window in the second process, determine the second conversational message floating window as the conversational message window, and The second conversational message floating window is displayed on the target page; the second conversational message floating window is a floating window for dynamically displaying the conversational message.

具体的,若第二进程检测到会话消息中包含的字符数量大于数量阈值,创建包含会话消息的悬浮窗(称为第二会话消息悬浮窗口),且第二会话消息悬浮窗口中的会话消息是动态展示的。第二进程可以将第二会话消息悬浮窗口确定为会话消息窗口。Specifically, if the second process detects that the number of characters contained in the conversation message is greater than the quantity threshold, create a floating window (called the second conversation message floating window) that contains the conversation message, and the conversation message in the second conversation message floating window is displayed dynamically. The second process may determine the second conversation message floating window as the conversation message window.

请参见图4b,是本发明实施例提供的一种确定会话消息窗口的示意图,页面60r为属于第一进程的目标页面60r,当第二进程接收到会话消息时,在目标页面上显示未读消息提醒标识。用户点击该未读消息提醒标识,第二进程创建会话消息悬浮窗口60s,该会话消息悬浮窗口60s内包含会话消息,其中会话消息可以按照静态方式展示在会话消息悬浮窗口60s中,也可以按照动态方式展示在会话消息悬浮窗口60s中。若用户对会话消息悬浮窗口60s进行滑动,可以隐藏会话消息悬浮窗口60s。Please refer to Fig. 4b, which is a schematic diagram of a confirmation session message window provided by an embodiment of the present invention. Thepage 60r is thetarget page 60r belonging to the first process. When the second process receives the session message, it displays unread on the target page Message reminder logo. The user clicks on the unread message reminder logo, and the second process creates a sessionmessage suspension window 60s, which contains session messages in the sessionmessage suspension window 60s, wherein the session messages can be displayed in the sessionmessage suspension window 60s in a static manner, or can be displayed in a dynamic manner. The method is displayed in the conversationmessage floating window 60s. If the user slides the conversationmessage floating window 60s, the conversationmessage floating window 60s can be hidden.

步骤S306,响应针对所述会话消息窗口的触发操作,创建辅助页面;所述辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口;所述第一消息页面窗口包含所述第一消息;所述第三头像页面窗口包括所述第三用户对象对应的用户头像;所述第四头像页面窗口包括所述第四用户对象对应的用户头像。Step S306: Create an auxiliary page in response to the trigger operation on the session message window; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window includes all The first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object.

具体的,会话消息包括第一消息和第二消息,第一消息属于第三用户对象,第二消息属于第四用户对象,且第一消息的接收时间戳小于第二消息的接收时间戳,即第二进程是先接收到第一消息,然后在接收到第二消息。Specifically, the session message includes a first message and a second message, the first message belongs to the third user object, the second message belongs to the fourth user object, and the receiving timestamp of the first message is smaller than the receiving timestamp of the second message, that is The second process first receives the first message, and then receives the second message.

用户点击会话消息窗口,即是点击第一会话消息悬浮窗口或者第二会话消息悬浮窗口,第二进程关闭会话消息窗口,并创建辅助页面,该辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口。其中,第一消息页面窗口包含第一消息;第三头像页面窗口包含第三用户对象的用户头像;第四头像页面窗口包含第四用户对象的用户头像。When the user clicks on the session message window, that means clicking on the first session message floating window or the second session message floating window, the second process closes the session message window and creates an auxiliary page, which includes the first message page window and the third avatar page window and the fourth avatar page window. Wherein, the first message page window includes the first message; the third avatar page window includes the user avatar of the third user object; the fourth avatar page window includes the user avatar of the fourth user object.

第二进程创建包含第一消息页面窗口、第三头像页面窗口、第四头像页面窗口的辅助页面的原理,与前述中创建会话消息页面、消息列表页面的原理都相同,此处就不再叙述。The principle of the second process to create an auxiliary page including the first message page window, the third avatar page window, and the fourth avatar page window is the same as the principle of creating the session message page and message list page in the foregoing, and will not be described here. .

步骤S307,在所述目标页面上显示所述辅助页面。Step S307, displaying the auxiliary page on the target page.

具体的,在目标页面上显示上述创建的辅助页面,即是在目标页面上显示第一消息页面窗口、第三头像页面窗口和第四头像页面窗口。第二进程显示辅助页面的原理,与前述中显示会话消息页面、消息列表页面的原理都相同,此处就不再叙述。Specifically, displaying the auxiliary page created above on the target page is to display the first message page window, the third avatar page window, and the fourth avatar page window on the target page. The principle of displaying the auxiliary page in the second process is the same as the principle of displaying the session message page and the message list page in the foregoing, and will not be described here again.

步骤S308,响应针对所述辅助页面中的所述第三头像页面窗口向所述第四头像页面窗口的滑动操作,创建包含所述第二消息的第二消息页面窗口,并在所述辅助页面上将所述第一消息页面窗口切换为所述第二消息页面窗口。Step S308, in response to the sliding operation from the third avatar page window to the fourth avatar page window in the auxiliary page, create a second message page window containing the second message, and create a second message page window on the auxiliary page Switch the first message page window to the second message page window.

具体的,用户将第四头像页面窗口向第三头像页面窗口进行滑动,第二进程创建包含第二消息的第二消息页面窗口,在辅助页面上将第一消息页面窗口切换为第二消息页面窗口。从终端设备的角度来看,从第一消息页面窗口切换至第二消息页面窗口,即是将辅助页面对应的Activity对象实例中关于第一消息页面窗口的视图切换为第二消息页面窗口的视图。Specifically, the user slides the fourth avatar page window to the third avatar page window, the second process creates a second message page window containing the second message, and switches the first message page window to the second message page on the auxiliary page window. From the perspective of the terminal device, switching from the first message page window to the second message page window is to switch the view of the first message page window in the Activity object instance corresponding to the auxiliary page to the view of the second message page window .

通过滑动头像页面窗口,就可以实现消息页面窗口的切换,可以方便用户查看不同来源不同的会话消息。By sliding the avatar page window, the switching of the message page window can be realized, which can facilitate the user to view different session messages from different sources.

请参见图4c,是本发明实施例提供的一种切换页面窗口的示意图,页面70a是目标页面70a,在目标页面70a中显示包含会话消息的会话消息悬浮窗口70g,其中会话消息包括第一消息和第二消息。用户对会话消息悬浮窗口70g进行点击操作,创建辅助页面70b,该辅助页面包括第一消息页面窗口70d、第三头像页面窗口70c以及第四头像页面窗口70e,其中,第一消息页面窗口70d包含第一消息。用户将第四头像页面窗口70e向第三头像页面窗口70c进行滑动,第二进程将辅助页面70b中的第一消息页面窗口70d切换为第二消息页面窗口70f,第二消息页面窗口包括第二消息。Please refer to FIG. 4c, which is a schematic diagram of a switching page window provided by an embodiment of the present invention. Thepage 70a is atarget page 70a, and a sessionmessage floating window 70g containing a session message is displayed on thetarget page 70a, wherein the session message includes the first message and the second message. The user clicks on the conversationmessage floating window 70g to create anauxiliary page 70b, which includes a firstmessage page window 70d, a thirdavatar page window 70c, and a fourthavatar page window 70e, wherein the firstmessage page window 70d contains first news. The user slides the fourthavatar page window 70e to the thirdavatar page window 70c, and the second process switches the firstmessage page window 70d in theauxiliary page 70b to the secondmessage page window 70f, and the second message page window includes the second information.

请参见图4d,是本发明实施例提供的一种确定未读消息提醒标识的交互示意图,确定未读消息提醒标识包括如下步骤:Please refer to FIG. 4d, which is an interactive schematic diagram of determining an unread message reminder identifier provided by an embodiment of the present invention. Determining an unread message reminder identifier includes the following steps:

步骤S401,会话消息发送端向会话消息接收端的第二进程发送会话消息。In step S401, the session message sending end sends the session message to the second process of the session message receiving end.

步骤S402,第二进程解析会话消息类型。Step S402, the second process analyzes the type of the session message.

具体的,第二进程解析会话消息类型,会话消息类型包括未读消息类型和已读消息类型。Specifically, the second process analyzes the conversation message type, and the conversation message type includes an unread message type and a read message type.

步骤S403,第一进程向第二进程同步第一进程的进程状态信息。Step S403, the first process synchronizes the process state information of the first process with the second process.

第一进程向第二进程同步进程状态信息,进程状态信息包括前台运行状态和后台等待状态。The first process synchronizes process state information with the second process, and the process state information includes a foreground running state and a background waiting state.

步骤S404,第二进程过滤系统通知。Step S404, the second process filters system notifications.

若第一进程的进程状态信息是前台运行状态,第二进程过滤会话消息的系统通知,并根据会话消息类型确定未读消息数量。If the process state information of the first process is the foreground running state, the second process filters the system notification of the session message, and determines the number of unread messages according to the type of the session message.

步骤S405,第二进程向第一进程同步未读消息数量。Step S405, the second process synchronizes the number of unread messages with the first process.

步骤S406,第一进程根据未读消息数量生成未读消息提醒标识,并在目标页面上显示未读消息提醒标识。Step S406, the first process generates an unread message reminder indicator according to the number of unread messages, and displays the unread message reminder indicator on the target page.

进一步的,请参见图5,是本发明实施例提供的一种页面处理装置的结构示意图。如图5所示,页面处理装置1可以应用于上述图1-图4d对应实施例中的终端设备,页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14。Further, please refer to FIG. 5 , which is a schematic structural diagram of a page processing device provided by an embodiment of the present invention. As shown in Figure 5, the page processing device 1 can be applied to the terminal device in the embodiment corresponding to the above-mentioned Figure 1-Figure 4d, and the page processing device 1 can include: a first display module 11, asecond display module 12, aresponse module 13, First createmodule 14.

第一显示模块11,用于显示属于第一进程的目标页面;所述目标页面为前台显示页面;The first display module 11 is configured to display a target page belonging to the first process; the target page is a foreground display page;

第二显示模块12,用于当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识;Thesecond display module 12 is configured to display an unread message reminder on the target page when receiving a session message belonging to the second process;

响应模块13,用于响应针对所述未读消息提醒标识的触发操作;Aresponse module 13, configured to respond to the trigger operation for the unread message reminder flag;

第一创建模块14,用于根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。The first creatingmodule 14 is configured to create a session message window according to the session message, and display the session message window on the target page.

其中,第一显示模块11、第二显示模块12、响应模块13、第一创建模块14的具体功能实现方式可以参见上述图2a对应实施例中的步骤S101-步骤S103,这里不再进行赘述。Wherein, the specific function implementation manners of the first display module 11, thesecond display module 12, theresponse module 13, and thefirst creation module 14 can refer to step S101-step S103 in the above-mentioned embodiment corresponding to FIG. 2a, and will not be repeated here.

请参见图5,第二显示模块12可以包括:获取单元121、同步单元122。Referring to FIG. 5 , thesecond display module 12 may include: anacquisition unit 121 and asynchronization unit 122 .

获取单元121,用于当接收到属于所述第二进程的所述会话消息,且所述会话消息具有显示优先级时,在所述第二进程中获取与所述会话消息对应的发送用户头像,并获取所述会话消息的数量,作为未读消息数量;The obtainingunit 121 is configured to obtain, in the second process, the avatar of the sending user corresponding to the conversation message when the conversation message belonging to the second process is received and the conversation message has a display priority , and obtain the number of conversation messages as the number of unread messages;

同步单元122,用于基于跨进程同步服务,将所述第一进程的进程状态信息同步至所述第二进程;所述进程状态信息包括前台运行状态;Asynchronization unit 122, configured to synchronize the process status information of the first process to the second process based on a cross-process synchronization service; the process status information includes a foreground running status;

所述同步单元122,还用于若所述第二进程为前台运行状态,且所述会话消息属于未读消息类型,则基于所述跨进程同步服务,将所述未读消息数量和所述发送用户头像同步至所述第一进程;Thesynchronization unit 122 is further configured to: if the second process is in the foreground running state and the conversation message belongs to the unread message type, based on the cross-process synchronization service, the number of unread messages and the sending the user avatar to be synchronized to the first process;

所述同步单元122,还用于在所述第一进程中,根据所述未读消息数量和所述发送用户头像生成所述未读消息提醒标识,并在所述目标页面上显示所述未读消息提醒标识。Thesynchronization unit 122 is further configured to, in the first process, generate the unread message reminder identifier according to the number of unread messages and the avatar of the sending user, and display the unread message on the target page. Read message reminder logo.

其中,获取单元121、同步单元122的具体功能实现方式可以参见上述图2a对应实施例中的步骤S202,这里不再进行赘述。Wherein, for the specific function implementation manners of the acquiringunit 121 and the synchronizingunit 122, reference may be made to step S202 in the above-mentioned embodiment corresponding to FIG. 2a , which will not be repeated here.

请参见图5,页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14;还可以包括:获取模块15、通知模块16。Referring to FIG. 5 , the page processing apparatus 1 may include: a first display module 11 , asecond display module 12 , aresponse module 13 , and afirst creation module 14 ; and may also include: anacquisition module 15 and anotification module 16 .

获取模块15,用于在所述第二进程中,获取所述会话消息的消息摘要,并根据所述消息摘要创建消息列表页面;所述消息列表页面包括消息列表页面窗口;所述消息列表页面窗口包括所述消息摘要;The obtainingmodule 15 is used to obtain the message summary of the conversation message in the second process, and create a message list page according to the message summary; the message list page includes a message list page window; the message list page a window including said message digest;

所述获取模块15,还用于在所述第一进程对应的任务栈中对所述消息列表页面入栈,并激活所述消息列表页面,以在所述目标页面上显示所述消息列表页面;The acquiringmodule 15 is further configured to push the message list page in the task stack corresponding to the first process, and activate the message list page, so as to display the message list page on the target page ;

通知模块16,用于响应针对所述消息列表页面窗口的触发操作,通知所述第一创建模块执行对应步骤。Thenotification module 16 is configured to notify the first creation module to execute corresponding steps in response to a trigger operation on the message list page window.

其中,获取模块15、通知模块16的具体功能实现方式可以参见上述图2a对应实施例中的步骤S103,这里不再进行赘述。Wherein, the specific function implementation manners of theacquisition module 15 and thenotification module 16 can refer to the step S103 in the above-mentioned embodiment corresponding to FIG. 2 a , which will not be repeated here.

请参见图5,第一创建模块14可以包括:第一创建单元141、入栈单元142。Referring to FIG. 5 , the first creatingmodule 14 may include: a first creatingunit 141 and a stackingunit 142 .

第一创建单元141,用于在所述第二进程中,创建会话消息页面;所述会话消息页面包括所述会话消息页面窗口;所述会话消息页面窗口包含所述会话消息;The first creatingunit 141 is configured to create a session message page in the second process; the session message page includes the session message page window; the session message page window includes the session message;

所述第一创建单元141,还用于将所述会话消息页面窗口确定为所述会话消息窗口;The first creatingunit 141 is further configured to determine the session message page window as the session message window;

入栈单元142,用于在所述任务栈中对所述会话消息页面入栈,并激活所述会话消息页面,以在所述目标页面上显示所述会话消息页面中的所述会话消息页面窗口。A stackingunit 142, configured to push the session message page in the task stack, and activate the session message page, so as to display the session message page in the session message page on the target page window.

其中,第一创建单元141、入栈单元142的具体功能实现方式可以参见上述图2a对应实施例中的步骤S103,这里不再进行赘述。Wherein, the specific function implementation manners of the first creatingunit 141 and the stackingunit 142 can refer to the step S103 in the above embodiment corresponding to FIG. 2 a , which will not be repeated here.

请参见图5,会话消息页还包括会话消息页面关闭标识;所述消息列表页面还包括消息列表页面关闭标识;所述目标页面还包括目标页面关闭标识;Referring to Fig. 5, the session message page also includes a session message page closing identifier; the message list page also includes a message list page closing identifier; the target page also includes a target page closing identifier;

页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14、获取模块15、通知模块16;还可以包括:关闭模块17。The page processing apparatus 1 may include: a first display module 11 , asecond display module 12 , aresponse module 13 , afirst creation module 14 , anacquisition module 15 , and anotification module 16 ; and may also include: a closingmodule 17 .

所述响应模块13,还用于响应针对所述会话消息页面关闭标识的触发操作、针对所述消息列表页面关闭标识的触发操作、针对所述目标页面关闭标识的触发操作;Theresponse module 13 is further configured to respond to a trigger operation for the session message page closing flag, a trigger operation for the message list page closing flag, and a trigger operation for the target page closing flag;

关闭模块17,用于关闭所述会话消息页面、所述消息列表页面、所述目标页面。Aclosing module 17, configured to close the conversation message page, the message list page, and the target page.

其中响应模块13、关闭模块17的具体功能实现方式可以参见上述图2a对应实施例中的步骤S103,这里不再进行赘述。The specific function implementation manners of theresponse module 13 and theshutdown module 17 can refer to step S103 in the above-mentioned embodiment corresponding to FIG. 2 a , which will not be repeated here.

请参见图5,所述所述会话消息页面、所述消息列表页面和所述目标页面均属于与所述任务栈;所述会话消息页面位于所述任务栈栈顶,所述消息列表页面与所述消息列表页面相邻,所述目标页面与所述会话消息页面相邻;Please refer to Fig. 5, the described conversation message page, the described message list page and the described target page all belong to the task stack; The message list page is adjacent, and the target page is adjacent to the conversation message page;

关闭模块17可以包括:第一出栈单元171、第二出栈单元172。Theclosing module 17 may include: a firststack popping unit 171 and a secondstack popping unit 172 .

第一出栈单元171,用于将所述会话消息页面从所述任务栈中出栈,以关闭所述会话消息页面;Thefirst popping unit 171 is configured to pop the session message page from the task stack to close the session message page;

第二出栈单元172,用于将所述消息列表页面从所述任务栈中出栈,以关闭所述消息列表页面;Thesecond popping unit 172 is configured to pop the message list page from the task stack to close the message list page;

所述第二出栈单元172,还用于将所述目标页面从所述任务栈中出栈,以关闭所述目标页面。Thesecond popping unit 172 is further configured to pop the target page from the task stack to close the target page.

其中,第一出栈单元171、第二出栈单元172的具体功能实现方式可以参见上述图2a对应实施例中的步骤S103。Wherein, for the specific function implementation manners of thefirst popping unit 171 and thesecond popping unit 172, reference may be made to step S103 in the embodiment corresponding to FIG. 2a above.

请参见图5,会话消息页面还包括会话消息页面折叠标识;Please refer to Fig. 5, the conversation message page also includes a conversation message page folding sign;

页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14、获取模块15、通知模块16、关闭模块17;还可以包括:生成模块18、业务行为操作模块19。The page processing device 1 may include: a first display module 11, asecond display module 12, aresponse module 13, afirst creation module 14, anacquisition module 15, anotification module 16, and aclosing module 17; it may also include: ageneration module 18, a businessBehavior Operations Module 19.

所述响应模块13,还用于响应针对所述会话消息页面折叠标识的触发操作,获取与所述会话消息对应的发送用户头像;Theresponse module 13 is also configured to respond to the trigger operation for the page folding logo of the conversation message, and obtain the sending user avatar corresponding to the conversation message;

生成模块18,用于关闭所述会话消息页面,根据所述发送用户头像生成发送用户头像悬浮窗口,并在所述目标页面上显示所述发送用户头像悬浮窗口;Thegeneration module 18 is used to close the conversational message page, generate a floating window for sending user avatars according to the sending user avatars, and display the floating window for sending user avatars on the target page;

所述生成模块18,还用于响应针对所述发送用户头像悬浮窗口的触发操作,创建消息显示页面,并在目标页面上显示所述消息显示页面;所述消息显示页面包括头像页面窗口;所述头像页面窗口包括所述发送用户头像;Thegeneration module 18 is also used to create a message display page in response to the trigger operation for the floating window of the sending user's avatar, and display the message display page on the target page; the message display page includes an avatar page window; The avatar page window includes the sending user avatar;

业务行为操作模块19,用于响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作。The businessbehavior operation module 19 is configured to execute a business behavior operation associated with the message display page in response to a trigger operation on the avatar page window.

其中,响应模块13、生成模块18、业务行为操作模块19的具体功能实现方式可以参见上述图3a对应实施例中的步骤S204-步骤S207,这里不再进行赘述。Wherein, the specific function implementation manners of theresponse module 13, thegeneration module 18, and the businessbehavior operation module 19 can refer to the steps S204-step S207 in the above-mentioned embodiment corresponding to FIG. 3a, which will not be repeated here.

请参见图5,业务行为操作模块19可以包括:第一响应单元191、关闭单元192。Referring to FIG. 5 , the businessbehavior operation module 19 may include: afirst response unit 191 and aclosing unit 192 .

第一响应单元191,用于响应针对所述头像页面窗口的第一滑动操作;所述第一滑动操作对应第一滑动距离和第一滑动方向;Thefirst response unit 191 is configured to respond to a first sliding operation for the avatar page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;

关闭单元192,用于当所述第一滑动距离和所述第一滑动方向满足页面删除条件时,关闭所述消息显示页面。Theclosing unit 192 is configured to close the message display page when the first sliding distance and the first sliding direction meet a page deletion condition.

其中,第一响应单元191、关闭单元192的具体功能实现方式可以参见上述图3a对应实施例中的步骤S207,这里不再进行赘述。For the implementation of the specific functions of the first respondingunit 191 and theclosing unit 192, reference may be made to step S207 in the above-mentioned embodiment corresponding to FIG. 3a , which will not be repeated here.

请参见图5,头像页面窗口包括第一头像页面窗口和第二头像页面窗口;所述消息显示页面还包括所述会话消息页面窗口;Please refer to Fig. 5, the avatar page window includes a first avatar page window and a second avatar page window; the message display page also includes the conversation message page window;

业务行为操作模块19可以包括:第二响应单元193、第二创建单元194。The businessbehavior operation module 19 may include: asecond response unit 193 and asecond creation unit 194 .

第二响应单元193,用于响应所述第一头像页面窗口向所述第二头像页面窗口的第二滑动操作;所述第二滑动操作对应第二滑动距离;Thesecond response unit 193 is configured to respond to a second sliding operation from the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance;

第二创建单元194,用于当所述第二滑动距离满足群组生成条件时,根据所述第一头像页面窗口对应的第一用户对象和所述第二头像页面窗口对应的第二用户对象,创建消息群组页面窗口,并在所述消息显示页面上将所述会话消息页面窗口切换为所述消息群组页面窗口;所述消息群组页面窗口包括所述第一用户对象和所述第二用户对象。Thesecond creation unit 194 is configured to, when the second sliding distance satisfies the group generation condition, according to the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window , create a message group page window, and switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the Second user object.

其中,第二响应单元193、第二创建单元194的具体功能实现方式可以参见上述图3a对应实施例中的步骤S207,这里不再进行赘述。Wherein, the specific function implementation manners of thesecond response unit 193 and thesecond creation unit 194 may refer to step S207 in the above embodiment corresponding to FIG. 3 a , which will not be repeated here.

请参见图5,页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14、获取模块15、通知模块16、关闭模块17、生成模块18、业务行为操作模块19;还可以包括:第二创建模块20。Referring to FIG. 5, the page processing device 1 may include: a first display module 11, asecond display module 12, aresponse module 13, afirst creation module 14, anacquisition module 15, anotification module 16, aclosing module 17, ageneration module 18, A businessbehavior operation module 19; may also include: asecond creation module 20.

所述响应模块13,还用于响应针对所述发送用户头像悬浮窗口的第三滑动操作;所述第三滑动操作对应第三滑动距离和第三滑动方向;Theresponse module 13 is also configured to respond to a third sliding operation for the floating window of the sending user avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction;

第二创建模块20,用于当所述第三滑动距离和所述第三滑动方向满足用户头像列表显示条件时,根据所述发送用户头像,在所述目标页面上创建用户头像列表悬浮窗口;所述用户头像列表悬浮窗口包含所述发送用户头像。Thesecond creation module 20 is used to create a user avatar list floating window on the target page according to the sending user avatar when the third sliding distance and the third sliding direction meet the display conditions of the user avatar list; The user avatar list floating window includes the sending user avatar.

其中,响应模块13、第二创建模块20的具体功能实现方式可以参见上述图3a对应实施例中的步骤S207,这里不再进行赘述。Wherein, the specific function implementation manners of theresponse module 13 and thesecond creation module 20 can refer to the step S207 in the above-mentioned embodiment corresponding to FIG. 3 a , which will not be repeated here.

请参见图5,第一创建模块14可以包括:检测单元143、确定单元144。Referring to FIG. 5 , thefirst creation module 14 may include: adetection unit 143 and adetermination unit 144 .

检测单元143,用于检测所述会话消息中包含的字符数量;Adetection unit 143, configured to detect the number of characters contained in the conversation message;

确定单元144,用于若所述字符数量小于或等于数量阈值,则在所述第二进程中创建第一会话消息悬浮窗口,将所述第一会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第一会话消息悬浮窗口;所述第一会话消息悬浮窗口为静态显示所述会话消息的悬浮窗口;A determiningunit 144, configured to create a first conversational message floating window in the second process if the number of characters is less than or equal to a quantity threshold, and determine the first conversational message floating window as the conversational message window, and displaying the first conversational message floating window on the target page; the first conversational message floating window is a floating window statically displaying the conversational message;

所述确定单元144,还用于若所述字符数量大于所述数量阈值,则在所述第二进程中创建第二会话消息悬浮窗口,将所述第二会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第二会话消息悬浮窗口;所述第二会话消息悬浮窗口为动态显示所述会话消息的悬浮窗口。The determiningunit 144 is further configured to create a second conversation message floating window in the second process if the number of characters is greater than the number threshold, and determine the second conversation message floating window as the conversation message window, and display the second conversational message floating window on the target page; the second conversational message floating window is a floating window for dynamically displaying the conversational message.

其中,检测单元143、确定单元144的具体功能实现方式可以参见上述图4a对应实施例中的步骤S303-步骤S308,这里不再进行赘述。Wherein, the specific function implementation manners of thedetection unit 143 and thedetermination unit 144 can refer to the above step S303-step S308 in the embodiment corresponding to FIG. 4a, which will not be repeated here.

请参见图5,所述会话消息包括第一消息和第二消息;所述第一消息属于第三用户对象,所述第二消息属于第四用户对象,且所述第一消息的接收时间戳小于所述第二消息的接收时间戳;Referring to FIG. 5, the session message includes a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the receiving timestamp of the first message less than the reception timestamp of said second message;

页面处理装置1可以包括:第一显示模块11、第二显示模块12、响应模块13、第一创建模块14、获取模块15、通知模块16、关闭模块17、生成模块18、业务行为操作模块19、第二创建模块20;还可以包括:第三显示模块21。The page processing device 1 may include: a first display module 11, asecond display module 12, aresponse module 13, afirst creation module 14, anacquisition module 15, anotification module 16, aclosing module 17, ageneration module 18, and a businessbehavior operation module 19 . Thesecond creation module 20; may also include: athird display module 21.

所述响应模块13,还用于响应针对所述会话消息窗口的触发操作,创建辅助页面;所述辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口;所述第一消息页面窗口包含所述第一消息;所述第三头像页面窗口包括所述第三用户对象对应的用户头像;所述第四头像页面窗口包括所述第四用户对象对应的用户头像;Theresponse module 13 is also used to create an auxiliary page in response to the trigger operation for the session message window; the auxiliary page includes a first message page window, a third avatar page window and a fourth avatar page window; the first A message page window includes the first message; the third avatar page window includes a user avatar corresponding to the third user object; the fourth avatar page window includes a user avatar corresponding to the fourth user object;

第三显示模块21,用于在所述目标页面上显示所述辅助页面;Athird display module 21, configured to display the auxiliary page on the target page;

所述响应模块13,还用于响应针对所述辅助页面中的所述第三头像页面窗口向所述第四头像页面窗口的滑动操作,创建包含所述第二消息的第二消息页面窗口,并在所述辅助页面上将所述第一消息页面窗口切换为所述第二消息页面窗口。Theresponse module 13 is further configured to create a second message page window containing the second message in response to a sliding operation from the third avatar page window to the fourth avatar page window in the auxiliary page, And switching the first message page window to the second message page window on the auxiliary page.

其中,响应模块13、第三显示模块21的具体功能实现方式可以参见上述图4a对应实施例中的步骤S308,这里不再进行赘述。Wherein, the specific function implementation manners of theresponse module 13 and thethird display module 21 can refer to the step S308 in the above-mentioned embodiment corresponding to FIG. 4 a , which will not be repeated here.

进一步地,请参见图6,是本发明实施例提供的一种电子设备的结构示意图。上述图1-图4d对应实施例中的终端设备可以为电子设备1000,如图6所示,所述电子设备1000可以包括:用户接口1002、处理器1004、编码器1006以及存储器1008。信号接收器1016用于经由蜂窝接口1010、WIFI接口1012、...、或NFC接口1014接收或者发送数据。编码器1006将接收到的数据编码为计算机处理的数据格式。存储器1008中存储有计算机程序,处理器1004被设置为通过计算机程序执行上述任一项方法实施例中的步骤。存储器1008可包括易失性存储器(例如,动态随机存取存储器DRAM),还可以包括非易失性存储器(例如,一次性可编程只读存储器OTPROM)。在一些实例中,存储器1008可进一步包括相对于处理器1004远程设置的存储器,这些远程存储器可以通过网络连接至电子设备1000。用户接口1002可以包括:键盘1018和显示器1020。Further, please refer to FIG. 6 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The terminal device in the above embodiments corresponding to FIG. 1-FIG. 4d may be anelectronic device 1000. As shown in FIG. Thesignal receiver 1016 is used for receiving or sending data via thecellular interface 1010 , theWIFI interface 1012 , . . . , or theNFC interface 1014 . Encoder 1006 encodes the received data into a computer-processable data format. A computer program is stored in thememory 1008, and theprocessor 1004 is configured to execute the steps in any one of the above method embodiments through the computer program. Thememory 1008 may include volatile memory (eg, dynamic random access memory DRAM), and may also include nonvolatile memory (eg, one-time programmable read-only memory OTPROM). In some examples, thememory 1008 may further include memory located remotely relative to theprocessor 1004, and these remote memories may be connected to theelectronic device 1000 through a network.User interface 1002 may include:keyboard 1018 anddisplay 1020 .

在图6所示的电子设备1000中,处理器1004可以用于调用存储器1008中存储计算机程序,以实现:In theelectronic device 1000 shown in FIG. 6 , theprocessor 1004 can be used to call a computer program stored in thememory 1008 to realize:

显示属于第一进程的目标页面;所述目标页面为前台显示页面;Displaying a target page belonging to the first process; the target page is a foreground display page;

当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识;When a session message belonging to the second process is received, an unread message reminder mark is displayed on the target page;

响应针对所述未读消息提醒标识的触发操作,根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口。In response to the trigger operation on the unread message reminder flag, a session message window is created according to the session message, and the session message window is displayed on the target page.

在一个实施例中,所述处理器1004在执行当接收到属于第二进程的会话消息时,在所述目标页面上显示未读消息提醒标识时,具体执行以下步骤:In one embodiment, when theprocessor 1004 displays an unread message reminder on the target page when receiving a session message belonging to the second process, the following steps are specifically performed:

当接收到属于所述第二进程的所述会话消息,且所述会话消息具有显示优先级时,在所述第二进程中获取与所述会话消息对应的发送用户头像,并获取所述会话消息的数量,作为未读消息数量;When the session message belonging to the second process is received, and the session message has a display priority, obtain in the second process the avatar of the sending user corresponding to the session message, and obtain the session message The number of messages, as the number of unread messages;

基于跨进程同步服务,将所述第一进程的进程状态信息同步至所述第二进程;所述进程状态信息包括前台运行状态;Synchronize the process state information of the first process to the second process based on the cross-process synchronization service; the process state information includes a foreground running state;

若所述第二进程为前台运行状态,且所述会话消息属于未读消息类型,则基于所述跨进程同步服务,将所述未读消息数量和所述发送用户头像同步至所述第一进程;If the second process is in the foreground running state, and the conversation message belongs to the unread message type, then based on the cross-process synchronization service, the number of unread messages and the avatar of the sending user are synchronized to the first process;

在所述第一进程中,根据所述未读消息数量和所述发送用户头像生成所述未读消息提醒标识,并在所述目标页面上显示所述未读消息提醒标识。In the first process, the unread message reminder identifier is generated according to the number of unread messages and the avatar of the sending user, and the unread message reminder identifier is displayed on the target page.

在一个实施例中,所述处理器1004还执行以下步骤:In one embodiment, theprocessor 1004 also performs the following steps:

在所述第二进程中,获取所述会话消息的消息摘要,并根据所述消息摘要创建消息列表页面;所述消息列表页面包括消息列表页面窗口;所述消息列表页面窗口包括所述消息摘要;In the second process, obtain the message digest of the conversation message, and create a message list page according to the message digest; the message list page includes a message list page window; the message list page window includes the message digest ;

在所述第一进程对应的任务栈中对所述消息列表页面入栈,并激活所述消息列表页面,以在所述目标页面上显示所述消息列表页面;Pushing the message list page into the task stack corresponding to the first process, and activating the message list page, so as to display the message list page on the target page;

响应针对所述消息列表页面窗口的触发操作,执行根据所述会话消息创建会话消息窗口的步骤。In response to a trigger operation on the message list page window, the step of creating a session message window according to the session message is performed.

在一个实施例中,所述处理器1004在执行根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口时,具体执行以下步骤:In one embodiment, when theprocessor 1004 creates a session message window according to the session message and displays the session message window on the target page, the following steps are specifically performed:

在所述第二进程中,创建会话消息页面;所述会话消息页面包括所述会话消息页面窗口;所述会话消息页面窗口包含所述会话消息;In the second process, a session message page is created; the session message page includes the session message page window; the session message page window contains the session message;

将所述会话消息页面窗口确定为所述会话消息窗口;determining the session message page window as the session message window;

在所述任务栈中对所述会话消息页面入栈,并激活所述会话消息页面,以在所述目标页面上显示所述会话消息页面中的所述会话消息页面窗口。Pushing the session message page into the task stack, and activating the session message page, so as to display the session message page window in the session message page on the target page.

在一个实施例中,所述会话消息页还包括会话消息页面关闭标识;所述消息列表页面还包括消息列表页面关闭标识;所述目标页面还包括目标页面关闭标识;In one embodiment, the session message page further includes a session message page closing identifier; the message list page further includes a message list page closing identifier; the target page further includes a target page closing identifier;

所述处理器1004还执行以下步骤:Theprocessor 1004 also performs the following steps:

响应针对所述会话消息页面关闭标识的触发操作、针对所述消息列表页面关闭标识的触发操作、针对所述目标页面关闭标识的触发操作,关闭所述会话消息页面、所述消息列表页面、所述目标页面。Closing the session message page, the message list page, all Describe the target page.

在一个实施例中,所述所述会话消息页面、所述消息列表页面和所述目标页面均属于与所述任务栈;所述会话消息页面位于所述任务栈栈顶,所述消息列表页面与所述会话消息页面相邻,所述目标页面与所述消息列表页面相邻;In one embodiment, the session message page, the message list page and the target page all belong to the task stack; the session message page is located at the top of the task stack, and the message list page Adjacent to the conversation message page, the target page is adjacent to the message list page;

所述处理器1004在执行关闭所述会话消息页面、所述消息列表页面、所述目标页面时,具体执行以下步骤:When theprocessor 1004 closes the session message page, the message list page, and the target page, it specifically performs the following steps:

将所述会话消息页面从所述任务栈中出栈,以关闭所述会话消息页面;Popping the session message page from the task stack to close the session message page;

将所述消息列表页面从所述任务栈中出栈,以关闭所述消息列表页面;Popping the message list page from the task stack to close the message list page;

将所述目标页面从所述任务栈中出栈,以关闭所述目标页面。Popping the target page from the task stack to close the target page.

在一个实施例中,所述会话消息页面还包括会话消息页面折叠标识;In one embodiment, the conversation message page further includes a conversation message page folding indicator;

所述处理器1004还执行以下步骤:Theprocessor 1004 also performs the following steps:

响应针对所述会话消息页面折叠标识的触发操作,获取与所述会话消息对应的发送用户头像;Responding to a trigger operation directed at the page folding identifier of the session message, acquiring the avatar of the sending user corresponding to the session message;

关闭所述会话消息页面,根据所述发送用户头像生成发送用户头像悬浮窗口,并在所述目标页面上显示所述发送用户头像悬浮窗口;Closing the session message page, generating a floating window for sending user avatars according to the sending user avatars, and displaying the floating window for sending user avatars on the target page;

响应针对所述发送用户头像悬浮窗口的触发操作,创建消息显示页面,并在所述目标页面上显示所述消息显示页面;所述消息显示页面包括头像页面窗口;所述头像页面窗口包括所述发送用户头像;Responding to the trigger operation for the floating window of the sending user's avatar, create a message display page, and display the message display page on the target page; the message display page includes an avatar page window; the avatar page window includes the send user avatar;

响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作。In response to a trigger operation on the avatar page window, execute a business behavior operation associated with the message display page.

在一个实施例中,所述处理器1004在执行响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作时,具体执行以下步骤:In one embodiment, when theprocessor 1004 executes the business behavior operation associated with the message display page in response to the trigger operation on the avatar page window, specifically perform the following steps:

响应针对所述头像页面窗口的第一滑动操作;所述第一滑动操作对应第一滑动距离和第一滑动方向;Responding to a first sliding operation for the avatar page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;

当所述第一滑动距离和所述第一滑动方向满足页面删除条件时,关闭所述消息显示页面。When the first sliding distance and the first sliding direction meet a page deletion condition, the message display page is closed.

在一个实施例中,所述头像页面窗口包括第一头像页面窗口和第二头像页面窗口;所述消息显示页面还包括所述会话消息页面窗口;In one embodiment, the avatar page window includes a first avatar page window and a second avatar page window; the message display page further includes the conversation message page window;

所述处理器1004在执行响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作时,具体执行以下步骤:When theprocessor 1004 executes the business behavior operation associated with the message display page in response to the trigger operation on the avatar page window, specifically perform the following steps:

所述响应针对所述头像页面窗口的触发操作,执行与所述消息显示页面相关联的业务行为操作,包括:In response to the trigger operation of the avatar page window, execute the business behavior operation associated with the message display page, including:

响应所述第一头像页面窗口向所述第二头像页面窗口的第二滑动操作;所述第二滑动操作对应第二滑动距离;Responding to a second sliding operation from the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance;

当所述第二滑动距离满足群组生成条件时,根据所述第一头像页面窗口对应的第一用户对象和所述第二头像页面窗口对应的第二用户对象,创建消息群组页面窗口,并在所述消息显示页面上将所述会话消息页面窗口切换为所述消息群组页面窗口;所述消息群组页面窗口包括所述第一用户对象和所述第二用户对象。When the second sliding distance satisfies the group generation condition, create a message group page window according to the first user object corresponding to the first avatar page window and the second user object corresponding to the second avatar page window, And switch the conversation message page window to the message group page window on the message display page; the message group page window includes the first user object and the second user object.

在一个实施例中,所述处理器1004还执行以下步骤:In one embodiment, theprocessor 1004 also performs the following steps:

响应针对所述发送用户头像悬浮窗口的第三滑动操作;所述第三滑动操作对应第三滑动距离和第三滑动方向;Responding to a third sliding operation on the floating window of the sending user's avatar; the third sliding operation corresponds to a third sliding distance and a third sliding direction;

当所述第三滑动距离和所述第三滑动方向满足用户头像列表显示条件时,根据所述发送用户头像,在所述目标页面上创建用户头像列表悬浮窗口;所述用户头像列表悬浮窗口包含所述发送用户头像。When the third sliding distance and the third sliding direction meet the user avatar list display condition, according to the sending user avatar, create a user avatar list floating window on the target page; the user avatar list floating window includes Said send user avatar.

在一个实施例中,所述处理器1004在执行根据所述会话消息创建会话消息窗口,在所述目标页面上显示所述会话消息窗口时,具体执行以下步骤:In one embodiment, when theprocessor 1004 creates a session message window according to the session message and displays the session message window on the target page, the following steps are specifically performed:

检测所述会话消息中包含的字符数量;detecting the number of characters contained in the conversation message;

若所述字符数量小于或等于数量阈值,则在所述第二进程中创建第一会话消息悬浮窗口,将所述第一会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第一会话消息悬浮窗口;所述第一会话消息悬浮窗口为静态显示所述会话消息的悬浮窗口;If the number of characters is less than or equal to the number threshold, then create a first conversational message floating window in the second process, determine the first conversational message floating window as the conversational message window, and display the message on the target page displaying the first conversational message floating window; the first conversational message floating window is a floating window statically displaying the conversational message;

若所述字符数量大于所述数量阈值,则在所述第二进程中创建第二会话消息悬浮窗口,将所述第二会话消息悬浮窗口确定为所述会话消息窗口,并在所述目标页面上显示所述第二会话消息悬浮窗口;所述第二会话消息悬浮窗口为动态显示所述会话消息的悬浮窗口。If the number of characters is greater than the number threshold, then create a second session message suspension window in the second process, determine the second session message suspension window as the session message window, and display on the target page The second conversational message floating window is displayed on the screen; the second conversational message floating window is a floating window for dynamically displaying the conversational message.

在一个实施例中,所述会话消息包括第一消息和第二消息;所述第一消息属于第三用户对象,所述第二消息属于第四用户对象,且所述第一消息的接收时间戳小于所述第二消息的接收时间戳;In one embodiment, the conversation message includes a first message and a second message; the first message belongs to a third user object, the second message belongs to a fourth user object, and the receiving time of the first message the stamp is less than the reception timestamp of said second message;

所述处理器1004还执行以下步骤:Theprocessor 1004 also performs the following steps:

响应针对所述会话消息窗口的触发操作,创建辅助页面;所述辅助页面包括第一消息页面窗口、第三头像页面窗口以及第四头像页面窗口;所述第一消息页面窗口包含所述第一消息;所述第三头像页面窗口包括所述第三用户对象对应的用户头像;所述第四头像页面窗口包括所述第四用户对象对应的用户头像;Create an auxiliary page in response to a trigger operation on the session message window; the auxiliary page includes a first message page window, a third avatar page window, and a fourth avatar page window; the first message page window includes the first message; the third avatar page window includes the user avatar corresponding to the third user object; the fourth avatar page window includes the user avatar corresponding to the fourth user object;

在所述目标页面上显示所述辅助页面;displaying the secondary page on the target page;

响应针对所述辅助页面中的所述第三头像页面窗口向所述第四头像页面窗口的滑动操作,创建包含所述第二消息的第二消息页面窗口,并在所述辅助页面上将所述第一消息页面窗口切换为所述第二消息页面窗口。Responding to the sliding operation from the third avatar page window to the fourth avatar page window in the auxiliary page, creating a second message page window containing the second message, and uploading the second message page window on the auxiliary page The first message page window is switched to the second message page window.

应当理解,本发明实施例中所描述的电子设备1000可执行前文图1到图4d所对应实施例中对所述页面处理方法的描述,也可执行前文图5所对应实施例中对所述页面处理装置1的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It should be understood that theelectronic device 1000 described in the embodiment of the present invention can execute the description of the page processing method in the foregoing embodiment corresponding to FIG. 1 to FIG. The description of the page processing device 1 is omitted here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here.

此外,这里需要指出的是:本发明实施例还提供了一种计算机存储介质,且所述计算机存储介质中存储有前文提及的页面处理装置1所执行的计算机程序,且所述计算机程序包括程序指令,当所述处理器执行所述程序指令时,能够执行前文图1到图4d所对应实施例中对所述页面处理方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本发明所涉及的计算机存储介质实施例中未披露的技术细节,请参照本发明方法实施例的描述。In addition, it should be pointed out here that: the embodiment of the present invention also provides a computer storage medium, and the computer storage medium stores the computer program executed by the aforementioned page processing device 1, and the computer program includes The program instruction, when the processor executes the program instruction, can execute the description of the page processing method in the embodiment corresponding to FIG. 1 to FIG. 4d above, so details will not be repeated here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here. For the technical details not disclosed in the embodiments of the computer storage medium involved in the present invention, please refer to the description of the method embodiments of the present invention.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

CN201910419822.6A2019-05-202019-05-20 A page processing method, device and related equipmentActiveCN110134481B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202310990160.4ACN116841685A (en)2019-05-202019-05-20Page processing method and device and related equipment
CN201910419822.6ACN110134481B (en)2019-05-202019-05-20 A page processing method, device and related equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910419822.6ACN110134481B (en)2019-05-202019-05-20 A page processing method, device and related equipment

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310990160.4ADivisionCN116841685A (en)2019-05-202019-05-20Page processing method and device and related equipment

Publications (2)

Publication NumberPublication Date
CN110134481A CN110134481A (en)2019-08-16
CN110134481Btrue CN110134481B (en)2023-07-14

Family

ID=67571476

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN201910419822.6AActiveCN110134481B (en)2019-05-202019-05-20 A page processing method, device and related equipment
CN202310990160.4APendingCN116841685A (en)2019-05-202019-05-20Page processing method and device and related equipment

Family Applications After (1)

Application NumberTitlePriority DateFiling Date
CN202310990160.4APendingCN116841685A (en)2019-05-202019-05-20Page processing method and device and related equipment

Country Status (1)

CountryLink
CN (2)CN110134481B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110781408B (en)*2019-10-252023-11-17上海连尚网络科技有限公司 Information display method and device
CN110968387A (en)*2019-10-292020-04-07浙江口碑网络技术有限公司Message processing method and device and electronic equipment
CN110795097B (en)*2019-11-042021-12-14腾讯科技(深圳)有限公司Page processing method and device, computer equipment and storage medium
CN111260401B (en)*2020-01-162023-11-21上海连尚网络科技有限公司Method and device for displaying presentation information on reading page
CN111488107A (en)*2020-03-262020-08-04北京小米移动软件有限公司 Multitask interactive control method, multitask interactive control device and storage medium
CN111538574B (en)*2020-03-272024-03-12北京达佳互联信息技术有限公司Task stack management method, device, terminal and storage medium
CN111596830B (en)*2020-05-152023-09-05腾讯科技(深圳)有限公司Message reminding method and device
CN113298275A (en)*2020-05-212021-08-24阿里巴巴集团控股有限公司Travel management method, robot and platform
CN111813308B (en)*2020-06-242022-02-08维沃移动通信有限公司Interface processing method and device, electronic equipment and storage medium
CN114327666B (en)*2020-09-302024-04-09华为技术有限公司Application starting method and device and electronic equipment
CN113741752B (en)*2021-09-132025-06-17北京沃东天骏信息技术有限公司 Information display method, device and program product of strategy formulation tool
CN114443201A (en)2022-01-292022-05-06北京字跳网络技术有限公司 Message display method, apparatus, device and storage medium
CN114896536A (en)*2022-05-312022-08-12北京字跳网络技术有限公司Message processing method, device, equipment and storage medium
CN117093110B (en)*2023-10-202024-04-05荣耀终端有限公司 Background image display method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102075337A (en)*2009-11-202011-05-25腾讯科技(深圳)有限公司Instant communication message display method and related device
CN103051516A (en)*2011-10-172013-04-17腾讯科技(深圳)有限公司Message prompting method and device of instant messaging client
CN105306338A (en)*2014-07-292016-02-03腾讯科技(深圳)有限公司Message reminding method and device
CN107508961A (en)*2017-06-262017-12-22努比亚技术有限公司A kind of active window starts method, terminal and computer-readable recording medium
CN108549569A (en)*2018-04-262018-09-18上海掌门科技有限公司The method and apparatus of information in a kind of search for application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10469417B2 (en)*2016-03-312019-11-05Atlassian Pty LtdSystems and methods for providing external content in a messaging interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102075337A (en)*2009-11-202011-05-25腾讯科技(深圳)有限公司Instant communication message display method and related device
CN103051516A (en)*2011-10-172013-04-17腾讯科技(深圳)有限公司Message prompting method and device of instant messaging client
CN105306338A (en)*2014-07-292016-02-03腾讯科技(深圳)有限公司Message reminding method and device
CN107508961A (en)*2017-06-262017-12-22努比亚技术有限公司A kind of active window starts method, terminal and computer-readable recording medium
CN108549569A (en)*2018-04-262018-09-18上海掌门科技有限公司The method and apparatus of information in a kind of search for application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于框架网页与页面阈值的会话识别算法;方元康等;计算机应用与软件;第26卷(第01期);第18-19、27页*

Also Published As

Publication numberPublication date
CN110134481A (en)2019-08-16
CN116841685A (en)2023-10-03

Similar Documents

PublicationPublication DateTitle
CN110134481B (en) A page processing method, device and related equipment
US10761698B2 (en)Apparatus and method for displaying notification in electronic device
CN114629865B (en)Instant messaging system for interacting with dynamically expanding applications
KR102238205B1 (en)Apparatus and method for maintaining a message thread with opt-in permanence for entries
US9594496B2 (en)Method and apparatus for playing IM message
USRE50122E1 (en)Method and mobile terminal for processing data in message
EP2584770B1 (en)Electronic device and method for reply message composition
US20150229598A1 (en)Method and system of synchroning an unread message in instant communication
EP1924068B1 (en)Method and apparatus for message management in portable communication system
TWI491241B (en)Computer program products, apparatuses and methods for associating and displaying messages in mobile terminals
US8769027B2 (en)Method and system for message thread compression
MXPA04007405A (en)Unified contact list.
CN109039857A (en)For providing the method and its electronic device of message function
CN108803964A (en)buoy display method, device, terminal and storage medium
EP2544437A1 (en)Apparatus and method for transmitting message in mobile terminal
CN106155458B (en)Multimedia message playing method and device
CN106792176A (en)The method and intelligent terminal of short message are shown in video playback
CN112947807A (en)Display method and device and electronic equipment
US11310177B2 (en)Message display method and terminal
US20050282563A1 (en)Message recognition and display system and method for a mobile communication device
CA2535282C (en)A method and system for message thread compression
CN104394280A (en)Menu option display method and device for communication information
CN107145286B (en) Browsing interaction processing method and device
CN102447717A (en) Portable electronic device and content distribution method for portable electronic device
CN116032870A (en) Message processing method, device, electronic device and medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp