Interface switching method, device, client and storage medium

文档序号:152778 发布日期:2021-10-26 浏览:12次 中文

阅读说明:本技术 一种界面切换方法、装置、客户端及存储介质 (Interface switching method, device, client and storage medium ) 是由 黄铁鸣 李�杰 李斌 赵东 于 2020-04-23 设计创作,主要内容包括:本发明实施例公开了一种界面切换方法、装置、客户端及存储介质,其中方法包括:显示标识选择界面,并根据针对所述标识选择界面的选择指令,从所述标识选择界面中确定出目标企业标识;在从所述标识选择界面切换为所述目标企业标识的会话界面的过程中,确定切换为所述目标企业标识的会话界面的切换状态;在所述切换状态为第一状态时,获取并显示所述目标企业标识对应的模拟会话界面;若所述切换状态为第二状态,则获取并显示所述目标企业标识对应的目标会话界面,可有效提升对界面的切换处理效率。(The embodiment of the invention discloses an interface switching method, an interface switching device, a client and a storage medium, wherein the method comprises the following steps: displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface; determining a switching state of a session interface switched to the target enterprise identifier in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier; when the switching state is a first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; and if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier, so that the interface switching processing efficiency can be effectively improved.)

1. An interface switching method is characterized by comprising the following steps:

displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface;

determining a switching state of a session interface switched to the target enterprise identifier in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier;

when the switching state is a first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

2. The method of claim 1, wherein the identity selection interface comprises one or more business identities, and wherein after displaying the identity selection interface, the method further comprises:

acquiring historical session data corresponding to each enterprise identifier, and constructing a simulation session interface corresponding to the enterprise identifier according to the historical session data;

after the target enterprise identifier is determined from the identifier selection interface, the method further includes:

and acquiring current session data of the target enterprise identifier, and constructing a target session interface of the target enterprise identifier according to the current session data.

3. The method of claim 1, wherein determining a switch state to switch to a session interface of the target enterprise identification comprises:

determining whether the target session interface of the target enterprise identifier is loaded completely;

if the target session interface is determined to be loaded completely, determining that the switching state is a second state;

and if the target session interface is determined not to be loaded completely, determining that the switching state is the first state.

4. The method according to claim 1, wherein after the obtaining and displaying of the simulation session interface corresponding to the target enterprise identifier when the switching status is the first switching status, the method further comprises:

if the switching state is switched from the first state to the second state, acquiring a target session interface corresponding to the target enterprise identifier;

and replacing the simulation session interface with the target session interface, and displaying the target session interface.

5. The method of claim 1, wherein after obtaining and displaying the simulation session interface corresponding to the target enterprise identification, the method further comprises:

adding a cover layer interface on the simulation session interface, wherein the cover layer interface is used for shielding an operation instruction received aiming at the simulation session interface;

and if the switching state is converted from the first state to the second state, deleting the covering layer interface.

6. The method of claim 1, wherein identifying a selection interface further comprises: the unread quantity identification of the unread messages in the target enterprise identification; the method further comprises the following steps:

acquiring a synchronization instruction aiming at the quantity of the unread messages of the target enterprise identifier, wherein the synchronization instruction is generated when the server detects that the unread messages exist in the target enterprise identifier;

determining the maximum message number of the unread message, and determining the maximum read message number from the message numbers of the read messages of the target enterprise identifier, wherein the message numbers are determined by the server based on the receiving sequence of the unread messages;

and determining the unread quantity identification according to the maximum message number of the unread messages and the maximum read message number.

7. The method of claim 6, wherein determining the unread quantity indicator according to the maximum message number of the unread message and the maximum read message number comprises:

calculating the maximum message number of the unread messages and the number difference between the maximum read message numbers, wherein the number difference is used for indicating the number of the unread messages in the target enterprise identification;

and determining the unread quantity identification according to the number difference.

8. The method of claim 6, wherein the identity selection interface further comprises a switch entry for the session interface corresponding to the target enterprise identity, the method further comprising:

displaying the unread quantity identification of the target enterprise identification at the switching entrance;

and after a session interface of the target enterprise identifier is displayed, canceling the unread quantity identifier displayed at the switching entrance.

9. The method of claim 1, wherein prior to displaying the identity selection interface, the method further comprises:

displaying a conversation interface of a current enterprise identifier, wherein the conversation interface of the current enterprise identifier comprises an entrance identifier of the identifier selection interface;

the display identifier selection interface includes:

and receiving a selection instruction of the entrance identifier, switching from a conversation interface of the current enterprise identifier to an identifier selection interface, and displaying the identifier selection interface.

10. The method of claim 9, wherein identifying the selection interface comprises: one or more enterprise identifications and a switching entrance of a session interface corresponding to each enterprise identification, wherein unread quantity identifications corresponding to the enterprise identifications are displayed at the switching entrance;

after the displaying the identity selection interface, the method further comprises:

and if the conversation interface of the current enterprise identifier is switched from the identifier selection interface, graying the unread quantity identifier displayed at the switching entrance of each enterprise identifier in the identifier selection interface.

11. An interface switching device, comprising:

the display unit is used for displaying an identification selection interface;

the determining unit is used for determining a target enterprise identifier from the identifier selection interface according to the selection instruction aiming at the identifier selection interface;

the determining unit is further configured to determine, in a process of switching from the identifier selection interface to the session interface of the target enterprise identifier, a switching state of the session interface switched to the target enterprise identifier;

the display unit is used for acquiring and displaying a simulation session interface corresponding to the target enterprise identifier when the switching state is the first state; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

12. A client comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, the memory being configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 10.

13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 10.

Technical Field

The present application relates to the field of computer technologies, and in particular, to an interface switching method and apparatus, a client, and a storage medium.

Background

The functions in the enterprise application programs (such as enterprise WeChat, nailing and the like) can help office users to quickly process enterprise transactions so as to improve the transaction processing efficiency of the office users, and since each office user may belong to different enterprise units at the same time, and the enterprise identifiers of each enterprise unit are different, and the session interfaces in the enterprise application programs are different, each office user may need to continuously switch the session interface of the enterprise identifier to ensure the effective execution of issued transactions in order to avoid missing the execution transaction issued by the unit, and currently, after the office user switches from the session interface of the currently logged-in enterprise identifier to the session interfaces of other enterprise identifiers, the waiting time of the user is too long due to too much data needing to be loaded in the enterprise identifier, and thus, as a result, the current method for switching the interfaces has the problem of long waiting time.

Disclosure of Invention

The embodiment of the invention provides an interface switching method, an interface switching device, a client and a storage medium, which can effectively improve the interface switching processing efficiency.

