Page switching method and device, electronic equipment and readable medium
By grouping pages and generating corresponding location indicator lists, the problems of versatility and aesthetics of the location indicator list when there are too many pages are solved, and efficient page switching and beautiful interface are achieved.
Patent Information
- Application Number
- CN202210062572.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-01-19
AI Technical Summary
In PCs and mobile terminal devices, the position indicator list cannot accommodate too many position indicators due to the large number of pages, resulting in limited versatility and affecting aesthetics.
The pages to be loaded are grouped, and a corresponding position indication list is generated according to each group of pages. The position indication list of the current page is displayed, and the current page is switched to the position indication list of the target page in response to a switching operation.
The versatility of the location indicator list is improved, avoiding the problem of not being able to accommodate too many location indicators when there are too many pages, and at the same time improving the aesthetics of the interface.
Smart Images

Figure CN114417209B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of page switching, and in particular to a page switching method, a page switching device, an electronic device, and a computer-readable medium. Background Art
[0002] On devices such as PCs (Personal Computers) and mobile terminals, a position indicator list is often used in a list page turning module. The position indicator list includes position indicators corresponding to pages, and serves to indicate page numbers and indicate that the current area can be turned.
[0003] However, as the number of pages increases, the number of position indicators must also increase accordingly. When there are too many pages, there is a problem that the position indicator list cannot accommodate too many position indicators, resulting in limitations in the versatility of the position indicator list and affecting the aesthetics. Summary of the Invention
[0004] The embodiments of the present invention provide a page switching method, device, electronic device, and computer-readable storage medium to solve the problem of limited versatility of a location indication list.
[0005] An embodiment of the present invention discloses a page switching method, comprising:
[0006] Group the pages to be loaded;
[0007] Generate a corresponding location indication list according to each group of pages;
[0008] Display the current page and a current location indicator list corresponding to the current page;
[0009] In response to a switch operation to switch to a target page, the current page is switched to the target page. When the current page and the target page are not in the same group, the current position indication list is switched to a target position indication list corresponding to the target page.
[0010] Optionally, grouping the pages to be loaded includes:
[0011] Get the number of pages to be loaded;
[0012] When the number of pages is greater than a preset number, the pages to be loaded are grouped according to the preset number.
[0013] Optionally, grouping the to-be-loaded pages according to the preset number includes:
[0014] The pages to be loaded are grouped according to the page number sequence and the preset number.
[0015] Optionally, the position indication list comprises position indicators corresponding to the pages, and the displaying of the current page and the current position indication list corresponding to the current page comprises:
[0016] The position indicator corresponding to the current page is displayed differently from other position indicators.
[0017] Optionally, the position indication list comprises at least one ellipsis, and the displaying of the current page and the current position indication list corresponding to the current page comprises:
[0018] When the group corresponding to the current page comprises a page corresponding to the minimum page number, the ellipsis is located at one side of the position indicator;
[0019] When the group corresponding to the current page comprises a page corresponding to the maximum page number, the ellipsis is located at the other side of the position indicator;
[0020] When the group corresponding to the current page does not comprise a page corresponding to the minimum page number and a page corresponding to the maximum page number, the position indication list is configured with two ellipses, which are located at two sides of the position indicator, respectively.
[0021] Optionally, the switching of the current page to the target page further comprises:
[0022] When the current page and the target page are in the same group, the position indicator displayed differently in the current position indication list is changed to a position indicator corresponding to the target page.
[0023] Optionally, the method further comprises:
[0024] When the number of pages is less than or equal to a preset number, a position indication list corresponding to the to-be-loaded page is generated;
[0025] The current page and the position indication list are displayed.
[0026] Optionally, the position indication list comprises position indicators corresponding to the to-be-loaded pages, and the displaying of the current page and the position indication list comprises:
[0027] The position indicator corresponding to the current page is displayed differently from other position indicators.
[0028] Optionally, the position indication list comprises a digital page number identifier, and a style of the digital page number identifier comprises: current page number / total number of pages.
[0029] Embodiments of the application also disclose a page switching device, which comprises:
[0030] a page grouping module, configured to group the pages to be loaded;
[0031] a list generating module, configured to generate a corresponding position indicator list according to each group of pages;
[0032] a list displaying module, configured to display a current page and a current position indicator list corresponding to the current page;
[0033] a list switching module, configured to switch the current page to a target page in response to a switching operation of switching to the target page, and switch the current position indicator list to a target position indicator list corresponding to the target page when the current page and the target page are not in the same group.
[0034] Optionally, the page grouping module comprises:
[0035] a number obtaining sub-module, configured to obtain a number of pages to be loaded;
[0036] a page grouping sub-module, configured to group the pages to be loaded according to a preset number when the number of pages to be loaded is greater than the preset number.
[0037] Optionally, the page grouping sub-module comprises:
[0038] a page grouping sub-unit, configured to group the pages according to a page order of the pages to be loaded and the preset number.
[0039] Optionally, the position indicator list comprises a position indicator corresponding to the page, and the list displaying module comprises:
[0040] an indicator distinguishing sub-module, configured to display the position indicator corresponding to the current page and other position indicators in a distinguished manner.
[0041] Optionally, the position indicator list comprises at least one ellipsis symbol, and the list displaying module comprises:
[0042] an ellipsis symbol displaying sub-module, configured to arrange the ellipsis symbol on one side of the position indicator when a group corresponding to the current page comprises a page corresponding to a minimum page number;
[0043] the ellipsis symbol displaying sub-module is further configured to arrange the ellipsis symbol on the other side of the position indicator when the group corresponding to the current page comprises a page corresponding to a maximum page number;
[0044] the ellipsis symbol displaying sub-module is further configured to configure the position indicator list with two ellipsis symbols on both sides of the position indicator when the group corresponding to the current page does not comprise a page corresponding to the minimum page number and a page corresponding to the maximum page number.
[0045] Optionally, further comprising:
[0046] The list switching module is further configured to change the position indicator displayed differently in the current position indication list to a position indicator corresponding to the target page when the current page and the target page are in the same group.
[0047] Optionally, further comprising:
[0048] The list generating module is further configured to generate a corresponding position indication list according to the to-be-loaded pages when the number of pages is less than or equal to a preset number.
[0049] The list display module is further configured to display the current page and the position indication list.
[0050] Optionally, the position indication list includes position indicators corresponding to the to-be-loaded pages, and the list display module includes:
[0051] The indicator distinguishing sub-module is further configured to display the position indicator corresponding to the current page differently from other position indicators.
[0052] Optionally, the position indication list includes a digital page number identifier, and a style of the digital page number identifier includes a current page number / total number of pages.
[0053] The embodiment of the application further discloses an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete the communication between each other through the communication bus.
[0054] The memory is used to store a computer program.
[0055] The processor is used to execute the program stored on the memory, and realize the method as described in the embodiment of the application.
[0056] The embodiment of the application further discloses one or more computer readable media, which store instructions, and when executed by one or more processors, make the processor execute the method as described in the embodiment of the application.
[0057] The embodiment of the present application comprises the following advantages: grouping the pages to be loaded, generating a corresponding position indication list according to each group of pages, displaying the current page and the current position indication list corresponding to the current page, switching the current page to the target page in response to the switching operation of switching to the target page, and switching the current position indication list to the target position indication list corresponding to the target page when the current page and the target page are not in the same group. By applying the embodiment of the present application, the pages to be loaded are grouped, and a corresponding position indication list is generated according to each group of pages. When the total number of pages is too large, it is not necessary to indicate all the pages by one position indication list, and only the position indication list corresponding to the group of the current page needs to be displayed, thereby improving the universality of the position indication list, avoiding the problem that too many position indicators cannot be accommodated when the number of pages is too large, and improving the interface aesthetics. BRIEF DESCRIPTION OF DRAWINGS
[0058] Figure 1 is a step flow chart of a page switching method provided in the embodiment of the present application;
[0059] Figure 2 is a step flow chart of another page switching method provided in the embodiment of the present application;
[0060] Figure 3 is one of the schematic diagrams of a position indication list provided in the embodiment of the present application;
[0061] Figure 4 is another schematic diagram of a position indication list provided in the embodiment of the present application;
[0062] Figure 5 is a third schematic diagram of a position indication list provided in the embodiment of the present application;
[0063] Figure 6 is a structural block diagram of a page switching device provided in the embodiment of the present application;
[0064] Figure 7 is a block diagram of an electronic device provided in the embodiment of the present application;
[0065] Figure 8 is a schematic diagram of a computer readable medium provided in the embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the above objectives, features and advantages of the present application more apparent and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0067] In the scenario of browsing in a device such as a PC or a mobile terminal, for example, webpage browsing, electronic book browsing, commodity browsing, and warehouse / packaging / skill browsing in a game, since these browsing scenarios all contain multiple pages, a position indicator in a position indicator list is needed to indicate the page number, indicating that the current area can be paged. However, with the increase in the number of pages, the number of position indicators in the position indicator list must also increase. In the case of too many pages, the interface cannot accommodate too many position indicators, which limits the generality of the position indicator list and affects the aesthetics.
[0068] Based on this, the embodiments of the present application provide a page switching method and device, an electronic device, and a computer readable storage medium, to solve the problem of the generality of the position indicator list being limited and affecting aesthetics.
[0069] The page switching method in one of the embodiments of the present application can run in a local terminal device or a server. When the page switching method runs in the server, the page switching method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0070] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running body of the game program and the presentation body of the game picture are separated, the storage and running of the page switching method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side with data transmission function, such as a first terminal device, a television, a computer, a palm computer, etc. However, the cloud game server in the cloud is used to perform the page switching method. When playing the game, the player operates the client device to send operation instructions to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0071] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game picture. The local terminal device is used to interact with a player through a graphical user interface, i.e., a conventional game program is downloaded and installed through an electronic device and is run. The local terminal device can provide the graphical user interface to the player in various ways, for example, can render a display on a display screen of the terminal, or is provided to the player through holographic projection. For example, the local terminal device can include a display screen used to present a graphical user interface including a game picture, and a processor used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0072] Referring to Figure 1 A step flow chart of a page switching method provided in an embodiment of the present application is shown, and can specifically include the following steps:
[0073] Step 101: Grouping the pages to be loaded.
[0074] In the process of entering a browsing scene, the pages and contents in the browsing scene need to be loaded first, and then are displayed on the interface of a PC / mobile terminal or the like to provide the user with browsing.
[0075] Specifically, in the process of entering a browsing scene, the pages to be loaded are acquired first, and the pages to be loaded are grouped. Taking an electronic book as an example, in the process of opening the electronic book, 20 pages in the electronic book need to be loaded, and therefore the 20 pages to be loaded need to be grouped.
[0076] Step 102: Generating a corresponding position indication list according to each group of pages.
[0077] Specifically, after the pages to be loaded are grouped, each group includes a plurality of pages, and a corresponding position indication list is generated according to the plurality of pages in each group.
[0078] In the embodiment of the present application, the pages to be loaded are grouped first, and then a corresponding position indication list is generated for each group of pages. The pages in each group are indicated by the corresponding position indication list, and there is no need to indicate all the pages by one indication list, thereby improving the universality of the position indication list.
[0079] Step 103: Displaying a current page and a current position indication list corresponding to the current page.
[0080] Wherein, the current page here is the first displayed page in the interface of the PC / mobile terminal or the like after the page and the content in the browsing scene are loaded, which can be the first page or the page displayed in the interface when the user last left the browsing scene, and the embodiment of the present application does not limit the first displayed current page in the interface.
[0081] Specifically, after the page in the browsing scene is loaded, the current page and the current position indication list corresponding to the current page are displayed in the interface of the PC / mobile terminal or the like.
[0082] Step 104: in response to the switching operation of switching to the target page, switching the current page to the target page, and when the current page and the target page are not in the same group, switching the current position indication list to the target position indication list corresponding to the target page.
[0083] Wherein, the switching operation of switching to the target page can be the page switching control operation of the user clicking on the interface, the operation of the user sliding the interface or the operation of the user inputting the page number in the specified input box, and the embodiment of the present application does not limit the switching operation of switching to the target page.
[0084] Specifically, after the switching operation of switching to the target page is responded, the current page is switched to the target page, and when the current page and the target page are not in the same group, the position indication lists corresponding to the current page and the target page are different, so the current position indication list needs to be switched to the target position indication list corresponding to the target page.
[0085] In the embodiment of the present application, the to-be-loaded pages are grouped, and the corresponding position indication list is generated according to each group of pages, when the total number of pages is too large, it is not necessary to indicate all the pages through one position indication list, only the position indication list of the current page corresponding group needs to be displayed, the universality of the position indication list is improved, the problem that too many position indicators cannot be accommodated under the condition of too many pages is avoided, and the interface aesthetic degree is improved.
[0086] Referring to Figure 2 , a step flow chart of another page switching method provided in the embodiment of the present application is shown, which can specifically include the following steps:
[0087] Step 201: acquiring the number of pages to be loaded.
[0088] Specifically, in the process of entering a browsing scene, the number of to-be-loaded pages is acquired first. Taking an electronic book as an example, the number of to-be-loaded pages in the electronic book is acquired, for example, the number of pages in the electronic book is 20 pages.
[0089] Step 202: when the page quantity is greater than the preset quantity, grouping the to-be-loaded pages according to the preset quantity.
[0090] The preset quantity is used to limit the size of the position indication list, so that the size of the position indication list is adapted to the interface of the device, and the universality and interface aesthetics of the position indication list are improved. The preset quantity can be a quantity set according to an interface parameter of the device, or a quantity set according to user demand. The embodiment of the present application does not limit the preset quantity.
[0091] Specifically, after obtaining the page quantity of the to-be-loaded pages, it is determined whether the page quantity is greater than the preset quantity. If the page quantity is greater than the preset quantity, the to-be-loaded pages are grouped according to the preset quantity. Taking an electronic book as an example, the page quantity of the electronic book is 20 pages, and the preset quantity is 5 pages. Therefore, the page quantity of the electronic book is greater than the preset quantity, and the to-be-loaded pages are grouped according to the preset quantity, for example, the pages of the electronic book are divided into 4 groups, and each group has 5 pages.
[0092] In an embodiment of the present application, the step 202 comprises grouping the pages according to the page order of the to-be-loaded pages and the preset quantity.
[0093] In the browsing scenario, the pages usually have corresponding page numbers. For example, the page quantity in the browsing scenario is 10, and the corresponding page numbers are 1, 2, 3,..., 10.
[0094] Specifically, the pages are grouped according to the preset quantity and the page order of the to-be-loaded pages. Specifically, there are two cases: the page quantity can be divided by the preset quantity, and the page quantity cannot be divided by the preset quantity.
[0095] Taking an electronic book as an example, when the page quantity of the electronic book is 20 pages, the corresponding page numbers are 1, 2, 3,..., 20, and the preset quantity is 5 pages. At this time, the page quantity can be divided by the preset quantity, and the pages of the electronic book can be divided into 4 groups, and the page numbers 1-5, 6-10, 11-15, and 16-20 are a group. The page quantity of each group is the preset quantity.
[0096] When the page quantity of the electronic book is 18 pages, the corresponding page numbers are 1, 2, 3,..., 18, and the preset quantity is 5 pages. At this time, the page quantity cannot be divided by the preset quantity, and the pages of the electronic book can be divided into 4 groups, and the page numbers 1-5, 6-10, 11-15, and 16-18 are a group. The page quantity of the last group is 3, which is not equal to the preset quantity, and the page quantity of each of the other groups is the preset quantity.
[0097] Step 203: generating a corresponding position indication list according to each group of pages.
[0098] Step 204: display the current page and a current position indicator list corresponding to the current page.
[0099] In an embodiment of the present application, the position indicator list includes position indicators corresponding to the pages, and the step 204 includes: distinguishing and displaying the position indicator corresponding to the current page from other position indicators.
[0100] Specifically, the position indicator list includes position indicators corresponding to the pages, and the position indicators are used to indicate the corresponding pages. The position indicator corresponding to the current page is distinguished and displayed from the position indicators corresponding to other pages. Taking an electronic book as an example, the pages with page numbers 6-10 form a group, and the current page displayed in the interface is the page with page number 7. Therefore, there are five position indicators in the position indicator list, which respectively indicate the pages with page numbers 6-10. The position indicator corresponding to the page with page number 7 is distinguished and displayed from other position indicators. The distinguishing and displaying can be highlighting, changing color, changing shape, symbol marking, etc. The embodiment of the present application does not limit the distinguishing and displaying manner of the position indicators.
[0101] In the embodiment of the present application, the position indicator list includes the position indicator corresponding to the current page displayed in the interface. When the total number of pages is too large, it is not necessary to indicate all the pages by displaying a large number of position indicators. It is only necessary to display the position indicators corresponding to the pages in the group corresponding to the current page by the position indicator list. The universality of the position indicator list is improved, and the problem that the position indicator list cannot accommodate too many position indicators when the number of pages is too large is avoided. Meanwhile, the interface is improved in terms of aesthetics.
[0102] In an embodiment of the present application, the position indicator list includes a digital page number identifier, and the style of the digital page number identifier includes: current page number / total page number.
[0103] Specifically, the digital page number identifier is used to indicate the total number of pages and the page number of the current page. Taking an electronic book as an example, the number of pages of the electronic book is 20, and the current page displayed in the interface is the page with page number 5. Therefore, the digital page number identifier is “5 / 20”.
[0104] In an example of the present application, in response to a selection operation on the digital page number identifier, the digital page number identifier changes into an input box. The page number can be input in the input box, and a target page corresponding to the page number is displayed.
[0105] In an embodiment of the present application, the position indication list includes at least one ellipsis symbol, and the step 204 includes: when the group corresponding to the current page includes the page corresponding to the minimum page number, the ellipsis symbol is located at one side of the position indicator; when the group corresponding to the current page includes the page corresponding to the maximum page number, the ellipsis symbol is located at the other side of the position indicator; when the group corresponding to the current page does not include the page corresponding to the minimum page number and the page corresponding to the maximum page number, the position indication list is configured with two ellipsis symbols, which are respectively located at two sides of the position indicator.
[0106] Specifically, the position indication list includes one ellipsis symbol, which is used to express that there are more pages before / after. There are three display modes of the ellipsis symbol, which are as follows:
[0107] When the group corresponding to the current page includes the page corresponding to the minimum page number, the ellipsis symbol is located at one side of the position indicator. Taking an electronic book as an example, the number of pages of the electronic book is 20, and the page numbers 1-5, 6-10, 11-15 and 16-20 are groups, and the current page displayed on the interface is page 2. At this time, the group corresponding to the current page is the group of page numbers 1-5, which includes the page corresponding to the minimum page number 1. Therefore, there is no other group before the group, that is, there is no other page before the page corresponding to the page number 1, so it is not necessary to display the ellipsis symbol at one side of the position indicator corresponding to the page number 1. However, there is another group after the group, that is, there is another page after the page corresponding to the page number 5, so it is necessary to display the ellipsis symbol at one side of the position indicator corresponding to the page number 5. For details, refer to Figure 3 FIG. 1 shows one of the schematic diagrams of the position indication list provided in an embodiment of the present application, which includes five position indicators corresponding to the pages of page numbers 1-5, and the ellipsis symbol is located at the right side of the position indicator. In the figure, the page number of the current page is 2, and the corresponding position indicator is highlighted, and the digital page number is marked as “2 / 20”.
[0108] When the group corresponding to the current page includes the page with the maximum page number, the ellipsis symbol is located on the other side of the position indicator. Taking an e-book as an example, the e-book has 20 pages, and the pages with page numbers 1-5, 6-10, 11-15, and 16-20 are groups respectively, and the current page displayed on the interface is page 17, at this time, the group corresponding to the current page is the group with page numbers 16-20, and the page with the maximum page number 20 is included, so there is no other group after the group, that is, there is no other page after the page with the page number 20, and therefore, it is not necessary to display an ellipsis symbol on the side of the position indicator corresponding to the page with the page number 20, to indicate that it is not possible to turn to the next page after the 20th page. However, there is another group before the group, that is, there is another page before the page with the page number 16, and therefore, it is necessary to display an ellipsis symbol on the side of the position indicator corresponding to the page with the page number 16, to indicate that it is possible to turn to the previous page before the 16th page. For details, refer to Figure 4 FIG. 2 shows a schematic diagram of a position indication list provided in an embodiment of the present application, and the position indication list in the figure includes five position indicators corresponding to the pages with page numbers 16-20, and the ellipsis symbol is located on the left side of the position indicators, wherein the page number of the current page is 17, and the corresponding position indicator is highlighted, and the digital page number is marked as “17 / 20”.
[0109] When the group corresponding to the current page does not include the pages corresponding to the minimum page number and the maximum page number, the position indication list is configured with two ellipsis symbols, which are located on the two sides of the position indicators. Taking an e-book as an example, the e-book has 20 pages, and the pages with page numbers 1-5, 6-10, 11-15, and 16-20 are groups respectively, and the current page displayed on the interface is page 7, at this time, the group corresponding to the current page is the group with page numbers 6-10, and the pages with the minimum page number 1 and the maximum page number 20 are not included, so there is another group before and after the group, that is, there is another page before the page with the page number 6 and another page after the page with the page number 10, and therefore, it is necessary to display an ellipsis symbol on the side of the position indicator corresponding to the page with the page number 6 and the page with the page number 10 respectively, to indicate that it is possible to turn to the previous page before the 6th page and to turn to the next page after the 10th page. For details, refer to Figure 5 FIG. 3 shows a schematic diagram of a position indication list provided in an embodiment of the present application, and the position indication list in the figure includes five position indicators corresponding to the pages with page numbers 6-10, and the ellipsis symbols are located on the left and right sides of the position indicators, wherein the page number of the current page is 7, and the corresponding position indicator is highlighted, and the digital page number is marked as “7 / 20”.
[0110] In the embodiment of the present application, the position indication list includes the ellipsis symbol, which is used to indicate whether there are more pages before / after the group, so as to facilitate user operation and improve user experience.
[0111] It should be noted that the omission symbol in the drawings of the embodiments of the present application is exemplarily illustrated by a dash line. In actual application, the omission symbol can also be other symbols, for example, a horizontal bar symbol, a star symbol, a wave symbol, etc. The embodiments of the present application do not limit the omission symbol.
[0112] In addition, the position indicator in the drawings of the embodiments of the present application is illustrated by a diamond. In actual application, the position indicator can also use other shapes, for example, a circle, a rectangle, a star or even a numeral symbol.
[0113] Step 205: in response to the switching operation of switching to the target page, switching the current page to the target page, and when the current page and the target page are not in the same group, switching the current position indicator list to a target position indicator list corresponding to the target page.
[0114] In an embodiment of the present application, the step 205 further comprises: when the current page and the target page are in the same group, changing the position indicator displayed differently in the current position indicator list into a position indicator corresponding to the target page.
[0115] Specifically, when the current page and the target page are in the same group, that is, the current page and the target page correspond to the same position indicator list, but the corresponding position indicators are different, so the position indicator list is switched, but the position indicator displayed differently needs to be changed into the position indicator corresponding to the target page. Taking an electronic book as an example, the number of pages of the electronic book is 20, and the page numbers 6-10 form a group. The current page is the page with the page number 7. The position indicator displayed differently in the position indicator list is the position indicator corresponding to the page with the page number 7. In response to the switching operation of switching to the target page, the current page 7 is switched to the target page 8. At this time, the displayed page is the page with the page number 8. Therefore, the position indicator corresponding to the page with the page number 8 needs to be displayed differently, and the position indicator corresponding to the page with the page number 7 is cancelled.
[0116] In an embodiment of the present application, the method further comprises: when the number of pages is less than or equal to a preset number, generating a corresponding position indicator list according to the to-be-loaded pages; and displaying the current page and the position indicator list.
[0117] Specifically, when the number of to-be-loaded pages is less than or equal to a preset number, it indicates that the number of pages is insufficient for grouping, and one position indicator list can be used to indicate all to-be-loaded pages. Therefore, a corresponding position indicator list is directly generated according to the to-be-loaded pages, and the current page and the position indicator list are displayed on the interface.
[0118] In an embodiment of the present application, the position indication list comprises position indicators corresponding to the pages to be loaded, and the displaying of the current page and the position indication list comprises: distinguishing the position indicator corresponding to the current page from other position indicators.
[0119] Specifically, the position indication list comprises position indicators corresponding to the pages to be loaded, and when the position indication list is displayed on the interface, the position indicator corresponding to the current page is distinguished from position indicators corresponding to other pages.
[0120] In an embodiment of the present application, the position indication list comprises the position indicator corresponding to the current page displayed on the interface, and when the total number of pages is too large, it is not necessary to display a large number of position indicators to indicate all the pages, but only the position indicators corresponding to the pages in the group corresponding to the current page are displayed through the position indication list, thereby improving the versatility of the position indication list, avoiding the problem that the position indication list cannot accommodate too many position indicators when the number of pages is too large, and improving the interface aesthetics.
[0121] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited to the order of the actions described, because according to the embodiments of the present application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the present application.
[0122] Referring to Figure 6 , a structural block diagram of a page switching device provided in an embodiment of the present application is shown, which can specifically comprise the following modules:
[0123] A page grouping module 601 is configured to group the pages to be loaded.
[0124] A list generating module 602 is configured to generate a corresponding position indication list according to each group of pages.
[0125] A list displaying module 603 is configured to display the current page and the current position indication list corresponding to the current page.
[0126] A list switching module 604 is configured to switch the current page to a target page in response to a switching operation of switching to the target page, and when the current page and the target page are not in the same group, the current position indication list is switched to a target position indication list corresponding to the target page.
[0127] Optionally, the page grouping module 601 comprises:
[0128] a quantity obtaining sub-module, configured to obtain a page quantity of the to-be-loaded pages;
[0129] a page grouping sub-module, configured to group the to-be-loaded pages according to a preset quantity when the page quantity is greater than the preset quantity.
[0130] Optionally, the page grouping sub-module comprises:
[0131] a page grouping sub-unit, configured to group the pages according to the page code sequence of the to-be-loaded pages and the preset quantity.
[0132] Optionally, the position indicator list comprises position indicators corresponding to the pages, and the list display module 603 comprises:
[0133] an indicator distinguishing sub-module, configured to distinguishively display the position indicator corresponding to the current page from other position indicators.
[0134] Optionally, the position indicator list comprises at least one ellipsis symbol, and the list display module 603 comprises:
[0135] an ellipsis symbol display sub-module, configured to, when a group corresponding to the current page comprises a page corresponding to a minimum page code, locate the ellipsis symbol on one side of the position indicator;
[0136] the ellipsis symbol display sub-module is further configured to, when a group corresponding to the current page comprises a page corresponding to a maximum page code, locate the ellipsis symbol on the other side of the position indicator;
[0137] the ellipsis symbol display sub-module is further configured to, when a group corresponding to the current page does not comprise a page corresponding to a minimum page code and a page corresponding to a maximum page code, configure two ellipsis symbols in the position indicator list, and locate the two ellipsis symbols on two sides of the position indicator respectively.
[0138] Optionally, the method further comprises:
[0139] the list switching module 604 is further configured to, when the current page and the target page are in the same group, change the position indicator distinguishedively displayed in the current position indicator list into a position indicator corresponding to the target page.
[0140] Optionally, the method further comprises:
[0141] the list generation module 602 is further configured to, when the page quantity is less than or equal to a preset quantity, generate a corresponding position indicator list according to the to-be-loaded pages;
[0142] the list display module 603 is further configured to display the current page and the position indicator list.
[0143] Optionally, the position indicator list comprises a position indicator corresponding to the page to be loaded, and the list display module 603 comprises:
[0144] The indicator distinguishing module is further configured to display the position indicator corresponding to the current page differently from other position indicators.
[0145] Optionally, the position indicator list comprises a digital page number identifier, and a style of the digital page number identifier comprises a current page number / total page number.
[0146] For the device embodiment, it is basically similar to the method embodiment, so the description is relatively simple, and the related parts refer to the part of the method embodiment.
[0147] In addition, the embodiment of the present application further provides an electronic device, such as Figure 7 As shown in the figure, the electronic device comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704,
[0148] The memory 703 is used for storing a computer program.
[0149] The processor 701 is used for executing the program stored in the memory 703, and realizes the page switching method described in the above embodiment.
[0150] The communication bus mentioned above can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0151] The communication interface is used for communication between the terminal and other devices.
[0152] The memory can comprise a random access memory (RAM) and can also comprise a non-volatile memory, for example at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0153] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0154] like Figure 8 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 801 is further provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the page switching method described in the above embodiment.
[0155] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer is enabled to execute the page switching method described in the above embodiment.
[0156] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0157] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0158] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.
Claims
1. A page switching method, characterized in that: include: Group the pages to be loaded; Generate a corresponding location indication list according to each group of pages; The position indicator list includes a position indicator corresponding to the current page, a digital page number identifier, and at least one ellipsis symbol; The styles of the digital page number identification include: current page number / total number of pages; Displaying a current page and a current position indicator list corresponding to the current page, including: displaying the position indicator corresponding to the current page separately from other position indicators; when a group corresponding to the current page includes a page corresponding to a minimum page number, the omission symbol is located on one side of the position indicator; when a group corresponding to the current page includes a page corresponding to a maximum page number, the omission symbol is located on the other side of the position indicator; when the group corresponding to the current page does not include pages corresponding to the minimum page number and the maximum page number, the position indicator list is configured with two omission symbols, one located on either side of the position indicator; In response to a switch operation to switch to a target page, the current page is switched to the target page. When the current page and the target page are not in the same group, the current position indication list is switched to a target position indication list corresponding to the target page.
2. The method according to claim 1, characterized in that The grouping of pages to be loaded includes: Get the number of pages to be loaded; When the number of pages is greater than a preset number, the pages to be loaded are grouped according to the preset number.
3. The method according to claim 2, characterized in that The grouping the pages to be loaded according to the preset number includes: The pages to be loaded are grouped according to the page number sequence and the preset number.
4. The method according to claim 1, wherein Switching the current page to the target page further includes: When the current page and the target page are in the same group, the position indicator that is displayed in the current position indication list is changed to the position indicator corresponding to the target page.
5. The method according to claim 2, characterized in that Also includes: When the number of pages is less than or equal to a preset number, generating a corresponding position indication list according to the pages to be loaded; The current page and the position indicator list are displayed.
6. The method according to claim 5, characterized in that The position indicator list includes a position indicator corresponding to the page to be loaded, and the display of the current page and the position indicator list includes: The position indicator corresponding to the current page is displayed separately from other position indicators.
7. A page switching device, characterized in that: The device comprises: Page grouping module, used to group pages to be loaded; A list generation module is configured to generate a corresponding position indicator list according to each group of pages; the position indicator list includes a position indicator corresponding to the current page, a digital page number identifier, and at least one ellipsis symbol; the digital page number identifier includes the following formats: current page number / total number of pages; a list display module for displaying a current page and a current position indicator list corresponding to the current page, comprising: an indicator distinguishing submodule for displaying the position indicator corresponding to the current page in distinction from other position indicators; an ellipsis display submodule for locating the ellipsis symbol on one side of the position indicator when a group corresponding to the current page includes a page corresponding to a minimum page number; an ellipsis display submodule for locating the ellipsis symbol on the other side of the position indicator when a group corresponding to the current page includes a page corresponding to a maximum page number; and an ellipsis display submodule for configuring the position indicator list with two ellipsis symbols, one on each side of the position indicator, when a group corresponding to the current page does not include pages corresponding to the minimum page number and the maximum page number; The list switching module is used to respond to a switching operation to switch to a target page, switch the current page to the target page, and when the current page and the target page are not in the same group, switch the current position indication list to a target position indication list corresponding to the target page.
8. An electronic device, characterized in that: comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to implement the method according to any one of claims 1 to 6 when executing a program stored in the memory.
9. One or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Subpage control realization method and device and equipment
CN107450891A