Screening item switching method and switching system

By recording and calculating the position of data items under filter items, the problem of positioning deviation caused by data source changes after filter items are switched is solved, and precise positioning is achieved in the case of two-way data changes.

CN118732905APending Publication Date: 2024-10-01KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764235.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the data source changes in both directions, when the filter item is switched and returned to the original filter item, the previous offset position cannot be accurately located because the previously recorded offset is invalid due to the change in the data source.

Method used

By recording the identifier and position of the specific data item in the initial visual window under the filter item, combined with the layout position after the data item is loaded, the accurate offset is calculated to locate the original position.

Benefits of technology

When the data source changes in both directions, the previous scroll position can be accurately located, which solves the problem of positioning deviation caused by a single page offset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732905A_ABST
    Figure CN118732905A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of networks, and discloses a switching method and a switching system for screening items. The method comprises the following steps: in response to an instruction of switching from a first screening item to at least one second screening item, switching from an initial visual window under the first screening item to a specific screening item in the at least one second screening item so as to display a corresponding screening result; and displaying the initial visual window on a display screen in response to an action of loading the data items above and / or below the data items under the first screening item and an instruction of switching from the specific screening item to the first screening item. When the data source bidirectionally changes, if the data source is switched back to the previous screening item, the offset position of the last browsing can be accurately positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a switching method and a switching system for filtering items. Background Art

[0002] When switching filter items, the offset of a data item from the top or bottom of the screen is usually recorded. When switching back, the data is refreshed and displayed, and the page elements are shifted according to the offset last recorded to achieve the positioning effect. However, when applied to bidirectional data source changes, this solution has obvious loopholes, because when positioning on the current filter item, the data source of other filter items may change in both directions (pulling historical data upward and loading the latest data downward), causing the offset of the previous record to change. When clicking back to the previous filter item again, the offset is based on the previous record, and the positioning position will be deviated.

[0003] For example, currently in filter item A, the page sliding offset is 100. Click filter item B. When browsing the data content of filter item B, the data corresponding to filter item A generates a new data content at the top and bottom respectively. When filter item A is clicked again, it is offset according to the previously recorded offset of 100. Due to the insertion of the data above, the offset should be the height of (100 + the message above). Therefore, this conventional technical solution cannot meet the requirement of locating the last browsed position. Summary of the invention

[0004] The object of the present invention is to provide a switching method and a switching system for filter items, which can accurately locate the offset position of the last browsing when switching back to the previous filter item when the data source changes in both directions.

[0005] In order to achieve the above-mentioned objectives, the present invention provides a method for switching filter items on one hand, the switching method comprising: in response to an instruction to switch from a first filter item to at least one second filter item, switching from an initial visible window under the first filter item to a specific filter item in the at least one second filter item to display corresponding filter results; and in response to an action of loading data entries above and / or below the data entries under the first filter item and an instruction to switch from the specific filter item back to the first filter item, displaying the initial visible window on the display screen.

[0006] In one embodiment, the switching from the initial visible window under the first filter item to the specific filter item among the at least one second filter item includes: in response to an instruction to switch from the first filter item to the at least one second filter item, determining and storing an identifier of a specific data entry in the initial visible window under the first filter item on the display screen and a vertical distance of a specific position of the specific data entry relative to a reference position of the display screen; and switching from the first filter item to the specific filter item to display the corresponding filter result.

[0007] In one embodiment, displaying the initial visible window on the display screen includes: in response to an action of loading data entries above and / or below the data entries under the first filter item and an instruction to switch back from the specific filter item to the first filter item, refreshing and storing the layout position of the data entries under the first filter item; acquiring the layout position and the vertical distance of the specific data entry corresponding to the identifier; and positioning the specific data entry according to the layout position and the vertical distance of the specific data entry, and displaying the initial visible window on the display screen.

[0008] In one embodiment, the specific data entry is any data entry in the initial visible window under the first filter item, the specific position is any position of any data entry, and the reference position is the top, center or bottom of the display screen.

[0009] In one embodiment, the specific data entry is the last data entry, the specific position is the bottom and the reference position is the bottom and / or the center; or the specific data entry is the first data entry, the specific position is the top and the reference position is the top and / or the center.