In one aspect, an embodiment of the present invention provides an interface switching method, including:

displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface;

determining a switching state of a session interface switched to the target enterprise identifier in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier;

when the switching state is a first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

In another aspect, an embodiment of the present invention provides an interface switching apparatus, including:

the display unit is used for displaying an identification selection interface;

the determining unit is used for determining a target enterprise identifier from the identifier selection interface according to the selection instruction aiming at the identifier selection interface;

the determining unit is further configured to determine, in a process of switching from the identifier selection interface to the session interface of the target enterprise identifier, a switching state of the session interface switched to the target enterprise identifier;

the display unit is used for acquiring and displaying a simulation session interface corresponding to the target enterprise identifier when the switching state is the first state; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

In one embodiment, the identity selection interface includes one or more enterprise identities, the apparatus further comprising:

the acquisition unit is used for acquiring historical session data corresponding to each enterprise identifier;

the construction unit is used for constructing a simulation session interface corresponding to the enterprise identification according to the historical session data;

the acquiring unit is further configured to acquire current session data of the target enterprise identifier;

the constructing unit is further configured to construct a target session interface of the target enterprise identifier according to the current session data.

In an embodiment, the determining unit is specifically configured to:

determining whether the target session interface of the target enterprise identifier is loaded completely;

if the target session interface is determined to be loaded completely, determining that the switching state is a second state;

and if the target session interface is determined not to be loaded completely, determining that the switching state is the first state.

In one embodiment, the apparatus further comprises: and replacing the unit.

The obtaining unit is further configured to obtain a target session interface corresponding to the target enterprise identifier if the switching state is switched from the first state to the second state;

the replacing unit is used for replacing the simulation session interface with the target session interface;

the display unit is further used for displaying the target session interface.

In one embodiment, the apparatus further comprises: an adding unit and a deleting unit.

The adding unit is used for adding a cover layer interface on the simulation session interface, and the cover layer interface is used for shielding an operation instruction received by aiming at the simulation session interface;

and the deleting unit is used for deleting the covering interface if the switching state is converted from the first state to the second state.

In one embodiment, the identification selection interface further comprises: the unread quantity identification of the unread messages in the target enterprise identification;

the obtaining unit is further configured to obtain a synchronization instruction for the number of unread messages of the target enterprise identity, where the synchronization instruction is generated by the server when detecting that the unread messages exist in the target enterprise identity;

the determining unit is further configured to determine a maximum message number of the unread message, and determine the maximum read message number from the message numbers of the read messages of the target enterprise identifier, where the message numbers are determined by the server based on a receiving sequence of the unread messages;

the determining unit is further configured to determine the unread number identifier according to the maximum message number of the unread message and the maximum read message number.

In an embodiment, the determining unit is specifically configured to:

calculating the maximum message number of the unread messages and the number difference between the maximum read message numbers, wherein the number difference is used for indicating the number of the unread messages in the target enterprise identification;

and determining the unread quantity identification according to the number difference.

In one embodiment, the identifier selection interface further includes a switching entry corresponding to an enterprise identifier for each enterprise identifier, and the apparatus further includes: and a cancellation unit.

The display unit is further used for displaying the unread quantity identifier of the target enterprise identifier at the switching entrance;

and the canceling unit is used for canceling the unread quantity identifier displayed at the switching entrance after the session interface of the target enterprise identifier is displayed.

In an embodiment, the display unit is further configured to display a session interface of a current enterprise identifier, where the session interface of the current enterprise identifier includes an entry identifier of the identifier selection interface;

the display unit is specifically configured to:

and receiving a selection instruction of the entrance identifier, switching from a conversation interface of the current enterprise identifier to an identifier selection interface, and displaying the identifier selection interface.

In one embodiment, the identification selection interface comprises: one or more enterprise identifications and a switching entrance of a session interface corresponding to each enterprise identification, wherein unread quantity identifications corresponding to the enterprise identifications are displayed at the switching entrance; the device further comprises: and a processing unit.

And the processing unit is used for graying the unread quantity identifier displayed at the switching entrance of each enterprise identifier in the identifier selection interface if the identifier selection interface is switched to the session interface of the current enterprise identifier.

In another aspect, an embodiment of the present invention provides a client, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the foregoing method, where the computer program includes program instructions, and the processor is configured to call the program instructions, and perform the following steps:

displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface;

determining a switching state of a session interface switched to the target enterprise identifier in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier;

when the switching state is a first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

In a further aspect, the present invention provides a computer-readable storage medium, in which a first program instruction and a second program instruction are stored, the first program instruction, when executed by a processor, is configured to perform the interface switching method according to the first aspect, and the second program instruction, when executed by the processor, is configured to perform the interface switching method according to the second aspect.

In the embodiment of the present invention, after displaying the identifier selection interface, the client may determine the target enterprise identifier from the identifier selection interface according to a selection instruction for the identifier selection interface, and further, the client may switch from the identifier selection interface to the session interface of the target enterprise identifier, and divide the switching state of the session interface of the target enterprise identifier into two different states based on whether the target session interface of the target enterprise identifier is loaded completely in the switching process, so as to obtain different session interfaces of the target enterprise identifier in different states, where the first state is a state in which the target session interface of the target enterprise identifier is not loaded completely, the client may obtain the simulated session interface of the target enterprise identifier in the first state for display, and directly display the target session interface in the second state in which the target session interface is loaded completely, the time length of waiting for the client to load the session interface can be reduced, and the interface switching efficiency of the client can be improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic diagram of an interface switching system according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of an interface switching method according to an embodiment of the present invention;

FIG. 3a is a schematic diagram of a display identifier selection interface according to an embodiment of the present invention;

FIG. 3b is a diagram illustrating a display identifier selection interface according to an embodiment of the present invention;

FIG. 3c is a diagram illustrating an entry identifier assignment displayed on an identifier selection interface according to an embodiment of the present invention;

FIG. 3d is a diagram illustrating an entry identifier assignment displayed on an identifier selection interface according to an embodiment of the present invention;

FIG. 4a is a diagram illustrating an embodiment of a switch animation;

FIG. 4b is a diagram illustrating a simulation session interface according to an embodiment of the present invention;

FIG. 4c is a diagram illustrating a simulation session interface according to an embodiment of the present invention;

FIG. 4d is a diagram illustrating a target session interface according to an embodiment of the present invention;

FIG. 4e is a schematic diagram of replacing a simulation session interface with a target session interface according to an embodiment of the present invention;

