Data screening method, device, equipment and storage medium
By providing the switching functions of single-select and multiple-select modes in the data filtering interface, the problem of single-select function and poor effect in the prior art is solved, and a more flexible and efficient data filtering process is achieved.
Patent Information
- Application Number
- CN202210146864.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-02-17
AI Technical Summary
The existing data filtering function is difficult to meet the needs of different users, the screening effect is poor, and the filtering method is single, so it is impossible to switch flexibly.
It provides a data filtering method and device, by receiving interface data of the data filtering interface sent by the server, displaying the data filtering interface of the single-select mode or the multi-select mode, and responding to the mode switching option, switching to another filtering mode to realize flexible data filtering.
It improves the flexibility and effect of data filtering, is more in line with user needs, and provides switching functions of two filtering modes: single-choice and multiple-choice, enhancing the user's operating experience.
Smart Images

Figure CN114519069B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data screening method, device, equipment and storage medium. Background Art
[0002] With the development of Internet technology, more and more data are transmitted in the network. Due to the large amount of this data, it is difficult for users to view them one by one. Therefore, related technologies provide a data filtering function for users to filter out the data they want through this function.
[0003] At present, some applications provide a single-selection filtering function, in which the application will display multiple keywords to the user. After the user clicks on any keyword, the application will display the data matching the keyword to the user. Some applications also provide a multiple-selection filtering function, in which the application will display multiple keywords and filtering options to the user. After the user selects at least one keyword, the filtering option is triggered, so that the application displays the data matching the at least one keyword to the user.
[0004] Considering that different users have different screening intentions, the screening method of the screening function in the above solution is single, which is difficult to meet the needs of different users and the screening effect is poor. Summary of the invention
[0005] The embodiments of the present application provide a data screening method, device, equipment and storage medium, which better meet the needs of users and improve the screening effect. The technical solution is as follows:
[0006] In one aspect, a data screening method is provided, the method comprising:
[0007] Receiving interface data of a data screening interface sent by a server, wherein the interface data includes a mode field, and the mode field is used to indicate a single selection mode or a multiple selection mode;
[0008] Based on the mode field in the interface data, displaying a data filtering interface in a first mode, the data filtering interface including a mode switching option;
[0009] In response to a trigger operation on the mode switching option, displaying a data filtering interface in a second mode, wherein the first mode is the single selection mode and the second mode is the multiple selection mode; or, the first mode is the multiple selection mode and the second mode is the single selection mode;
[0010] In response to a filtering operation in the data filtering interface, data filtering is performed based on the second mode, and the filtered data is displayed in the data filtering interface.
[0011] In one aspect, a data screening device is provided, the device comprising:
[0012] A receiving module, used for receiving interface data of a data screening interface sent by a server, wherein the interface data includes a mode field, and the mode field is used for indicating a single selection mode or a multiple selection mode;
[0013] A display module, configured to display a data filtering interface in a first mode based on a mode field in the interface data, wherein the data filtering interface includes a mode switching option;
[0014] The display module is further configured to display a data filtering interface in a second mode in response to a triggering operation on the mode switching option, wherein the first mode is the single selection mode and the second mode is the multiple selection mode; or the first mode is the multiple selection mode and the second mode is the single selection mode;
[0015] The display module is further used to respond to the filtering operation in the data filtering interface, perform data filtering based on the second mode, and display the filtered data in the data filtering interface.
[0016] In a possible implementation, the apparatus further includes a sending module, and the sending module is further configured to perform any of the following:
[0017] Sending an access request for the data screening interface to the server, the access request carrying a logged-in user identifier, and the server determining the mode field based on a screening mode usage record corresponding to the user identifier;
[0018] A data filtering request is sent to the server, wherein the data filtering request carries a target filtering mode and a category for filtering, wherein the target filtering mode is the filtering mode adopted for this filtering, and the server performs data filtering based on the category for filtering to obtain filtered data, and determines interface data including the mode field based on the filtered data and the target filtering mode, wherein the mode field is used to indicate the target filtering mode.
[0019] In a possible implementation, the data screening interface includes a plurality of category trees and screening options of different dimensions, each category tree includes multiple levels of categories belonging to the same dimension, and the second mode is the multiple selection mode;
[0020] The display module comprises:
[0021] an adjusting unit, configured to, in response to a selection operation on any last-level category in the first category tree, adjust the state of the category to a selected state, and in response to a triggering operation of the filtering option, perform data filtering based on at least one category in the selected state to obtain data matching the at least one category;
[0022] a matching unit, configured to match each last-level category in the category tree with the filtered data for each category tree, so as to obtain a last-level category in the category tree that matches the filtered data;
[0023] A reconstruction unit, configured to reconstruct a category tree based on the last level category in each category tree that matches the filtered data;
[0024] A display unit is used to display the filtered data and each reconstructed category tree in the data filtering interface.
[0025] In a possible implementation, the display module includes:
[0026] The adjustment unit adjusts the state of any last-level category in the first category tree to a selected state in response to a selection operation on the category;
[0027] a sending unit, configured to send a data filtering request to the server in response to a trigger operation of the filtering option, wherein the data filtering request carries at least one category in the selected state, and the server performs data filtering based on the at least one category to obtain data matching the at least one category, and for each category tree, matches each last-level category in the category tree with the filtered data to obtain the last-level category in the category tree that matches the filtered data, and reconstructs the category tree based on the last-level category in each category tree that matches the filtered data, and returns a data filtering result, wherein the data filtering result includes the filtered data, each reconstructed category tree, and the at least one category;
[0028] A receiving unit, configured to receive the data screening result, and display the screened data and each reconstructed category tree in the data screening interface;
[0029] The adjustment unit is further configured to adjust the state of the at least one category in the reconstructed category tree to the selected state.
[0030] In a possible implementation, the display module includes:
[0031] A monitoring unit, used for monitoring a triggering event of the mode switching option;
[0032] a display unit, configured to display a filtering option and a reset option in the data filtering interface in response to monitoring a triggering event of the mode switching option when the first mode is the single-selection mode, wherein the filtering option is used to trigger the filtering process, and the reset option is used to adjust the state of the category in the selected state to the unselected state;
[0033] The display unit is further configured to cancel display of the filtering option and the reset option in the data filtering interface in response to monitoring a triggering event for the mode switching option when the first mode is the multiple selection mode.
[0034] In a possible implementation, the display unit is configured to display a filter option, a reset option, and a check box corresponding to each last-level category in the data filter interface in response to monitoring a trigger event for the mode switching option;
[0035] an adjusting unit, configured to adjust the state of the check box corresponding to any last-level category to a selected state in response to a selection event of the last-level category;
[0036] The adjusting unit is used to adjust the state of each check box in the selected state to an unselected state in response to a triggering event of the reset option.
[0037] In a possible implementation, the mode field is further used to indicate at least one of a recommendation mode, a novelty mode, or a preference mode; the device further includes a screening module, and the screening module is further used to perform any of the following:
[0038] In response to the selection operation of the recommendation mode, data is screened based on the recommendation feedback values of the candidate data to obtain data that meets the recommendation conditions, and the data that meets the recommendation conditions is displayed in the data screening interface, and the recommendation feedback value of any data indicates the popularity of the data;
[0039] In response to a selection operation of the novel mode, based on historical behavior data corresponding to the logged-in user identifier, candidate data that has not been displayed is filtered out from the candidate data, and the candidate data that has not been displayed is displayed in the data filtering interface;
[0040] In response to the selection operation of the preference mode, data is filtered based on the user portrait corresponding to the user identifier to obtain data matching the user portrait, and the data matching the user portrait is displayed in the data filtering interface.
[0041] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein the one or more memories store at least one program code, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the data screening method in any possible implementation manner as described above.
[0042] On the one hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed by the data screening method in any possible implementation manner as described above.
[0043] On the one hand, a computer program or a computer program product is provided, wherein the computer program or the computer program product comprises: a computer program code, wherein when the computer program code is executed by a computer, the computer implements the operations performed by the data screening method in any possible implementation manner as described above.
[0044] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0045] The data screening method, apparatus, device and storage medium provided in the embodiments of the present application provide two screening modes, single selection and multiple selection, in the same screening interface. A screening mode is first displayed through the mode field of the back end. If the screening mode does not meet the user's intention, the user can also switch to another screening mode through the mode switching option, and flexibly select the data screening mode he wants, making the data screening process more flexible, more in line with user needs, and improving the screening effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0048] Figure 2 is a flow chart of a data screening method provided in an embodiment of the present application;
[0049] Figure 3 is a flow chart of another data screening method provided in an embodiment of the present application;
[0050] Figure 4 is a schematic diagram of a data screening interface provided in an embodiment of the present application;
[0051] Figure 5 is a schematic diagram of another data screening interface provided in an embodiment of the present application;
[0052] Figure 6 is a schematic diagram of another data screening interface provided in an embodiment of the present application;
[0053] Figure 7 is a schematic diagram of another data screening interface provided in an embodiment of the present application;
[0054] Figure 8 is a schematic diagram of another data screening interface provided in an embodiment of the present application;
[0055] Fig. 9 is a flow chart of a data screening method provided in an embodiment of the present application;
[0056] Fig.10 is a structural schematic diagram of a data screening device provided in an embodiment of the present application;
[0057] Fig.11 is a structural schematic diagram of another data screening device provided in an embodiment of the present application;
[0058] Fig.12 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0059] Fig.13 It is a schematic diagram of the structure of the server provided in the embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0061] It is understood that the terms "first", "second", etc. used in this application can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, the first mode can be referred to as the second mode, and similarly, the second mode can be referred to as the first mode.
[0062] The terms "at least one", "multiple", "each", and "any" used in this application, at least one includes one, two or more than two, multiple includes two or more than two, each refers to each of the corresponding multiple, and any refers to any one of the multiple. For example, multiple modes include 3 modes, and each refers to each of the 3 modes, and any refers to any one of the 3 modes, which can be the first, the second, or the third.
[0063] It can be understood that in the specific implementation of this application, user data, user portraits and other user-related data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0064] The data screening method provided in the embodiment of the present application is performed by a computer device. In one possible implementation, the computer device is a terminal, for example, the terminal is any type of terminal such as a desktop computer, a tablet computer or a mobile phone. In another possible implementation, the computer device is a server. For example, the server can be a server, or a server cluster composed of several servers, or a cloud computing service center. In another possible implementation, the computer device includes a terminal and a server.
[0065] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.
[0066] Optionally, the terminal 101 is any type of terminal such as a desktop computer, a tablet computer or a mobile phone, etc. The server 102 is a server, or a server cluster composed of several servers, or a cloud computing service center.
[0067] The target application provided by the server 102 is installed on the terminal 101, and the terminal 101 can realize functions such as data transmission and message interaction through the target application. Optionally, the target application is an application in the operating system of the terminal 101, or an application provided by a third party. For example, the target application is a data processing application, and the data processing application has the function of filtering data. Of course, the data processing application can also have other functions, such as shopping function, sharing function, etc.
[0068] Optionally, the user can access the data filtering interface on the terminal 101, and the server 102 can determine the data that needs to be displayed on the data filtering interface and the filtering mode of the data filtering interface, and send the interface data to the terminal 101 so that the terminal 101 displays the data filtering interface of the corresponding filtering mode. If the user is not satisfied with the filtering mode, the user can also change the filtering mode through the filtering switching option in the data filtering interface.
[0069] The data screening method provided in the embodiments of the present application can be applied to any data screening scenario.
[0070] For example, it is applied to takeaway scenarios.
[0071] When ordering takeout, users can filter out their favorite food from a variety of food through data screening. If the data screening method provided by the embodiment of the present application is adopted, when the user's screening intention is clear, the user can select the single-select mode for screening, and when the user's screening intention is unclear, the user can select the multiple-select mode for screening, so that the user can flexibly select the data screening mode he needs, making the data screening process more flexible, more in line with the needs of users, and improving the screening effect.
[0072] It should be noted that the embodiments of the present application are merely illustrative of the data screening scenario using a takeaway scenario, and do not limit the data screening scenario.
[0073] Filtering is an important processing method for users to filter information and is widely used in various applications. However, in the application scenario, only single-selection mode or only multiple-selection mode is supported. For application scenarios that only support single-selection mode, when the filtering results do not meet expectations or the filtering intention is unclear, the user needs to redefine the filtering conditions and initiate the filtering request again to obtain the filtering results. The filtering effect is not good and the filtering efficiency is also poor; and when the user switches the filtering conditions, the filtering results corresponding to different filtering conditions are difficult to compare. For application scenarios that only support multiple-selection mode, when the user's intention is relatively clear, after the user selects a filtering condition (category for filtering, etc.), the user needs to trigger the filtering option to obtain the filtering results. Compared with the single-selection mode, the filtering request can be directly sent by selecting the filtering condition, which increases the user's operation steps.
[0074] The embodiment of the present application provides a screening method that integrates single-selection and multiple-selection switching to meet different user needs. For users with clear screening intentions, the original single-selection function is retained to maintain a fast and efficient single-selection interactive experience; at the same time, for users with unclear screening intentions or multiple-selection needs, a function of switching to multiple-selection mode is provided.
[0075] Figure 2 This is a flow chart of a data implementation method provided by an embodiment of the present application. This embodiment of the present application is exemplified by taking the execution subject as a terminal as an example. The embodiment includes:
[0076] 201. A terminal receives interface data of a data screening interface sent by a server. The interface data includes a mode field. The mode field is used to indicate a single selection mode or a multiple selection mode.
[0077] In the embodiment of the present application, the data filtering interface is any interface that provides a data filtering function, for example, an interface for filtering food provided by a takeaway application, etc. The embodiment of the present application does not limit the data filtering interface and the application that provides the data filtering interface.
[0078] The mode field is a field sent by the server to the terminal. Optionally, if the mode field is the first field, the mode field is used to indicate a single-select mode, and if the mode field is the second field, the mode field is used to indicate a multiple-select field; optionally, if the mode field is the first field, the mode field is used to indicate a multiple-select mode, and if the mode field is the second field, the mode field is used to indicate a single-select mode. The first field and the second field are different fields. For example, if the mode field is currentCategory, it indicates a single-select mode; if the mode field is currentCategorys, it indicates a multiple-select mode. CurrentCategory is a single value, and currentCategorys is an array.
[0079] Optionally, if the mode field is empty, it indicates a single-selection mode, and if the mode field is not empty, it indicates a multiple-selection mode. Optionally, if the mode field is empty, it indicates a multiple-selection mode, and if the mode field is not empty, it indicates a single-selection mode.
[0080] It should be noted that the interface data also includes data corresponding to other contents in the data filtering interface, display style and other data, and the embodiment of the present application does not limit the interface data. For example, the interface data also includes items for filtering, recommended data and the like.
[0081] It should be noted that the server can send interface data of the data filtering interface to the terminal when the terminal accesses the data filtering interface, and can also send interface data of the data filtering interface to the terminal when performing data filtering. The embodiment of the present application does not limit the timing of the server sending interface data.
[0082] 202. The terminal displays a data filtering interface in a first mode based on the mode field in the interface data, where the data filtering interface includes a mode switching option.
[0083] In the embodiment of the present application, the data filtering interface in the single selection mode is different from the data filtering interface in the multiple selection mode. Therefore, the terminal will display the data filtering interface of the corresponding mode based on the mode field in the interface data.
[0084] The data filtering interface includes a mode switching option, and the mode switching option is used to switch the filtering mode of the data filtering interface. The mode switching option is at least used to switch between a multiple selection mode and a single selection mode. Optionally, the mode switching option is also used to switch other modes, such as a novelty mode, a favorite mode, a recommendation mode, etc. The embodiments of the present application are not limited to this.
[0085] 203. In response to a trigger operation on a mode switching option in the data filtering interface, the terminal displays a data filtering interface in a second mode; wherein the first mode is a single selection mode and the second mode is a multiple selection mode, or the first mode is a multiple selection mode and the second mode is a single selection mode.
[0086] In the embodiment of the present application, the data filtering interface includes a mode switching option, and the filtering mode of the data filtering interface can be switched by triggering the mode switching option. The triggering operation can be any one or a combination of multiple operations such as a click operation, a slide operation, a double-click operation, and a long press operation. The embodiment of the present application does not limit the triggering operation.
[0087] 204. The terminal performs data filtering based on the second mode in response to the filtering operation in the data filtering interface, and displays the filtered data in the data filtering interface.
[0088] The data filtering method provided in the embodiment of the present application provides two filtering modes, single selection and multiple selection, in the same filtering interface. A filtering mode is first displayed through the mode field of the backend. If the filtering mode does not meet the user's intention, the user can also switch to another filtering mode through the mode switching option, and flexibly select the data filtering mode he wants, so that the data filtering process is more flexible, more in line with user needs, and improves the filtering effect.
[0089] Figure 3 1 is a flow chart of a data screening method provided by an embodiment of the present application. The present application embodiment takes the interaction between a terminal and a server as an example for illustrative description, and the embodiment includes:
[0090] 301. In response to an access operation to a data screening interface, the terminal sends an access request to the data screening interface to a server.
[0091] The data filtering interface may be an interface provided by any application installed on the terminal, and the data filtering interface provides a filtering function. For example, an interface for filtering food in a takeaway application, etc. The embodiment of the present application does not limit the data filtering interface and the application that provides the data filtering interface.
[0092] The server is a server that provides services for the application. Optionally, the server includes a database, or the server is connected to a database. The database includes multiple candidate data. The user instructs the server through the application to filter out suitable data from the multiple candidate data in the database and display the data through the application.
[0093] The access operation to the data filtering interface may be a trigger operation to the interface entry of the data filtering interface. If the data filtering interface is the homepage of the application, the access operation to the data filtering interface may also be a trigger operation to the application icon of the application. The embodiment of the present application does not limit the access operation to the data filtering interface.
[0094] In response to the access operation to the data filtering interface, the terminal will send an access request of the data filtering interface to the server, so that the server can send the data filtering interface to the terminal according to the filtering interface. The access request carries the interface identifier of the data filtering interface, so that the server can obtain the corresponding data based on the interface identifier and send it to the terminal.
[0095] Optionally, the access request also carries the login user ID, and the server sends the data filtering interface to the terminal for display based on the user ID; in addition, the server can also generate a customized data filtering interface for the user based on the user ID, and send the customized data filtering interface to the terminal for display. For example, the data filtering interface includes recommended data. The server obtains the recommended data suitable for the user based on the user ID, and generates a data filtering interface containing the recommended data. Since different users have different recommended data, when different users access the data filtering interface, the content displayed on the data filtering interface is different.
[0096] 302. The server receives the access request, obtains interface data of the data screening interface based on the access request, and sends the interface data to the terminal, where the interface data includes a mode field, and the mode field is used to indicate a single selection mode or a multiple selection mode.
[0097] Among them, the interface data of the data filtering interface is the data that constitutes the data filtering interface, and the terminal can display the data filtering interface based on the interface data. Since the embodiment of the present application provides at least two filtering modes for the user, when displaying the data filtering interface, the data filtering interface in any filtering mode can be displayed. The embodiment of the present application provides a method for a server to determine which filtering mode of the data filtering interface is displayed by the terminal. The interface data sent by the server includes a mode field, which is used to indicate a single-selection mode or a multiple-selection mode.
[0098] Optionally, when a user visits the data filtering interface for the first time, the filtering mode defaults to single-selection mode. Therefore, when the terminal visits the data filtering interface for the first time based on the logged-in user ID, the server adds a mode field representing the single-selection mode to the interface data; optionally, when a user visits the data filtering interface for the first time, the filtering mode defaults to multiple-selection mode. Therefore, when the terminal visits the data filtering interface for the first time based on the logged-in user ID, the server adds a mode field representing the multiple-selection mode to the interface data.
[0099] Optionally, the filtering mode represented by the mode field is a filtering mode commonly used by the user. For example, the server obtains the user's filtering mode usage record and adds the mode field corresponding to the filtering mode used most times to the interface data. Among them, the filtering mode usage record is authorized by the user. Optionally, the server adds the mode field corresponding to the filtering mode used by the user last time to the interface data.
[0100] It should be noted that the embodiments of the present application are only illustrative of the determination of the mode field and do not limit the determination of the mode field. The server can use any method provided in the embodiments of the present application or any method outside the embodiments of the present application to determine the mode field.
[0101] 303. The terminal receives interface data of the data screening interface sent by the server.
[0102] 304. The terminal displays a data screening interface in a first mode based on the mode field in the interface data, where the data screening interface includes a mode switching option.
[0103] Among them, the first mode can be a multiple selection mode or a single selection mode. The data filtering interfaces displayed in different filtering modes are different. In one possible implementation, the interface data corresponding to different filtering modes are different. Optionally, the data filtering interface in the multiple selection mode includes filtering options and reset options, and the interface data corresponding to the multiple selection mode includes display style data of the filtering options and display style data of the reset options; the data filtering interface in the single selection mode does not include filtering options and notification options, and the interface data corresponding to the single selection mode does not include display style data of the filtering options and display style data of the reset options. Among them, the display style data of the filtering option is used to represent the display style of the filtering option, and the terminal can display the filtering option in the data filtering interface according to the display style data of the filtering option; the same applies to the reset option.
[0104] In another possible implementation, the interface data corresponding to different filtering modes are the same, and the terminal can display different data filtering interfaces based on the mode field in the interface data. For example, the interface data of the data filtering interface includes display style data of the filtering options and display style data of the reset options. In the case where the mode field indicates a multiple-selection mode, a data filtering interface including filtering options and reset options is displayed based on the display style data of the filtering options and the display style data of the reset options. In the case where the mode field indicates a single-selection mode, the filtering options and reset options are no longer displayed in the data filtering interface based on the display style data of the filtering options and the display style data of the reset options.
[0105] It should be noted that the embodiment of the present application is only illustrative of the example that the data filtering interface in the multiple selection mode includes filtering options and reset options. In another embodiment, the data filtering interface in the multiple selection mode includes filtering options but does not include reset options; in another embodiment, the data filtering interface in the multiple selection mode includes filtering options, reset options, and check boxes for the last level of categories in the category tree. Among them, the filtering options, reset options, and check boxes for the last level of categories in the category tree are the same as the method for displaying filtering options and reset options in the embodiment of the present application, and will not be repeated here.
[0106] It should be noted that the data filtering interface may also include multiple categories, each of which may be considered as a data filtering condition, and the user sets the filtering condition by selecting a category provided in the data filtering interface. Figure 4 As shown, the categories provided in the data filtering interface include "Local Jiangsu and Zhejiang cuisine", "Japanese cuisine", "Snacks and fast food", "Bread and desserts", etc.
[0107] 305. In response to a trigger operation on a mode switching option in the data filtering interface, the terminal displays a data filtering interface in a second mode; wherein the first mode is a single selection mode and the second mode is a multiple selection mode, or the first mode is a multiple selection mode and the second mode is a single selection mode.
[0108] The mode switching option in the data filtering interface is used to switch the filtering mode. When the filtering mode of the data filtering interface is single-selection mode, the mode switching option can be used to switch the filtering mode of the data filtering interface to multiple-selection mode; when the filtering mode of the data filtering interface is multiple-selection mode, the mode switching option can be used to switch the filtering mode of the data filtering interface to single-selection mode.
[0109] In single-selection mode, after the user selects a category (a filtering condition provided by the data filtering interface), the data matching the category can be obtained and displayed according to the category selected by the user to complete the data filtering. In multiple-selection mode, the user can select multiple categories. In order to trigger the data filtering process after the user selects the category, a filtering option is provided, and the data filtering process is triggered by triggering the filtering option. Therefore, in single-selection mode, the data filtering interface does not need to set the filtering option, while in multiple-selection mode, the data filtering interface needs to set the filtering option. In a possible implementation, the terminal displays the data filtering interface in the second mode in response to the triggering operation of the mode switching option, including: monitoring the triggering event of the mode switching option; when the first mode is a single-selection mode, in response to monitoring the triggering event of the mode switching option, the filtering option is displayed in the data filtering interface, and the filtering option is used to trigger the filtering process; when the first mode is a multiple-selection mode, in response to monitoring the triggering event of the mode switching option, the filtering option is canceled in the data filtering interface.
[0110] In one possible implementation, the data filtering interface in the multiple selection mode also provides a reset option. After the user selects at least one category, the selected category can be canceled by resetting the option. In response to the triggering operation of the mode switching option, the terminal displays the data filtering interface in the second mode, including: monitoring the triggering event of the mode switching option; when the first mode is the single selection mode, in response to monitoring the triggering event of the mode switching option, displaying the filtering option and the reset option in the data filtering interface, the filtering option is used to trigger the filtering process, and the reset option is used to adjust the state of the selected category to the unselected state; when the first mode is the multiple selection mode, in response to monitoring the triggering event of the mode switching option, canceling the display of the filtering option and the reset option in the data filtering interface.
[0111] For example, Figure 5 The data filtering interface in the single selection mode is shown, and the data filtering interface does not include a filtering option and a reset option; Figure 6 A data filtering interface in a multiple selection mode is shown, which includes a filtering option and a reset option.
[0112] The data filtering interface may include multiple categories, each of which may be considered as a filtering condition. The user sets the filtering condition by selecting a category. Optionally, the data filtering interface includes multiple category trees of different dimensions, each of which includes multiple levels of categories. Figure 5As shown, the user has selected the "food" option, and the data filtering interface presents a category tree of the food dimension to the user. When the user selects a category in the category tree, the next level category of the category can also be displayed for the user to further refine the filtering conditions.
[0113] In a possible implementation, the data filtering interface in the multiple selection mode also includes a check box corresponding to each last-level category. The check box corresponding to each last-level category is used to indicate the state of the last-level category, such as a selected state, or an unselected state, etc. Optionally, the terminal displays filtering options and reset options in the data filtering interface in response to a trigger event for a mode switching option, including: the terminal displays filtering options, reset options, and check boxes corresponding to each last-level category in the data filtering interface in response to monitoring a trigger event for a mode switching option. The method also includes: the terminal adjusts the state of the check box corresponding to the last-level category to a selected state in response to a selection event for any last-level category; and adjusts the state of each check box in a selected state to an unselected state in response to a trigger event for a reset option.
[0114] For example, Figure 7 As shown, after the user selects the last level category "Sichuan Hot Pot", the check box of "Sichuan Hot Pot" is updated from "○" to "●"; after the user selects the last level category "Chongqing Hot Pot", the check box of "Chongqing Hot Pot" is also updated from "○" to "●".
[0115] by Figure 7 For example, the user can not only select the next level category of "hot pot", but also the next level category of "snacks and fast food", and the next level category of "bread and desserts". However, since the next level categories of these categories are not displayed at the same time, in order to facilitate users to know which categories they have selected, after the next level category is selected, the previous level category will also display a corresponding mark. In a possible implementation, when a next level category is selected, a check mark is displayed in the previous level category corresponding to the next level category.
[0116] Optionally, the selection mark may be any mark such as a red dot mark, a graphic mark, etc., which is not limited in the embodiment of the present application.
[0117] For example, the category tree is displayed as follows Figure 8 As shown, the layout of each column is a list view (ListView), which supports up and down sliding. Each category is a list item (ListItem). When the parent category in the first column is selected, the second column will display the subcategories corresponding to the parent category. Fig. 9As shown, in the multi-select mode, the checkboxes of the categories in the second column are also displayed to distinguish between the selected state and the unselected state, and when a category in the second column is selected, a red dot mark is displayed in the corresponding parent category.
[0118] 306. The terminal performs data filtering based on the second mode in response to the filtering operation in the data filtering interface, and displays the filtered data in the data filtering interface.
[0119] Optionally, when the first mode is a single-select mode, the filtering operation is a trigger operation for the last level category in the data filtering interface, such as Fig. 9 In a possible implementation, the terminal performs data filtering based on the second mode in response to the filtering operation in the data filtering interface, and displays the filtered data in the data filtering interface, including: the terminal sends a data filtering request to the server in response to the trigger operation of the last level category in the data filtering interface, the data filtering request carries the last level category, the server is used to obtain data corresponding to the last level category based on the data filtering request, and send the data to the terminal; the terminal receives and displays the data.
[0120] Optionally, when the second mode is a multiple-selection mode, the filtering operation is a triggering operation for the filtering options. In a possible implementation, the terminal responds to the filtering operation in the data filtering interface, performs data filtering based on the second mode, and displays the filtered data in the data filtering interface, including: the terminal responds to the selection operation of the last level category in the data filtering interface, adjusting the state of the last level category to a selected state; the terminal responds to the triggering operation of the filtering options, sending a data filtering request to the server, the data filtering request carries each last level category in a selected state, the server is used to obtain data corresponding to each last level category based on the data filtering request, and send the data to the terminal; the terminal receives and displays the data.
[0121] It should be noted that in an embodiment of the present application, in the multiple selection mode, after the user selects at least one category for filtering, he or she can further add categories for filtering to further filter. In order to avoid the user's filtering results being empty, the terminal can only display categories that have cross-data with the currently selected category. In one possible implementation, the data filtering interface includes multiple category trees and filtering options of different dimensions, each category tree includes multiple levels of categories belonging to the same dimension, and the second mode is a multiple selection mode. The terminal responds to the filtering operation in the data filtering interface, performs data filtering based on the second mode, and displays the filtered data in the data filtering interface, including: in response to the selection operation of any last-level category in the first category tree, adjusting the state of the category to a selected state; in response to the triggering operation of the filtering option, performing data filtering based on at least one category in the selected state to obtain data matching the at least one category; for each category tree, matching each last-level category in the category tree with the filtered data to obtain the last-level category in the category tree that matches the filtered data; reconstructing the category tree based on the last-level category in each category tree that matches the filtered data; and displaying the filtered data and each reconstructed category tree in the data filtering interface.
[0122] For example, the data filtering interface includes a "food" category tree, a "subway" category tree, and a "business district" category tree. After the user selects at least one category in the "food" category tree for filtering, the server will match the filtering results with the categories in the "subway" category tree and the categories in the "business district" category tree. Categories in the "subway" category tree and the "business district" category tree that do not match the filtering results will no longer be displayed in the data filtering interface of the terminal.
[0123] It should be noted that in an embodiment of the present application, after selecting the last level category in a category tree of a certain dimension among multiple category trees for screening, the category trees may be reconstructed only for the category trees of other dimensions among the multiple category trees except for the category tree of that dimension, or each category tree may be reconstructed, and the embodiment of the present application does not limit this.
[0124] Since the category tree has been reconstructed, the category tree displayed on the terminal is the reconstructed category tree. In order to ensure that the category previously selected by the user is still in the selected state, the server can send the selected category to the terminal again, or the terminal records the category selected last time, and after displaying the reconstructed category tree, adjust the status of the corresponding category in the category tree to the selected state according to the recorded category. In one possible implementation, the terminal responds to a filtering operation in a data filtering interface, performs data filtering based on the second mode, and displays the filtered data in the data filtering interface, including: the terminal responds to a selection operation on any last-level category in the first category tree, adjusting the status of the category to a selected state; in response to a trigger operation of the filtering option, sending a data filtering request to a server, the data filtering request carrying at least one category in a selected state, for each category tree, matching each last-level category in the category tree with the filtered data to obtain the last-level category in the category tree that matches the filtered data, reconstructing the category tree based on the last-level category in each category tree that matches the filtered data, and returning a data filtering result, the data filtering result including the filtered data, each reconstructed category tree and the at least one category; receiving the data filtering result, displaying the filtered data and each reconstructed category tree in the data filtering interface, and adjusting the status of the at least one category in the reconstructed category tree to a selected state.
[0125] It should be noted that, since the category tree has been reconstructed, in order to ensure that the filtering mode selected by the user remains unchanged, the server can also send the filtering mode to the terminal again. In one possible implementation, the terminal sends a data filtering request to the server, and the data filtering request carries the target filtering mode and the category for filtering. The target filtering mode is the filtering mode used for this filtering. The server performs data filtering based on the category for filtering to obtain the filtered data. Based on the filtered data and the target filtering mode, the interface data including the mode field is determined, and the mode field is used to indicate the target filtering mode.
[0126] In a possible implementation, the mode field is further used to indicate at least one of a recommendation mode, a novelty mode, or a preference mode, and the method further includes any of the following:
[0127] (1) In response to the selection of the recommendation mode, data is filtered based on the recommendation feedback value of the candidate data to obtain data that meets the recommendation condition, and the data that meets the recommendation condition is displayed in the data filtering interface. The recommendation feedback value of any data indicates the popularity of the data.
[0128] Among them, the length of time that any data stays in the data filtering interface, the number of clicks, the number of attentions, the number of favorites, the number of views, etc. can be regarded as the user's feedback on the data, and the recommended feedback value of the data can be determined based on at least one of the length of time that the data stays in the data filtering interface, the number of clicks, the number of attentions, the number of favorites, the number of views, etc.
[0129] Among them, satisfying the recommendation condition may be that the recommended feedback value of the data is not less than the recommended feedback value threshold. The recommended feedback value threshold may be an empirical value, a system default value, or a value set by a technician, and the embodiments of the present application do not limit this.
[0130] The selection operation of the recommended mode may be a trigger operation of the mode switching option, or may be unrelated to the mode switching option. For example, a trigger operation is performed on the mode switching option to display at least one of a single-select mode option, a multiple-select mode option, a recommended mode option, a novel mode option, and a favorite mode option, and in response to the trigger operation on the recommended mode option, the current mode is determined as the recommended mode.
[0131] (2) In response to a selection operation of the novel mode, based on the historical behavior data corresponding to the logged-in user identification, candidate data that has not been displayed is filtered out from the candidate data, and the candidate data that has not been displayed is displayed in the data filtering interface.
[0132] The historical behavior data of the user ID can be data generated by browsing the data screening interface based on the user ID, such as the data browsed by the user, the data clicked by the user, the data collected by the user, etc. By analyzing the historical behavior data corresponding to the user ID, it can be known which data the user has browsed and which data the user has not browsed, and the data that the user has not browsed can be recommended to the user.
[0133] (3) In response to the selection operation of the preference mode, data is filtered based on the user portrait corresponding to the user identifier to obtain data matching the user portrait, and the data matching the user portrait is displayed in the data filtering interface.
[0134] Among them, the user portrait can represent the user's preferences. Therefore, filtering data based on the user portrait can filter out data that the user likes.
[0135] The data filtering method provided in the embodiment of the present application provides two filtering modes, single selection and multiple selection, in the same filtering interface. A filtering mode is first displayed through the mode field of the backend. If the filtering mode does not meet the user's intention, the user can also switch to another filtering mode through the mode switching option, and flexibly select the data filtering mode he wants, so that the data filtering process is more flexible, more in line with user needs, and improves the filtering effect.
[0136] In addition, the same filtering interface also provides recommendation mode, novelty mode and preference mode, allowing users to choose any mode according to their needs, enriching the data filtering mode, making the data filtering process more flexible, more in line with user needs, and improving the filtering effect.
[0137] In addition, in the multiple selection mode, the category tree in the data filtering interface will be updated after each data filtering to avoid empty results when the user further filters, so that the user can further select categories for further filtering.
[0138] Fig.10 This is a schematic diagram of the structure of a data screening device provided in an embodiment of the present application, see Fig.10 , the device comprises:
[0139] The receiving module 1001 is used to receive interface data of a data screening interface sent by a server, wherein the interface data includes a mode field, and the mode field is used to indicate a single selection mode or a multiple selection mode;
[0140] A display module 1002, configured to display a data filtering interface in a first mode based on a mode field in the interface data, wherein the data filtering interface includes a mode switching option;
[0141] The display module 1002 is further configured to display a data filtering interface in a second mode in response to a trigger operation on the mode switching option, wherein the first mode is the single selection mode and the second mode is the multiple selection mode; or, the first mode is the multiple selection mode and the second mode is the single selection mode;
[0142] The display module 1002 is further configured to respond to a filtering operation in the data filtering interface, perform data filtering based on the second mode, and display the filtered data in the data filtering interface.
[0143] like Fig.11 As shown, in a possible implementation, the device further includes a sending module 1003, and the sending module 1003 is further configured to perform any of the following:
[0144] Sending an access request for the data screening interface to the server, the access request carrying a logged-in user identifier, and the server determining the mode field based on a screening mode usage record corresponding to the user identifier;
[0145] A data filtering request is sent to the server, wherein the data filtering request carries a target filtering mode and a category for filtering, wherein the target filtering mode is the filtering mode adopted for this filtering, and the server performs data filtering based on the category for filtering to obtain filtered data, and determines interface data including the mode field based on the filtered data and the target filtering mode, wherein the mode field is used to indicate the target filtering mode.
[0146] In a possible implementation, the data screening interface includes a plurality of category trees and screening options of different dimensions, each category tree includes multiple levels of categories belonging to the same dimension, and the second mode is the multiple selection mode;
[0147] The display module 1002 includes:
[0148] an adjusting unit 1012, configured to, in response to a selection operation on any last-level category in the first category tree, adjust the state of the category to a selected state, and in response to a triggering operation of the filtering option, perform data filtering based on at least one category in the selected state to obtain data matching the at least one category;
[0149] A matching unit 1022 is used for matching each last level category in the category tree with the filtered data for each category tree, so as to obtain the last level category in the category tree that matches the filtered data;
[0150] A reconstruction unit 1032, configured to reconstruct a category tree based on the last level category in each category tree that matches the filtered data;
[0151] The display unit 1042 is used to display the filtered data and each reconstructed category tree in the data filtering interface.
[0152] In a possible implementation, the display module 1002 includes:
[0153] The adjusting unit 1012 adjusts the state of any last-level category in the first category tree to a selected state in response to a selection operation on the category;
[0154] A sending unit 1052 is used to send a data filtering request to the server in response to a trigger operation of the filtering option, wherein the data filtering request carries at least one category in the selected state, and the server performs data filtering based on the at least one category to obtain data matching the at least one category, and for each category tree, matches each last-level category in the category tree with the filtered data to obtain the last-level category in the category tree that matches the filtered data, and reconstructs the category tree based on the last-level category in each category tree that matches the filtered data, and returns a data filtering result, wherein the data filtering result includes the filtered data, each reconstructed category tree, and the at least one category;
[0155] A receiving unit 1062 is used to receive the data screening result, and display the screened data and each reconstructed category tree in the data screening interface;
[0156] The adjusting unit 1012 is further configured to adjust the state of the at least one category in the reconstructed category tree to the selected state.
[0157] In a possible implementation, the display module 1002 includes:
[0158] A monitoring unit 1072, configured to monitor a triggering event of the mode switching option;
[0159] The display unit 1042 is used for displaying a filtering option and a reset option in the data filtering interface in response to monitoring a triggering event of the mode switching option when the first mode is the single selection mode, wherein the filtering option is used to trigger the filtering process, and the reset option is used to adjust the state of the category in the selected state to the unselected state;
[0160] The display unit 1042 is further configured to cancel display of the filtering option and the reset option in the data filtering interface in response to monitoring a triggering event for the mode switching option when the first mode is the multiple selection mode.
[0161] In a possible implementation, the display unit 1042 is configured to display a filter option, a reset option, and a check box corresponding to each last-level category in the data filter interface in response to monitoring a trigger event for the mode switching option;
[0162] An adjusting unit 1012, configured to adjust the state of the check box corresponding to any last-level category to a selected state in response to a selection event of the last-level category;
[0163] The adjusting unit 1012 is configured to adjust the state of each check box in the selected state to an unselected state in response to a triggering event for the reset option.
[0164] In a possible implementation, the mode field is further used to indicate at least one of a recommended mode, a novel mode, or a favorite mode; the apparatus further includes a screening module 1004, and the screening module is further used to perform any of the following:
[0165] In response to the selection operation of the recommendation mode, data is screened based on the recommendation feedback values of the candidate data to obtain data that meets the recommendation conditions, and the data that meets the recommendation conditions is displayed in the data screening interface, and the recommendation feedback value of any data indicates the popularity of the data;
[0166] In response to a selection operation of the novel mode, based on historical behavior data corresponding to the logged-in user identifier, candidate data that has not been displayed is filtered out from the candidate data, and the candidate data that has not been displayed is displayed in the data filtering interface;
[0167] In response to the selection operation of the preference mode, data is filtered based on the user portrait corresponding to the user identifier to obtain data matching the user portrait, and the data matching the user portrait is displayed in the data filtering interface.
[0168] It should be noted that: the data screening device provided in the above embodiment only uses the division of the above functional modules as an example when screening data. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the data screening device provided in the above embodiment and the data screening method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0169] In an exemplary embodiment, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the data screening method as in the above-mentioned embodiment.
[0170] Optionally, the computer device is provided as a terminal. Fig.12The structure block diagram of a terminal 1200 provided by an exemplary embodiment of the present application is shown. The terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4), a laptop computer or a desktop computer. The terminal 1200 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0171] The terminal 1200 includes: a processor 1201 and a memory 1202 .
[0172] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0173] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one program code, which is used to be executed by the processor 1201 to implement the data screening method provided in the method embodiment of the present application.
[0174] In some embodiments, the terminal 1200 may also optionally include: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1203 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1204, a display screen 1205, a camera 1206, an audio circuit 1207, a positioning component 1208 and a power supply 1209.
[0175] The peripheral device interface 1203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0176] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1204 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0177] The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal can be input to the processor 1201 as a control signal for processing. At this time, the display screen 1205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1205 can be one, and the front panel of the terminal 1200 is set; in other embodiments, the display screen 1205 can be at least two, which are respectively set on different surfaces of the terminal 1200 or are folded; in some other embodiments, the display screen 1205 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1200. Even, the display screen 1205 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0178] The camera assembly 1206 is used to capture images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0179] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1201 for processing, or input them into the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1200. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1207 may also include a headphone jack.
[0180] The positioning component 1208 is used to locate the current geographical location of the terminal 1200 to implement navigation or LBS (Location Based Service). The positioning component 1208 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0181] The power supply 1209 is used to power various components in the terminal 1200. The power supply 1209 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1209 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0182] In some embodiments, the terminal 1200 further includes one or more sensors 1210 , including but not limited to: an acceleration sensor 1211 , a gyroscope sensor 1212 , a pressure sensor 1213 , a fingerprint sensor 1214 , an optical sensor 1215 , and a proximity sensor 1216 .
[0183] The acceleration sensor 1211 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1200. For example, the acceleration sensor 1211 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1201 can control the display screen 1205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 can also be used to collect motion data of games or users.
[0184] The gyro sensor 1212 can detect the body direction and rotation angle of the terminal 1200, and the gyro sensor 1212 can cooperate with the acceleration sensor 1211 to collect the user's 3D actions on the terminal 1200. The processor 1201 can implement the following functions based on the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0185] The pressure sensor 1213 can be set on the side frame of the terminal 1200 and / or the lower layer of the display screen 1205. When the pressure sensor 1213 is set on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is set on the lower layer of the display screen 1205, the processor 1201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0186] The fingerprint sensor 1214 is used to collect the user's fingerprint, and the processor 1201 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1214 can be set on the front, back, or side of the terminal 1200. When a physical button or a manufacturer logo is set on the terminal 1200, the fingerprint sensor 1214 can be integrated with the physical button or the manufacturer logo.
[0187] The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the display screen 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1205 is increased; when the ambient light intensity is low, the display brightness of the display screen 1205 is reduced. In another embodiment, the processor 1201 can also dynamically adjust the shooting parameters of the camera assembly 1206 according to the ambient light intensity collected by the optical sensor 1215.
[0188] The proximity sensor 1216, also called a distance sensor, is disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect the distance between the user and the front of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front of the terminal 1200 is gradually decreasing, the processor 1201 controls the display screen 1205 to switch from the screen-on state to the screen-off state; when the proximity sensor 1216 detects that the distance between the user and the front of the terminal 1200 is gradually increasing, the processor 1201 controls the display screen 1205 to switch from the screen-off state to the screen-on state.
[0189] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the terminal 1200, and the terminal 1200 may include more or fewer components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0190] Optionally, the computer device is provided as a server. Fig.13 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1300 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1301 and one or more memories 1302, wherein the memory 1302 stores at least one program code, and the at least one program code is loaded and executed by the processor 1301 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0191] The server 1300 is used to execute the steps executed by the server in the above method embodiment.
[0192] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor in a computer device to complete the data screening method in the above embodiment. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0193] In an exemplary embodiment, a computer program or a computer program product is also provided. The computer program or the computer program product includes a computer program code. When the computer program code is executed by a computer, the computer implements the data screening method in the above embodiment.
[0194] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0195] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A data screening method, characterized in that: The method comprises: receiving interface data of a data filtering interface sent by a server, the interface data comprising a mode field, the mode field being used to indicate a single-selection mode or a multiple-selection mode; based on the mode field in the interface data, displaying a data filtering interface in a first mode, the data filtering interface comprising a mode switching option; in response to a triggering operation on the mode switching option, displaying a data filtering interface in a second mode, wherein the first mode is the single-selection mode; in response to a filtering operation in the data filtering interface, filtering data based on the second mode, and displaying the filtered data in the data filtering interface; The data filtering interface includes multiple category trees and filtering options of different dimensions, each category tree includes multiple levels of categories belonging to the same dimension, and the second mode is the multiple selection mode; the response to the filtering operation in the data filtering interface, the data filtering is performed based on the second mode, and the filtered data is displayed in the data filtering interface, including: in response to the selection operation of any last-level category in the first category tree, the state of the category is adjusted to a selected state, and in response to the triggering operation of the filtering option, the data is filtered based on at least one category in the selected state to obtain data matching the at least one category; for each category tree, each last-level category in the category tree is matched with the filtered data to obtain the last-level category in the category tree that matches the filtered data; based on the last-level category in each category tree that matches the filtered data, the category tree is reconstructed; the filtered data and each reconstructed category tree are displayed in the data filtering interface.
2. The method according to claim 1, characterized in that: Before receiving the interface data of the data screening interface sent by the server, the method further includes any one of the following: sending an access request for the data screening interface to the server, the access request carrying a logged-in user identifier, and the server determining the mode field based on the screening mode usage record corresponding to the user identifier; A data filtering request is sent to the server, wherein the data filtering request carries a target filtering mode and a category for filtering, wherein the target filtering mode is the filtering mode adopted for this filtering, and the server performs data filtering based on the category for filtering to obtain filtered data, and determines interface data including the mode field based on the filtered data and the target filtering mode, wherein the mode field is used to indicate the target filtering mode.
3. The method according to claim 1, characterized in that The method of responding to the filtering operation in the data filtering interface, performing data filtering based on the second mode, and displaying the filtered data in the data filtering interface includes: responding to the selection operation of any last-level category in the first category tree, adjusting the status of the category to the selected status; responding to the triggering operation of the filtering option, sending a data filtering request to the server, the data filtering request carrying at least one category in the selected status, the server performing data filtering based on the at least one category to obtain data matching the at least one category, for each category tree, matching each last-level category in the category tree with the filtered data to obtain the last-level category in the category tree that matches the filtered data, reconstructing the category tree based on the last-level category in each category tree that matches the filtered data, and returning the data filtering result, the data filtering result including the filtered data, each reconstructed category tree and the at least one category; receiving the data filtering result, displaying the filtered data and each reconstructed category tree in the data filtering interface; adjusting the status of the at least one category in the reconstructed category tree to the selected status.
4. The method according to any one of claims 1 to 3, characterized in that The display of a data filtering interface in the second mode in response to a trigger operation on the mode switching option includes: monitoring a trigger event of the mode switching option; when the first mode is the single-select mode, in response to monitoring a trigger event on the mode switching option, displaying a filtering option and a reset option in the data filtering interface, the filtering option being used to trigger a filtering process, and the reset option being used to adjust the state of a selected category to an unselected state.
5. The method according to claim 4, characterized in that In response to monitoring the trigger event of the mode switching option, displaying the filtering option and the reset option in the data filtering interface includes: in response to monitoring the trigger event of the mode switching option, displaying the filtering option, the reset option and the check box corresponding to each last-level category in the data filtering interface; the method also includes: in response to the selection event of any last-level category, adjusting the state of the check box corresponding to the last-level category to a selected state; in response to the trigger event of the reset option, adjusting the state of each check box in the selected state to an unselected state.
6. The method according to claim 1, characterized in that The mode field is also used to indicate at least one of a recommendation mode, a novelty mode, or a preference mode; the method further includes any of the following: in response to a selection operation of the recommendation mode, data is screened based on the recommendation feedback value of the candidate data to obtain data that meets the recommendation condition, and the data that meets the recommendation condition is displayed in the data screening interface, and the recommendation feedback value of any data indicates the popularity of the data; In response to a selection operation of the novel mode, based on historical behavior data corresponding to the logged-in user identifier, candidate data that has not been displayed is filtered out from the candidate data, and the candidate data that has not been displayed is displayed in the data filtering interface; In response to the selection operation of the preference mode, data is filtered based on the user portrait corresponding to the user identifier to obtain data matching the user portrait, and the data matching the user portrait is displayed in the data filtering interface.
7. A data screening device, characterized in that: The device includes: a receiving module, which is used to receive interface data of a data filtering interface sent by a server, wherein the interface data includes a mode field, and the mode field is used to indicate a single-selection mode or a multiple-selection mode; a display module, which is used to display a data filtering interface in a first mode based on the mode field in the interface data, wherein the data filtering interface includes a mode switching option; the display module is also used to display a data filtering interface in a second mode in response to a triggering operation on the mode switching option, wherein the first mode is the single-selection mode; the display module is also used to perform data filtering based on the second mode in response to a filtering operation in the data filtering interface, and display the filtered data in the data filtering interface; the data filtering interface includes a plurality of category trees and filtering options of different dimensions, each category tree includes multiple levels of categories belonging to the same dimension, and the second mode The multiple selection mode; in response to the filtering operation in the data filtering interface, data filtering is performed based on the second mode, and the filtered data is displayed in the data filtering interface, including: in response to the selection operation of any last-level category in the first category tree, the state of the category is adjusted to a selected state, and in response to the triggering operation of the filtering option, data filtering is performed based on at least one category in the selected state to obtain data matching the at least one category; for each category tree, each last-level category in the category tree is matched with the filtered data to obtain the last-level category in the category tree that matches the filtered data; based on the last-level category in each category tree that matches the filtered data, the category tree is reconstructed; and the filtered data and each reconstructed category tree are displayed in the data filtering interface.
8. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein the one or more memories store at least one program code, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the data screening method as described in any one of claims 1 to claim 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the data screening method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Performance information display method and device, electronic equipment and storage medium
CN113361895A