[0010] In one embodiment, when the specific data entry is the last data entry, the specific position is the bottom and the reference position is the bottom, the positioning of the specific data entry includes: determining the vertical coordinate of the bottom position of the specific data entry based on the vertical coordinate of the layout position of the specific data entry and the height of the specific data entry; determining the difference between the vertical coordinate of the bottom position of the specific data entry and the vertical distance as an offset; and offsetting the specific data entry according to the offset.

[0011] In one embodiment, when the specific data entry is the first data entry, the specific position is the top and the reference position is the top, positioning the specific data entry includes: determining the sum of the longitudinal coordinate of the layout position of the specific data entry and the vertical distance as an offset; and offsetting the specific data entry according to the offset.

[0012] Through the above technical scheme, the present invention creatively can accurately locate the previous scrolling position of the filter item after switching from one filter item to another, even if the original filter item updates data in both directions after switching back to the original filter item, thereby compensating for the problem that the logic of loading new data simultaneously at the upper and lower parts of the previous single page offset cannot be located.

[0013] A second aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for switching filter items is implemented.

[0014] A third aspect of the present invention provides an electronic device, comprising: a processor; and a memory communicatively connected to the processor, the memory storing a computer program; the processor executes the computer program stored in the memory to implement the method for switching filter items.

[0015] A fourth aspect of the present invention provides a computer program product, comprising a computer program, which implements the method for switching filter items when executed by a processor.

[0016] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0018] Figure 1 is a flow chart of a method for switching filter items provided by an embodiment of the present invention;

[0019] Figure 2 is an overall flow chart of a switching process of filter items provided by an embodiment of the present invention; and

[0020] Figure 3 It is a schematic diagram of a page including two filtering items provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0022] Figure 1 FIG. 1 is a flow chart of a method for switching filter items provided by an embodiment of the present invention. Figure 1As shown, the switching method may include: step S1, in response to an instruction to switch from a first filter item to at least one second filter item, switching from an initial visible window under the first filter item to a specific filter item in the at least one second filter item to display the corresponding filter result; and step S2, in response to an action of loading data entries above and / or below the data entry under the first filter item and an instruction to switch from the specific filter item back to the first filter item, displaying the initial visible window on the display screen.

[0023] In one embodiment, when a switch instruction from a first filter item (e.g., [All]) to a second filter item (e.g., [A]) is received, the first filter item (e.g., [All]) jumps to the second filter item (e.g., [A]) and displays the corresponding filter results under the second filter item (e.g., [A]); due to business needs, an operation of loading data entries is performed under the first filter item, and when an instruction to switch from the second filter item (e.g., [A]) back to the first filter item (e.g., [All]) is received, the initial visible window is displayed on the display screen, that is, the visible window before the switch is positioned.

[0024] In another embodiment, the switching instruction may refer to direct or indirect switching, for example, directly switching from the filter item [All] to the filter item [A] / [B], or switching from the filter item [All] to the filter item [A], and then switching to the filter item [B] via [A], that is, indirectly switching from the filter item [All] to the filter item [B]. Specific settings can be made according to actual needs.

[0025] When a switching instruction is received, the first filter item (for example, [All]) first jumps to a second filter item (for example, [A]) to display the corresponding filtering results under the two second filter items (for example, [A], [B]); then the second filter item (for example, [A]) jumps to another second filter item (for example, [B]) to display the corresponding filtering results under the two second filter items (for example, [B]). Due to business needs, the operation of loading data entries is performed under the first filter item. When an instruction to switch from a second filter item (for example, [B]) back to the first filter item (for example, [All]) is received, the initial visible window can be displayed on the display screen, that is, the visible window before the switch is positioned.

[0026] In other embodiments, other different numbers of second filter items may be set according to actual needs, which are not listed here one by one. That is, the intermediate switching link may also include more switching processes.

[0027] For step S1, switching from the initial visible window under the first filter item to at least one second filter item includes: step S101, in response to an instruction to switch from the first filter item to at least one second filter item, determining and storing an identifier of a specific data entry in the initial visible window under the first filter item on the display screen and a vertical distance between a specific position of the specific data entry and a reference position of the display screen; and step S102, switching from the first filter item to the specific second filter item to display the corresponding filter result.