fig. 5 is a schematic flowchart of an interface switching method according to an embodiment of the present invention;

FIG. 6 is a diagram illustrating an embodiment of determining an unread number indicator;

FIG. 7a is a schematic diagram of canceling an unread quantity flag according to an embodiment of the present invention;

FIG. 7b is a schematic diagram of a secondary display for graying out the unread number indicators according to an embodiment of the present invention;

FIG. 7c is a schematic diagram of re-highlighting the unread quantity indicator according to an embodiment of the present invention;

fig. 8 is a schematic block diagram of an interface switching apparatus according to an embodiment of the present invention;

fig. 9 is a schematic block diagram of a client according to an embodiment of the present invention.

Detailed Description

The embodiment of the invention provides an interface switching method, which can realize the quick switching of different session interfaces in an enterprise application program in a client, and improve the switching efficiency of the session interfaces in the enterprise application program, thereby improving the user experience, in the specific implementation, a user can use a login account number to log in the enterprise application program after starting the enterprise application program in the client, because the user may belong to a plurality of different enterprises, wherein the enterprise identifications corresponding to each enterprise are different, each different enterprise can issue different login account numbers for the user, so when the user logs in the enterprise application program by using the login account number, the user can enter the session interfaces of different enterprise identifications in the enterprise application program by inputting different login account numbers, for example, different enterprises can issue different mailboxes for the user to serve as the account number for logging in by the user, the user can log in the session interfaces of different enterprise identifications of the enterprise application program according to the issued different mailboxes; or, each enterprise may further add the unified identifier of the user as a login account in advance, when the user belongs to a plurality of different enterprises, the plurality of different enterprises may respectively use the unified identifier of the user as a login account, so that the user may log in session interfaces of the plurality of enterprises to which the user belongs in the enterprise application program based on the unified identifier, and after the user logs in to the enterprise application program by using the unified identifier, a session interface of any enterprise identifier, such as an identity card or a telephone number, may be displayed on a user interface, where the any enterprise identifier may be a current enterprise identifier, in the embodiment of the present invention, a session interface in which an interface displayed after the client logs in to the enterprise application program is a current enterprise identifier is taken as an example for detailed description, similar to the embodiment of the invention, when the displayed interface is the session interface of other enterprise identifications.

In one embodiment, after the user logs into the enterprise application, the displayed session interface of the current enterprise identifier includes: the method comprises the steps that an entrance mark of an identification selection interface of a current enterprise identification comprises enterprise identifications of different enterprises to which a user belongs, after a client displays a session interface of the current enterprise identification, if a selection instruction of the entrance mark of the identification selection interface is detected, the client can switch from the session interface of the current enterprise identification to the identification selection interface to display, and when the client displays the identification selection interface, the selection instruction of the identification selection interface can be detected, so that when the selection instruction of a target enterprise identification in the identification selection interface is detected, the session interface of the target enterprise identification is switched from the identification selection interface of the current enterprise identification, and the rapid switching of the session interfaces corresponding to the different enterprise identifications is realized. As shown in fig. 1, a user corresponding to a client 10, upon launching an enterprise application, may log into a session interface corresponding to a current enterprise identity in the enterprise application, in a specific implementation, the client 10 may send a login account to the server 11, and the server 11, upon receiving the login account, the login account number may be verified, and after verification is passed, an indication of the login to the enterprise application may be sent to the client 10, and instructs the client 10 to display the session interface for the current enterprise identification, so that the client 10 displays the session interface for the current enterprise identification in the interface, wherein, if the user logs in the session interface corresponding to different enterprise identifications in the enterprise application program through different account numbers, the server 11 may determine a current login account and a session interface of the current login account according to the login account sent by the client 10; if the user can log in the session interface of different enterprise identifiers in the enterprise application program through the unified identification identifier (i.e., the unified account), the server 11 may instruct the client 10 to display the session interface of any enterprise identifier after receiving the login account sent by the client 10, or may instruct the client 10 to display the session interface of the last logged-in enterprise identifier.

The portal identification of the identification selection interface included in the session interface for the current enterprise identification may be a fixed portal identification, in one embodiment, in order to facilitate a user to quickly find the entry identifier of the identifier selection interface from the session interface of the current enterprise identifier, the fixed entrance identifier can be displayed on top in a session interface corresponding to the current enterprise identifier, a user can record a top switch (namely a GID switch) under Group Identification (GID), the GID switch is universal and has strong adaptability, the switch for setting all interfaces, the user can open the switch option for the fixed entrance mark to be displayed on the top under the GID, after the user opens the switch option, the client can display the fixed entrance identifier in a top mode, and in addition, the client can also display the fixed entrance identifiers of other enterprise identifiers related to the user in a top mode based on the selection of the user on the GID switch. In one embodiment, the entry identifier of the identifier selection interface included in the session interface of the current enterprise identifier may also be a session entry identifier, and the session entry identifier may be displayed in a session list, and preferably, the session entry identifier may also be displayed in a top of the session list, and specifically, after the VID switch (a switch that is not general and is only set for the current interface) is turned on, the user may set the session entry identifier of the current enterprise identifier in the session list for display.

In an embodiment, if the client receives a selection instruction of a user for a target enterprise identifier on the identifier selection interface after displaying the identifier selection interface, which indicates that the user needs to switch to a session interface corresponding to the target enterprise identifier, the client may execute a corresponding switching animation, and determine a switching state of the session interface switched to the target enterprise identifier in a process of executing the switching animation, so that the session interface of the target enterprise identifier for displaying to the user interface may be determined according to the switching state. In one embodiment, the session interface of the target enterprise identity includes a simulation session interface or a target session interface, the simulation session interface is used only for display and cannot respond to user operation, the target session interface is an interface which can really receive user operation, the switching state is determined according to whether the target session interface corresponding to the target enterprise identity is loaded completely, it can be understood that the target session interface which is not loaded completely cannot be displayed on the user interface, so that the target session interface can be used as a first state of the session interface switched to the target enterprise identity when the target session interface is not loaded completely, and used as a second state of the session interface switched to the target enterprise identity when the target session interface is loaded completely, and the simulation session interface of the target enterprise identity is displayed when the target session interface is determined to be the first state, and displaying a target session interface of the target enterprise identifier in the second state, wherein the switching animation may be, for example, a rotation animation, a flip animation, a fly-in animation, or a pull-out animation, and the like.

