CN111290674B - Method and device for switching accounts and electronic equipment - Google Patents

Method and device for switching accounts and electronic equipment Download PDF

Info

Publication number
CN111290674B
CN111290674B CN202010081177.4A CN202010081177A CN111290674B CN 111290674 B CN111290674 B CN 111290674B CN 202010081177 A CN202010081177 A CN 202010081177A CN 111290674 B CN111290674 B CN 111290674B
Authority
CN
China
Prior art keywords
account
switching
interface
responding
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010081177.4A
Other languages
Chinese (zh)
Other versions
CN111290674A (en
Inventor
吴俣墨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202010081177.4A priority Critical patent/CN111290674B/en
Publication of CN111290674A publication Critical patent/CN111290674A/en
Application granted granted Critical
Publication of CN111290674B publication Critical patent/CN111290674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Abstract

The application discloses a method and a device for switching accounts, electronic equipment and a storage medium. The method comprises the following steps: when the first account is in a login state, responding to touch operation acting on a designated function interface, and displaying an account switching interface; responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface; and if the account switching operation instruction is detected, switching the first account in the login state into a second account. The method and the device have the advantages that under the condition that the first account is in the login state, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the interface with the appointed function, the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the appointed area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, the complexity of the operation is reduced, and the account switching is more visual and convenient.

Description

Method and device for switching accounts and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for switching accounts, an electronic device, and a storage medium.
Background
With the acceleration of modern life rhythm and the popularization of network social contact, the mobile terminal becomes a main communication tool for people to perform network social contact, and users can perform network communication through instant communication software installed on the mobile terminal. For communication software, a general user needs to log in through an account for use, and for the same instant messaging software, the user may have multiple accounts, and the user can switch among different accounts to complete different social activities. In the process of using the mobile terminal, the requirement on the simplicity of operation is continuously improved, the operation flow of the existing account switching mode is complicated, the switching efficiency is low, and the user experience is reduced.
Disclosure of Invention
In view of the foregoing problems, the present application provides a method, an apparatus, an electronic device, and a storage medium for switching accounts, so as to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a method for switching accounts, where the method includes: when the first account is in a login state, responding to touch operation acting on a designated function interface, and displaying an account switching interface; responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target; and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
In a second aspect, an embodiment of the present application provides an apparatus for switching accounts, where the apparatus includes: the first display module is used for responding to touch operation acting on the specified function interface when the first account is in a login state and displaying an account switching interface; the second display module is used for responding to the touch operation acted on the account switching interface and displaying a second account in a designated area in the account switching interface; and the switching module is used for switching the first account in the login state into the second account if an account switching operation instruction is detected.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and one or more processors; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having program code stored therein, where the program code, when executed by a processor, performs the method of the first aspect.
According to the method, the device, the electronic equipment and the storage medium for switching the accounts, the account switching interface is displayed by responding to the touch operation acting on the specified function interface when the first account is in the login state; then responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target; and then, if an account switching operation instruction is detected, switching the first account in the login state into a second account. Therefore, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the specified function interface under the condition that the first account is in the login state, and the back-and-forth skip switching between the interfaces is avoided; after the touch operation acting on the account switching interface is responded, the second account is displayed in the designated area in the account switching interface, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a method for switching accounts according to an embodiment of the present application.
Fig. 2 is a diagram illustrating an example of a function-specifying interface provided in an embodiment of the present application.
Fig. 3 is a diagram illustrating an example of an account switching interface provided in an embodiment of the present application.
Fig. 4 is a diagram illustrating another example of an account switching interface provided in an embodiment of the present application.
Fig. 5 is a diagram illustrating another example of a designated function interface provided by an embodiment of the present application.
Fig. 6 is a diagram illustrating another example of a designated function interface provided in an embodiment of the present application.
Fig. 7 is a flowchart illustrating a method for switching accounts according to another embodiment of the present application.
Fig. 8 is a diagram illustrating still another example of a designated function interface provided in an embodiment of the present application.
Fig. 9 is a flowchart illustrating a method for switching accounts according to another embodiment of the present application.
Fig. 10 is a diagram illustrating still another example of a designated function interface provided in an embodiment of the present application.
Fig. 11 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 12 is a diagram illustrating a further example of an account switching interface provided in an embodiment of the present application.
Fig. 13 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 14 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 15 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 16 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 17 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 18 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 19 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 20 is a diagram illustrating still another example of a designated function interface provided in an embodiment of the present application.
Fig. 21 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 22 is a diagram illustrating still another example of a designated function interface provided in an embodiment of the present application.
Fig. 23 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 24 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 25 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 26 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 27 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 28 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 29 is a diagram illustrating an example of an account adding interface provided in an embodiment of the present application.
Fig. 30 is a flowchart illustrating a method for switching accounts according to still another embodiment of the present application.
Fig. 31 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 32 is a diagram illustrating still another example of an account switching interface provided in an embodiment of the present application.
Fig. 33 is a diagram illustrating an example of an account login interface provided in an embodiment of the present application.
Fig. 34 shows a block diagram of an apparatus for switching an account according to an embodiment of the present application.
Fig. 35 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 36 illustrates a storage unit for storing or carrying program codes for implementing a method for switching an account according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
At present, mobile terminals such as smart phones and the like become necessities necessary for human beings, and the current mobile terminals are generally provided with a plurality of social applications. For a social application, a general user needs to log in through an account for use, and with the needs of life and work, the same user may have multiple accounts for the same social application, for example, one user may have multiple QQ accounts, a wechat account, or a microblog account. As a mode, the social application software to be used may be opened first, then a certain menu is selected from the function interfaces of the software, and then a certain function on the menu is selected, and then the user enters the account switching interface. However, in the process of using the mobile terminal, the requirement for simplicity of operation is continuously improved, the operation flow of the existing account switching mode is complicated, the switching efficiency is low, and the user experience is reduced.
In view of the above problems, the inventors have found, through long-term research, that an account switching interface can be displayed by responding to a touch operation applied to a designated function interface when a first account is in a login state; then responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target; and then, if an account switching operation instruction is detected, switching the first account in the login state into a second account. Therefore, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the specified function interface under the condition that the first account is in the login state, the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the specified area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more intuitive and convenient, and the account switching efficiency is improved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for switching accounts according to an embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S110: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
In this embodiment, the first account may be an account currently in a login state, or may be an account currently in use. For example, a social APP may store multiple accounts and passwords corresponding to the multiple accounts at the same time, and in this way, the account currently in use may be used as the first account. The designated function interface is an interface corresponding to a virtual icon displaying an account, the virtual icon is an icon corresponding to the account and used for identifying the account, optionally, the clusters of the virtual icons corresponding to different accounts can be the same, and different virtual icons can be replaced in the same account.
Optionally, the designated function interfaces corresponding to different application software may be different, and the same application software may include at least one designated function interface. For example, assuming that the application software is social software, the designated function interface may be a main function interface (e.g., a "chat list" interface) of the social software, or may be other function interfaces (e.g., other content setup interfaces) of the social software. Optionally, if the application software is a browser, the designated function interface may be a content search interface, and optionally, in this manner, the designated function interfaces corresponding to different accounts may be the same.
As a mode, when the first account is in the login state, the display of the account switching interface may be triggered in response to a touch operation applied to the designated function interface. Therefore, the account switching interface can be displayed by designating the functional interface through touch once, and the account switching becomes more visual and convenient.
Step S120: and responding to the touch operation acted on the account switching interface, and displaying a second account in a designated area in the account switching interface.
The designated area in this embodiment is an area that can be used to display an account that is a target of switching in the account switching interface. For example, the designated area may be "screen center (i.e., screen center of the client display screen)" corresponding to the account switching interface. As a way, a target account used for switching can be selected in a way of responding to touch operation acting on an account switching interface, the target account is used as a second account, and then the second account is displayed in a designated area in the account switching interface, so that a user is reminded to confirm the account to be switched in a striking way, and the interactive experience of account switching is enhanced.
Step S130: and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
Under the condition that a second account is displayed in a designated area in the account switching interface, whether an account switching operation instruction exists or not can be detected in real time, and if the account switching operation instruction is detected, the first account in the login state can be switched to the second account, so that switching between different accounts is realized.
Whether an account switching operation instruction exists can be judged in various modes. In an implementation manner, under the condition that a second account is displayed in a designated area in an account switching interface, whether a touch gesture (including clicking, sliding, dragging, sliding and the like) acting on the account switching interface exists or not can be judged, if the touch gesture acting on the account switching interface exists, it can be judged that an account switching operation instruction exists, and if the touch gesture does not act on the account switching interface, it can be judged that the account switching operation instruction does not exist. In another implementation manner, it may be determined whether a touch operation (e.g., a click operation) that acts on a virtual icon corresponding to a second account exists under the condition that the second account is displayed in a designated area in the account switching interface, optionally, if the touch operation that acts on the virtual icon corresponding to the second account exists, it may be determined that an account switching operation instruction exists, and otherwise, it may be determined that the account switching operation instruction does not exist.
Referring to fig. 2 to fig. 5, the following describes the present embodiment by way of a specific example:
as shown in fig. 2, a display interface 101 of the electronic device 100 displays a first account 102 currently in a login state, 103 may be an edit control for setting account data of the first account, 104 may be an add control for adding a friend (or public number) when the first account 102 is in the login state, and 105 is a search control for searching contents such as a friend, a chat record, or a push message. 106 is a designated function interface (in fig. 2, the currently designated function interface is a chat list interface).
As one way, if the user slides down the designated function interface 106 by using the finger 107, the account switching interface shown in fig. 3 may be triggered to be displayed. In the account switching interface shown in fig. 3, in the display interface 101 of the electronic device 100, an enlarged virtual icon of the first account 102 is displayed in the designated area 110, and optionally, a corresponding account name (for example, "xxxxxx" shown in fig. 3) may also be displayed below the virtual icon corresponding to the first account 102. Optionally, virtual icons corresponding to other accounts are displayed beside the designated area 110 (for example, in fig. 3, a virtual icon corresponding to account 108 is displayed on the left side of the first account 102, and a virtual icon corresponding to account 109 is displayed on the right side of the first account 102). A user identifier 111 of the first account 102 may be displayed below the designated area 110, the first account 102 may be added as a friend by scanning the user identifier 111, and optionally, a setting control 112 for setting a function corresponding to the first account 102 may be displayed below the designated area 110.
As a manner, an account for switching may be selected as a target account by sliding left or right along the display interface 101, in this manner, virtual icons corresponding to different accounts may be transversely arranged on the display interface 101 of the electronic device 100, the virtual icon corresponding to the selected target account may be displayed in the designated area 110, and then the selected target account may be used as a second account, the account may be switched by sliding the virtual icon corresponding to the second account upward, the account may be switched by sliding the screen of the account switching interface upward, or the account may be switched by clicking the switching control 113 shown in fig. 3. It should be noted that in this embodiment of the application, the virtual icons corresponding to different accounts may be vertically arranged on the display interface 101 of the electronic device 100, or arranged on the display interface 101 of the electronic device 100 in other arrangement manners.
For example, sliding the account switching interface shown in fig. 3 to the left may obtain the account switching interface shown in fig. 4, where in the account switching interface shown in fig. 4, the account 109 is selected as the target account for switching, and in this way, the account 109 may be used as the second account. Optionally, the first account in the login state may be switched to the second account by clicking the switching control 113, or the switching of the accounts may be completed by sliding the finger 107 upward. After the virtual icons corresponding to the accounts displayed in the designated area 110 are changed, the virtual icons of the accounts on the left and right sides of the designated area 110 are also changed correspondingly, for example, the virtual icon corresponding to the account 114 is located on the right side of the designated area in fig. 4. Similarly, the user identifier of the account displayed below the designated area 110 is changed to the user identifier 115 corresponding to the account 109, and the setting control of the corresponding function is changed to the setting control 116 of the function corresponding to the account 109.
Optionally, after the account switching operation in fig. 4 is completed, an interface as shown in fig. 5 may be obtained, as shown in fig. 5, that is, the account currently in the login state is the second account 109, the account name (or nickname, short name, etc.) of the second account is displayed on the right side of the second account 109, an editing control 117 for setting the account data of the second account 109 is also displayed, and an adding control 118 for adding a friend (or public number) is displayed when the second account 109 is in the login state.
It should be noted that, after the switching between different accounts is completed, the display contents of the designated function interface corresponding to the account may be the same or different. In this embodiment, the account that can be used for switching is an account that has a login record, or is bound with current application software, or has completed identity authentication.
Optionally, in this embodiment, if an unread message corresponding to another account associated with the first account is detected, a prompt icon of the unread message may be displayed at the designated position. For example, a prompt icon of the unread message may be displayed at a position corresponding to the virtual icon corresponding to the first account. It can be understood that, if the account currently in the login state is another account, for example, if the account currently in the login state is the second account, the prompt icon of the unread message may be displayed at a position corresponding to the virtual icon corresponding to the second account.
For example, in a specific application scenario, as shown in fig. 6, the account currently in the login state is account 109, and assuming that other accounts associated with account 109 are account 108 and account 102 (optionally, the number of other accounts associated with account 109 may be greater, and all other accounts associated with account 119 may be viewed by clicking on control 119), a prompt icon (e.g., prompt icon 120 shown in fig. 6) of the unread message may be displayed in the upper right corner of the virtual icon corresponding to account 108. Optionally, the number of unread messages may also be displayed in the prompt icon. For example, the number of unread messages is displayed in the prompt icon 121 of the unread messages displayed in the upper right corner of the virtual icon corresponding to the account 102 (for example, in fig. 6, two unread messages are displayed). Optionally, in this manner, the virtual account icon corresponding to the prompt icon of the unread message may be clicked to enter the corresponding account login interface to process the corresponding unread message.
In the method for switching accounts provided by this embodiment, when the first account is in the login state, the touch operation acting on the designated function interface is responded, and an account switching interface is displayed; then responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target; and then, if an account switching operation instruction is detected, switching the first account in the login state into a second account. Therefore, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the specified function interface under the condition that the first account is in the login state, the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the specified area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 7, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S210: and when the first account is in a login state, if the position of the specified function interface meets a preset condition, responding to touch operation acting on the specified function interface, and displaying an account switching interface.
Optionally, as a mode, when the first account is in the login state, if the position of the designated function interface meets the preset condition, the touch operation acting on the designated function interface may be responded, and the account switching interface is displayed.
For example, in a specific application scenario, as shown in fig. 2, the upper surface of the designated function interface 106 is close to the lower surface of the search control 105, and in this way, the position of the designated function interface satisfies the preset condition. Optionally, if the designated function interface is another interface, the position of the designated function interface needs to correspondingly satisfy a preset condition, where the preset condition may be changed. Under the condition that the position of the designated function interface 106 meets the preset condition, the user finger 107 acts on the designated function interface to slide downwards to trigger the display account switching interface, so that the display account switching interface can be triggered through one-time sliding operation, the account switching operation process is simplified, and the user-friendly experience is enhanced.
As another mode, if the position of the designated function interface does not satisfy the preset condition, the current position of the designated function interface may be obtained, and then the moving direction of the designated function interface is obtained. Optionally, if the movement direction of the designated function interface is the designated direction, a movement scale corresponding to the movement direction may be acquired, and in this manner, if the movement scale satisfies the preset threshold, the account switching interface may be displayed in response to a touch operation applied to the designated function interface. Optionally, if the movement scale does not satisfy the preset threshold, the detection may be continued until the movement scale satisfies the preset threshold. Optionally, if the moving direction of the designated function interface is not the designated direction, the display of the account switching interface may be cancelled.
For example, in one particular application scenario, as shown in FIG. 8, the upper surface of the functionality interface 106 is specified to be a distance d from the lower surface of the search control 105. In this manner, if the user's finger slides (or moves) in the direction a1 in response to the touch on the designated function interface 106, the movement scale corresponding to the direction a1 may be obtained, and optionally, if the movement scale satisfies the preset threshold, it may be considered that the upper surface of the designated function interface 106 and the lower surface of the search control 105 may be closely attached to each other after moving in the corresponding movement scale, and then the account switching interface may be displayed in response to a touch operation applied to the designated function interface. Optionally, if the movement scale does not satisfy the preset threshold, the position of the upper surface of the designated function interface 106 may be continuously detected until the upper surface of the designated function interface 106 is closely attached to the lower surface of the search control 105. Alternatively, if the user's finger slides (or moves) the touch-control designated function interface 106 in the direction of a2, the displayed account switching interface may be cancelled.
Step S220: and responding to the touch operation acted on the account switching interface, and displaying a second account in a designated area in the account switching interface.
Step S230: and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
In the method for switching the account, the position of the designated function interface is judged when the first account is in the login state, and the account switching interface is displayed in response to the touch operation acting on the designated function interface when the position of the designated function interface meets the preset condition; then responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target; and then, if an account switching operation instruction is detected, switching the first account in the login state into a second account. The method and the device have the advantages that the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the interface with the appointed function, the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the appointed area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced.
Referring to fig. 9, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S310: and when the first account is in the login state, responding to a touch gesture acting on the specified function interface, and triggering to display an account switching interface.
The touch gesture may include, but is not limited to, a sliding, clicking, dragging, sliding, and other touch operations.
In one embodiment, when the first account is in the login state, the display of the account switching interface may be triggered in response to a sliding operation applied to the designated function interface in the first direction. The first direction can be understood as a direction which acts on the designated function interface and is far away from the position of the virtual icon corresponding to the first account. For example, as shown in fig. 2, a finger 107 of the user may act on the designated function interface 106 and drag the designated function interface 106 downward to implement triggering of the display of the account switching interface. Optionally, if the instruction function interface is a chat list box, the chat list box may be slid downward to trigger the display account switching interface.
As another embodiment, when the first account is in the login state, the display of the account switching interface may be triggered in response to a click operation performed on a virtual icon corresponding to the first account. For example, as shown in fig. 10, the finger 107 of the user may directly click on the virtual icon corresponding to the first account 102 to jump to the account switching interface.
The jump to the account switching interface can be realized by only sliding the designated function interface or clicking the virtual icon corresponding to the first account, so that the problem of complex operation of account switching is solved, and the efficiency of account switching is improved.
Step S320: and responding to the touch operation acted on the account switching interface, and displaying a second account in a designated area in the account switching interface.
Step S330: and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
According to the method for switching the account, the display account switching interface is triggered by responding to the touch gesture acting on the designated function interface, so that the flexibility of the triggering mode for triggering the display account switching interface is improved. Under the condition that the first account is in a login state, an account switching interface is directly triggered and displayed in a mode of responding to touch operation acting on a specified function interface, so that the back-and-forth skip switching between interfaces is avoided, and after the touch operation acting on the account switching interface is responded, a second account is displayed in a specified area in the account switching interface, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 11, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S410: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S420: and responding to a sliding operation acted on the account switching interface along a second direction, and sliding the second account to the designated area.
Optionally, in this embodiment, the number of accounts used for account switching may be multiple. The second direction matches the arrangement direction of the plurality of accounts. If the plurality of accounts are transversely arranged on the display interface of the electronic device, the second direction may be a left or right direction of the display interface of the electronic device; if the plurality of accounts are vertically arranged on the display interface of the electronic device, the second direction may be an upward or downward direction of the display interface of the electronic device. In this embodiment, the arrangement direction of the plurality of accounts may not be limited.
As one way, the second account may be slid to the designated area in response to a sliding operation applied to the account switching interface in the second direction. For example, as shown in fig. 12, assuming that a plurality of accounts are vertically arranged on the display interface 101 of the electronic device 100, the account for switching may be selected as the second account by sliding a finger 107 of the user up and down along the display interface 101 of the electronic device 100 (or by touching a virtual icon corresponding to each of the plurality of accounts). Alternatively, as shown in fig. 12, if the user slides down along the display interface 101 of the electronic device 100, the second account selection result shown in fig. 13 may be obtained. In fig. 13, the account number 109 is slid to the designated area 110, so that the account number 109 can be regarded as a second account number, and the account number 114 is an account number vertically arranged beside the account number 109 (for example, the virtual icon corresponding to the account number 114 is arranged above the virtual icon corresponding to the account number 109 in fig. 13).
Optionally, after sliding the account 109 to the designated area, if a plurality of accounts are vertically arranged and only three accounts are displayed at a time, the virtual icon corresponding to the account 108 is hidden, and the virtual icon corresponding to the account 114 is displayed above the designated area. Optionally, the number of accounts displayed in each time in the vertically arranged accounts may not be limited. After the second account is moved to the designated area, the user identifier 111 (shown in fig. 12) corresponding to the first account 102 is changed into the user identifier 115 (shown in fig. 13) corresponding to the second account 109, and the setting control 112 (shown in fig. 12) corresponding to the first account 102 is changed into the setting control 116 (shown in fig. 13) corresponding to the second account 109. Similarly, the second account may also be selected in a manner of sliding upward along the display interface of the electronic device, and the principle is similar to the selection of the second account in a manner of sliding downward along the display interface of the electronic device, which is not described herein again.
The target account for switching is selected in a sliding mode, the target account is used as the second account to switch the first account, so that the back-and-forth jump among multiple layers of pages is avoided, and the complexity of account switching is reduced.
Step S430: and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
According to the method for switching the accounts, the second account is moved to the designated area in a sliding operation mode, so that the operation cost caused by multi-layer clicking when the target is selected to switch the accounts in a traditional mode is reduced, and the user interaction experience is enhanced.
Referring to fig. 14, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S510: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S520: and responding to the click operation of the virtual account icon acting on the account switching interface, and moving the second account to the designated area.
As a mode, the second account may be moved to the designated area of the account switching interface by clicking the virtual account icon in response to a click operation of the virtual account icon acting on the account switching interface. Optionally, the clicking in this manner may be to move the second account to the designated area by clicking a virtual icon corresponding to the target account after the target account is selected by sliding. Or, the second account may be selected by a pure click method, and the second account is moved to a designated area of the account switching interface, in which a plurality of accounts may be arranged in a superimposed manner. Optionally, the multiple accounts in the embodiment of the present application may be arranged according to the usage habits (or usage frequency) of the user, for example, the accounts with higher usage frequency are arranged in the multiple accounts at a higher position.
For example, in a specific application scenario, if a target account for switching is selected as a second account by a click operation and the second account is moved to a designated area, in the interface state shown in fig. 2, after a touch operation applied to a designated function interface is responded, an account switching interface shown in fig. 15 may be displayed. In fig. 15, the virtual icon corresponding to the first account 102 may be enlarged from the smaller virtual icon shown in fig. 2 and displayed in the designated area 110. Optionally, by clicking the virtual icon corresponding to the first account 102, the interface state shown in fig. 16 can be obtained, and in fig. 16, the virtual icon corresponding to the account 109 is displayed in the designated area. Correspondingly, the user identifier and the setting control located beside the designated area are changed into the user identifier and the setting control corresponding to the account displayed in the designated area. It can be understood that the user identifiers corresponding to different accounts may be different, and the setting contents of the setting controls corresponding to different accounts may be partially the same, for example, some common (or conventional) setting contents, and optionally, the contents of privacy and the like related to the account may be different, for example, the friend authority and the like.
Alternatively, if the virtual icon corresponding to the account 109 shown in fig. 16 is clicked again, the interface state shown in fig. 17 can be obtained. In fig. 17, the designated area displays a virtual icon corresponding to the account 108, and the right side of the designated area 110 displays the user identifier 122 and the setting control 123 corresponding to the account 108.
Step S530: and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
According to the method for switching the accounts, the second account can be moved to the designated area by clicking the virtual account icon only once, so that the complexity of operation is reduced. Under the condition that the first account is in a login state, an account switching interface is directly triggered and displayed in a mode of responding to touch operation acting on a specified function interface, so that the back-and-forth skip switching between interfaces is avoided, and after the touch operation acting on the account switching interface is responded, a second account is displayed in a specified area in the account switching interface, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 18, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S610: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S620: and responding to a sliding operation acted on the account switching interface along a second direction, and sliding the second account to the designated area.
Step S630: and generating an account switching operation instruction in response to the sliding operation acting on the account switching interface along the third direction.
The third direction may be a direction perpendicular to the arrangement direction of the plurality of accounts. Optionally, if the plurality of accounts are arranged in the display interface of the electronic device in the transverse direction, the third direction may be an upward direction or a downward direction along the display interface of the electronic device; if the accounts are vertically arranged on the display interface of the electronic device, the third direction may be a left or right direction along the display interface of the electronic device. As one way, after sliding the second account to the designated area, an account switching operation instruction may be generated in response to a sliding operation acting on the account switching interface in the third direction.
For example, as shown in fig. 19, if the account 109 is a second account, and it is assumed that a plurality of accounts are vertically arranged on the display interface 101 of the electronic device 100, a virtual icon corresponding to the account 109 may be slid along the left side of the display interface 101 of the electronic device 100 to generate an account switching operation instruction, so as to obtain the interface schematic diagram after the account is replaced as shown in fig. 20. In fig. 20, the account currently in the login state is the account 109 after switching, and the right side of the virtual icon corresponding to the account 109 displays the corresponding account name and the editing control 117 of the account data corresponding to the account 109, and the adding control 118 for adding a friend (or public number). Optionally, in this manner, the switching of the accounts may also be achieved by clicking the switching control 113, and the switching effect is the same as the switching effect of leftward sliding.
As another embodiment, as shown in fig. 21, if the account 108 is the second account, and it is assumed that a plurality of accounts are transversely arranged on the display interface 101 of the electronic device 100, the virtual icon corresponding to the account 109 may be slid up and down along the display interface 101 of the electronic device 100 to generate an account switching operation instruction, so as to obtain the interface diagram after the account is replaced as shown in fig. 22. In fig. 21, 122 is the user id corresponding to the account 108, and 123 is the setting control corresponding to the account 108. In fig. 22, 124 is an editing control of the account data corresponding to the account 108 in the login state after the switching, and 125 is an adding control for adding a friend (or public number) corresponding to the account 108.
Step S640: and switching the first account in the login state to the second account.
According to the method for switching the accounts, the account switching instruction is generated in a sliding operation mode so as to complete switching between different accounts, and after the touch operation acting on the account switching interface is responded, the second account is displayed in the designated area in the account switching interface, so that account switching is easier to operate, the complexity of operation is reduced, account switching is more intuitive and convenient, and further the efficiency of account switching is improved.
Referring to fig. 23, a flowchart of a method for switching accounts according to still another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S710: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S720: and responding to the click operation of the virtual account icon acting on the account switching interface, and moving the second account to the designated area.
Step S730: and generating an account switching operation instruction in response to the sliding operation acting on the account switching interface along the third direction.
In this embodiment, the touch operation for triggering the display of the account switching interface may be sliding or clicking, and similarly, the generation of the account switching operation instruction may be triggered in a sliding or clicking manner, so as to complete switching between different accounts. For example, in this embodiment, after the second account is moved to the designated area by responding to the click operation of the virtual account icon acting on the account switching interface, the account switching operation instruction may be generated by responding to the sliding operation acting on the account switching interface in the third direction.
Step S740: and switching the first account in the login state to the second account.
According to the method for switching the accounts, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the interface with the designated function under the condition that the first account is in the login state, so that the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the designated area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 24, a flowchart of a method for switching accounts according to still another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S810: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S820: and responding to a sliding operation acted on the account switching interface along a second direction, and sliding the second account to the designated area.
Step S830: and responding to the click operation acting on the virtual icon corresponding to the second account to generate an account switching operation instruction.
As a manner, after the second account is slid to the designated area by responding to the sliding operation acting on the account switching interface in the second direction, the account switching operation instruction is generated by responding to the clicking operation acting on the virtual icon corresponding to the second account, so as to complete switching between different accounts.
Step S840: and switching the first account in the login state to the second account.
According to the method for switching the accounts, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the interface with the designated function under the condition that the first account is in the login state, so that the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the designated area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 25, a flowchart of a method for switching accounts according to still another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S910: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S920: and responding to the click operation of the virtual account icon acting on the account switching interface, and moving the second account to the designated area.
Step S930: and responding to the click operation acting on the virtual icon corresponding to the second account to generate an account switching operation instruction.
Step S940: and switching the first account in the login state to the second account.
According to the method for switching the accounts, the account switching interface is directly triggered and displayed in a mode of responding to the touch operation acting on the interface with the designated function under the condition that the first account is in the login state, so that the back-and-forth skip switching between the interfaces is avoided, and the second account is displayed in the designated area in the account switching interface after the touch operation acting on the account switching interface is responded, so that the account switching is easier to operate, and the operation complexity is reduced; by responding to the touch operation acting on the account switching interface, the first account in the login state is switched to the second account under the condition of detecting the account switching operation instruction, so that the account switching becomes more visual and convenient, and the account switching efficiency is improved.
Referring to fig. 26, a flowchart of a method for switching accounts according to still another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S1010: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S1020: and responding to the touch operation acting on the account switching interface, and if the account displayed in the designated area is the third account, displaying an account adding control on the account switching interface.
The third account can be an application program which is not added to the account or an unregistered account. Optionally, the account addition control may be arranged with the multiple accounts, and the account addition control may be arranged at one end of the arrangement list of the multiple accounts, for example, if the multiple accounts are arranged laterally, the account addition control may be arranged at the leftmost end or the rightmost end of the arrangement list of the multiple accounts.
As a mode, if the account displayed in the designated area is the third account, the account addition control may be displayed on the account switching interface.
Step S1030: and responding to a first touch operation acted on the account adding control, and moving the account adding control to the specified area.
The first touch operation may be a sliding operation or a clicking operation.
As an embodiment, as shown in fig. 27, the account switching interface displays an account 102, an account 109, and a third account 126, and if the user's finger 107 slides to the right, the third account 126 can be slid to the designated area 110 as shown in fig. 28, and accordingly, the virtual icon corresponding to the account 102 moves to the right and is displayed after being reduced.
Step S1040: and responding to a second touch operation acted on the account adding control, and displaying an account adding interface.
Optionally, the second touch operation may be a click operation or the like. In the above example, as shown in fig. 28, if the account icon corresponding to the third account 126 displayed in the designated area 110 is clicked, an account addition interface as shown in fig. 29 may be displayed. As shown in fig. 29, the account adding interface includes an account adding control 201, and accounts can be added in various ways, such as "scan login", "scan import account", and "create account", and optionally, if no account needs to be added, the user can click "cancel" to cancel the account.
According to the method for switching the accounts, the account is added through simple operation modes such as sliding and the like, convenience in account adding is improved, and user experience is further improved.
Referring to fig. 30, a flowchart of a method for switching accounts according to another embodiment of the present application is shown, where the embodiment provides a method for switching accounts, which is applicable to a client, and the method includes:
step S1110: and when the first account is in the login state, responding to the touch operation acting on the specified function interface and displaying an account switching interface.
Step S1120: and responding to the touch operation acting on the account switching interface, and if the account displayed in the designated area is the fourth account, displaying an account login control on the account switching interface.
The fourth account may be an account for which a login record does not exist in a certain application program, or an account that is not online, for example, an account that is offline and needs to be logged in again. The fourth account may be arranged at one end of the ordered list of accounts. As a way, after the account switching interface is displayed, a touch operation acting on the account switching interface may be responded, and if the account displayed in the designated area is the fourth account, an account login control may be displayed on the account switching interface.
For example, in a specific application scenario, as shown in fig. 31, assuming that a plurality of accounts are arranged horizontally, the fourth account 202 may be located at the rightmost end of the account arrangement list, in this way, if the user slides the user's hand to the left of the display interface of the electronic device 100, the fourth account 202 (which may also be understood as an account login control) may be moved to the designated area 110 (as shown in fig. 32), and then the account login control may be displayed on the account switching interface.
Step S1130: and responding to a third touch operation acted on the account login control, and moving the account login control to the specified area.
In this embodiment, the third touch operation may be a slide operation or a click operation. Alternatively, moving the account login control to the designated area 110 as shown in FIG. 32 may be accomplished by clicking on the icon of the fourth account 202 as shown in FIG. 31.
Step S1140: and responding to a fourth touch operation acted on the account login control, and displaying an account login interface.
Optionally, the fourth touch operation may be a click operation or an input operation. In the above example, the user can jump to the account login interface shown in fig. 33 by clicking the virtual icon corresponding to the fourth account 202 shown in fig. 32, that is, the account login interface is displayed. Logging in the fourth account can be achieved by inputting a correct password, optionally, the fourth account may be re-input after the password is input incorrectly, or re-input after the digits of individual input errors are deleted, and optionally, the interface shown in fig. 33 may include a control for deleting the fourth account from the electronic device.
According to the method for switching the account, the account can be logged in through simple operation modes such as sliding and the like, the convenience of account logging is improved, and the use experience of a user is further improved.
Referring to fig. 34, which is a block diagram illustrating a structure of an apparatus for switching accounts according to an embodiment of the present application, in this embodiment, an apparatus 1200 for switching accounts is provided, and is operated at a client, where the apparatus 1200 includes: the first display module 1210, the second display module 1220 and the switching module 1230:
the first display module 1210 is configured to, when the first account is in a login state, respond to a touch operation applied to the designated function interface and display an account switching interface.
As a manner, the first display module 1210 may be specifically configured to, when the first account is in a login state, respond to a touch operation applied to the designated function interface if the position of the designated function interface meets a preset condition, and display an account switching interface.
Optionally, the first display module 1210 may be specifically configured to trigger the display of the account switching interface in response to a touch gesture applied to the designated function interface when the first account is in the login state. In one implementation, responding to a touch gesture applied to a designated function interface may include: and responding to the sliding operation acting on the specified function interface along the first direction, and further triggering the display account switching interface. In another implementation, responding to a touch gesture applied to a designated function interface may include: and triggering and displaying an account switching interface in response to the click operation acting on the virtual icon corresponding to the first account.
Optionally, the apparatus 1200 may further include an unread message display unit, configured to display a prompt icon of the unread message at a designated position if an unread message corresponding to another account associated with the first account is detected.
The second display module 1220 is configured to respond to a touch operation performed on the account switching interface, and display a second account in a designated area in the account switching interface.
As a manner, the second display module 1220 may be specifically configured to respond to a sliding operation applied to the account switching interface along a second direction, so as to slide the second account to the designated area. And the second direction is matched with the arrangement direction of the account numbers.
As another mode, the second display module 1220 may be specifically configured to respond to a click operation on a virtual account icon of the account switching interface, and move the second account to the designated area.
Optionally, if the account displayed in the designated area is a third account, displaying an account adding control on the account switching interface; responding to a first touch operation acting on the account adding control, and moving the account adding control to the specified area; and responding to a second touch operation acted on the account adding control, and displaying an account adding interface.
Optionally, if the account displayed in the designated area is a fourth account, displaying an account login control on the account switching interface; responding to a third touch operation acted on the account login control, and moving the account login control to the specified area; and responding to a fourth touch operation acted on the account login control, and displaying an account login interface.
The switching module 1230 is configured to switch the first account in the login state to the second account if an account switching operation instruction is detected.
As one mode, the switching module 1230 may be specifically configured to generate an account switching instruction in response to a sliding operation acting on the account switching interface in the third direction; and switching the first account in the login state to the second account.
As another mode, the switching module 1230 may be specifically configured to respond to a click operation performed on the virtual icon corresponding to the second account, and generate an account switching instruction; and switching the first account in the login state to the second account.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 35, based on the method and the apparatus for switching accounts, an embodiment of the present application further provides an electronic device 100 capable of executing the method for switching accounts. The electronic device 100 comprises a memory 302 and one or more processors 304 (only one shown) coupled to each other, the memory 302 and the processors 304 being connected by a communication line. The memory 302 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 304 can execute the program stored in the memory 302.
Processor 304 may include one or more processing cores, among other things. The processor 304 interfaces with various components throughout the electronic device 100 using various interfaces and circuitry to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 302 and invoking data stored in the memory 302. Alternatively, the processor 304 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 304 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 304, but may be implemented by a single communication chip.
The Memory 302 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the foregoing embodiments, and the like. The data storage area may also store data created by the electronic device 100 during use (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 36, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 1300 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 1300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1300 has storage space for program code 1310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1310 may be compressed, for example, in a suitable form.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (14)

1. A method for switching accounts is characterized in that the method comprises the following steps:
when the first account is in a login state, responding to touch operation acting on a specified function interface, and displaying an account switching interface, wherein if the application software is social software, the specified function interface is a chat list interface or a content setting interface, if the application software is a browser, the specified function interface is a content search interface, and the responding to touch operation acting on the specified function interface, and displaying the account switching interface comprises: when a first account is in a login state, if the position of the specified function interface meets a preset condition, responding to touch operation acting on the specified function interface, and displaying an account switching interface, wherein if the upper surface of the specified function interface is attached to the lower surface of a search control, the position of the specified function interface is judged to meet the preset condition, if the position of the specified function interface does not meet the preset condition, the current position and the moving direction of the specified function interface are obtained, if the moving direction is the specified direction, a moving scale corresponding to the moving direction is obtained, and if the moving scale meets a preset threshold value, responding to the touch operation acting on the specified function interface, and displaying the account switching interface;
responding to touch operation acting on the account switching interface, and displaying a second account in a designated area in the account switching interface, wherein the designated area is used for displaying an account serving as a switching target;
and if an account switching operation instruction is detected, switching the first account in the login state to the second account.
2. The method according to claim 1, wherein the displaying an account switching interface in response to the touch operation applied to the designated function interface comprises:
and triggering the display account switching interface in response to the touch gesture acting on the specified function interface.
3. The method according to claim 2, wherein the triggering of the display account switching interface in response to the touch gesture acting on the designated function interface comprises:
and triggering the display account switching interface in response to the sliding operation acting on the specified function interface along the first direction.
4. The method according to claim 2, wherein the triggering of the display account switching interface in response to the touch gesture acting on the designated function interface comprises:
and triggering and displaying an account switching interface in response to the click operation acting on the virtual icon corresponding to the first account.
5. The method according to claim 1, wherein the displaying a second account in a designated area in the account switching interface in response to the touch operation acting on the account switching interface comprises:
and responding to a sliding operation acted on the account switching interface along a second direction, and sliding the second account to the designated area, wherein the second direction is matched with the arrangement direction of the accounts.
6. The method according to claim 1, wherein the displaying a second account in a designated area in the account switching interface in response to the touch operation acting on the account switching interface comprises:
and responding to the click operation of the virtual account icon acting on the account switching interface, and moving the second account to the designated area.
7. The method according to claim 5 or 6, wherein the switching the first account in the login state to the second account if an account switching operation instruction is detected comprises:
generating an account switching instruction in response to a sliding operation acting on the account switching interface along a third direction;
and switching the first account in the login state to the second account.
8. The method according to claim 5 or 6, wherein the switching the first account in the login state to the second account if an account switching operation instruction is detected comprises:
responding to the click operation acting on the virtual icon corresponding to the second account to generate an account switching instruction;
and switching the first account in the login state to the second account.
9. The method of claim 1, further comprising:
if the account displayed in the designated area is a third account, displaying an account adding control on the account switching interface;
responding to a first touch operation acting on the account adding control, and moving the account adding control to the specified area;
and responding to a second touch operation acted on the account adding control, and displaying an account adding interface.
10. The method of claim 1, further comprising:
if the account displayed in the designated area is a fourth account, displaying an account login control on the account switching interface;
responding to a third touch operation acted on the account login control, and moving the account login control to the specified area;
and responding to a fourth touch operation acted on the account login control, and displaying an account login interface.
11. The method of claim 1, further comprising:
and if the unread messages corresponding to other accounts associated with the first account are detected, displaying a prompt icon of the unread messages at a designated position.
12. An apparatus for switching accounts, the apparatus comprising:
the first display module is used for responding to touch operation acting on a specified function interface and displaying an account switching interface when the first account is in a login state, wherein if the application software is social software, the specified function interface is a chat list interface or a content setting interface, and the response acts on the touch operation of the specified function interface and the displaying of the account switching interface comprises the following steps: when a first account is in a login state, if the position of the specified function interface meets a preset condition, responding to touch operation acting on the specified function interface, and displaying an account switching interface, wherein if the upper surface of the specified function interface is attached to the lower surface of a search control, the position of the specified function interface is judged to meet the preset condition, if the position of the specified function interface does not meet the preset condition, the current position and the moving direction of the specified function interface are obtained, if the moving direction is the specified direction, a moving scale corresponding to the moving direction is obtained, and if the moving scale meets a preset threshold value, responding to the touch operation acting on the specified function interface, and displaying the account switching interface;
the second display module is used for responding to the touch operation acted on the account switching interface and displaying a second account in a designated area in the account switching interface;
and the switching module is used for switching the first account in the login state into the second account if an account switching operation instruction is detected.
13. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-11.
14. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-11.
CN202010081177.4A 2020-02-06 2020-02-06 Method and device for switching accounts and electronic equipment Active CN111290674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010081177.4A CN111290674B (en) 2020-02-06 2020-02-06 Method and device for switching accounts and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010081177.4A CN111290674B (en) 2020-02-06 2020-02-06 Method and device for switching accounts and electronic equipment

Publications (2)

Publication Number Publication Date
CN111290674A CN111290674A (en) 2020-06-16
CN111290674B true CN111290674B (en) 2021-05-21

Family

ID=71023546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010081177.4A Active CN111290674B (en) 2020-02-06 2020-02-06 Method and device for switching accounts and electronic equipment

Country Status (1)

Country Link
CN (1) CN111290674B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420270B (en) * 2021-06-21 2023-05-23 维沃移动通信有限公司 Application program login method and device
CN113783840B (en) * 2021-08-06 2023-06-23 维沃移动通信(杭州)有限公司 Account login method, device, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101788006B1 (en) * 2011-07-18 2017-10-19 엘지전자 주식회사 Remote Controller and Image Display Device Controllable by Remote Controller
US9413556B2 (en) * 2011-06-03 2016-08-09 Apple Inc. Unified account list
CN104735021B (en) * 2013-12-18 2018-12-11 腾讯科技(深圳)有限公司 A kind of account number login method, device and system
CN103927119B (en) * 2014-04-16 2017-06-16 广东欧珀移动通信有限公司 Switch to the method and system at account interface
CN105430183B (en) * 2015-11-12 2019-02-19 广州华多网络科技有限公司 A kind of method and mobile terminal of mobile terminal switching account
CN107070777A (en) * 2017-04-10 2017-08-18 上海哇嗨网络科技有限公司 The many identity process of user and its device in immediate communication tool
CN107272906A (en) * 2017-06-30 2017-10-20 努比亚技术有限公司 Using many account display control methods and mobile terminal
CN109062489B (en) * 2018-07-19 2020-08-25 腾讯科技(深圳)有限公司 Message processing method, message processing device, storage medium and electronic device

Also Published As

Publication number Publication date
CN111290674A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN108027706B (en) Application interface display method and terminal equipment
CN102999263B (en) Electronic installation and the method for background of electronic installation is provided
CA2813172C (en) Multiple-access-level lock screen
KR20160041899A (en) Conversation merging method and mobile terminal
CN109690481A (en) The customization of dynamic function row
KR20140131863A (en) Terminal device and method for displaying an associated window thereof
JP2011060281A (en) Mobile terminal to display composite menu information
CN107196846B (en) Group chat method and mobile terminal
WO2006095488A1 (en) Information processing device, image movement instructing method, and information storage medium
CN102640114B (en) Method for directly manipulating incoming interactions in an instant communication client application
CN105824693B (en) A kind of control method that multitask is shown and mobile terminal
CN111290674B (en) Method and device for switching accounts and electronic equipment
WO2022052832A1 (en) Interface display method and apparatus for application program, device and medium
CN111767108A (en) Application program label generation method, application interface display method and device
WO2023155734A1 (en) Playing method, playing apparatus, and computer-readable storage medium
CN107066199A (en) The exchange method and device sent for message
EP3757831B1 (en) Fingerprint event processing method, apparatus, and terminal
CN111538551A (en) Information processing method and electronic equipment
CN103383622A (en) Touch screen mobile terminal and response operation method thereof
EP2775671A1 (en) Method and apparatus for sending and receiving messages
CN111756556B (en) Message pushing method and device and terminal
CN114489913A (en) Interaction method, interaction device and electronic equipment
CN112487371B (en) Chat session display method, chat session display device, chat session display terminal and storage medium
CN112054951B (en) Resource transmission method, device, terminal and medium
US20140009380A1 (en) Electronic apparatus and method of storing activity thereof

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200616

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000031

Denomination of invention: Method, device and electronic equipment for switching account number

License type: Common License

Record date: 20210125

GR01 Patent grant
GR01 Patent grant