[0028] For step S2, displaying the initial visible window on the display screen includes: step S103, in response to the action of loading data entries above and / or below the data entries under the first filter item and the instruction of switching from the specific filter item back to the first filter item, refreshing and storing the layout position of the data entries under the first filter item; step S104, obtaining the layout position and the vertical distance of the specific data entry corresponding to the identifier; and step S105, positioning the specific data entry according to the layout position and the vertical distance of the specific data entry, and displaying the initial visible window on the display screen.

[0029] The above steps S101 - S105 are explained and illustrated below respectively.

[0030] The data list under each filter item includes multiple data items (i.e. data content). For example, the filter item [All] includes 12 data items from 100 to 111. Figure 2 As shown in page 1.

[0031] Before executing step S101, a unique identifier (ID) needs to be provided for each data entry in the current list under each filter item. Figure 3 As shown, the IDs corresponding to the 12 data items 100, ..., 111 under the filter item [All] are xxx, ..., yyy respectively.

[0032] When the user scrolls the page of the first filter item (such as [All]) to Figure 2 When the initial visible window (i.e., scroll window) shown in page 2 is displayed, the first data item and the last data item displayed on the screen are ID=102 and ID=110 respectively. At this time, if the user clicks the second filter item (e.g., [A]), it is equivalent to sending an instruction to switch from the first filter item (e.g., [All]) to the second filter item (e.g., [A]), executing step S101 to determine and store the offset position of the current browsing, and then executing the specific switching process through S102.

[0033] For step S101 , different selections of the specific data entry, the specific position, and the reference position may bring different computational loads to the switching process, thereby achieving different switching efficiencies.

[0034] The specific data entry is any data entry in the initial visible window under the first filter item, the specific position is any position of any data entry, and the reference position is the top, center or bottom of the display screen.

[0035] In one embodiment, the specific data entry is the last data entry, the specific position is the bottom, and the reference position is the bottom and / or the center.