In one embodiment, after the client displays the simulation session interface of the target enterprise identifier, a cover layer interface can be added in the simulation session interface to shield the operation instruction of the user for the simulation session interface, or the client can stop receiving the operation instruction when the simulation session interface is displayed, so that the operation instruction of the user for the simulation session interface can be shielded. In an embodiment, if the client detects that the switching state is switched from the first state to the second state after the client displays the simulation session interface, the client may obtain a target session interface of the target enterprise identifier, replace the simulation session interface with the target session interface, and display the target session interface, where after the client displays the target session interface, the client may delete the overlay interface or start a receiving function of an operation instruction, so as to respond to the operation instruction detected by the user at the target session interface.

Referring to fig. 2, a schematic flowchart of an interface switching method according to an embodiment of the present invention is shown in fig. 2, where the method includes:

s201, displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface.

In one embodiment, if the session interface entered by the user after logging in the enterprise application is the session interface corresponding to the current enterprise identifier, the displayed session interface of the current enterprise identifier may be as shown in the interface marked by 30 in fig. 3a, where the session interface of the current enterprise identifier marked by 30 includes: and identifying a portal identifier corresponding to the selection interface, where the portal identifier may be, for example, the session portal identifier marked by 301 in fig. 3a, and when a selection instruction of the user for the session portal identifier 301 is detected, the client may switch from the session interface of the current enterprise identifier to the identification selection interface and display the identification selection interface on the interface, where the displayed identification selection interface may be as shown in the interface marked by 31 in fig. 3 a. In an embodiment, the entry identifier of the identifier selection interface included in the session interface of the current enterprise identifier may also be a fixed entry identifier, and is displayed in the session selection interface, as shown in fig. 3b, the session interface displayed by using the fixed entry identifier may be shown by the interface marked by 32 in fig. 3b, the fixed entry identifier is, for example, the entry identifier marked by 302, and the client may also switch to the identifier selection interface for displaying after detecting a selection instruction for the fixed entry identifier 302, where the identifier selection interface includes: the enterprise identifier of each enterprise to which the user belongs may be an enterprise name, or an enterprise registration code, or the like.

In one embodiment, when the client displays an identifier selection interface entry identifier on the session interface of the current enterprise identifier, the user may set the entry identifier as a top display, when the entry identifier is a session entry identifier, as shown in the interface marked by 33 in fig. 3c, the user may slide (e.g., slide to the left) the session entry identifier, after sliding the session entry identifier, an option to top-display the session entry identifier may be displayed in the interface, and the user may select the top option, so that the client may top-display the session entry identifier after detecting a selection operation of the top option by the user; after the client displays the session entry identifier on the top, if the user needs to cancel the top display of the session entry identifier, as shown in the interface marked by 34 in fig. 3c, the user may also slide the session entry identifier and cancel the top display of the session entry identifier by selecting the top cancel option displayed after the sliding.

In one embodiment, when the entry identifier is a fixed entry identifier, the user may set the fixed entry identifier to be displayed on top by a path of "i" - "set" - "new message notification" - "other enterprise message notifications", specifically referring to the flow shown in fig. 3d, after clicking "i", the user may click on a "set" option in a corresponding detail interface, and after displaying a "set" corresponding detail interface, click on a "new message notification" option, which may be used to set the message notification of the current enterprise identifier, such as setting the voice and video call notification of the current enterprise identifier, setting whether to turn on a sound, setting a special notification sound effect, and the like, and further, the "new message notification" option may further include a "other enterprise message notification" option in a corresponding detail interface, after a selection instruction of the user for the option of 'other enterprise message reminding' is detected, a detail interface corresponding to the option of 'other enterprise message reminding' can be entered, the detail interface comprises an option for displaying the fixed entrance identifier in a designated manner, and after the user starts the 'top placement in chat', the fixed entrance identifier is displayed in the session interface of the current enterprise identifier in a top placement manner. In addition, the detail interface of the option of "other enterprise message reminding" further includes an opening option for receiving reminding of other enterprise messages, when the option is opened, the client can send out reminding information after detecting a new message of the enterprise identifier corresponding to the other enterprise identifier, for example, a corresponding number is displayed after the enterprise identifier to indicate the number of the received new message, wherein, the user can set the new message reminding function of the enterprise identifier corresponding to different enterprise identifiers respectively.

In one embodiment, as shown in the identifier selection interface marked by 31 in fig. 3a, when the client displays the identifier selection interface, the client may display the number of new messages received by each enterprise identifier, such as the number 1 displayed after enterprise a (an enterprise identifier), that is, indicating that enterprise a has received a new message (or an unread message), and further, the identifier selection interface may mark the enterprise identifier corresponding to the currently displayed session interface, such as "current enterprise" displayed after enterprise B, for indicating that the enterprise identifier corresponding to the currently displayed session interface is enterprise B; alternatively, the client may also output a specific mark, such as a mark for hooking (such as "√") at the enterprise identifier corresponding to the currently displayed session interface, so as to mark the current enterprise identifier. In one embodiment, when a current enterprise receives a new message, for example, when a B enterprise receives a new message, a corresponding number may also be displayed behind the B enterprise, and when an unread message exists in a session interface corresponding to each enterprise identifier in the message display interface, a prompt message may also be output to prompt a user to view the new message in time, where the prompt message may be, for example, a vibration prompt or a ring prompt.

After the client displays the identifier selection interface, historical session data corresponding to each enterprise identifier in the identifier selection interface can be acquired, and based on the historical session data, the client can construct a simulation session interface corresponding to each enterprise identifier. In one embodiment, the client may obtain historical session data identifying each enterprise identification displayed by the selection interface, and respectively constructing simulation session interfaces corresponding to each enterprise identifier, or the client can also preset the preset number of the simulation session interfaces, after determining the preset number, the client may select a preset number of enterprise identities from all displayed enterprise identities, and obtain the historical conversation data of the selected enterprise identification, and construct a corresponding simulation conversation interface, in a specific implementation, when the client selects a preset number of enterprise identifications from all enterprise identifications in a random selection manner, or, the client may also select a preset number of enterprise identifiers from all the enterprise identifiers according to the selection probability from high to low based on the probability that each enterprise identifier is selected by the user, where the preset number may be 3 or 5, for example. In an embodiment, the client may further execute a building process of a simulation session interface corresponding to each enterprise identifier before displaying the identifier selection interface, or the client may further obtain a session interface displayed when switching to each enterprise identifier last time, and use the session interface displayed last time as a history session interface corresponding to the enterprise identifier.

In an embodiment, after displaying the identifier selection interface, the client may detect an instruction in the identifier selection interface, and if a selection instruction for the identifier selection interface is detected, may determine a corresponding target enterprise identifier according to the selection instruction, and after determining the target enterprise identifier, the client may perform step S202 instead.

