Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution. It will be further understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms.
These terms are only used to distinguish one element from another element. For example, a first menu item can be referred to as a second menu item, and similarly, a second menu item can also be referred to as a first menu item, without departing from the scope of the various examples. The first menu item and the second menu item may both be menu items and, in some cases, may be separate and distinct menu items.
Wherein at least one means one or more, for example, at least one menu item may be an integer number of menu items of one or more of any one, two menu items, three menu items, and the like. And a plurality refers to two or more, for example, the plurality of menu items may be an integer number of menu items of two or more, three menu items, or the like.
An implementation environment of the page display method provided in the embodiment of the present application is described below.
Fig. 1 is a schematic diagram of an implementation environment of a page display method according to an embodiment of the present application. The implementation environment comprises: a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
The terminal 101 has a display function. In some embodiments, the terminal 101 is a smart phone, a tablet computer, a notebook computer, a desktop computer, an electronic display screen, etc., but is not limited thereto. The terminal 101 is capable of installing and running an application. In some embodiments, the application is a game-type application, a social-type application, a shopping-type application, an educational-type application, a video-type application, an online meeting-type application, a reading-type application, a search-type application, and the like, which embodiments of the present application are not limited in this regard. Illustratively, the terminal 101 is a terminal used by a user, and a user account of the user is registered in an application running in the terminal 101.
The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The server 102 is used to provide background services for applications running on the terminal 101.
In some embodiments, during the display of the page, the server 102 takes on primary computing work and the terminal 101 takes on secondary computing work; alternatively, the server 102 takes on secondary computing work and the terminal 101 takes on primary computing work; alternatively, the server 102 or the terminal 101, respectively, can solely undertake computing work.
In some embodiments, terminal 101 refers broadly to one of a plurality of terminals, this embodiment being illustrated only by terminal 101. Those skilled in the art will appreciate that the number of terminals 101 described above can be greater. For example, the terminal 101 may be several tens or hundreds, or more, and the implementation environment of the page display method may further include other terminals. The number of terminals and the device type are not limited in the embodiment of the present application.
In some embodiments, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the internet, but can be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, the data exchanged over the network is represented using techniques and/or formats including hypertext markup language (Hyper Text Markup Language, HTML), extensible markup language (Extensible Markup Language, XML), and the like. In addition, all or some of the links can be encrypted using conventional encryption techniques such as secure socket layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet Protocol Security, IPsec), and the like. In other embodiments, custom and/or dedicated data communication techniques can also be used in place of or in addition to the data communication techniques described above.
The embodiment of the application provides a page display method which can be applied to a scene of realizing page switching based on a page navigation bar. The page navigation bar refers to a series of menu items located at the bottom, top or side areas of the application interface, and each menu item functions as a link site, a respective page within the application program, a page element in the page, or a next level menu item. The user achieves the page switch by triggering the individual menu items. Illustratively, for applications where multi-level navigation exists, the page navigation bar thereof typically includes multi-level menu items. Taking an application program with two-level navigation as an example, the page navigation bar includes two-level menu items, namely a first-level menu item and a second-level menu item (in some embodiments, also referred to as an upper-level menu item and a lower-level menu item, etc., which are not limited thereto), wherein, for any one of the first-level menu items, the first-level menu item corresponds to a plurality of second-level menu items, and the first-level menu item functions to link the second-level menu items. For example, the primary menu item is a, and corresponds to a plurality of secondary menu items A1, A2, and A3, and the user triggers the display of the plurality of secondary menu items A1, A2, and A3 by triggering the primary menu item a, thereby entering a corresponding page based on any one of the secondary menu items.
Based on the above, the embodiment of the application provides a scheme for controlling a page to realize quick switching by operating menu items in a page navigation bar in an application program based on multi-level navigation. This scheme is described below based on the following several embodiments.
Referring to fig. 2, fig. 2 is a flowchart of a page display method according to an embodiment of the present application, and as shown in fig. 2, in the embodiment of the present application, an application to a terminal is described as an example. Illustratively, the page display method includes the steps of:
201. the terminal displays at least one primary menu item in the page navigation bar.
In the embodiment of the application, the terminal is provided with the target application program, and an application interface of the target application program can be displayed, wherein the application interface comprises a page navigation bar for realizing a multi-level navigation function for pages, namely, a user can switch the pages displayed on the terminal screen through the page navigation bar. The page navigation bar includes multiple levels of menu items, which are respectively named as a first level menu item, a second level menu item, an N level menu item, and the like (N is a positive integer) according to a menu item level in the embodiment of the present application, where a subsequent level menu is a sub-menu item of a previous level menu, which is not limited. In some embodiments, the page navigation field is located at the bottom, top, or side regions of the application interface, etc., without limitation.
202. The terminal responds to the selection operation of the first primary menu item, and based on the display position of the first primary menu item, a plurality of secondary menu items corresponding to the first primary menu item are displayed in the page navigation column.
In the embodiment of the present application, the first level menu item refers to any one level menu item of the at least one level menu item. The first primary menu item corresponds to a plurality of secondary menu items, the terminal responds to the selection operation of the first primary menu item, and the plurality of secondary menu items are displayed in the page navigation bar based on the display position of the first primary menu item, that is, the terminal can display a plurality of secondary menu items corresponding to any one primary menu item in the page navigation bar when the user selects the primary menu item.
In some embodiments, the selected operation is a default trigger operation of the target application, e.g., a single click trigger operation, a double click trigger operation, a long press trigger operation, or a trigger operation based on speech recognition, etc. In other embodiments, the selected operation is a trigger operation preset by a user, for example, the target application program provides a setting function for the selected operation, through which the user can select a favorite/commonly used trigger operation as the selected operation for the first-level menu item, which is not limited in the embodiments of the present application.
203. And the terminal displays the page corresponding to the target secondary menu item in the plurality of secondary menu items.
In this embodiment of the present application, the target secondary menu item refers to a default secondary menu item or a preset secondary menu item of the multiple secondary menu items (specific processes will be described in the subsequent embodiments and are not described herein again). For the plurality of secondary menu items, each secondary menu item corresponds to one page, and when the plurality of secondary menu items are displayed in the page navigation bar, the terminal displays the page corresponding to the target secondary menu item, that is, when the plurality of secondary menu items are displayed in real time, the terminal can synchronously display the page corresponding to one secondary menu item. Illustratively, taking the example that the page navigation bar is positioned at the bottom area of the application interface, the application interface further comprises a page display area, the page display area is positioned above the page navigation bar, the terminal responds to the selected operation of the first primary operation to display a plurality of secondary menu items in the page navigation bar, and the page corresponding to the target secondary menu item is displayed in the page display area.
In summary, in the page display method provided by the embodiment of the application, for the page navigation bar with the multi-level menu item, the terminal can respond to the selection operation of the first-level menu item, and synchronously display a plurality of second-level menu items corresponding to the first-level menu item and pages corresponding to the target second-level menu item based on the display position of the first-level menu item, so that the operation required when switching from the page corresponding to the first-level menu item to the page corresponding to the second-level menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
Through the embodiment shown in fig. 2, the basic flow of the page display method provided in the application is described. The page display method provided in the present application is further described below based on another embodiment. Referring to fig. 3, fig. 3 is a flowchart of a page display method according to an embodiment of the present application, and as shown in fig. 3, in the embodiment of the present application, an application to a terminal is described as an example. Illustratively, the page display method includes the steps of:
301. the terminal displays at least one primary menu item in the page navigation bar.
In the embodiment of the application, the terminal displays the target page under the condition that at least one first-level menu item is displayed in the page navigation bar. In some embodiments, the target page is a default page of the target application program, for example, taking the target application program running on the terminal as a game application program, and the target page is a main page corresponding to the game hall. In other embodiments, each level menu item corresponds to a page, and the target page is a page corresponding to any level menu item, for example, in the case where the page navigation bar includes a plurality of level menu items, the target page is a page corresponding to a level menu item arranged first, or the target page is a page corresponding to a level menu item arranged in the middle, or the target page is a page corresponding to a level menu item selected by a user, and the target page is not limited to this.
In some embodiments, the terminal displays the at least one level one menu item in the page navigation bar in a lateral direction. The terminal displays the at least one first-level menu item in the page navigation bar in sequence from left to right (or from right to left), which is not limited in the display manner of the first-level menu item in the embodiment of the present application.
For example, referring to fig. 4, fig. 4 is a schematic diagram of a page navigation bar provided according to an embodiment of the present application, where, as shown in fig. 4, the page navigation bar is located in a bottom area of an application interface, and includes 3 primary menu items A, B, C, respectively, and the terminal displays the primary menu items laterally in the page navigation bar. In addition, the application interface also comprises a page display area, the page display area is positioned above the page navigation bar, and the terminal displays a target page in the page display area, wherein the target page is a page corresponding to the first-level menu item A.
302. The terminal responds to the selection operation of the first primary menu item, and based on the display position of the first primary menu item, a plurality of secondary menu items corresponding to the first primary menu item are displayed in the page navigation column.
In the embodiment of the application, the terminal responds to the selection operation of the first primary menu item, determines a plurality of secondary menu items corresponding to the first primary menu item, and displays the plurality of secondary menu items in the page navigation bar based on the display position of the first primary menu item. In some embodiments, the terminal responds to the selected operation to obtain menu item information corresponding to the first primary menu item, the menu item information is used for indicating whether the first primary menu item has a corresponding secondary menu item, and the terminal determines the plurality of secondary menu items and displays the plurality of secondary menu items in the page navigation bar when the menu item information indicates that the first primary menu item has the corresponding secondary menu item. It should be noted that, in some embodiments, in a case where the first primary menu item does not have a corresponding secondary menu item, the terminal displays the first primary menu item as a selected state in the page navigation bar, and displays a page corresponding to the first primary menu item.
In some embodiments, the terminal displays the first primary menu item in a first display style and displays the plurality of secondary menu items in a second display style in the page navigation bar, the first display style and the second display style being different. The first display style is used for indicating that the menu item level to which the first primary menu item belongs is one level, and the second display style is used for indicating that the menu item level to which the plurality of secondary menu items belong is two level. In some embodiments, the first display style is a default display style of a menu item of the target application program, and the second display style is a preset display style of the target application program, which can be set based on actual requirements.
In some embodiments, the second display style includes at least one of: brackets, borders, shadows, highlights, and text bolded. The second display pattern described above is schematically described below with reference to fig. 5. Fig. 5 is a schematic diagram of another page navigation bar provided according to an embodiment of the present application. As shown in fig. 5, the page navigation bar includes 3 primary menu items, A, B, C, where a first primary menu item a corresponds to a plurality of secondary menu items A1, A2, and A3, and the terminal displays the primary menu item in a first display mode (e.g., a menu item default display mode) and displays the plurality of secondary menu items in a second display mode. Schematically, as shown in fig. 5 (a), adding brackets means adding "[ ]" to the plurality of secondary menu items. As shown in fig. 5 (b), adding a frame means adding a frame around the plurality of secondary menu items. As shown in fig. 5 (c), shading means adding background lines, background patterns, or the like to the plurality of secondary menu items. As shown in fig. 5 (d), highlighting means adding a background color or turning up the display brightness or the like on the plurality of secondary menu items. As shown in fig. 5 (e), the text thickening means that in the case where the menu item is text, the thickness of the text line is adjusted so that the text display of the secondary menu item is distinguished from the text display of the primary menu item. It should be understood that the foregoing examples are merely illustrative, and the embodiments of the present application are not limited to the manner of indicating the menu item levels through different display styles, and any manner of distinguishing the menu item displays of different levels may be used in the foregoing display process. By means of the mode that menu items of different levels are displayed in a distinguishing mode, the page navigation bar is convenient for a user to intuitively and conveniently understand the level relation between functions of a target application program (the level relation between a parent level menu item and a child level menu item can be understood), and therefore human-computer interaction efficiency is improved.
In some embodiments, the terminal displays the plurality of secondary menu items in the page navigation bar in a laterally expanded form. Schematically, the terminal displays the plurality of secondary menu items in the page navigation bar in a form of being spread out laterally to the left; or the terminal displays the plurality of secondary menu items in the page navigation bar in a form of being spread out laterally to the right. For example, taking a game application program displayed by taking a target application program as a horizontal screen as an example, the page navigation bar is transversely positioned at the bottom area of the game interface, the terminal responds to the selection operation of the first primary menu item, and the plurality of secondary menu items are displayed in the page navigation bar in a form of transversely unfolding rightward, which is not limited in the embodiment of the application.
In some embodiments, the terminal displays the plurality of secondary menu items in a vertical arrangement in the page navigation bar. The terminal displays the plurality of secondary menu items in a downward vertical arrangement in the page navigation bar, or displays the plurality of secondary menu items in an upward vertical arrangement in the page navigation bar. For example, taking a video application program with a target application program as a vertical screen display as an example, the page navigation bar is laterally located in a bottom area of the video playing interface, the terminal responds to the selection operation of the first primary menu item, and the plurality of secondary menu items are displayed in the page navigation bar in a downward vertical arrangement mode, which is not limited in the embodiment of the present application.
In some embodiments, the terminal synchronously displays the first primary menu item and the plurality of secondary menu items in the page navigation bar based on the display position of the first primary menu item, or the terminal hides the first primary menu item in the page navigation bar and displays the plurality of secondary menu items. The following describes a manner in which the terminal displays the plurality of secondary menu items in the page navigation bar, including any of the following:
(1) And the terminal conceals the first primary menu item in the page navigation bar based on the display position of the first primary menu item, and displays the plurality of secondary menu items on the original display position of the first primary menu item. For example, referring to fig. 6, fig. 6 is a schematic diagram of a display of secondary menu items provided in accordance with an embodiment of the present application. As shown in fig. 6 (a), the page navigation bar includes 3 primary menu items A, B, C, respectively, wherein a first primary menu item a corresponds to a plurality of secondary menu items A1, A2 and A3, the terminal conceals the first primary menu item a in response to a selection operation of the first primary menu item a, and displays the plurality of secondary menu items A1, A2 and A3 on an original display position of the first primary menu item. In this way, the terminal displays the corresponding second-level menu item (which can be understood as the position of the first-level menu item to which the second-level menu item "occupies" in the original display position of the first-level menu item), thereby saving the display space of the page navigation bar, increasing the number of menu items that the page navigation bar can accommodate, and improving the visual attractiveness of the page navigation bar.
(2) The terminal displays the plurality of second-level menu items based on the display position of the first-level menu item on the basis of displaying the first-level menu item in the page navigation bar. Schematically, with continued reference to fig. 6, as shown in fig. 6 (b), the terminal displays the plurality of secondary menu items A1, A2, and A3 in a right-hand area of the first primary menu item a in response to a selection operation of the first primary menu item. By the method, the terminal displays the corresponding second-level menu item in the vicinity of the first-level menu item, so that the integrity of the page navigation bar is ensured, and a user can intuitively operate the page navigation bar conveniently.
303. And the terminal displays the page corresponding to the target secondary menu item in the plurality of secondary menu items.
In the embodiment of the application, the terminal displays the page corresponding to the target secondary menu item, including any one of the following cases:
(1) And the terminal displays the page corresponding to the default secondary menu item in the secondary menu items.
The default secondary menu item is the first secondary menu item in the plurality of secondary menu items. For example, taking the first primary menu item a as an example for 3 secondary menu items A1, A2, A3, the default secondary menu item is A1. In some embodiments, the default secondary menu item is a secondary menu item arranged in the middle among the plurality of secondary menu items, and so on, which is not limited by the embodiments of the present application. In other embodiments, the default secondary menu item provides a secondary menu item preset by the user, for example, the target application program provides a setting function for the page navigation bar, and the user can select the secondary menu item which is liked/commonly used by the user as the default menu item through the setting function, so that the page corresponding to the default secondary menu item is directly displayed each time the subsequent user selects the first primary menu item, thereby meeting the personalized requirement of the user.
(2) And the terminal displays the page corresponding to the secondary menu item with the largest number of times selected in the first time period in the plurality of secondary menu items.
Wherein the first time period is a preset time period. In some embodiments, the terminal obtains historical selection information of the plurality of secondary menu items, the historical selection information indicating the number of times the secondary menu item is selected in the first period, the terminal determines the secondary menu item with the largest number of times selected in the first period based on the historical selection information, and displays a page corresponding to the secondary menu item. For example, the first period refers to a period of time of approximately 1 hour, that is, the terminal determines a page corresponding to the secondary menu item to be displayed according to the number of times the plurality of secondary menu items are selected by the user in approximately 1 hour. In this process, the terminal can obtain the historical selection information of the second menu item according to the moment when the user selects the first menu item. In other embodiments, the terminal can periodically obtain historical selection information of the plurality of secondary menu items, thereby pre-determining the secondary menu item that is selected the most number of times in the first time period. For example, the terminal obtains historical selection information of the plurality of secondary menu items within 24 hours of the previous day at the zero point every day, thereby determining a page corresponding to the secondary menu item to be displayed on the current day. In addition, the history selection information may be obtained based on the user account number currently logged in by the terminal, or may be obtained based on all user account numbers of the target application program, which is not limited in the embodiment of the present application. By the mode, the terminal can display the page corresponding to the secondary menu item frequently browsed by the user under the condition that the user selects the first primary menu item, and the man-machine interaction efficiency is improved.
It should be noted that, the terminal synchronously executes the above steps 302 and 303. Through steps 301 to 303, for the page navigation bar with the multi-level menu item, the terminal can respond to the selection operation of the first-level menu item and synchronously display a plurality of second-level menu items corresponding to the first-level menu item and pages corresponding to the target second-level menu item. That is, the above-described procedure can be understood as a procedure in which the terminal expands its corresponding secondary menu item according to the user's operation on the primary menu item. By the method, the operation of switching from the page corresponding to the first-level menu item to the page corresponding to the second-level menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved. In addition, through the mode of synchronously displaying the multi-level menu items (which can be understood as integrating the multi-level menu items), more display areas on the application interface can be reserved for the corresponding pages, so that the interface utilization rate is effectively improved.
In some embodiments, the terminal is also capable of switching to display different pages based on the expanded secondary menu item and collapsing the expanded secondary menu item, as described below by optional implementation of steps 304 and 305:
304. And the terminal responds to the selection operation of a first secondary menu item in the plurality of secondary menu items and displays a page corresponding to the first secondary menu item.
Wherein the first secondary menu item refers to any one of the plurality of secondary menu items other than the target secondary menu item. And the terminal responds to the selection operation of the first secondary menu item, and displays the page corresponding to the target secondary menu item as the page corresponding to the first secondary menu item in a switching manner.
Through step 304, the terminal can switch and display pages corresponding to different secondary menu items according to the selected operation of the user on the expanded secondary menu items.
305. And the terminal responds to the selected operation of the hollow area in the page navigation bar, and the plurality of secondary menu items are hidden in the page navigation bar.
Under the condition that the terminal displays a plurality of secondary menu items in the page navigation bar, the terminal responds to the selection operation of the blank area in the page navigation bar, and the process of hiding the plurality of secondary menu items in the page navigation bar can also be understood as a process of collecting the unfolded secondary menu items according to the selection operation (such as click trigger operation) of the user on the blank area in the page navigation bar.
In some embodiments, the terminal can display the plurality of secondary menu items based on displaying the first primary menu item in the page navigation bar, as shown in step 302 above. Illustratively, in the case where the first primary menu item is displayed in the page navigation bar, the terminal conceals the plurality of secondary menu items in the page navigation bar in response to a selected operation on the first primary menu item. This process may also be understood as a process in which the terminal packs up the expanded secondary menu items according to a re-selection operation of the first primary menu item by the user.
It should be noted that, as shown in the above step 302, the terminal is further capable of hiding the first primary menu item in the page navigation bar and displaying the plurality of secondary menu items at the original display position of the first primary menu item, in which case, the terminal hides the plurality of secondary menu items in the page navigation bar in response to the selection operation of the hollow region in the page navigation bar. Or in the case that a plurality of first-level menu items exist, the terminal conceals the plurality of second-level menu items in the page navigation bar in response to a selection operation of a second-level menu item, wherein the second-level menu item is a first-level menu item other than the first-level menu item in the plurality of first-level menu items. Further, the terminal displays a plurality of second level menu items corresponding to the second level menu item and corresponding pages, and this process is the same as the above steps 301 to 303, so that the description thereof will not be repeated here.
In summary, in the page display method provided by the embodiment of the application, for the page navigation bar with the multi-level menu item, the terminal can respond to the selection operation of the first-level menu item, and synchronously display a plurality of second-level menu items corresponding to the first-level menu item and pages corresponding to the target second-level menu item based on the display position of the first-level menu item, so that the operation required when switching from the page corresponding to the first-level menu item to the page corresponding to the second-level menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved. Further, by means of the mode of synchronously displaying the multi-level menu items, more display areas on the application interface can be reserved for corresponding pages, and therefore the interface utilization rate is effectively improved. In addition, in some embodiments, through the mode of distinguishing and displaying the menu items of different levels, the page navigation bar is convenient for a user to intuitively and conveniently understand the level relationship between functions of the target application program while the multi-level menu items are displayed in a centralized manner, so that the man-machine interaction efficiency is improved. In contrast to the prior art, for an application program with multi-level navigation, when a page navigation bar comprises multi-level menu items, the multi-level menu items often occupy more space in an application interface, so that the interface utilization rate is low, and when the multi-level menu items are distributed on the application interface in a scattered manner, a user is difficult to intuitively and conveniently understand the hierarchical relationship between functions of a target application program, so that the human-computer interaction efficiency is low.
The page display method provided in the present application is described through the embodiments shown in fig. 2 and fig. 3. In some embodiments, in the case that the number of secondary menu items corresponding to the first primary menu item is large, the terminal displays a portion of the secondary menu items, and the user browses the remaining secondary menu items by performing a sliding operation on the page navigation bar. This process is described below based on another embodiment. Referring to fig. 7, fig. 7 is a flowchart of a page display method according to an embodiment of the present application, and as shown in fig. 7, in the embodiment of the present application, an application to a terminal is described as an example. Illustratively, the page display method includes the steps of:
701. the terminal displays at least one primary menu item in the page navigation bar.
The process is the same as the above steps 201 and 301, and thus will not be repeated.
702. The terminal responds to the selection operation of the first primary menu item, and based on the display position of the first primary menu item, the target number of secondary menu items are displayed in the page navigation bar under the condition that the number of the secondary menu items corresponding to the first primary menu item is larger than the target number.
The target number is a preset number of target application programs, and can be adjusted according to actual requirements, for example, the target number is 3, which is not limited. In some embodiments, in response to the selection operation, the terminal displays the second-level menu items arranged in the first M bits in a default order of the plurality of second-level menu items in a case where the number of the plurality of second-level menu items is greater than the target number (M is a positive integer). For example, the first level menu item is a, its corresponding plurality of level two menu items are A1, A2, A3, A4, A5, respectively, the target number is 3, and the terminal displays the level two menu items A1, A2, A3 arranged in the first 3 bits in the page navigation bar in response to the selection operation.
In other embodiments, the target number of secondary menu items is determined based on historical selection information for the plurality of secondary menu items. Illustratively, the terminal determines the target number of secondary menu items from the plurality of secondary menu items based on the number of times the plurality of secondary menu items are selected within the second time period in a case where the number of the plurality of secondary menu items is greater than the target number in response to the selection operation; the target number of secondary menu items is displayed in the page navigation bar in order of the target number of secondary menu items being selected from more to less times in the second time period. Wherein the second time period is a preset time period. It should be noted that, the process of determining the target number of the second level menu items by the terminal based on the history selection information is the same as the process of determining the target second level menu items by the terminal based on the history selection information in step 303, so that redundant description is omitted. For example, the first primary menu item is a, A1, A2, A3, A4, A5 are respectively corresponding to a plurality of secondary menu items, the target number is 3, the second time period is approximately 1 hour, the terminal responds to the selection operation to obtain historical selection information of the plurality of secondary menu items, based on the historical selection information, it is determined that the times of selecting the plurality of secondary menu items in approximately 1 hour are respectively A2, A1, A3, A5, A4 according to the order of more than 1 hour, and then the terminal displays the secondary menu items A2, A1, A3 arranged in the first 3 bits in the page navigation column. Of course, in some embodiments, the terminal can periodically obtain the historical selection information of the plurality of secondary menu items, thereby determining a target number of secondary menu items in advance, which is not limited. By the mode, the terminal can display the target number of secondary menu items frequently selected by the user under the condition that the user selects the first primary menu item, so that the man-machine interaction efficiency is improved.
703. And the terminal displays the pages corresponding to the target secondary menu items in the target number of secondary menu items.
The process is the same as the above-mentioned steps 203 and 303, so that redundant description is omitted.
704. The terminal responds to the sliding operation of the target number of secondary menu items, and displays the secondary menu items which are not displayed in the plurality of secondary menu items in the page navigation bar based on the sliding direction of the sliding operation.
The terminal can detect the sliding operation of the user on the target number of secondary menu items to determine the sliding direction of the sliding operation, so that the corresponding secondary menu items are displayed. For example, the terminal displays a target number of secondary menu items laterally in the page navigation bar, and the terminal sequentially displays secondary menu items not previously displayed among the plurality of secondary menu items in response to a leftward sliding operation on the target number of secondary menu items. In some embodiments, the terminal sequentially displays pages corresponding to the secondary menu items based on the sequence of displaying the secondary menu items which are not displayed in the prior art in the plurality of secondary menu items, so that a user can synchronously browse the pages corresponding to the secondary menu items under the condition of implementing the sliding operation, and the man-machine interaction efficiency is improved.
Referring to fig. 8 schematically, fig. 8 is a schematic diagram of a page navigation bar according to an embodiment of the present application. As shown in fig. 8, the first primary menu item is a, the corresponding multiple secondary menu items are A1, A2, A3, A4, A5, the target number is 3, and the terminal displays the secondary menu items A1, A2, A3 arranged in the first 3 bits and the page corresponding to the display A1 in the page navigation bar in response to the selected operation. The terminal sequentially displays the secondary menu items A4 and A5 in response to the leftward sliding operation, and displays a page corresponding to A4 in the case of displaying the secondary menu item A4 and displays a page corresponding to A5 in the case of displaying the secondary menu item A5. It should be noted that, in some embodiments, the terminal may also be capable of displaying a expansion control for the plurality of secondary menu items in the page navigation bar, where the terminal displays a secondary menu item that is not displayed in the plurality of secondary menu items in response to a selection operation of the expansion control, and the embodiment of the present application is not limited to this.
In addition, based on the same procedure as the steps 304 and 305, the terminal can switch and display different pages based on the expanded secondary menu item and stow the expanded secondary menu item, which will not be described in detail herein.
In summary, in the page display method provided by the embodiment of the application, for the page navigation bar with the multi-level menu item, the terminal can respond to the selection operation of the first-level menu item, and synchronously display a plurality of second-level menu items corresponding to the first-level menu item and pages corresponding to the target second-level menu item based on the display position of the first-level menu item, so that the operation required when switching from the page corresponding to the first-level menu item to the page corresponding to the second-level menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved. In addition, when the number of the plurality of secondary menu items is greater than the target number, the terminal can display part of the secondary menu items first, and the user browses the rest secondary menu items by performing a sliding operation on the page navigation bar, thereby saving the display space of the page navigation bar.
By the embodiments shown in fig. 2, fig. 3, and fig. 7, the page display mode provided in the embodiment of the present application is described in the case that the page navigation bar includes at least one level one menu item. In some embodiments, in the event that there are multiple primary menu items, the terminal displays the multiple secondary menu items based on the ordering of the display positions of the first primary menu item in the page navigation bar. This process is described below based on another embodiment. Referring to fig. 9, fig. 9 is a flowchart of a page display method according to an embodiment of the present application, and as shown in fig. 9, in the embodiment of the present application, an application to a terminal is described as an example. Illustratively, the page display method includes the steps of:
901. The terminal displays a plurality of primary menu items in a page navigation bar.
The process is the same as the above steps 201 and 301, and thus will not be repeated.
902. The terminal responds to the selection operation of the first primary menu item, and based on the display position of the first primary menu item, a plurality of secondary menu items corresponding to the first primary menu item are displayed in the page navigation column.
The process that the terminal displays the plurality of second-level menu items in the page navigation bar based on the display position of the first-level menu item comprises any one of the following conditions:
(1) And the terminal displays the plurality of second-level menu items at the display position of the first-level menu item in the page navigation bar. The terminal hides the first primary menu item in the page navigation bar and displays the plurality of secondary menu items at the original display position of the first primary menu item, or displays the plurality of secondary menu items on the basis of displaying the first primary menu item, as shown in step 302 above. Referring to fig. 10 schematically, fig. 10 is a schematic diagram showing a secondary menu item provided according to an embodiment of the present application. As shown in fig. 10 (a), the page navigation bar includes 3 first-level menu items A, B, C, respectively, wherein a first-level menu item C is located at a 3 rd display position in the page navigation bar, corresponds to a plurality of second-level menu items C1, C2 and C3, and the terminal displays the plurality of second-level menu items in the page navigation bar based on the display position of the first-level menu item in response to a selection operation of the first-level menu item.
(2) And displaying the plurality of secondary menu items at a target display position of the terminal in the page navigation bar, wherein the target display position is a display position corresponding to the first-order menu item in the page navigation bar. Schematically, with continued reference to fig. 10, as shown in fig. 10 (b), the page navigation bar includes 3 primary menu items, A, B, C respectively, where the first primary menu item C is located at the 3 rd display position in the page navigation bar, corresponds to the plurality of secondary menu items C1, C2 and C3, and the target display position is the display position corresponding to the primary menu item a. The terminal displays the plurality of second-level menu items at a target display position in response to a selection operation of the first-level menu item. The process can also be understood as that a plurality of secondary menu items corresponding to the primary menu item selected by the user are subjected to top setting, so that the user can further operate the plurality of secondary menu items, and the man-machine interaction efficiency is improved. Of course, in some embodiments, the target display position can also be set by a user, which is not limited.
903. And the terminal displays the page corresponding to the target secondary menu item in the plurality of secondary menu items.
The process is the same as the above-mentioned steps 203 and 303, so that redundant description is omitted.
In addition, based on the same procedure as the steps 304 and 305, the terminal can switch and display different pages based on the expanded secondary menu item and stow the expanded secondary menu item, which will not be described in detail herein.
In summary, in the page display method provided by the embodiment of the application, for the page navigation bar with the multi-level menu item, the terminal can respond to the selection operation of the first-level menu item, and synchronously display a plurality of second-level menu items corresponding to the first-level menu item and pages corresponding to the target second-level menu item based on the display position of the first-level menu item, so that the operation required when switching from the page corresponding to the first-level menu item to the page corresponding to the second-level menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved. In addition, under the condition that a plurality of first-level menu items exist, the terminal can adjust the display positions of the second-level menu items based on the display positions of the selected first-level menu items, so that the man-machine interaction efficiency is further improved.
Through the above description of fig. 2 to fig. 10, the page display method provided in the embodiment of the present application is described in detail. The application scenario of the page display method provided in the embodiment of the present application is described below. The page display method can be applied to any application program with a multi-level navigation function for pages, such as a game scene, a video browsing scene, an online conference scene, and the like. These application scenarios are briefly described below.
Scene one, game scene.
For example, referring to fig. 11, fig. 11 is an application scenario schematic diagram of a page display method according to an embodiment of the present application. As shown in fig. 11, in the game application, the game interface includes a page navigation bar including a plurality of first-level menu items "board match", "recommended lineup", and "graphic arts" for the virtual scene, after the user clicks the first-level menu item "graphic arts", the "graphic arts" is hidden in the page navigation bar of the game interface, and at the original display position of the "graphic arts", a plurality of second-level menu items "collarband", "hero", "triage", and "equipment" corresponding to the "graphic arts" are displayed, and a page corresponding to the "collarband" is displayed in the page display area of the game interface. By the method, the operation of switching from the game main page to the page corresponding to the secondary menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
Scene two, video browsing scene.
For example, referring to fig. 12, fig. 12 is an application scenario schematic diagram of a page display method according to an embodiment of the present application. As shown in fig. 12, in the video application program, the video playing interface includes a page navigation bar, where the page navigation bar includes a plurality of first-level menu items "intelligent recommendation", "friend video" and "nearby video" for video recommendation, after the user clicks the first-level menu item "intelligent recommendation", the "intelligent recommendation" is hidden in the page navigation bar of the video playing interface, and at the original display position of the "intelligent recommendation", a plurality of second-level menu items "current event hot spots", "entertainment broadcast" and "technological fast news" corresponding to the "intelligent recommendation" are displayed, and a page corresponding to the "current event hot spot" is displayed in the page display area of the video playing interface. By the method, the operation of switching from the video playing main page to the page corresponding to the secondary menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
Scene three, an online conference scene.
For example, referring to fig. 13, fig. 13 is an application scenario schematic diagram of a page display method according to an embodiment of the present application. As shown in fig. 13, in the online conference application, the online conference interface includes a page navigation bar including a plurality of secondary menu items "video settings" and "audio settings" corresponding to "conference settings" displayed in an original display position of "conference settings" after the user clicks the primary menu item "conference settings" for a plurality of primary menu items "conference settings", "participants", and "conference documents" of the online conference process, and a page corresponding to "video settings" is displayed in a page display area of the online conference interface. By the method, the operation of switching from the online conference main page to the page corresponding to the secondary menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
It should be understood that the application scenarios shown in fig. 11 to 13 are merely exemplary, and in some embodiments, the page display method can also be applied to other scenarios, such as an information retrieval scenario, an e-commerce shopping scenario, and a live broadcast scenario, etc., which are not limited in this embodiment of the present application.
The specific application process of the page display method is described below by taking a game scene as an example. Illustratively, taking the target application running on the terminal as the game application, the above-mentioned selection operation of the first level menu item is exemplified by clicking operation, and referring to fig. 14, fig. 14 is a schematic flow chart of a page display method according to an embodiment of the present application. As shown in fig. 14, the flow includes the steps of:
s1, after the game is opened, a game client logic layer (hereinafter referred to as a logic layer) displays a game interface. The game interface comprises a page navigation bar which comprises a plurality of first-level menu items A, B, C …, wherein the corresponding second-level menu items are [ A1, A2, A3 … ], [ B1, B2, B3 … ], [ C1, C2, C3 … ] … respectively.
S2, clicking the first-level menu item A by a player according to the willingness of switching pages, judging whether the first-level menu item A has a corresponding second-level menu item or not by a logic layer, if so, executing the step S3, and if not, executing the step S4.
S3, expanding and displaying a plurality of secondary menu items [ A1, A2, A3 … ] in the page navigation bar, and displaying a page corresponding to the A1.
S4, displaying the page corresponding to the first-level menu item A without expanding the second-level menu which is empty.
S5, the player performs clicking operation on the page navigation bar according to the willingness of switching pages, the logic layer judges whether the player clicks a second-level menu item (on the premise that [ A1, A2, A3 … ] is not empty) except for the A1 in a plurality of second-level menu items [ A1, A2, A3 … ], namely, one item in [ A2, A3, A4 … ], if yes, the step S11 is executed, the page corresponding to the corresponding second-level menu item is switched and displayed, and if not, the step S6 is executed.
And S6, the logic layer judges whether the player clicks one of the first-level menu items A, B, C … except for A, namely B, C …, if so, the step S7 is executed, and if not, the step S3 is executed by default.
And S7, the logic layer judges whether a plurality of expanded and displayed secondary menu items exist in the current page navigation bar of the player, if yes, the step S8 is executed, and if not, the step S9 is executed.
S8, the plurality of expanded and displayed second-level menu items are packed in the page navigation bar.
And S9, the logic layer judges whether the primary menu item clicked by the player currently has a corresponding secondary menu item, if so, the step S10 and the step S11 are executed, and if not, the step S11 is executed.
S10, a plurality of corresponding secondary menu items are unfolded and displayed in the page navigation bar.
S11, switching and displaying the corresponding page.
It should be understood that the above-described flow shown in fig. 14 is based on a detection loop, and the logic layer implements the function of fast switching pages by continuously detecting the clicking operation of the player and giving corresponding feedback.
For example, referring to fig. 15, fig. 15 is a schematic diagram of a page display method according to an embodiment of the present application. As shown in fig. 15 (a), in the game application, the game interface includes a page navigation bar including a plurality of primary menu items "board match", "recommended lineup", and "drawing" for the virtual scene, and a page corresponding to the "board match" is displayed by default.
As shown in fig. 15 (b), after the user clicks the first-level menu item "graphic" and hides the "graphic" in the page navigation bar of the game interface, a plurality of second-level menu items "collarband", "hero", "stumbling" and "equipment" corresponding to the "graphic" are displayed at the original display position of the "graphic", and a page corresponding to the "collarband" is displayed in the page display area of the game interface.
As shown in fig. 15 (c), the user can click inside the plurality of secondary menu items to realize page switching. For example, the user clicks on the secondary menu item "hero", and a page corresponding to "hero" is displayed in the page display region of the game interface.
As shown in fig. 15 (d), the user may click on another primary menu item, at this time, the expanded secondary menu items are hidden in the page navigation bar, for example, the user clicks on a primary menu item "board collocation", the primary menu item corresponds to the secondary menu items "define", "limit", and "exempt", the secondary menu items are expanded and displayed in the page navigation bar of the game interface, and the page corresponding to the "define" is displayed in the page display area.
As shown in fig. 15 (e), if the corresponding secondary menu item does not exist in the other primary menu items clicked by the user, the page corresponding to the primary menu item is directly displayed. For example, when the user clicks the first-level menu item "recommended lineup", and the first-level menu item does not have the corresponding second-level menu item, the page navigation bar of the game interface displays the "recommended lineup" as the selected state, and displays the page corresponding to the "recommended lineup" in the page display area.
Based on the above-mentioned fig. 15, in a game scene, by adopting the page display method provided by the embodiment of the application, multiple levels of menu items can be integrated, and by adopting the mode of synchronously displaying multiple levels of menu items, more game interfaces can be reserved for specific game pages instead of page navigation bars, so that the interface utilization rate is effectively improved.
Referring to fig. 16, fig. 16 is a flow chart of a page display method according to an embodiment of the present application. As shown in fig. 16, taking an example of the application of the page display method to a game scene, the interactive timing for performing page switching among a game player, a game client presentation layer, and a game client logic layer is referred to. As shown in fig. 16, the page display method includes three parts as follows:
the first part and the logic layer judge whether the first-level menu item A has a corresponding second-level menu item based on the selection operation of the first-level menu item A in the page navigation bar by the player, if not, the control expression layer displays a page corresponding to the first-level menu item A to the player, if so, the control expression layer selects the first-level second-level menu item A1 in the plurality of second-level menu items [ A1, A2, A3 … ], and the control expression layer expands and displays the plurality of second-level menu items [ A1, A2, A3 … ] to the player and displays the page corresponding to the second-level menu item A1.
The second part, the player clicks one of the expanded plurality of secondary menu items [ A2, A3, A4 … ] according to the wish of switching game pages, and the presentation layer transmits click signals of the fingers of the player. The logic layer judges which of the secondary menu items is clicked by the player, and controls the presentation layer to display the corresponding page to the player.
And the third part, the player clicks one of other first-level menu items B, C … according to the wish of switching game pages, and the presentation layer transmits click information of the fingers of the player. The logic layer judges whether the page navigation bar is unfolded and displays a plurality of secondary menu items currently, if yes, the control presentation layer is folded and displays the unfolded plurality of secondary menu items, and if not, the step is skipped. And meanwhile, the logic layer judges whether the first-level menu item selected by the player has a corresponding second-level menu item, if so, the control expression layer expands and displays a plurality of corresponding second-level menu items to the player, and displays a page corresponding to the first-level second-level menu item, and if not, the control expression layer displays the page corresponding to the first-level menu item to the player.
In summary, when the page display method provided by the embodiment of the application is applied to a game scene, for a page navigation bar with multi-level menu items, a terminal can synchronously display a plurality of secondary menu items corresponding to a primary menu item and pages corresponding to a target secondary menu item in response to a selection operation of the primary menu item, so that the operation of switching from the pages corresponding to the primary menu item to the pages corresponding to the secondary menu item is simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
Fig. 17 is a schematic structural diagram of a page display device according to an embodiment of the present application. The device is used for executing the steps when the page display method is executed, and referring to fig. 17, the device comprises: a display module 1701.
A display module 1701 for displaying at least one first level menu item in a page navigation bar;
the display module 1701 is further configured to display, in response to a selection operation of a first-level menu item, a plurality of second-level menu items corresponding to the first-level menu item in the page navigation bar based on a display position of the first-level menu item;
the display module 1701 is further configured to display a page corresponding to a target secondary menu item of the plurality of secondary menu items.
In some embodiments, the display module 1701 is configured to display a page corresponding to a default secondary menu item of the plurality of secondary menu items.
In some embodiments, the display module 1701 is configured to display a page corresponding to a second level menu item of the plurality of second level menu items that is selected the most number of times in the first time period.
In some embodiments, the display module 1701 is configured to display the first primary menu item in a first display style and the plurality of secondary menu items in a second display style in the page navigation bar, where the first display style and the second display style are different.
In some embodiments, the second display style includes at least one of: brackets, borders, shadows, highlights and text boldface.
In some embodiments, the display module 1701 is configured to hide the first primary menu item in the page navigation bar based on a display position of the first primary menu item, and display the plurality of secondary menu items on an original display position of the first primary menu item.
In some embodiments, the display module 1701 is configured to display the plurality of second level menu items based on displaying the first level menu item in the page navigation bar based on a display location of the first level menu item.
In some embodiments, the display module 1701 is further configured to display a page corresponding to a first secondary menu item of the plurality of secondary menu items in response to a selection operation of the first secondary menu item.
In some embodiments, the display module 1701 is further configured to hide the plurality of secondary menu items in the page navigation bar in response to a selected operation on a blank region in the page navigation bar.
In some embodiments, the display module 1701 is further configured to, in the case where the first primary menu item is displayed in the page navigation bar, hide the plurality of secondary menu items in the page navigation bar in response to a selection operation of the first primary menu item.
In some embodiments, the display module 1701 is configured to display the at least one level one menu item laterally in the page navigation bar; in the page navigation bar, the plurality of secondary menu items are displayed in a laterally expanded form.
In some embodiments, the display module 1701 is configured to display the plurality of secondary menu items in the page navigation bar in a laterally expanded left form; alternatively, in the page navigation bar, the plurality of secondary menu items are displayed in a form of being spread out laterally to the right.
In some embodiments, the display module 1701 is configured to:
displaying a target number of secondary menu items in the page navigation bar if the number of the plurality of secondary menu items is greater than the target number;
in response to a sliding operation on the target number of secondary menu items, the secondary menu items not previously displayed among the plurality of secondary menu items are displayed in the page navigation bar based on a sliding direction of the sliding operation.
In some embodiments, the display module 1701 is configured to:
determining a target number of secondary menu items from the plurality of secondary menu items based on the number of times the plurality of secondary menu items are selected within a second time period, if the number of the plurality of secondary menu items is greater than the target number;
The target number of secondary menu items is displayed in the page navigation bar in order of the target number of secondary menu items being selected from more to less times in the second time period.
In some embodiments, where there are multiple primary menu items, the display module 1701 is configured to:
displaying the plurality of second-level menu items at the display position of the first-level menu item in the page navigation bar; or,
and displaying the plurality of secondary menu items at target display positions in the page navigation bar, wherein the target display positions are display positions corresponding to first-order menu items in the page navigation bar.
In the embodiment of the application, the page display device is provided, and for the page navigation bar with the multi-level menu items, the page display device can synchronously display a plurality of secondary menu items corresponding to the primary menu items and pages corresponding to the target secondary menu items in response to the selection operation of the primary menu items, so that operations required to be performed when the pages corresponding to the primary menu items are switched to the pages corresponding to the secondary menu items are simplified, and the page switching efficiency and the man-machine interaction efficiency are effectively improved.
It should be noted that: in the page display device provided in the above embodiment, when displaying a page, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the page display device and the page display method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the page display device and the page display method embodiment are detailed in the method embodiment, which is not described herein again.
In an exemplary embodiment, a computer device is also provided. Taking a computer device as an example of a terminal, fig. 18 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 1800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. The terminal 1800 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or the like.
In general, the terminal 1800 includes: a processor 1801 and a memory 1802.
Processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1801 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1801 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1801 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and rendering of content that the display screen is required to display. In some embodiments, the processor 1801 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1802 is used to store at least one program code for execution by processor 1801 to implement the page display methods provided by the method embodiments herein.
In some embodiments, the terminal 1800 may also optionally include: a peripheral interface 1803 and at least one peripheral. The processor 1801, memory 1802, and peripheral interface 1803 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 1803 by buses, signal lines or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1804, a display screen 1805, a camera assembly 1806, audio circuitry 1807, and a power supply 1808.
The peripheral interface 1803 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802, and peripheral interface 1803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1801, memory 1802, and peripheral interface 1803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1804 converts electrical signals to electromagnetic signals for transmission, or converts received electromagnetic signals to electrical signals. Optionally, the radio frequency circuit 1804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 1804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1804 may also include NFC (Near Field Communication ) related circuitry, which is not limited in this application.
The display 1805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1805 is a touch display, the display 1805 also has the ability to collect touch signals at or above the surface of the display 1805. The touch signal may be input as a control signal to the processor 1801 for processing. At this point, the display 1805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1805 may be one and disposed on the front panel of the terminal 1800; in other embodiments, the display 1805 may be at least two, disposed on different surfaces of the terminal 1800 or in a folded configuration; in other embodiments, the display 1805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1800. Even more, the display screen 1805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 1805 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1806 is used to capture images or video. Optionally, the camera assembly 1806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 1807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1801 for processing, or inputting the electric signals to the radio frequency circuit 1804 for realizing voice communication. For stereo acquisition or noise reduction purposes, the microphone may be multiple, and disposed at different locations of the terminal 1800. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is then used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuitry 1807 may also include a headphone jack.
A power supply 1808 is used to power the various components in the terminal 1800. The power supply 1808 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1808 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1800 also includes one or more sensors 1810. The one or more sensors 1810 include, but are not limited to: acceleration sensor 1811, gyro sensor 1812, pressure sensor 1813, optical sensor 1814, and proximity sensor 1815.
The acceleration sensor 1811 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the terminal 1800. For example, the acceleration sensor 1811 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 1801 may control the display screen 1805 to display a user interface in either a landscape view or a portrait view based on gravitational acceleration signals acquired by the acceleration sensor 1811. The acceleration sensor 1811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1812 may detect a body direction and a rotation angle of the terminal 1800, and the gyro sensor 1812 may collect a 3D motion of the user to the terminal 1800 in cooperation with the acceleration sensor 1811. The processor 1801 may implement the following functions based on the data collected by the gyro sensor 1812: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1813 may be disposed on a side frame of terminal 1800 and/or below display 1805. When the pressure sensor 1813 is disposed at a side frame of the terminal 1800, a grip signal of the terminal 1800 by a user may be detected, and the processor 1801 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 1813. When the pressure sensor 1813 is disposed at the lower layer of the display 1805, the processor 1801 controls the operability control on the UI interface according to the pressure operation of the user on the display 1805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1814 is used to collect the ambient light intensity. In one embodiment, the processor 1801 may control the display brightness of the display screen 1805 based on the intensity of ambient light collected by the optical sensor 1814. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 1805 is turned up; when the ambient light intensity is low, the display brightness of the display screen 1805 is turned down. In another embodiment, the processor 1801 may also dynamically adjust the shooting parameters of the camera assembly 1806 based on the intensity of ambient light collected by the optical sensor 1814.
A proximity sensor 1815, also known as a distance sensor, is typically provided on the front panel of the terminal 1800. Proximity sensor 1815 is used to collect the distance between the user and the front face of terminal 1800. In one embodiment, when the proximity sensor 1815 detects that the distance between the user and the front face of the terminal 1800 gradually decreases, the processor 1801 controls the display 1805 to switch from the on-screen state to the off-screen state; when the proximity sensor 1815 detects that the distance between the user and the front of the terminal 1800 gradually increases, the processor 1801 controls the display 1805 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 18 is not limiting and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present application also provides a computer readable storage medium applied to a computer device, where at least one computer program is stored in the computer readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the computer device in the page display method of the above embodiment.
Embodiments of the present application also provide a computer program product or computer program comprising computer program code stored in a computer readable storage medium. The computer program code is read from a computer readable storage medium by a processor of a computer device, and executed by the processor, causes the computer device to perform the page display method provided in the various alternative implementations described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.