[0036] like Figure 2 As shown in page 2 in the figure, when the filter item jumps from [All] to [A], first find the last data item displayed in the visible range of the current filter item [All] page (for example, ID = 110), record the unique ID of the data item, and at the same time calculate the vertical distance of the bottom position of the data item (such as the red dotted line) relative to the bottom of the display screen (that is, the offset or the invisible height of this item, such as Figure 2 The two data are stored as shown in "T" on page 2 of Figure 2 As shown on the right side of the .

[0037] Specifically, first, get the layout coordinates (x0, y0, width, height) of the last data item (e.g. ID=110) displayed within the visible range of the current filter item [All] page, and then get the vertical coordinate cell_bottom of the bottom of the data item, i.e. (y0+height). Then, get the scroll offset offset of the overall view that carries all items, and the height of the overall view (i.e. screen height) view_height, and then get the vertical coordinate view_bottom of the bottom of the screen (i.e. the bottom of the visible area), i.e. (offset+view_height). Finally, subtract the data obtained in the first two steps to get T=cell_bottom-view_bottom.

[0038] In another embodiment, the specific data entry is the first data entry, the specific position is the top, and the reference position is the top and / or the center.

[0039] like Figure 2As shown in page 2, when the filter item jumps from [All] to [A], first find the first data entry displayed in the visible range of the current filter item [All] page (for example, ID = 102), record the unique ID of the data entry, and at the same time calculate the vertical distance (i.e., offset) of the top position of this data entry (not shown) relative to the top of the display screen, and store these two data.

[0040] In addition, the specific data entry, the specific position, and the reference position may be reasonably set according to actual needs.

[0041] For step S102, a specific switching process is performed, for example, 8 pieces of data with IDs 104-111 are screened out, such as Figure 2 As shown in page 3.

[0042] For step S103, the at least one second filtering item may be one or more second filtering items.

[0043] In one embodiment, the at least one second filter item may be one second filter item. That is, the first filter item is switched to the second filter item, and then the second filter item is switched back to the first filter item, i.e., a reciprocating switching process.

[0044] When the second filter item (e.g. [A]) is located, a data item with ID 99 is loaded above the data list of the first filter item (e.g. [All]) and a data item with ID 112 is loaded below. Figure 2 When the user wants to jump back to the first filter item (e.g., [All]) from the second filter item (e.g., [A]), he clicks the first filter item (e.g., [All]), which is equivalent to sending an instruction to switch from the second filter item (e.g., [A]) to the first filter item (e.g., [All]). At this time, the page under the first filter item (e.g., [All]) is refreshed, and the overall data will be re-layouted from the top, thereby determining the layout position of all data items, as shown in Figure 4. Figure 2 As shown in page 5 of the figure. Among them, the layout position (x i ,y i ,width i ,height i ), where x i ,y i are the position coordinates of the upper left corner of data entry i, width i 、height i are the width and height of data entry i respectively. Afterwards, the determined layout position is stored to form updated list data.

[0045] For step S104, according to the stored unique ID (e.g., 110) under the first filter item (e.g., [All]), the layout position (e.g., (x, y, width, height)) of the data entry (e.g., ID=110) corresponding to the unique ID (e.g., 110) in the updated list data under the filter item is searched from the updated data list. In addition, it is also necessary to obtain the vertical distance (i.e., the previously browsed offset T) of the bottom position of the stored data entry (e.g., ID=110) corresponding to the unique ID (e.g., 110) relative to the bottom of the display screen.

[0046] For step S105, in one embodiment, when the specific data entry is the last data entry, the specific position is the bottom and the reference position is the bottom, the positioning of the specific data entry includes: determining the vertical coordinate of the bottom position of the specific data entry based on the vertical coordinate of the layout position of the specific data entry and the height of the specific data entry; determining the difference between the vertical coordinate of the bottom position of the specific data entry and the vertical distance as an offset; and performing an offset on the specific data entry according to the offset.

[0047] Specifically, the vertical coordinate y of the layout position (e.g. (x, y, width, height)) of the data entry (e.g. ID=110) of the unique ID (e.g., 110) is added to the height height of the data entry (e.g., ID=110) to obtain the vertical coordinate y+height of the bottom of the data entry (e.g., ID=110), and then the vertical distance (i.e., the previously browsed offset T) is subtracted from y+height to obtain the offset y+height-T that will occur. Finally, an offset operation with an offset of y+height-T is performed on the data entry (e.g., ID=110), so that the first filter item (e.g., [All]) can be accurately positioned in the previously browsed visible window (i.e., the scroll window), as shown in FIG. Figure 2 See page 6 or 7.

[0048] In another embodiment, when the specific data entry is the first data entry, the specific position is the top and the reference position is the top, positioning the specific data entry includes: determining the sum of the longitudinal coordinate of the layout position of the specific data entry and the vertical distance as an offset; and offsetting the specific data entry according to the offset.

[0049] Specifically, the vertical coordinate y of the layout position (e.g. (x, y, width, height)) of the data entry (e.g. ID=102) of the unique ID (e.g., 102) is added to the obtained vertical distance (i.e. the previously browsed offset T) to obtain the offset y+T to be occurred. Finally, the data entry (e.g., ID=102) is subjected to an offset operation with an offset of y+T, so that the first filter item (e.g., [All]) can be accurately positioned in the previously browsed visible window, as shown in FIG. Figure 2 See page 6 or 7.

[0050] In another embodiment, the at least one second filter item may be multiple second filter items (e.g., two second filter items). For example, first switch from the first filter item (e.g., [All]) to a second filter item (e.g., [A]), and then switch from the second filter item to another second filter item (e.g., [B]). At this time, the data entry of the first filter item is loaded and updated, and a switch from the second filter item (e.g., [B]) back to the first filter item (e.g., [All]) is received. That is, it is not a reciprocating switching process.

[0051] After receiving a continuous switching instruction (for example, when the first filter item is displayed, the user first clicks filter item [A] and then clicks filter item [B]), after locating a second filter item (for example, [A]), it switches to another second filter item (for example, [B]) (the user can also click the other second filter item (for example, [B])), switching from the one second filter item (for example, [A]) to the other second filter item (for example, [B]). When locating another filter item (for example, [B]), a data with ID 99 is loaded above the data list of the first filter item (for example, [All]) and a data with ID 112 is loaded below, such as Figure 2 When the user wants to jump back to the first filter item (e.g., [All]) from another second filter item (e.g., [B]), he clicks the first filter item (e.g., [All]), which is equivalent to sending an instruction to switch from another second filter item (e.g., [B]) to the first filter item (e.g., [All]). At this time, the page under the first filter item (e.g., [All]) is refreshed, and the overall data will be re-layouted from the top, thereby determining the layout position of all data items, as shown in Figure 4. Figure 2 As shown in page 5 of the figure. Among them, the layout position (x i ,y i ,width i ,height i ), where x i ,y i are the position coordinates of the upper left corner of data entry i, width i 、height iare the width and height of data entry i respectively. Afterwards, the determined layout position is stored to form updated list data.

[0052] Specifically, the following will Figure 2 Take the following as an example to illustrate the switching process of filter items.

[0053] Step 1: Enter the page and display the initial state of [All].

[0054] Position the [All] filter item. The data source records all the data in the current data list. The result is 12 data items from 100 to 111, which are displayed from top to bottom. Figure 2 As shown in page 1.

[0055] Step 2: The user performs a sliding action.

[0056] The user scrolls the page where the [All] filter item is located to Figure 2 As shown in page 2, the data entry with ID 110 is displayed at the bottom of the display area.

[0057] Step 3: The user clicks a filter option.

[0058] Click filter item [A]: 1. Record the data status of the filter item [All] before switching, including the ID of the last data item in the current visible window (i.e. 110) and the invisible height of this item (e.g. Figure 2 2. Filter out 8 data entries with IDs 104-111, such as Figure 2 As shown in page 3.

[0059] Step 4: Bidirectional data changes occur.

[0060] When locating the filter item [A], a data item with ID 99 is loaded above the data of the filter item [All] and a data item with ID 112 is loaded below. The updated data list is displayed in Figure 2 On page 4 of .

[0061] Step 5: Toggle the filter.

[0062] Switch to the filter item [All]: The page is refreshed and the overall data is re-layouted from the top. At this time, the layout positions of all items have been determined, such as Figure 2 As shown in page 5.

[0063] Step 6: Locate the original offset.

[0064] Locate to the original offset: Get the stored unique ID (110) and offset T, and use the ID to get the layout position of the corresponding entry (such as (x, y, width, height)). Then, calculate the offset by y+height-T. Then, offset the data entry with ID 110 according to the calculated offset to locate to the original browsing position. For example, Figure 2 As shown on page 7.

[0065] Step 7: Present the final state.

[0066] It can switch between different filter items, and when the upstream and downstream data change at the same time, it can also accurately locate the previously scrolled position, such as Figure 2 As shown on page 7.

[0067] Different filter items in various embodiments of the present invention are all on the same page by default. Figure 2 Pages 1 to 7 shown in the figure represent the same page, and are only used to distinguish different states of the page in different switching stages.

[0068] The layout position in each of the above embodiments refers to the position in the layout coordinate axis, where the layout coordinate axis takes the upper left corner of the first entry in the data list as the origin (0,0), and the horizontal axis extends to the right of the screen, and the vertical axis extends downward. Because the layout position is a necessary attribute of the page layout, it is calculated before the layout, similar to calculating the layout position from the first entry to the last entry, so this layout position can be directly obtained.

[0069] Because this layout position is a necessary attribute of the page layout, it has been calculated before the layout, similar to calculating the layout position from the first item to the last item, so when you want to locate the original browsing position, this layout position can be directly obtained.

[0070] In summary, the present invention creatively adopts a composite storage structure to record the unique ID of a certain visual item and the offset to the visible range of the screen, and then combines the layout position of the visual item after the bidirectional update data to accurately calculate the exact value of the offset when repositioning to the original filter item. Therefore, the present invention can accurately locate the previous scrolling position of the filter item, thereby compensating for the problem that the logic of loading new data simultaneously at the upper and lower parts cannot be located due to recording the upper or lower offset of a single page.

[0071] An embodiment of the present invention provides a switching system for filtering items, the switching system comprising: a switching device for switching from an initial visible window under a first filtering item to a specific filtering item in the at least one second filtering item in response to an instruction to switch from a first filtering item to at least one second filtering item, so as to display corresponding filtering results; and a display device for displaying the initial visible window on a display screen in response to an action of loading data entries above and / or below the data entries under the first filtering item and an instruction to switch from the specific filtering item back to the first filtering item.

[0072] In one embodiment, the switching device includes: a determination unit, which is used to determine and store, in response to an instruction to switch from a first filtering item to at least one second filtering item, an identifier of a specific data item in an initial visible window under the first filtering item on a display screen and a vertical distance of a specific position of the specific data item relative to a reference position of the display screen; and a switching unit, which is used to switch from the first filtering item to the specific filtering item to display a corresponding filtering result.

[0073] In one embodiment, the display device includes: a refresh unit, configured to refresh and store the layout position of the data entry under the first filter item in response to an action of loading data entries above and / or below the data entry under the first filter item and an instruction to switch from the specific filter item back to the first filter item; an acquisition unit, configured to acquire the layout position and the vertical distance of the specific data entry corresponding to the identifier; and a display unit, configured to position the specific data entry according to the layout position and the vertical distance of the specific data entry, and display the initial visible window on the display screen.

[0074] In one embodiment, the specific data entry is the last data entry, the specific position is the bottom and the reference position is the bottom and / or the center; or the specific data entry is the first data entry, the specific position is the top and the reference position is the top and / or the center.

[0075] For specific details and benefits of the system for switching filter items provided by the embodiment of the present invention, please refer to the description of the method for switching filter items, which will not be described in detail here.

[0076] An embodiment of the present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method for switching filter items is implemented.

[0077] An embodiment of the present invention provides an electronic device, comprising: a processor; and a memory communicatively connected to the processor, the memory storing a computer program; the processor executes the computer program stored in the memory to implement the method for switching filter items.

[0078] An embodiment of the present invention provides a computer program product, including a computer program, which implements the method for switching filter items when executed by a processor.

[0079] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.

[0080] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0081] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0082] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0083] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0084] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A method for switching filter items, characterized in that: The switching method comprises: In response to an instruction to switch from a first filter item to at least one second filter item, switching from an initial visible window under the first filter item to a specific filter item in the at least one second filter item to display a corresponding filter result; and In response to the action of loading data items above and / or below the data items under the first filter item and the instruction of switching from the specific filter item back to the first filter item, the initial visible window is displayed on the display screen.