S202, in the process of switching from the identification selection interface to the conversation interface of the target enterprise identification, determining the switching state of the conversation interface switched to the target enterprise identification.

In an embodiment, after determining the target enterprise identity selected by the selection instruction, the client may switch from the identity selection interface to the session interface of the target enterprise identity, in a specific implementation, the client may switch from the identity selection interface to the session interface of the target enterprise identity by executing a switching animation, wherein if the session interfaces corresponding to different enterprise identities are logged in by different login accounts, in the process of switching from the identity selection interface to the session interface of the target enterprise identity, the client may obtain the target login account corresponding to the target enterprise identity and log in the target login account, as shown in fig. 4a, if the enterprise identity of the currently logged-in enterprise identity is enterprise B, the target enterprise identity selected by the user is enterprise C, and the client may execute the switching animation for switching from the identity selection interface of enterprise B to the session interface of enterprise C (the switching animation may be, as shown in fig. 4a, the interface marked by 40 is used as the switching animation for switching) The turning animation shown), if the login account for logging in the enterprise B is different from the login account for logging in the enterprise C, the client can obtain and log in the login account corresponding to the enterprise C in the process of executing the switching animation. Or, if the accounts used for logging in the session interfaces corresponding to different enterprise identities are the same account, the client may only perform an interface switching operation in the process of switching from the identity selection interface to the session interface of the target enterprise identity, without performing the login process of the account corresponding to the target enterprise identity, as shown in fig. 4a, if the accounts logging in the enterprise B and the enterprise C are the same account, if the currently displayed identity selection interface corresponds to the enterprise identity of the enterprise B, and after the user selects the enterprise C as the target enterprise identity, the client may only perform a switching operation of switching from the identity selection interface of the enterprise B to the enterprise C, where the switching operation may be, for example, the switching animation described above.

In an embodiment, during the process of switching from the identifier selection interface to the session interface of the selected target enterprise identifier, the client may determine that the session interface of the switched target enterprise identifier is the simulation session interface of the target enterprise identifier or the target session interface of the target enterprise identifier according to the switching state of the session interface of the switched target enterprise identifier, where the switching state is determined according to the loading state of the target session interface corresponding to the target enterprise identifier, and it is understood that the target session interface of the target enterprise identifier needs to be displayed when the client switches to the session interface of the target enterprise identifier, and the simulation session interface of the target enterprise identifier is an interface for displaying in order to avoid long-time waiting for loading of the target session interface when the target session interface of the target enterprise identifier is not loaded yet, the simulation session interface is a virtual interface only used for displaying and cannot respond to user operation, and the target session interface is a real interface capable of responding to user operation. Therefore, the client may divide the switching state into two states based on whether the target session interface of the target enterprise identifier is completely loaded (or completely constructed), and obtain different session interfaces of the target enterprise identifier to display in different states, that is, execute step S203 instead.

In one embodiment, the client may determine whether the target session interface of the target enterprise identity is completely loaded during the process of switching from the identity selection interface to the session interface of the target enterprise identity, and when it is determined that the loading is completed, determine the switching status as the second status, and when it is determined that the session interface of the target enterprise identity is not completely loaded, determine the switching status as the first status. In one embodiment, the target session interface of the target enterprise identifier is constructed according to current session data of the target enterprise identifier, the current session data is acquired by the client in real time, and the target session interface can be constructed when the client performs a switching operation, that is, the client can construct the target session interface during the switching operation, and further determine whether the construction of the target session interface is completed, so as to divide the session interface switched from the client to the target enterprise identifier into two different states; or, the target session interface may also be constructed before the client performs the switching operation, and the client may determine whether the target session interface of the target enterprise identifier is completely constructed during the process of switching from the identifier selection interface to the session interface of the target enterprise identifier, so as to divide the session interface switched from the client to the target enterprise identifier into two different states.

S203, when the switching state is the first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; and if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier.

In an embodiment, after determining the switching state of the session interface switched to the target enterprise identifier, if it is determined that the switching state is the first state, it indicates that the client has not completed building the target session interface of the target enterprise identifier after completing the switching, in order to avoid user experience degradation caused by long-time waiting of the user for loading the target session interface, the client may obtain and display the simulated session interface of the target enterprise identifier in the first state, that is, when the target session interface has not been loaded, the process of obtaining and displaying the simulated session interface after the client performs the switching operation may be as shown in fig. 4b, the displayed simulated session interface may be as shown in an interface marked by 41 in fig. 4b, the simulated session interface is a null interface because the historical session data of the target enterprise identifier obtained by the client is null, further, after displaying the simulation session interface, the client may further output a progress prompt message in the simulation session interface for indicating the loading progress of the target session interface, where the progress prompt message may be, for example, a graphic marked in 410 in fig. 4b, and the progress prompt message may include a progress bar graphic, or a text prompt message, etc. In addition, the process of obtaining and displaying the simulation session interface after the client performs the switching operation may be as shown in fig. 4c, and the displayed simulation session interface may be as shown in an interface marked by 42 in fig. 4c, where the simulation session interface may be constructed based on the historical session data obtained by the client, or may be a session interface obtained by the client and switched to the target enterprise identifier last time.

In an embodiment, if the client determines that the switching status is the second status, which indicates that the client has completed loading the target session interface of the target enterprise identifier, the client may directly obtain and display the target session interface, and after the client performs the switching operation, the client may directly obtain and display the target session interface, as shown in fig. 4 d. In one embodiment, after the client displays the simulation session interface of the target enterprise identifier, if it is detected that the switching state is switched from the first state to the second state, which indicates that the target session interface is switched from the unloaded state to the loaded state, the client may obtain the target session interface and replace the simulation session interface with the target session interface to display the target session interface, as shown in fig. 4e, and if the simulation session interface is an image as indicated by 41 in fig. 4b, after the target session interface is completely constructed, replace the simulation session interface with the target session interface, which may be an image as indicated by 43 in fig. 4e, and display the target session interface, which includes a plurality of simulation session entries, and the historical session data is used to construct the simulation session entries, the session entry included in the target session interface is a real session entry, and the real session entry is generated according to the current session data of the corresponding enterprise identifier of each enterprise identifier.

In the embodiment of the present invention, after displaying the identifier selection interface, the client may determine the target enterprise identifier from the identifier selection interface according to a selection instruction for the identifier selection interface, and further, the client may switch from the identifier selection interface to the session interface of the target enterprise identifier, and divide the switching state of the session interface of the target enterprise identifier into two different states based on whether the target session interface of the target enterprise identifier is loaded completely in the switching process, so as to obtain different session interfaces of the target enterprise identifier in different states, where the first state is a state in which the target session interface of the target enterprise identifier is not loaded completely, the client may obtain the simulated session interface of the target enterprise identifier in the first state for display, and directly display the target session interface in the second state in which the target session interface is loaded completely, the time length of waiting for the client to load the session interface can be reduced, and the interface switching efficiency of the client can be improved.

