CN116841685A - Page processing method and device and related equipment - Google Patents

Page processing method and device and related equipment Download PDF

Info

Publication number
CN116841685A
CN116841685A CN202310990160.4A CN202310990160A CN116841685A CN 116841685 A CN116841685 A CN 116841685A CN 202310990160 A CN202310990160 A CN 202310990160A CN 116841685 A CN116841685 A CN 116841685A
Authority
CN
China
Prior art keywords
page
message
window
session message
session
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310990160.4A
Other languages
Chinese (zh)
Inventor
刘立强
徐融星
柳欲浚
钟庆华
吴晓煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310990160.4A priority Critical patent/CN116841685A/en
Publication of CN116841685A publication Critical patent/CN116841685A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the application 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 application, the efficiency of the terminal for displaying the message content to the user can be improved.

Description

Page processing method and device and related equipment
The present application is a divisional application of chinese patent application filed at 20 months 05 in 2019, filed with chinese patent office under application number 201910419822.6, application name "a page processing method, apparatus and related device", the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a page, and related devices.
Background
At present, the pace of life and work is increasingly accelerated, users often switch back and forth among multiple functions when using mobile smart devices, for example, when users read news information and receive new messages, the users need to view the messages and reply to the messages at the moment.
If the current display page is a news information page and the terminal receives a new message at the moment, the terminal vibrates to prompt the user that the new message exists. In order to view the new message, the user closes the current news information page, opens the communication page where the new message is located, and then the user can view the specific content of the new message in the communication page and reply to the new message.
As can be seen from the above, if the terminal device receives a new message in the non-communication page, the current page needs to be closed first, and then the communication page is opened to display the message content to the user, so that the efficiency of transmitting the information to the user is reduced.
Disclosure of Invention
The embodiment of the invention provides a page processing method, a page processing device and related equipment, which can improve the efficiency of displaying message contents to a user by a terminal.
In one aspect, an embodiment of the present invention provides a page processing method, including:
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.
And displaying an unread message reminding identifier on the target page when receiving the session message belonging to the second process, wherein the unread message reminding identifier comprises the following steps:
when the session message belonging to the second process is received and the session message has a display priority, acquiring a sending user head portrait corresponding to the session message in the second process, and acquiring the number of the session message as the unread message number;
synchronizing process state information of the first process to the second process based on a cross-process synchronization service; the process state information comprises a foreground running state;
if the second process is in a foreground running state and the session message belongs to an unread message type, synchronizing the unread message number and the sending user head portrait to the first process based on the cross-process synchronization service;
in the first process, the unread message reminding identification is generated according to the unread message quantity and the head portraits of the sending user, and the unread message reminding identification is displayed on the target page.
Wherein, still include:
in the second process, acquiring a message abstract of the session message, and creating a message list page according to the message abstract; the message list page comprises a message list page window; the message list page window includes the message digest;
Pushing the message list page to a task stack corresponding to the first process, and activating the message list page to display the message list page on the target page;
and responding to the triggering operation for the message list page window, and executing the step of creating a session message window according to the session message.
Wherein the creating a session message window according to the session message, displaying the session message window on the target page, includes:
in the second process, creating a session message page; 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;
and pushing the session message page to a stack in the task stack, and activating the session message page to display the session message page window in the session message page on the target page.
The session message page also comprises a session message page closing identifier; the message list page also comprises a message list page closing identifier; the target page further comprises a target page closing identifier;
The method further comprises the steps of:
and closing the session message page, the message list page and the target page in response to the triggering operation of the closing identification of the session message page, the triggering operation of the closing identification of the message list page and the triggering operation of the closing identification of 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 positioned at the top of the task stack, the message list page is adjacent to the session message page, and the target page is adjacent to the message list page;
the closing the session message page, the message list page and the target page comprises 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;
and popping the target page from the task stack to close the target page.
The session message page also comprises a session message page folding identifier;
the method further comprises the steps of:
Responding to the triggering operation aiming at the session message page folding identification, and acquiring a transmitting user head portrait corresponding to the session message;
closing the session message page, generating a head portrait suspension window of the sending user according to the head portrait of the sending user, and displaying the head portrait suspension window of the sending user on the target page;
responding to the triggering operation of the head portrait floating window of the sending user, creating a message display page, and displaying the message display page on the target page; the message display page comprises an avatar page window; the head portrait page window comprises the head portrait of the sending user;
and responding to the triggering operation aiming at the head portrait page window, and executing the business behavior operation associated with the message display page.
Wherein the responding to the triggering operation of the head portrait page window executes the business behavior operation associated with the message display page, and comprises the following steps:
responding to a first sliding operation for the head portrait page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;
and closing the message display page when the first sliding distance and the first sliding direction meet a page deleting condition.
The head portrait page window comprises a first head portrait page window and a second head portrait page window; the message display page also comprises the session message page window;
the responding to the triggering operation of the head portrait page window executes the business behavior operation associated with the message display page, and the responding to the triggering operation of the head portrait page window comprises the following steps:
responding to a second sliding operation of the first head portrait page window to the second head portrait page window; the second sliding operation corresponds to a second sliding distance;
when the second sliding distance meets a group generation condition, a message group page window is created according to a first user object corresponding to the first head portrait page window and a second user object corresponding to the second head portrait page window, and the session message page window is switched 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.
Wherein, still include:
responding to a third sliding operation for the head portrait floating window of the sending user; 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 head portrait list display condition, a user head portrait list floating window is created on the target page according to the sent user head portrait; the user head portrait list floating window contains the sending user head portrait.
Wherein the creating a session message window according to the session message, displaying the session message window on the target page, includes:
detecting the number of characters contained in the session message;
if the number of characters is smaller than or equal to a number threshold, a first session message floating window is created in the second process, the first session message floating window is determined to be the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window for statically displaying the session message;
if the number of characters is larger than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined to be the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
Wherein the session message comprises 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 is smaller than the receiving timestamp of the second message;
The method further comprises the steps of:
responding to the triggering operation aiming at the session message window, and creating an auxiliary page; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object;
displaying the auxiliary page on the target page;
and responding to the sliding operation of the third head portrait page window to the fourth head portrait page window in the auxiliary page, creating a second message page window containing the second message, and switching the first message page window into the second message page window on the auxiliary page.
Another aspect of an embodiment of the present invention provides a page processing apparatus, including:
the first display module is used for displaying a target page belonging to a first process; the target page is a foreground display page;
the second display module is used for displaying an unread message reminding identifier on the target page when receiving the session message belonging to the second process;
The response module is used for responding to the triggering operation aiming at the unread message reminding identifier;
and the first creating module is used for creating a session message window according to the session message and displaying the session message window on the target page.
Wherein, the second display module includes:
an obtaining unit, configured to obtain, in the second process, a sending user header corresponding to the session message and obtain the number of session messages as an unread message number when the session message belonging to the second process is received and the session message has a display priority;
a synchronization unit configured to synchronize process state information of the first process to the second process based on a cross-process synchronization service; the process state information comprises a foreground running state;
the synchronization unit is further configured to synchronize the number of unread messages and the head portraits of the sending user to the first process based on the cross-process synchronization service if the second process is in a foreground running state and the session message belongs to an unread message type;
the synchronization unit is further configured to generate, in the first process, the unread message alert identifier according to the number of unread messages and the header of the sending user, and display the unread message alert identifier on the target page.
Wherein, still include:
the acquisition module is used for acquiring the message abstract of the session message in the second process and creating a message list page according to the message abstract; the message list page comprises a message list page window; the message list page window includes the message digest;
the acquisition module is further configured to push the message list page to a task stack corresponding to the first process, and activate the message list page to display the message list page on the target page;
and the notification module is used for responding to the triggering operation aiming at the message list page window and notifying the first creation module to execute the corresponding steps.
Wherein the first creation module includes:
the first creating unit is used for creating a session message page in the second process; the session message page includes the session message page window; the session message page window contains the session message;
the first creating unit is further configured to determine the session message page window as the session message window;
the stacking unit is used for stacking the session message page in 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.
The session message page also comprises a session message page closing identifier; the message list page also comprises a message list page closing identifier; the target page further comprises a target page closing identifier;
the apparatus further comprises:
the response module is further used for responding to the triggering operation of the session message page closing identifier, the triggering operation of the message list page closing identifier and the triggering operation of the target page closing identifier;
and the closing module is used for closing the session 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 positioned at the top of the task stack, the message list page is adjacent to the session message page, and the target page is adjacent to the message list page;
the closing module comprises:
the first pop-up unit is used for popping the session message page from the task stack so as to close the session message page;
the second pop-up unit is used for popping the message list page from the task stack so as to close the message list page;
The second popping unit is further configured to pop the target page from the task stack, so as to close the target page.
The session message page also comprises a session message page folding identifier;
the apparatus further comprises:
the response module is further used for responding to the triggering operation of the session message page folding identifier and obtaining a sending user head portrait corresponding to the session message;
the generation module is used for closing the session message page, generating a sending user head portrait suspension window according to the sending user head portrait, and displaying the sending user head portrait suspension window on the target page;
the generating module is further used for responding to the triggering operation of the head portrait floating window of the sending user, creating a message display page and displaying the message display page on a target page; the message display page comprises an avatar page window; the head portrait page window comprises the head portrait of the sending user;
and the business behavior operation module is used for responding to the triggering operation aiming at the head portrait page window and executing the business behavior operation associated with the message display page.
The business behavior operation module comprises:
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;
and the closing unit is used for closing the message display page when the first sliding distance and the first sliding direction meet the page deleting condition.
The head portrait page window comprises a first head portrait page window and a second head portrait page window; the message display page also comprises the session message page window;
the business behavior operation module comprises:
a second response unit configured to respond to a second sliding operation of the first avatar page window toward the second avatar page window; the second sliding operation corresponds to a second sliding distance;
a second creating unit, configured to create a message group page window according to a first user object corresponding to the first avatar page window and a second user object corresponding to the second avatar page window when the second sliding distance meets a group generation condition, and switch the session 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.
Wherein, still include:
the response module is further used for responding to a third sliding operation for the head portrait floating window of the sending user; the third sliding operation corresponds to a third sliding distance and a third sliding direction;
the second creating module is used for creating a user head portrait list floating window on the target page according to the sent user head portrait when the third sliding distance and the third sliding direction meet the user head portrait list display condition; the user head portrait list floating window contains the sending user head portrait.
Wherein the first creation module includes:
a detecting unit, configured to detect the number of characters included in the session message;
a determining unit, configured to create a first session message suspension window in the second process if the number of characters is less than or equal to a number threshold, determine the first session message suspension window as the session message window, and display the first session message suspension window on the target page; the first session message floating window is a floating window for statically displaying the session message;
the determining unit is further configured to create a second session message floating window in the second process if the number of characters is greater than the number threshold, determine the second session message floating window as the session message window, and display the second session message floating window on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
Wherein the session message comprises 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 is smaller than the receiving timestamp of the second message;
the apparatus further comprises:
the response module is further used for responding to the triggering operation aiming at the session message window and creating an auxiliary page; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object;
the third display module is used for displaying the auxiliary page on the target page;
the response module is further configured to create a second message page window including the second message in response to a sliding operation for the third header page window to the fourth header page window in the auxiliary page, and switch the first message page window to the second message page window on the auxiliary page.
Another aspect of an 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 configured to store program code, and the processor is configured to invoke the program code to perform a method as in one aspect of an embodiment of the present invention.
Another aspect of the embodiments of the present invention provides a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, perform a method as in one aspect of the embodiments of the present invention.
According to the embodiment of the invention, the target page belonging to the first process is displayed, and when the session message belonging to the second process is received, the unread message reminding identification is displayed on the target page; and responding to clicking operation aiming at the unread message reminding identification, creating a session message page window containing the session message, and displaying the session message on a target page. Compared with the current display page, the method and the device for displaying the message content on the page of the session message display can display the message content to the user by opening the page of the session message, directly create and display the window containing the message content on the current display page, and can reduce the interaction times of the terminal and the user without exiting the current display page, and improve the efficiency of displaying the message content to the user by the terminal.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a page processing scenario provided in an embodiment of the present invention;
FIG. 2a is a schematic flow chart of a page processing method according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of determining an unread message alert identifier according to an embodiment of the present invention;
FIG. 2c is a schematic diagram of a message list page according to an embodiment of the present invention;
FIG. 2d is a schematic diagram of a return to second process provided by an embodiment of the present invention;
FIG. 2e is a schematic diagram of a determine session message page provided by an embodiment of the present invention;
FIG. 3a is a flowchart illustrating another page processing method according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of a determination message display page provided by an embodiment of the present invention;
FIG. 3c is a schematic diagram of window switching according to an embodiment of the present invention;
FIG. 3d is a schematic diagram of a close message display page according to an embodiment of the present invention;
FIG. 3e is a schematic diagram of a closed page window according to an embodiment of the present invention;
FIG. 3f is a schematic diagram of a creating a message group page window provided by an embodiment of the present invention;
FIG. 3g is a schematic diagram of determining a floating window of a user avatar list according to an embodiment of the present invention;
FIG. 3h is a schematic diagram of a floating window of a sliding user avatar list according to an embodiment of the present invention;
FIG. 4a is a flowchart illustrating another page processing method according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of determining a session message window according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of a switching page window according to an embodiment of the present invention;
FIG. 4d is an interactive schematic diagram for determining an unread message alert identifier according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a page processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The page currently displayed by the terminal equipment is a target page, and the target page belongs to a first process. And after the second process of the terminal equipment receives the new message, displaying an unread message reminding identifier on the target page, wherein the identifier is used for reminding a user of the unread new message. After the user triggers the unread message alert identifier, a message window may be displayed on the target page, the message window including the message content of the new message. Thus, the user can view the new message on the target page without returning to the main interface of the process to which the new message belongs.
The following takes a process corresponding to "news under the world" APP (Application) as a first process and a process corresponding to "message" APP as a second process as an example, to specifically describe how the terminal device efficiently displays the message content to the user.
Fig. 1 is a schematic view of a page processing scenario provided in an embodiment of the present invention. The page currently displayed by the terminal device is page 10a, i.e. page 10a is the foreground display page. As can be seen from fig. 1, the page 10a belongs to a process corresponding to the "world news" APP (referred to as "world news" process), and if the process corresponding to the "message" APP in the terminal device receives a new message at this time (referred to as "message" process), the "message" process sends a notification of the presence of the new message to the "world news" process.
After the "world news" process receives this notification, an unread message alert identifier 10b is displayed on page 10 a. If the user clicks the unread message alert identifier 10b, the "message" process creates a message list page, where the message page includes a message summary page window 10c and a transparent background page window 10d, and the "message" process adds the created message list page to a task stack corresponding to the "world news" process, where the system creates a corresponding task stack for any APP when the APP is started.
From the view point of the underlying data processing of the terminal device, each page corresponds to an activity object instance, and in the foregoing, adding the created message list page to the task stack corresponding to the "world news" process is to add the activity object instance corresponding to the message list page to the task stack corresponding to the "world news" process, that is, the message list page and the "world news" process are sharing task stacks.
The message digest page window 10c may include, among other things, a user header of the transmitted message and a digest of the message content, where the digest of the message content may be the first N characters of the message content, where N is an integer greater than or equal to 1.
The activity object instance corresponding to the message list page (i.e. the active message list page) is activated to display the message list page, that is, the message summary page window 10c and the transparent background page window 10d can be displayed on the target page.
The transparent background page window 10d is set to remind the user terminal device that the page 10a is not closed currently, so that the browsing state of the user can be kept as far as possible, the size of the message digest page window 10c can be set to be as small as possible, and the transparent background page window 10d is correspondingly set to be as large as possible; of course, it is also possible to instead of creating the transparent background page window 10d, to overlay the message digest page window 10c over the entire screen.
If the user clicks the message summary page window 10c, the "message" process creates a message content page, where the message content page includes a message session page window 10e and a transparent background page window 10f, and the "message" process adds the created message content page to a task stack corresponding to the "world news" process, that is, adds the activity object instance corresponding to the created message content page to the task stack corresponding to the "world news" process. That is, the message list page, message content page, and "world news" process are shared task stacks. Where the message session page window 10e is of message content containing a new message.
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 message session page window 10e may be displayed on the target page. After the user views the message content in the message session page window 10e, a reply message may be compiled and sent in the message session page window 10e, where the reply message may be in text, picture, and video form.
After closing the message content page and the message list page, the user displays the page 10a on the screen of the terminal device, and can continue to browse the page 10a, and the user has already checked the message content, so that the unread message reminding identifier 10b does not exist in the page 10 a.
The terminal device in fig. 1 may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device (MID, mobile internet device), and the like.
Referring to fig. 2a, a flow chart of a page processing method according to an embodiment of the present invention is shown in fig. 2a, where the method may include:
step S101, displaying a target page belonging to a first process; and the target page is a foreground display page.
Specifically, the page currently displayed in the screen of the terminal device is referred to as a target page (e.g., page 10a in the corresponding embodiment of fig. 1 described above), that is, the target page is a display page of a process (referred to as a first process, e.g., a "news in the world" process in the corresponding embodiment of fig. 1 described above) that is running in the foreground, and for example, the first process may be a process created by a video application or a process created by a reading application.
For the terminal device, each page corresponds to an Activity object instance, and the Activity object instance is stored in a task stack of the corresponding application program. Because of 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 (may be referred to as a third Activity object instance) of the target page, and the page capable of responding to the user operation behavior is the page at the top of the task stack.
The process is an instance of a running program, if the program is an APP program, the process is an instance of the running APP, and from the viewpoint of an operating system of the terminal device, each running APP corresponds to at least 1 process, and each process occupies a separate space of the memory, so that the processes are independent of each other, that is, the processes are not communicated with each other if no special tool is available.
Step S102, when receiving the session message belonging to the second process, displaying the unread message reminding identification on the target page.
Specifically, when the terminal device receives the session message and the session message belongs to the second process (e.g. the "message" process in the corresponding embodiment of fig. 1), an unread message alert identifier (e.g. the unread message alert identifier 10b in the corresponding embodiment of fig. 1) is displayed on the target page belonging to the first process, so as to alert the user that the unread session message exists. The unread message reminding identifier can be a circle, a square or a numerical value, wherein the numerical value can be the numerical value of the number of the session messages received by the second process; or a number value of session messages belonging to the second process and belonging to an unread message type.
From the perspective of the terminal equipment, the unread message reminding identification is displayed on the target page, namely, the first process adds a view object in the Activity object instance corresponding to the target page, and the view object corresponds to the unread message reminding identification.
The application corresponding to the first process (called a first application) and the application corresponding to the second process (called a second application) may be two independent applications, and the first application may also be an embedded application of the second application, i.e. an entry accessing the first application is in the second application. For example, the first application is an applet application.
In general, two processes are not communicated, in order to enable the second process to display an unread message identifier on a target page of the first process after receiving a session message, that is, the two processes can communicate with each other, a cross-process synchronization framework is developed, and the synchronization framework can provide a process synchronization service, that is, call the cross-process synchronization framework, so that the two processes can communicate with each other. The second process may synchronize information associated with the session message (e.g., a sending user header sending the session message, a number of session messages, etc.) to the first process, and the first process may also synchronize process state information to the second process, where the process state information includes a foreground run state and a background wait state.
The second process determines the number of received session messages as the number of unread messages. Based on the cross-process synchronization service, the first process synchronizes the process state information to the second process, and if the process state information of the first process is the foreground running state and the session message belongs to the unread message type, the second process synchronizes the unread message quantity to the first process based on the cross-process synchronization service.
The first process may use the value corresponding to the number of the unread messages as an unread message reminding identifier, and display the unread message reminding identifier on the target page.
Optionally, if the received session message has a display priority, the second process obtains a sending user header of the sending user corresponding to the session message. Based on the cross-process synchronization service, the first process synchronizes the process state information to the second process, and if the process state information of the first process is the foreground running state and the session message belongs to the unread message type, the second process synchronizes the sending user head portrait to the first process based on the cross-process synchronization service. The first process may use the sending user avatar as an unread message alert identifier and display the unread message alert identifier on the target page.
Optionally, if the received session message has a display priority, the second process obtains a sending user header of the sending user corresponding to the session message, and obtains the number of session messages as the unread number of messages. Based on the cross-process synchronization service, the first process synchronizes the process state information to the second process, and if the process state information of the first process is the foreground running state and the session message belongs to the unread message type, the second process synchronizes the number of the unread messages and sends the user head portrait to the first process based on the cross-process synchronization service. The first process may combine the numerical value corresponding to the number of the unread messages and the sending user avatar into an unread message reminding identifier, and display the unread message reminding identifier on the target page.
Wherein whether the session message has a display priority is determined by an affinity between a sender transmitting the session message and a receiver receiving the session message. For example, if the user a marks the user B as a special care object, which indicates that the intimacy between the user a and the user B is high, when the terminal device where the user a is located receives the session message from the user B, the session message of the user B has a display priority; the intimacy between user a and user B may of course also be determined according to the frequency of communication between them.
It should be noted that, if the number of session messages with display priority is plural and the corresponding sending users are plural, the header of the sending user corresponding to the session message with the earliest sending time and the number values of all the session messages may be combined into the unread message reminding identifier.
Optionally, after the second process determines that the process state information of the first process is the foreground running state, the second process filters the system notification of the session message, that is, the system notification containing the session message is not popped up on the target page any more.
Referring to fig. 2b, a schematic diagram of determining an unread message alert identifier is provided in an embodiment of the present invention, as shown in fig. 2b, where a page 20a is a target page, and when a session message has a display priority, a second process synchronizes the acquired sending user avatar with a first process based on a cross-process synchronization service. The first process will send the user avatar as an unread message alert identifier 20b and display the unread message alert identifier 20b on the target page.
Step S103, responding to the triggering operation aiming at the unread message reminding identifier, creating a session message window according to the session message, and displaying the session message window on the target page.
Specifically, the user may click on the unread message alert identifier, 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 synchronously clicks operation information to the second process, and the second process acquires a message digest of the session message, wherein the message digest may be the first N characters of the session message.
The second process creates a message list page (e.g., a message list page in the corresponding embodiment of fig. 1 described above) containing a message list page window (e.g., message summary page window 10c in the corresponding embodiment of fig. 1 described above) containing a message summary, a send user avatar, a send user nickname, etc. The size of the message list page may be the same as the screen size or may be different from the screen size.
Referring to fig. 2c, which is a schematic diagram of a message list page provided in an embodiment of the present invention, the page 30a in fig. 2c is the message list page 30a, and if the number of session messages is more than one, it can be seen that the message list page 30a includes a plurality of message list page windows (for example, the message list page window 30 c) and a transparent background page window 30b. The second process may typeset a plurality of message list page windows on the message list page according to the receiving time stamp of each session message, and if the session message has a display priority, the message list page window corresponding to the session message may be located at the top of the message list page. The user may also slide a message list page for up-down viewing of message summaries in multiple message list page windows.
The second process may also create a transparent background page window on the message list page. Each page can be considered a combination of multiple page windows (also called views), a page can be considered a container, a page window can be considered content added to the container, and the page window exists on the basis of the page.
Optionally, the message list page may further include a history message list page window, where the history message list page window includes a message digest of a history message, i.e., a read message. And if the user clicks the history message list page window, creating a history message page, wherein the history message page comprises a history message page window, the history message page window comprises a history message, and the history 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 (i.e. is a push stack), and the message list page is located at the stack top of the task stack. The message list page is activated to display the message list page on the target page.
The message list page corresponds to an Activity object instance (may be referred to as a second Activity object instance), the message list page window is a view in the Activity object instance, the message list is stacked, that is, the Activity object instance corresponding to the message list page is stored in a task stack corresponding to the first process, and at this time, the Activity object instance corresponding to the message list page is located at the stack top of the task stack. And activating an Activity object instance corresponding to the message list page at the top of the task stack to display the message list page, namely, a message list page window.
Optionally, the message list page may further include a return identifier (the return identifier may also be understood as a view object in the Activity object instance corresponding to the message list page), if the user clicks the return identifier, the terminal device closes the current message list page, and switches 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, and at the moment, a main interface belonging to the second process is displayed on a screen of the terminal device.
Referring to fig. 2d, a schematic diagram of a return to the second process according to an embodiment of the present invention is shown, where the page 40a is a target page 40a including an unread message alert identifier, and after the user clicks the unread message alert identifier, a message list page 40b is displayed on the screen. As can be seen in fig. 2d, a plurality of message list page windows are included in the message list page 40b, along with a return identification 40d. After the user clicks the return identifier 40d, the second process corresponding to the session message is used as a foreground running process, that is, the main interface 40c of the second process is displayed on the screen.
The user clicks on the message list page window and in a second process creates a session message page containing a session message page window (e.g., message session page window 10e in the corresponding embodiment of fig. 1 described above), wherein the session message page window includes a session message. Likewise, the size of the session message page may be the same as the screen size or may be different from the screen size.
The second process stores the session message page in the task stack corresponding to the first process (i.e. is a push stack), at this time, the session message page is located at the stack top of the task stack, and the task stack contains the session message page (located at the stack top), then the message list page, and finally the target page. A session message page is activated to display the session message page on a target page, on a message list page.
From the point of view of the terminal device, the user clicks on the message list page window, and the second process creates an activity object instance (referred to as a first active object instance) corresponding to the session message page containing the session message page window. The second process adds the first active object instance into a task stack corresponding to the first process, wherein the task stack comprises a third active object instance, a second active object instance and a first active object instance, the first active object instance is positioned at the top of a stack, and the second active object instance is followed by the third active object instance.
And activating a first active object positioned at the top of the stack to display a session message page on the target page and the message list page, namely displaying a 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 session message page window, where the reply message may be a text message, an image, or a video message, etc.
If both the message list page and the session message page occupy only a portion of the screen, the user may still see the target page when viewing the session message in the session message page window in the session message page or when viewing the message digest in the message list page window in the message list page. I.e. without leaving the target page belonging to the first process, the session message belonging to the second process can be viewed.
The session message page also includes a session message page close identifier; the message list page also comprises a message list page closing identifier; the target page also includes a target page close identification. When the 3 pages need to be closed, namely, 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; and finally, popping the target page from the task stack to close the target page.
From the perspective of the active object instance, 3 pages are closed, namely 3 active object instances are popped off, according to the structural characteristics of the first in last out of the task stack, the first active object instance positioned at the top of the stack is popped off first, then the second active object instance adjacent to the first active object instance is popped off, and finally the third active object instance adjacent to the second active object instance is popped off.
The user clicks the closing identifier of the session message page, namely, the terminal equipment pops the first movable object instance corresponding to the message session page from the task stack to close the session message page;
clicking a closing identifier of the message list page by a user, namely, popping a second movable object instance corresponding to the message list page from a task stack to close the message list page for the terminal equipment;
the user clicks the target page closing identifier, and 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 alert identifier is generated according to the header of the sending user, if the user clicks the unread message alert identifier, the second process may directly generate the session message page including the session message page window without generating the message list page, and display the session message page on the target page.
Referring to fig. 2e, a schematic diagram of determining a session message page according to an embodiment of the present invention is shown in fig. 2e, where a page 50a is a target page 50a including an unread message alert identifier, and a session message has a display priority, and if a user clicks the unread message alert identifier, a second process directly generates a session message page 50b, and the session message page 50b includes a session message page window 50z.
Compared with the current display page, the method and the device for displaying the message content on the page of the session message display can display the message content to the user by opening the page of the session message, directly create and display the window containing the message content on the current display page, and can reduce the interaction times of the terminal and the user without exiting the current display page, and improve the efficiency of displaying the message content to the user by the terminal.
Referring to fig. 3a, a flow chart of another page processing method according to an embodiment of the present invention is shown in fig. 3a, where the method may include:
step S201, displaying a target page belonging to a first process; and the target page is a foreground display page.
Step S202, when receiving the session message belonging to the second process, displaying the unread message reminding identification on the target page.
Step S203, responding to the triggering operation of 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.
The specific implementation process of step S201 to step S203 may refer to step S101 to step S103 in the corresponding embodiment of fig. 2 a.
Step S204, responding to the triggering operation of the page folding identification of the session message, and acquiring the head portrait of the sending user corresponding to the session message.
Specifically, the session message page may further include a session message page folding identifier, and when the user clicks the folding identifier, the second process obtains a sending user header of the user who sends the session message.
Step S205, closing the session message page, generating a sending user head portrait suspension window according to the sending user head portrait, and displaying the sending user head portrait suspension window on the target page.
Specifically, the session message page is closed (i.e., the session message page is popped off the task stack), the second process generates a floating window containing the sending user avatar (referred to as a sending user avatar floating window), and the sending user avatar floating window is displayed on the target page.
It should be noted that, in the operating system, the floating window is independent of the Activity object, so long as the second process obtains the floating window display permission of the first process, the floating window can be placed in the screen, that is, the user head portrait floating window can be displayed on the target page.
Optionally, if the current 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 may set the number of new session messages on the sending user avatar floating window, so as to prompt the user that the new message exists.
Alternatively, if the currently transmitting user avatar floating window is displayed on the target page, and a new session message is received at this time (the new message is not of the user corresponding to the transmitting user avatar floating window), the second process may recreate the floating window (referred to as an auxiliary floating window), where the auxiliary floating window includes the user avatar of the user of the new session message. And displaying an auxiliary floating window on the target page.
Step S206, a message display page is created in response to the triggering operation of the head portrait floating window of the sending user, and the message display page is displayed on the target page; the message display page comprises an avatar page window; the avatar page window includes the sending user avatar.
Specifically, the user clicks the user head portrait suspension window, and the second process creates a message display page containing a head portrait page window, and displays the message display page on the target page, where the message display page may further include a message display page window. The method is equivalent to that after the session message page is folded, a floating window is generated, and after the floating window is clicked, the session message page is popped up.
Wherein the avatar page window contains the sending user avatar and the message display page window contains the session message, where the message display page window is identical in appearance to the session message page window in the foregoing, but is located in a different page. It can be known that the message display page is just one more head portrait page window than the session message page in the foregoing.
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 conversation message page and the principle of displaying a conversation message page described above, and are not described in detail here.
Referring to fig. 3b, a schematic diagram of a determining message display page according to an embodiment of the present invention is shown, wherein the page 50c is a session message page 50c, and the page includes a session message page folding identifier 50d. The user clicks the session message page folding identification 50d and closes the session message page 50c, at which point the target page 50e is displayed on the screen of the terminal device. The second process creates a sending user avatar-floating window 50f and displays the sending user avatar-floating window 50f on the target page 50e. The user clicks the send user avatar hover window 50f and the second process creates a message display page 50g, which as can be seen in fig. 3b, includes a message display page window 50h and an avatar page window 50k. If the second process receives the new session message of the sending user corresponding to the avatar page window 50k before the user clicks the sending user avatar floating window 50f, the number value of the new session message may be set around the avatar 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 matched with the first avatar page window and a second message display page window matched with the second avatar page window. Currently displayed in the message display page are a first avatar page window, a second avatar page window, and a first message display page window. If the user slides the second head portrait page window to the first head portrait page window, the second process switches the first message display page window in the message display page to the second message display page window, and the second head portrait page window, the second message display page window and the first head portrait page window are displayed in the message display page. That is, in the message display page, the user can switch the corresponding message display page window by sliding the avatar page window.
Please refer to fig. 3c, which is a schematic diagram of window switching provided in an embodiment of the present invention, wherein the page 50m is a target page, and the target page includes a sending user avatar floating window 50p. The user clicks the send user avatar floating window 50p and the second process creates a message display page 50n where the message display page 50n includes a first avatar page window 50r, a first message display page window 50q, and a second avatar page window 50t. When the user slides the second avatar page window 50t, correspondingly, in the message display page 50n, the first message display page window 50q is switched to a second avatar page window 50s corresponding to the second avatar page window 50t.
Step S207, responding to the triggering operation for the head portrait page window, and executing the business behavior operation associated with the message display page.
Specifically, the user may perform a sliding operation (referred to as a first sliding operation) on the head portrait page window, where a sliding distance corresponding to the first sliding operation is referred to as a first sliding distance, and a sliding direction is referred to as a first sliding direction. And closing the message display page when the first sliding distance and the first sliding direction meet the preset page deletion condition.
Referring to fig. 3d, a schematic diagram of a closing message display page provided in an embodiment of the present invention, the page 50u is a message display page 50u, and the message display page 50u includes a head portrait page window 50v and a message display page window 50w. The user performs a first sliding operation on the sliding avatar page window 50v, and closes the message display page 50u because the sliding distance and the sliding direction corresponding to the first sliding operation satisfy the preset page deletion condition. Now displayed in the screen is the target 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 matched with the first avatar page window and a second message display page window matched with the second avatar page window. If the current message display page displays a first head portrait page window, a second head portrait page window and a first message display page window, a user can perform sliding operation on the first head portrait page window, and when the sliding distance and the sliding direction generated by the sliding operation meet preset window deleting conditions, the first head portrait page window and the first message display page window in the message display page are closed, and the second head portrait page window and the second message display page window are correspondingly displayed in the message display page.
Referring to fig. 3e, a schematic diagram of closing a page window is shown in fig. 3e, the page 60a is a message display page 60a, and the message display page 60a includes a first avatar page window 60b, a first message display page window 60c, and a second avatar page window 60d. When the user slides the first avatar page window 60b and the sliding distance and sliding direction generated by the sliding satisfy the preset window deletion condition, the first avatar page window 60b in the message display page 60a is closed, the first message display page window 60c is closed, and the second avatar page window 60d adjacent to the first avatar page window 60b and the corresponding second message display page window 60e are displayed on the message display page 60 a.
The avatar page window includes a first avatar page window and a second avatar page window, and the user may perform a sliding operation (referred to as a second sliding operation) on the first avatar page window toward the second avatar page window, where the second sliding operation corresponds to a second sliding distance.
When the second sliding distance meets the group generating condition, a message group page window is created on the message display page according to the first user object corresponding to the first head portrait page window and the second user object corresponding to the second head portrait page window (the creating of the message group page window 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, wherein the message group page window comprises the first user object and the second user object.
Referring to fig. 3f, a schematic diagram of creating a page window of a message group according to an embodiment of the present invention is shown, the page 60f is a message display page 60f, and the message display page 60f includes a first avatar page window 60g and a second avatar page window 60j. The user performs a second sliding operation on the first avatar page window 60g to the second avatar page window 60j, and when the second sliding distance generated by the second sliding operation satisfies the group generating condition, the first process may copy the first avatar page window 60g and copy the second avatar page window 60j to the top of the message display page 60f, for prompting the user for the user object selected by the user. When the user clicks the "create immediately" button, a message group page window 60h is created on the message display page 60f according to the first user object corresponding to the first avatar page window 60g and the second user object corresponding to the second avatar page window 60j, and the message group page window 60h is displayed, where the message group page window includes the first user object and the second user object.
Optionally, the user may click on the sending user avatar floating window, and further perform a sliding operation (referred to as a third sliding operation) on the sending user avatar floating window, where the third sliding operation corresponds to a third sliding distance and a third sliding direction.
And when the third sliding distance and the third sliding direction meet the user head portrait list display condition, the second process generates a user head portrait list floating window, and displays the user head portrait list floating window on the target page, wherein the user head portrait list floating window comprises a sending user head portrait.
If the number of transmitting user avatars is plural, the user avatar list floating window contains all transmitting user avatars.
Referring to fig. 3g, a schematic diagram of determining a floating window of a user head portrait list according to an embodiment of the present invention is shown, the page 60k is a target page 60k, and the target page 60k includes a transmitting user head portrait floating window 60m. And the user slides the sending user head portrait suspension window 60m, when the third sliding distance and the third sliding direction generated by the sliding meet the user head portrait list display condition, a user head portrait list suspension window 60n is generated, and the user head portrait list suspension window 60n contains all sending user head portraits contained in the user head portrait suspension window 60m.
In response to a sliding operation on the target page (e.g., sliding to the right in the target page), the user head list hover window may be hidden; of course, after hiding, the user can still be used for popping up the user head portrait list floating window by performing a sliding operation in the target page.
Referring to fig. 3h, which is a schematic diagram of a floating window of a head portrait list of a sliding user according to an embodiment of the present invention, a page 60p is a target page, and a user may slide a floating window 60q of the head portrait list of the user in the target page 60p to the right to hide the floating window 60q of the head portrait list of the user; or the user may also slide up (or down) the target page 60p to hide the user head portrait list hover window 60q. Subsequently, the user may still perform a left-sliding operation in the target page for popping up the user head list hover window 60q, that is, the user head list hover window 60q is displayed in the target page 60q.
Referring to fig. 4a, a flow chart of another page processing method according to an embodiment of the present invention is shown in fig. 4a, where the method may include:
step S301, displaying a target page belonging to a first process; and the target page is a foreground display page.
Step S302, when receiving the session message belonging to the second process, displaying the unread message reminding identification on the target page.
Step S303, responding to the triggering operation of the unread message reminding identifier, and detecting the number of characters contained in the session message.
Specifically, the user may click on the unread message alert identifier, 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 synchronously clicks operation information to the second process, and the second process detects the number of characters contained in the session message.
Step S304, if the number of characters is less than or equal to a number threshold, a first session message floating window is created in the second process, the first session message floating window is determined to be the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window that statically displays the session message.
Specifically, if the second process detects that the number of characters contained in the session message is less than or equal to the number threshold, a floating window (called a first session message floating window) containing the session message is created, and the session message in the first session message floating window is statically displayed. The second process may determine the first session message suspension window as a session message window.
Step S305, if the number of characters is greater than the number threshold, creating a second session message floating window in the second process, determining the second session message floating window as the session message window, and displaying the second session message floating window on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
Specifically, if the second process detects that the number of characters contained in the session message is greater than the number threshold, a floating window containing the session message (referred to as a second session message floating window) is created, and the session message in the second session message floating window is dynamically displayed. The second process may determine the second session message suspension window as a session message window.
Referring to fig. 4b, a schematic diagram of determining a session message window according to an embodiment of the present invention is shown, the page 60r is a target page 60r belonging to a first process, and when a second process receives a session message, an unread message alert identifier is displayed on the target page. The user clicks the unread message reminder identifier, and the second process creates a session message floating window 60s, where the session message floating window 60s contains the session message, and the session message may be shown in the session message floating window 60s in a static manner or may be shown in the session message floating window 60s in a dynamic manner. If the user slides the session message floating window 60s, the session message floating window 60s may be hidden.
Step S306, an auxiliary page is created in response to the triggering operation for the session message window; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object.
Specifically, 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 a receiving timestamp of the first message is smaller than a receiving timestamp of the second message, that is, the second process receives the first message first and then receives the second message.
The user clicks on the session message window, i.e. clicks on the first session message floating window or the second session message floating window, and the second process closes the session message window and creates an auxiliary page comprising the first message page window, the third head portrait page window and the fourth head portrait page window. Wherein the first message page window contains a first message; the third head portrait page window contains a user head portrait of a third user object; the fourth avatar page window contains a user avatar of the fourth user object.
The principle of creating the auxiliary page including the first message page window, the third header page window and the fourth header page window by the second process is the same as that of creating the session message page and the message list page, and will not be described here.
Step S307, displaying the auxiliary page on the target page.
Specifically, the created auxiliary page is displayed on the target page, that is, the first message page window, the third head portrait page window and the fourth head portrait page window are displayed on the target page. The principle of displaying the auxiliary page in the second process is the same as that of displaying the session message page and the message list page, and will not be described here.
Step S308, in response to the sliding operation from the third head portrait page window to the fourth head portrait page window in the auxiliary page, creates a second message page window containing the second message, and switches the first message page window to the second message page window on the auxiliary page.
Specifically, the user slides the fourth head portrait page window to the third head portrait page window, the second process creates a second message page window containing the second message, and the first message page window is switched to the second message page window on the auxiliary page. From the perspective of the terminal device, the first message page window is switched to the second message page window, namely, the view of the first message page window in the Activity object instance corresponding to the auxiliary page is switched to the view of the second message page window.
By sliding the head portrait page window, the switching of the message page window can be realized, and a user can conveniently view different session messages with different sources.
Referring to fig. 4c, a schematic diagram of a switching page window according to an embodiment of the present invention is shown, the page 70a is a target page 70a, and a session message floating window 70g containing a session message is displayed in the target page 70a, where the session message includes a first message and a second message. The user clicks on the session message hover window 70g to create an auxiliary page 70b that includes a first message page window 70d, a third avatar page window 70c, and a fourth avatar page window 70e, where the first message page window 70d contains the first message. The user slides the fourth avatar page window 70e towards the third avatar page window 70c and the second process switches the first message page window 70d in the auxiliary page 70b to a second message page window 70f comprising the second message.
Referring to fig. 4d, an interaction diagram for determining an unread message alert identifier according to an embodiment of the present invention includes the following steps:
in step S401, the session message sending end sends the session message to the second process of the session message receiving end.
In step S402, the second process parses the session message type.
Specifically, the second process parses the session message types, which include unread message types and read message types.
In 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 to the second process, wherein the process state information comprises a foreground running state and a background waiting state.
In step S404, the second process filters the system notification.
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.
In step S405, the second process synchronizes the number of unread messages to the first process.
In step S406, the first process generates an unread message alert identifier according to the number of unread messages, and displays the unread message alert identifier on the target page.
Further, please refer to fig. 5, which is a schematic diagram of a page processing apparatus according to an embodiment of the present invention. As shown in fig. 5, the page processing apparatus 1 may be applied to the terminal device in the corresponding embodiment of fig. 1 to 4d, and the page processing apparatus 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14.
A first display module 11, configured to display a target page belonging to a first process; the target page is a foreground display page;
a second display module 12, configured to display an unread message alert identifier on the target page when receiving a session message belonging to a second process;
a response module 13, configured to respond to a triggering operation for the unread message alert identifier;
a first creating module 14, configured to create a session message window according to the session message, and display the session message window on the target page.
The specific functional implementation manners of the first display module 11, the second display module 12, the response module 13, and the first creation module 14 may refer to step S101 to step S103 in the corresponding embodiment of fig. 2a, which are not described herein.
Referring to fig. 5, the second display module 12 may include: an acquisition unit 121, a synchronization unit 122.
An obtaining unit 121, configured to obtain, in the second process, a sending user header corresponding to the session message and obtain, as an unread message number, the number of session messages when the session message belonging to the second process is received and the session message has a display priority;
A synchronization unit 122, configured to synchronize process state information of the first process to the second process based on a cross-process synchronization service; the process state information comprises a foreground running state;
the synchronization unit 122 is further configured to synchronize the number of unread messages and the head portraits of the sending user to the first process based on the cross-process synchronization service if the second process is in a foreground running state and the session message belongs to an unread message type;
the synchronization unit 122 is further configured to generate, in the first process, the unread message alert identifier according to the number of unread messages and the sending user avatar, and display the unread message alert identifier on the target page.
The specific functional implementation manner of the obtaining unit 121 and the synchronizing unit 122 may refer to step S202 in the corresponding embodiment of fig. 2a, which is not described herein.
Referring to fig. 5, the page processing apparatus 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14; may further include: an acquisition module 15 and a notification module 16.
An obtaining module 15, configured to obtain, in the second process, a message digest of the session message, and create a message list page according to the message digest; the message list page comprises a message list page window; the message list page window includes the message digest;
The obtaining module 15 is further configured to push the message list page to a task stack corresponding to the first process, and activate the message list page to display the message list page on the target page;
and the notification module 16 is configured to respond to the triggering operation for the message list page window, and notify the first creation module to execute the corresponding step.
The specific function implementation manner of the obtaining module 15 and the notifying module 16 may refer to step S103 in the corresponding embodiment of fig. 2a, which is not described herein.
Referring to fig. 5, the first creation module 14 may include: a first creation unit 141, a push unit 142.
A first creating unit 141, 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 contains the session message;
the first creating unit 141 is further configured to determine the session message page window as the session message window;
a stacking unit 142, configured to stack the session message page in the task stack, and activate the session message page to display the session message page window in the session message page on the target page.
The specific functional implementation manner of the first creating unit 141 and the stacking unit 142 may refer to step S103 in the corresponding embodiment of fig. 2a, which is not described herein.
Referring to fig. 5, the session message page further includes a session message page close identifier; the message list page also comprises a message list page closing identifier; the target page further comprises a target page closing identifier;
the page processing apparatus 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16; may further include: the module 17 is closed.
The response module 13 is further configured to respond to a triggering operation for the session message page closing identifier, a triggering operation for the message list page closing identifier, and a triggering operation for the target page closing identifier;
and the closing module 17 is used for closing the session message page, the message list page and the target page.
The specific function implementation manner of the response module 13 and the closing module 17 may refer to step S103 in the corresponding embodiment of fig. 2a, which is not described herein.
Referring to fig. 5, the session message page, the message list page, and the target page all belong to the task stack; the session message page is positioned at the top of the task stack, the message list page is adjacent to the message list page, and the target page is adjacent to the session message page;
The closing module 17 may include: a first pop unit 171, a second pop unit 172.
A first popping unit 171, configured to pop the session message page from the task stack, so as to close the session message page;
a second popping unit 172, configured to pop the message list page from the task stack, so as to close the message list page;
the second popping unit 172 is further configured to pop the target page from the task stack to close the target page.
The specific functional implementation manner of the first pop unit 171 and the second pop unit 172 may be referred to step S103 in the corresponding embodiment of fig. 2 a.
Referring to fig. 5, the session message page further includes a session message page folding identifier;
the page processing apparatus 1 may include: a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, a closing module 17; may further include: a generating module 18 and a business behavior operating module 19.
The response module 13 is further configured to obtain a sending user avatar corresponding to the session message in response to a triggering operation for the session message page folding identifier;
A generating module 18, configured to close the session message page, generate a sending user avatar floating window according to the sending user avatar, and display the sending user avatar floating window on the target page;
the generating module 18 is further configured to create a message display page in response to a triggering operation for the sending user avatar floating window, and display the message display page on a target page; the message display page comprises an avatar page window; the head portrait page window comprises the head portrait of the sending user;
and the business behavior operation module 19 is used for responding to the triggering operation for the head portrait page window and executing the business behavior operation associated with the message display page.
The specific functional implementation manners of the response module 13, the generating module 18, and the business behavior operating module 19 may refer to step S204-step S207 in the corresponding embodiment of fig. 3a, which are not described herein.
Referring to fig. 5, the business behavior operation module 19 may include: a first response unit 191, a closing unit 192.
A first response unit 191 for 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;
And a closing unit 192 for closing the message display page when the first sliding distance and the first sliding direction satisfy a page deletion condition.
The specific function implementation manner of the first response unit 191 and the closing unit 192 may refer to step S207 in the corresponding embodiment of fig. 3a, and will not be described herein.
Referring to fig. 5, the avatar page window includes a first avatar page window and a second avatar page window; the message display page also comprises the session message page window;
the business behavior operation module 19 may include: a second response unit 193, a second creation unit 194.
A second response unit 193 for responding to a second sliding operation of the first avatar page window to the second avatar page window; the second sliding operation corresponds to a second sliding distance;
a second creating unit 194, configured to create a message group page window according to a first user object corresponding to the first avatar page window and a second user object corresponding to the second avatar page window when the second sliding distance meets a group generation condition, and switch the session 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.
The specific functional implementation manner of the second response unit 193 and the second creation unit 194 may refer to step S207 in the corresponding embodiment of fig. 3a, which is not described herein.
Referring to fig. 5, the page processing apparatus 1 may include: the system comprises a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, a closing module 17, a generation module 18 and a business behavior operation module 19; may further include: a second creation module 20.
The response module 13 is further configured to respond to a third sliding operation for the transmission user avatar suspension window; the third sliding operation corresponds to a third sliding distance and a third sliding direction;
a second creating module 20, configured to create a user head portrait list floating window on the target page according to the sending user head portrait when the third sliding distance and the third sliding direction meet a user head portrait list display condition; the user head portrait list floating window contains the sending user head portrait.
The specific function implementation manner of the response module 13 and the second creation module 20 may refer to step S207 in the corresponding embodiment of fig. 3a, which is not described herein.
Referring to fig. 5, the first creation module 14 may include: a detection unit 143, a determination unit 144.
A detecting unit 143 for detecting the number of characters contained in the session message;
a determining unit 144, configured to create a first session message suspension window in the second process if the number of characters is less than or equal to a number threshold, determine the first session message suspension window as the session message window, and display the first session message suspension window on the target page; the first session message floating window is a floating window for statically displaying the session message;
the determining unit 144 is further configured to create a second session message floating window in the second process if the number of characters is greater than the number threshold, determine the second session message floating window as the session message window, and display the second session message floating window on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
The specific functional implementation manner of the detection unit 143 and the determination unit 144 may refer to step S303-step S308 in the corresponding embodiment of fig. 4a, which is not described herein.
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 is smaller than the receiving timestamp of the second message;
the page processing apparatus 1 may include: the system comprises a first display module 11, a second display module 12, a response module 13, a first creation module 14, an acquisition module 15, a notification module 16, a closing module 17, a generation module 18, a business behavior operation module 19 and a second creation module 20; may further include: and a third display module 21.
The response module 13 is further configured to create an auxiliary page in response to a triggering operation for the session message window; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object;
a third display module 21, configured to display the auxiliary page on the target page;
The response module 13 is further configured to create a second message page window including the second message in response to a sliding operation for the third header page window to the fourth header page window in the auxiliary page, and switch the first message page window to the second message page window on the auxiliary page.
The specific functional implementation manner of the response module 13 and the third display module 21 may refer to step S308 in the corresponding embodiment of fig. 4a, which is not described herein.
Further, please refer to fig. 6, which is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The terminal device in the foregoing corresponding embodiment of fig. 1 to fig. 4d may be an electronic device 1000, as shown in fig. 6, where the electronic device 1000 may include: a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008. Signal receiver 1016 is used to receive or transmit data via cellular interface 1010, WIFI interface 1012, a. The encoder 1006 encodes the received data into a computer-processed data format. The memory 1008 has stored therein a computer program, by which the processor 1004 is arranged to perform the steps of any of the method embodiments described above. The memory 1008 may include volatile memory (e.g., dynamic random access memory, DRAM) and may also include non-volatile memory (e.g., one-time programmable read only memory, OTPROM). In some examples, the memory 1008 may further include memory located remotely from the processor 1004, which may be connected to the electronic device 1000 over a network. The user interface 1002 may include: a keyboard 1018 and a display 1020.
In the electronic device 1000 shown in fig. 6, the processor 1004 may be configured to invoke the storage of a computer program in the memory 1008 to implement:
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.
In one embodiment, the processor 1004, when executing the step of displaying the unread message alert identifier on the target page when receiving the session message belonging to the second process, specifically executes the following steps:
when the session message belonging to the second process is received and the session message has a display priority, acquiring a sending user head portrait corresponding to the session message in the second process, and acquiring the number of the session message as the unread message number;
synchronizing process state information of the first process to the second process based on a cross-process synchronization service; the process state information comprises a foreground running state;
If the second process is in a foreground running state and the session message belongs to an unread message type, synchronizing the unread message number and the sending user head portrait to the first process based on the cross-process synchronization service;
in the first process, the unread message reminding identification is generated according to the unread message quantity and the head portraits of the sending user, and the unread message reminding identification is displayed on the target page.
In one embodiment, the processor 1004 further performs the steps of:
in the second process, acquiring a message abstract of the session message, and creating a message list page according to the message abstract; the message list page comprises a message list page window; the message list page window includes the message digest;
pushing the message list page to a task stack corresponding to the first process, and activating the message list page to display the message list page on the target page;
and responding to the triggering operation for the message list page window, and executing the step of creating a session message window according to the session message.
In one embodiment, the processor 1004, when executing creating a session message window according to the session message, specifically performs the following steps when displaying the session message window on the target page:
In the second process, creating a session message page; 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;
and pushing the session message page to a stack in the task stack, and activating the session message page 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 close identification; the message list page also comprises a message list page closing identifier; the target page further comprises a target page closing identifier;
the processor 1004 also performs the steps of:
and closing the session message page, the message list page and the target page in response to the triggering operation of the closing identification of the session message page, the triggering operation of the closing identification of the message list page and the triggering operation of the closing identification of the target page.
In one embodiment, the session message page, the message list page, and the destination page all belong to the task stack; the session message page is positioned at the top of the task stack, the message list page is adjacent to the session message page, and the target page is adjacent to the message list page;
The processor 1004 specifically performs the following steps when executing closing the session message page, the message list page, and the target page:
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;
and popping the target page from the task stack to close the target page.
In one embodiment, the session message page further includes a session message page fold identification;
the processor 1004 also performs the steps of:
responding to the triggering operation aiming at the session message page folding identification, and acquiring a transmitting user head portrait corresponding to the session message;
closing the session message page, generating a head portrait suspension window of the sending user according to the head portrait of the sending user, and displaying the head portrait suspension window of the sending user on the target page;
responding to the triggering operation of the head portrait floating window of the sending user, creating a message display page, and displaying the message display page on the target page; the message display page comprises an avatar page window; the head portrait page window comprises the head portrait of the sending user;
And responding to the triggering operation aiming at the head portrait page window, and executing the business behavior operation associated with the message display page.
In one embodiment, the processor 1004, when executing the business action operation associated with the message display page in response to the triggering operation for the avatar page window, specifically executes the following steps:
responding to a first sliding operation for the head portrait page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;
and closing the message display page when the first sliding distance and the first sliding direction meet a page deleting condition.
In one embodiment, the avatar page window includes a first avatar page window and a second avatar page window; the message display page also comprises the session message page window;
the processor 1004, when executing the business action operation associated with the message display page in response to the triggering operation for the avatar page window, specifically executes the following steps:
the responding to the triggering operation of the head portrait page window executes the business behavior operation associated with the message display page, and the responding to the triggering operation of the head portrait page window comprises the following steps:
Responding to a second sliding operation of the first head portrait page window to the second head portrait page window; the second sliding operation corresponds to a second sliding distance;
when the second sliding distance meets a group generation condition, a message group page window is created according to a first user object corresponding to the first head portrait page window and a second user object corresponding to the second head portrait page window, and the session message page window is switched 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.
In one embodiment, the processor 1004 further performs the steps of:
responding to a third sliding operation for the head portrait floating window of the sending user; 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 head portrait list display condition, a user head portrait list floating window is created on the target page according to the sent user head portrait; the user head portrait list floating window contains the sending user head portrait.
In one embodiment, the processor 1004, when executing creating a session message window according to the session message, specifically performs the following steps when displaying the session message window on the target page:
detecting the number of characters contained in the session message;
if the number of characters is smaller than or equal to a number threshold, a first session message floating window is created in the second process, the first session message floating window is determined to be the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window for statically displaying the session message;
if the number of characters is larger than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined to be the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
In one embodiment, 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 is smaller than the receiving timestamp of the second message;
The processor 1004 also performs the steps of:
responding to the triggering operation aiming at the session message window, and creating an auxiliary page; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object;
displaying the auxiliary page on the target page;
and responding to the sliding operation of the third head portrait page window to the fourth head portrait page window in the auxiliary page, creating a second message page window containing the second message, and switching the first message page window into the second message page window on the auxiliary page.
It should be understood that the electronic device 1000 described in the embodiment of the present invention may perform the description of the page processing method in the embodiment corresponding to fig. 1 to 4d, and may also perform the description of the page processing apparatus 1 in the embodiment corresponding to fig. 5, which is not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiment of the present invention further provides a computer storage medium, in which a computer program executed by the page processing apparatus 1 mentioned above is stored, and the computer program includes program instructions, when executed by the processor, can execute the description of the page processing method in the embodiment corresponding to fig. 1 to fig. 4d, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer storage medium according to the present invention, please refer to the description of the method embodiments of the present invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (15)

1. A method of processing a page, comprising:
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;
responding to the triggering operation aiming at the unread message reminding identifier, creating a session message window according to the session message, and displaying the session message window on the target page; the session message window is displayed in a session message page created by the second process; the session message page also comprises a session message page folding identifier;
and responding to the triggering operation aiming at the session message page folding identification, closing the session message page, generating a sending user head portrait suspension window according to the sending user head portrait corresponding to the session message, and displaying the sending user head portrait suspension window on the target page.
2. The method of claim 1, wherein the displaying the unread message alert identifier on the target page when the session message belonging to the second process is received comprises:
when the session message belonging to the second process is received and the session message has a display priority, acquiring a sending user head portrait corresponding to the session message in the second process, and acquiring the number of the session message as the unread message number;
synchronizing process state information of the first process to the second process based on a cross-process synchronization service; the process state information comprises a foreground running state;
if the second process is in a foreground running state and the session message belongs to an unread message type, synchronizing the unread message number and the sending user head portrait to the first process based on the cross-process synchronization service;
in the first process, the unread message reminding identification is generated according to the unread message quantity and the head portraits of the sending user, and the unread message reminding identification is displayed on the target page.
3. The method as recited in claim 1, further comprising:
In the second process, acquiring a message abstract of the session message, and creating a message list page according to the message abstract; the message list page comprises a message list page window; the message list page window includes the message digest;
pushing the message list page to a task stack corresponding to the first process, and activating the message list page to display the message list page on the target page;
and responding to the triggering operation for the message list page window, and executing the step of creating a session message window according to the session message.
4. A method according to claim 3, wherein creating a session message window from the session message, displaying the session message window on the target page, comprises:
in the second process, creating a session message page; 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;
and pushing the session message page to a stack in the task stack, and activating the session message page to display the session message page window in the session message page on the target page.
5. The method of claim 4, wherein the session message page further comprises a session message page close identification; the message list page also comprises a message list page closing identifier; the target page further comprises a target page closing identifier;
the method further comprises the steps of:
and closing the session message page, the message list page and the target page in response to the triggering operation of the closing identification of the session message page, the triggering operation of the closing identification of the message list page and the triggering operation of the closing identification of the target page.
6. The method of claim 5, wherein the session message page, the message list page, and the destination page all belong to the task stack; the session message page is positioned at the top of the task stack, the message list page is adjacent to the session message page, and the target page is adjacent to the message list page;
the closing the session message page, the message list page and the target page comprises 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;
and popping the target page from the task stack to close the target page.
7. The method according to claim 4, wherein the method further comprises:
responding to the triggering operation of the head portrait floating window of the sending user, creating a message display page, and displaying the message display page on the target page; the message display page comprises an avatar page window; the head portrait page window comprises the head portrait of the sending user;
and responding to the triggering operation aiming at the head portrait page window, and executing the business behavior operation associated with the message display page.
8. The method of claim 7, wherein the performing business action operations associated with the message display page in response to the triggering operation for the avatar page window comprises:
responding to a first sliding operation for the head portrait page window; the first sliding operation corresponds to a first sliding distance and a first sliding direction;
and closing the message display page when the first sliding distance and the first sliding direction meet a page deleting condition.
9. The method of claim 7, wherein the avatar page window comprises a first avatar page window and a second avatar page window; the message display page also comprises the session message page window;
the responding to the triggering operation of the head portrait page window executes the business behavior operation associated with the message display page, and the responding to the triggering operation of the head portrait page window comprises the following steps:
responding to a second sliding operation of the first head portrait page window to the second head portrait page window; the second sliding operation corresponds to a second sliding distance;
when the second sliding distance meets a group generation condition, a message group page window is created according to a first user object corresponding to the first head portrait page window and a second user object corresponding to the second head portrait page window, and the session message page window is switched 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.
10. The method as recited in claim 7, further comprising:
responding to a third sliding operation for the head portrait floating window of the sending user; 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 head portrait list display condition, a user head portrait list floating window is created on the target page according to the sent user head portrait; the user head portrait list floating window contains the sending user head portrait.
11. The method of claim 1, wherein creating a session message window from the session message, displaying the session message window on the target page, comprises:
detecting the number of characters contained in the session message;
if the number of characters is smaller than or equal to a number threshold, a first session message floating window is created in the second process, the first session message floating window is determined to be the session message window, and the first session message floating window is displayed on the target page; the first session message floating window is a floating window for statically displaying the session message;
if the number of characters is larger than the number threshold, a second session message floating window is created in the second process, the second session message floating window is determined to be the session message window, and the second session message floating window is displayed on the target page; the second session message floating window is a floating window for dynamically displaying the session message.
12. The method of claim 11, wherein the session message comprises 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 is smaller than the receiving timestamp of the second message;
the method further comprises the steps of:
responding to the triggering operation aiming at the session message window, and creating an auxiliary page; the auxiliary page comprises a first message page window, a third head portrait page window and a fourth head portrait page window; the first message page window contains the first message; the third head portrait page window comprises a user head portrait corresponding to the third user object; the fourth head portrait page window comprises a user head portrait corresponding to the fourth user object;
displaying the auxiliary page on the target page;
and responding to the sliding operation of the third head portrait page window to the fourth head portrait page window in the auxiliary page, creating a second message page window containing the second message, and switching the first message page window into the second message page window on the auxiliary page.
13. A page processing apparatus, comprising:
the first display module is used for displaying a target page belonging to a first process; the target page is a foreground display page;
the second display module is used for displaying an unread message reminding identifier on the target page when receiving the session message belonging to the second process;
the response module is used for responding to the triggering operation aiming at the unread message reminding identifier;
the first creating module is used for creating a session message window according to the session message and displaying the session message window on the target page; the session message window is displayed in a session message page created by the second process; the session message page also comprises a session message page folding identifier;
the first creation module is further configured to respond to a triggering operation for the session message page folding identifier, close the session message page, generate a sending user head portrait suspension window according to a sending user head portrait corresponding to the session message, and display the sending user head portrait suspension window on the target page.
14. An electronic device, comprising: a processor and a memory;
The processor being connected to a memory, wherein the memory is adapted to store program code, the processor being adapted to invoke the program code to perform the method according to any of claims 1-12.
15. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1-12.
CN202310990160.4A 2019-05-20 2019-05-20 Page processing method and device and related equipment Pending CN116841685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310990160.4A CN116841685A (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910419822.6A CN110134481B (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment
CN202310990160.4A CN116841685A (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910419822.6A Division CN110134481B (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment

Publications (1)

Publication Number Publication Date
CN116841685A true CN116841685A (en) 2023-10-03

Family

ID=67571476

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310990160.4A Pending CN116841685A (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment
CN201910419822.6A Active CN110134481B (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910419822.6A Active CN110134481B (en) 2019-05-20 2019-05-20 Page processing method and device and related equipment

Country Status (1)

Country Link
CN (2) CN116841685A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093110A (en) * 2023-10-20 2023-11-21 荣耀终端有限公司 Background image display method and electronic equipment

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781408B (en) * 2019-10-25 2023-11-17 上海连尚网络科技有限公司 Information display method and device
CN110968387A (en) * 2019-10-29 2020-04-07 浙江口碑网络技术有限公司 Message processing method and device and electronic equipment
CN110795097B (en) * 2019-11-04 2021-12-14 腾讯科技(深圳)有限公司 Page processing method and device, computer equipment and storage medium
CN111260401B (en) * 2020-01-16 2023-11-21 上海连尚网络科技有限公司 Method and device for displaying presentation information on reading page
CN111488107A (en) * 2020-03-26 2020-08-04 北京小米移动软件有限公司 Multitask interaction control method, multitask interaction control device and storage medium
CN111538574B (en) * 2020-03-27 2024-03-12 北京达佳互联信息技术有限公司 Task stack management method, device, terminal and storage medium
CN111596830B (en) * 2020-05-15 2023-09-05 腾讯科技(深圳)有限公司 Message reminding method and device
CN111813308B (en) * 2020-06-24 2022-02-08 维沃移动通信有限公司 Interface processing method and device, electronic equipment and storage medium
CN114327666B (en) * 2020-09-30 2024-04-09 华为技术有限公司 Application starting method and device and electronic equipment
CN114443201A (en) * 2022-01-29 2022-05-06 北京字跳网络技术有限公司 Message display method, device, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075337A (en) * 2009-11-20 2011-05-25 腾讯科技(深圳)有限公司 Instant communication message display method and related device
CN103051516B (en) * 2011-10-17 2016-04-13 腾讯科技(深圳)有限公司 A kind of message prompt method of instant communication client and device
CN105306338B (en) * 2014-07-29 2020-04-07 腾讯科技(深圳)有限公司 Message reminding method and device
US10469417B2 (en) * 2016-03-31 2019-11-05 Atlassian Pty Ltd Systems and methods for providing external content in a messaging interface
CN107508961A (en) * 2017-06-26 2017-12-22 努比亚技术有限公司 A kind of active window starts method, terminal and computer-readable recording medium
CN108549569B (en) * 2018-04-26 2021-07-27 上海掌门科技有限公司 Method and equipment for searching information in application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093110A (en) * 2023-10-20 2023-11-21 荣耀终端有限公司 Background image display method and electronic equipment
CN117093110B (en) * 2023-10-20 2024-04-05 荣耀终端有限公司 Background image display method and electronic equipment

Also Published As

Publication number Publication date
CN110134481B (en) 2023-07-14
CN110134481A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110134481B (en) Page processing method and device and related equipment
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
KR102238205B1 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
EP2584770B1 (en) Electronic device and method for reply message composition
US8788603B2 (en) Voice and text group chat display management techniques for wireless mobile terminals
CN102811184B (en) Sharing method, terminal, server and system for custom emoticons
CN106101747A (en) A kind of barrage content processing method and application server, user terminal
CN104049849B (en) A kind of information processing method and corresponding electronic equipment
KR20080015887A (en) Terminal with messaging application
CN103369121A (en) Unread message display method and device
KR20130049416A (en) Method for providing instant messaging service using dynamic emoticon and mobile phone therefor
EP2544437A1 (en) Apparatus and method for transmitting message in mobile terminal
JP2007087402A (en) Mobile communication terminal, and message display method for mobile communication terminal
US20130183940A1 (en) Method and Mobile Terminal for Processing Data in Message
WO2005125229A2 (en) Message recognition and display system and method for a mobile communication device
CN102404251A (en) Realization method, client and system for instant messaging with remarking function
CN107277244A (en) Screenshot processing method and device
CN112947807A (en) Display method and device and electronic equipment
US9800530B2 (en) Message display method and device
WO2020187085A1 (en) Message input and display method and apparatus, electronic device and readable storage medium
CN109766315B (en) File display method and terminal, computer storage medium and computer equipment
WO2016205234A1 (en) E-mail processing
CN111831183B (en) Control method of mobile terminal, mobile terminal and storage medium
CN113434226A (en) Communication method, communication device, electronic equipment and readable storage medium
CN114690996A (en) Content display method and device and electronic equipment

Legal Events

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