2. The switching method according to claim 1, characterized in that: The switching from the initial visible window under the first filter item to a specific filter item in the at least one second filter item comprises: In response to an instruction to switch from a first filter item to at least one second filter item, determining and storing an identifier of a specific data item in an initial visible window under the first filter item on a display screen and a vertical distance between a specific position of the specific data item and a reference position of the display screen; and Switch from the first filtering item to the specific filtering item to display the corresponding filtering result.

3. The switching method according to claim 2, characterized in that: Displaying the initial visible window on the display screen comprises: In response to an action of loading data items above and / or below the data items under the first filter item and an instruction of switching from the specific filter item back to the first filter item, refreshing and storing the layout positions of the data items under the first filter item; Acquire the layout position and the vertical distance of the specific data entry corresponding to the identifier; and The specific data entry is positioned according to the layout position of the specific data entry and the vertical distance, and the initial visible window is displayed on the display screen.

4. The switching method according to claim 2 or 3, characterized in that: The specific data entry is any data entry in the initial visible window under the first filter item, the specific position is any position of any data entry, and the reference position is the top, center or bottom of the display screen.

5. The switching method according to claim 4, characterized in that: The specific data entry is the last data entry, the specific position is the bottom, and the reference position is the bottom and / or the center; or The specific data entry is the first data entry, the specific position is the top, and the reference position is the top and / or the center.

6. The switching method according to claim 5, characterized in that: In a case where the specific data entry is the last data entry, the specific position is the bottom, and the reference position is the bottom, locating the specific data entry includes: Determining the ordinate of the bottom position of the specific data entry according to the ordinate of the layout position of the specific data entry and the height of the specific data entry; determining a difference between the ordinate of the bottom position of the specific data entry and the vertical distance as an offset; and The specific data entry is offset according to the offset.

7. The switching method according to claim 5, characterized in that: In a case where the specific data entry is the first data entry, the specific position is the top, and the reference position is the top, positioning the specific data entry includes: determining the sum of the ordinate of the layout position of the specific data entry and the vertical distance as an offset; and The specific data entry is offset according to the offset.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for switching filter items according to any one of claims 1 to 5.

9. An electronic device, characterized in that: The electronic device comprises: a processor; and a memory connected to the processor in communication, The memory stores a computer program; The processor executes the computer program stored in the memory to implement the method for switching filter items according to any one of claims 1 to 5.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for switching filter items according to any one of claims 1 to 5.