Referring to fig. 5, a schematic flowchart of an interface switching method according to an embodiment of the present invention is shown in fig. 5, where the method includes:

s501, displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface.

In an embodiment, the specific implementation of step S501 may refer to the specific implementation of step S201 in the above embodiments, and is not described herein again.

S502, a synchronization instruction of the number of the unread messages aiming at the target enterprise identifier is obtained, wherein the synchronization instruction is generated when the server detects that the unread messages exist in the target enterprise identifier.

S503, determining the maximum message number of the unread message, and determining the maximum read message number from the message numbers of the read messages of the target enterprise identifier, wherein the message numbers are determined by the server based on the receiving sequence of the unread messages.

S504, according to the maximum message number of the unread message and the maximum read message number, the unread number identification is determined.

In steps S502 to S504, after the client displays the session interface of the current enterprise identifier, if the server detects that another enterprise identifier (e.g., a target enterprise identifier) receives an unread message, the server will issue a synchronization instruction for the unread message to the client, as shown in fig. 6, after receiving the synchronization instruction, the client will synchronize (synchronize) the unread message with the server, and when the client synchronizes the unread message with the server, the client may first pull an unread message list of the enterprise identifier (e.g., the target enterprise identifier) where the unread message exists, and calculate a message number (remote _ id) corresponding to the unread message in the unread message list, in an embodiment, the unread message numbers are sequentially arranged by the server based on the order of the received unread messages, where the message number of the unread message received first is smaller than the message number of the unread message received later, for example, if the server receives the unread message a first, if the message number set for the unread message is 3, the message number for the unread message B received by the server is 4.

In an embodiment, after determining the message numbers corresponding to the unread messages in each enterprise identifier, the server may send the message numbers to the client, where it is understood that, if there are multiple unread messages received by the enterprise identifier, the server sends the maximum message number of the numbers corresponding to the multiple unread messages received by the server to the client, or the client may also send the message numbers of all the unread messages to the client, and the client may determine the maximum message number from the message numbers of all the unread messages. After the client determines the maximum message number of the unread message, the client may obtain the maximum read message number, and based on the maximum number of the unread message and the maximum read message number, the client may determine the unread number identifier of the unread message, and display the unread number identifier at the enterprise identifier corresponding to the enterprise identifier in the identifier selection interface, as shown in the identifier selection interface marked by 31 in fig. 3a, when the server determines that the number of the unread message of the enterprise a is 1, display the unread number identifier as 1 at the back of the enterprise a.

In an embodiment, when determining the unread message number identifier according to the maximum message number and the maximum read message number of the unread message, the client may calculate the maximum message number of the unread message and a number difference between the maximum read message numbers, where the number difference is used to indicate the number of the unread message in the target enterprise identifier, for example, if the client determines that the maximum number of the unread message in the target enterprise identifier is 8 and the maximum read message number is 6, it determines that the difference between the maximum number of the unread message and the maximum read message number is 2, which indicates that the number of the unread message in the target enterprise identifier is 2; after the client determines the number of the unread messages, the unread number identifier can be determined according to the number difference.

In an embodiment, the identifier selection interface further includes a switching entry corresponding to each enterprise identifier, and after determining the unread quantity identifier, the client may display the unread quantity identifier of the target enterprise identifier at the switching entry corresponding to the enterprise identifier (e.g., the target interface), and cancel the unread quantity identifier displayed at the switching entry corresponding to the target enterprise identifier after receiving the selection instruction for the target enterprise identifier. It can be understood that, after detecting the selection instruction for the target enterprise identifier, the client switches from the current enterprise identifier to the target enterprise identifier corresponding to the target enterprise identifier, and displays the target session interface of the target interface, that is, it indicates that the user will view the unread message in the target enterprise identifier, so that, after the client switches back to the identifier selection interface of the current enterprise identifier, the unread quantity identifier displayed at the switching entry corresponding to the target enterprise identifier in the identifier selection interface will be cancelled, as shown in fig. 7 a.

In an embodiment, the client switches to the identifier selection interface to display through the entry identifier in the displayed session interface of the current enterprise identifier, and in a specific implementation, after the client logs in the current enterprise identifier, the client may display the session interface of the current enterprise identifier first, so that when a selection instruction for the entry identifier in the session interface of the current enterprise identifier is received, the client may switch to the identifier selection interface from the session interface of the current enterprise identifier to display, as shown in fig. 3a and 3 b. After the client displays the identifier selection interface, if it is detected that the session interface of the current enterprise identifier is switched back from the identifier selection interface, that indicates that the user knows the number of unread messages corresponding to different enterprises to which the user belongs, the unread message number identifier can be grayed out, and the unread number identifier displayed at the switching entrance of the identifier selection interface in the session interface of the current enterprise identifier is cancelled, wherein the unread number identifier displayed at the switching entrance of the identifier selection interface is used for indicating: the total number of unread messages in the enterprise id corresponding to each enterprise id in the id selection interface, and when the client re-enters the id selection interface from the session interface of the current enterprise id, the unread message id at the switching entry corresponding to the enterprise id is the one after the graying processing, as shown in fig. 7 b.

After the client grays the unread message quantity identifiers in the identifier selection interface, if the enterprise identifiers corresponding to the enterprise identifiers in the identifier selection interface receive the unread messages again, the dimension identifier quantity of the switching entry corresponding to the enterprise identifiers which receive the unread messages again is updated and graying is cancelled and highlighted after the client enters the identifier selection interface from the session interface of the current enterprise identifier, as shown in fig. 7c, if the client grays the unread message quantity identifiers in the identifier selection interface, the enterprise identifier corresponding to the enterprise a receives 7 unread messages again, the client can display the total quantity of the received unread messages, that is, 7, at the entry identifier of the identifier selection interface in the session interface of the current enterprise identifier, and highlight the unread quantity identifiers corresponding to the enterprise a after the user enters the identifier selection interface, since the unread message before the enterprise a is 1, the number of the unread message identifiers displayed after the highlighting process is performed again is 8, and the unread number identifiers of other enterprises, such as the enterprise B and the enterprise C, still keep being grayed out.

And S505, in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier, determining the switching state of the session interface switched to the target enterprise identifier.

S506, when the switching state is the first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; and if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier.

In steps S505 and S506, the identifier selection interface displayed by the client includes one or more enterprise identifiers, the client may obtain historical session data corresponding to each enterprise identifier after displaying the identifier selection interface, so as to construct a simulation session interface corresponding to the enterprise identifier according to the historical session data, and after the client determines a target enterprise identifier from the identifier selection interface, the client may obtain current session data of the target enterprise identifier, and construct a target session interface of the target enterprise identifier according to the current session data. In an embodiment, before displaying the identifier selection interface, the client may further complete the construction of the simulation session interface and the target session interface of each enterprise identifier in the identifier selection interface, so that the simulation session interface and the target session interface may be directly obtained when the simulation session interface needs to be displayed or the target session interface needs to be displayed.

In an embodiment, in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier, the switching state of the session interface switched to the target enterprise identifier is determined according to whether the target session interface is completely loaded, it can be understood that, when the target session interface is not completely loaded, the switching state cannot be displayed in the interface, so the client divides the switching state into a first state and a second state based on whether the target session interface is completely loaded, where the first state refers to a state in which the target session interface is completely loaded, and the second state refers to a state in which the target session interface is not completely loaded. In a specific implementation, when determining the switching state of the session interface switched to the target enterprise identifier, the client may first determine whether the target session interface of the target enterprise identifier is completely loaded; if the target session interface is determined to be loaded completely, determining that the switching state is a second state; and if the target session interface is determined not to be loaded completely, determining that the switching state is the first state.

In an embodiment, after the client displays the simulation session interface corresponding to the target enterprise identifier, if it is detected that the switching state is switched from the first state to the second state, the client may obtain the target session interface corresponding to the target enterprise identifier, so that the simulation session interface may be replaced with the target session interface, and the target session interface is displayed. In addition, after the client displays the simulation session interface, a cover layer interface can be added on the simulation session interface, and the cover layer interface is used for shielding operation instructions received by aiming at the simulation session interface; as shown in fig. 4d, the display interface after the masking interface is added to the simulation session interface may be an interface marked by 42, and after the client detects that the switching state is switched from the first state to the second state, the target session interface may be used to replace the simulation session interface and delete the masking interface in the simulation session interface, and the target session interface after the masking interface is deleted may receive and respond to an operation instruction of the user.

In the embodiment of the invention, after the client displays the identifier selection interface, the client can determine the target enterprise identifier from the identifier selection interface according to the selection instruction in the identifier selection interface, so that the message number of the unread message and the message number of the read message of the target enterprise identifier can be acquired, the unread quantity identifier of the target enterprise identifier can be determined, and the unread quantity identifier can be displayed at the switching entrance of the target enterprise identifier, so that a user can determine whether to execute the switching process to the target enterprise identifier based on the displayed unread quantity identifier, the unnecessary switching times can be reduced, and the data processing efficiency of the client can be improved. And in the process that the client determines to switch from the identifier selection interface to the session interface of the target enterprise identifier, the client can determine the switching state of the session interface switched to the target enterprise identifier, so that the simulation session interface can be displayed in the first state, and the target session interface can be displayed in the second state, thereby realizing the rapid switching of the interfaces and improving the interface switching efficiency of the client.

Based on the description of the above interface switching method embodiment, an embodiment of the present invention further provides an interface switching apparatus, where the interface switching apparatus may be a computer program (including a program code) running in the client. The interface switching device may be used to execute the interface switching method shown in fig. 2 and fig. 5, please refer to fig. 8, and the interface switching device includes: a display unit 801, a determination unit 802, and a display unit 803.

A display unit 801 for displaying an identifier selection interface;

a determining unit 802, configured to determine, according to a selection instruction for the identifier selection interface, a target enterprise identifier from the identifier selection interface;

the determining unit 802 is further configured to determine, in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier, a switching state of the session interface switched to the target enterprise identifier;

the display unit 801 is further configured to, when the switching state is the first state, obtain and display a simulation session interface corresponding to the target enterprise identifier; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

In one embodiment, the identity selection interface includes one or more enterprise identities, the apparatus further comprising:

an obtaining unit 803, configured to obtain historical session data corresponding to each enterprise identifier;

the building unit 804 is used for building a simulation session interface corresponding to the enterprise identifier according to the historical session data;

the obtaining unit 803 is further configured to obtain current session data of the target enterprise identifier;

the constructing unit 804 is further configured to construct a target session interface of the target enterprise identifier according to the current session data.

In an embodiment, the determining unit 802 is specifically configured to:

determining whether the target session interface of the target enterprise identifier is loaded completely;

if the target session interface is determined to be loaded completely, determining that the switching state is a second state;

and if the target session interface is determined not to be loaded completely, determining that the switching state is the first state.

In one embodiment, the apparatus further comprises: and a replacement unit 805.

The obtaining unit 803 is further configured to obtain a target session interface corresponding to the target enterprise identifier if the switching status is converted from the first status to the second status;

a replacing unit 805, configured to replace the simulation session interface with the target session interface;

the display unit 801 is further configured to display the target session interface.

In one embodiment, the apparatus further comprises: an adding unit 806 and a deleting unit 807.

An adding unit 806, configured to add a masking interface on the simulation session interface, where the masking interface is used to mask an operation instruction received for the simulation session interface;

a deleting unit 807 configured to delete the mask interface if the switching state is changed from the first state to the second state.

In one embodiment, the identification selection interface further comprises: the unread quantity identification of the unread messages in the target enterprise identification;

the obtaining unit 804 is further configured to obtain a synchronization instruction for the number of unread messages of the target enterprise identifier, where the synchronization instruction is generated by the server when detecting that the unread messages exist in the target enterprise identifier;

the determining unit 802 is further configured to determine a maximum message number of the unread message, and determine the maximum read message number from the message numbers of the read messages of the target enterprise identifier, where the message numbers are determined by the server based on the receiving sequence of the unread messages;

the determining unit 802 is further configured to determine the unread number identifier according to the maximum message number of the unread message and the maximum read message number.

In an embodiment, the determining unit 802 is specifically configured to:

calculating the maximum message number of the unread messages and the number difference between the maximum read message numbers, wherein the number difference is used for indicating the number of the unread messages in the target enterprise identification;

and determining the unread quantity identification according to the number difference.

In one embodiment, the identifier selection interface further includes a switching entry corresponding to an enterprise identifier for each enterprise identifier, and the apparatus further includes: a cancellation unit 808.

The display unit 801 is further configured to display the unread quantity identifier of the target enterprise identifier at the switching entry;

a canceling unit 808, configured to cancel the unread quantity id displayed at the switch entry after displaying the session interface of the target enterprise id.

In an embodiment, the display unit 801 is further configured to display a session interface of a current enterprise identifier, where the session interface of the current enterprise identifier includes an entry identifier of the identifier selection interface;

the display unit 801 is specifically configured to:

and receiving a selection instruction of the entrance identifier, switching from a conversation interface of the current enterprise identifier to an identifier selection interface, and displaying the identifier selection interface.

In one embodiment, the identification selection interface comprises: one or more enterprise identifications and a switching entrance of a session interface corresponding to each enterprise identification, wherein unread quantity identifications corresponding to the enterprise identifications are displayed at the switching entrance; the device further comprises: a processing unit 809.

The processing unit 809 is configured to perform graying processing on the unread quantity identifiers displayed at the switching entry of each enterprise identifier in the identifier selection interface if the identifier selection interface is switched to the session interface of the current enterprise identifier.

In this embodiment of the present invention, after the display unit 801 displays the identifier selection interface, the determining unit 802 may determine the target enterprise identifier from the identifier selection interface according to a selection instruction for the identifier selection interface, further, the determining unit 802 may switch from the identifier selection interface to the session interface of the target enterprise identifier, and in the switching process, based on whether the target session interface of the target enterprise identifier is loaded completely, divide the switching state of the session interface of the target enterprise identifier into two different states, so that different session interfaces of the target enterprise identifier may be obtained in different states, where the first state is a state in which the target session interface of the target enterprise identifier is not loaded completely, the display unit 801 may obtain a simulated session interface of the target enterprise identifier in the first state for display, and the display unit 801 directly displays the target session interface in the second state in which the target session interface is loaded completely The method can reduce the time for the user to wait for the client to load the session interface, and can improve the interface switching efficiency of the client.

Fig. 9 is a schematic block diagram of a structure of a client according to an embodiment of the present invention. The client in the present embodiment shown in fig. 9 may include: one or more processors 901; one or more input devices 902, one or more output devices 903, and memory 904. The processor 901, the input device 902, the output device 903, and the memory 904 are connected by a bus 905. The memory 904 is used to store computer programs comprising program instructions, and the processor 901 is used to execute the program instructions stored by the memory 904.

Memory 904 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory 904 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), etc.; the memory 904 may also comprise a combination of the above-described types of memory.

Processor 901 may be a Central Processing Unit (CPU). The processor 901 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a General Array Logic (GAL), or the like. The processor 901 may also be a combination of the above structures.

In the embodiment of the present invention, the memory 904 is used for storing a computer program, the computer program includes program instructions, and the processor 901 is used for executing the program instructions stored in the memory 904 to implement the steps of the corresponding methods as described above in fig. 2 and fig. 5.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

displaying an identification selection interface, and determining a target enterprise identification from the identification selection interface according to a selection instruction aiming at the identification selection interface;

determining a switching state of a session interface switched to the target enterprise identifier in the process of switching from the identifier selection interface to the session interface of the target enterprise identifier;

when the switching state is a first state, acquiring and displaying a simulation session interface corresponding to the target enterprise identifier; if the switching state is the second state, acquiring and displaying a target session interface corresponding to the target enterprise identifier;

the simulation session interface is constructed according to historical session data of the target enterprise identifier, and the target session interface is constructed according to current session data of the target enterprise identifier.

In one embodiment, the identifier selection interface includes one or more enterprise identifiers, and the processor 901 is configured to invoke program instructions for executing:

acquiring historical session data corresponding to each enterprise identifier, and constructing a simulation session interface corresponding to the enterprise identifier according to the historical session data;

after the target enterprise identifier is determined from the identifier selection interface, the method further includes:

and acquiring current session data of the target enterprise identifier, and constructing a target session interface of the target enterprise identifier according to the current session data.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

determining whether the target session interface of the target enterprise identifier is loaded completely;

if the target session interface is determined to be loaded completely, determining that the switching state is a second state;

and if the target session interface is determined not to be loaded completely, determining that the switching state is the first state.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

if the switching state is switched from the first state to the second state, acquiring a target session interface corresponding to the target enterprise identifier;

and replacing the simulation session interface with the target session interface, and displaying the target session interface.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

adding a cover layer interface on the simulation session interface, wherein the cover layer interface is used for shielding an operation instruction received aiming at the simulation session interface;

and if the switching state is converted from the first state to the second state, deleting the covering layer interface.

In one embodiment, the identification selection interface further comprises: the unread quantity identification of the unread messages in the target enterprise identification; the processor 901 is configured to invoke program instructions for performing:

acquiring a synchronization instruction aiming at the quantity of the unread messages of the target enterprise identifier, wherein the synchronization instruction is generated when the server detects that the unread messages exist in the target enterprise identifier;

determining the maximum message number of the unread message, and determining the maximum read message number from the message numbers of the read messages of the target enterprise identifier, wherein the message numbers are determined by the server based on the receiving sequence of the unread messages;

and determining the unread quantity identification according to the maximum message number of the unread messages and the maximum read message number.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

calculating the maximum message number of the unread messages and the number difference between the maximum read message numbers, wherein the number difference is used for indicating the number of the unread messages in the target enterprise identification;

and determining the unread quantity identification according to the number difference.

In one embodiment, the identifier selection interface further includes a switch entry corresponding to the session interface of the target enterprise identifier, and the processor 901 is configured with a calling program instruction for executing:

displaying the unread quantity identification of the target enterprise identification at the switching entrance;

and after a session interface of the target enterprise identifier is displayed, canceling the unread quantity identifier displayed at the switching entrance.

In one embodiment, processor 901 is configured to invoke program instructions for performing:

displaying a conversation interface of a current enterprise identifier, wherein the conversation interface of the current enterprise identifier comprises an entrance identifier of the identifier selection interface;

the display identifier selection interface includes:

and receiving a selection instruction of the entrance identifier, switching from a conversation interface of the current enterprise identifier to an identifier selection interface, and displaying the identifier selection interface.

In one embodiment, the identification selection interface comprises: one or more enterprise identifications and a switching entrance of a session interface corresponding to each enterprise identification, wherein unread quantity identifications corresponding to the enterprise identifications are displayed at the switching entrance; the processor 901 is configured to invoke program instructions for performing:

and if the conversation interface of the current enterprise identifier is switched from the identifier selection interface, graying the unread quantity identifier displayed at the switching entrance of each enterprise identifier in the identifier selection interface.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes 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 (RAM), or the like.

While the invention has been described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

33页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:应用分类推荐安装的方法、系统、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类