Page display method, device, electronic device and storage medium
By detecting the trigger event on the page and comparing the event information with the search box configuration information, the search box is only displayed when the match is matched, and the problem of low page utilization in the prior art is solved, which improves the efficiency of page display and user experience.
Patent Information
- Application Number
- CN202010694384.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-17
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-11-22
AI Technical Summary
In the prior art, electronic devices often directly display pages with search boxes when displaying pages, even if the user does not need to search, resulting in a low page utilization rate.
By detecting the trigger event on the page, comparing the event information with the search box configuration information of the current login account, the search box is displayed only when the event information matches the configuration information, and avoiding unnecessary search box display.
Improves page utilization during page display, ensuring that the search box is only displayed when the user needs it, and avoids occupying the page display area.
Smart Images

Figure CN111813486B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of network technology, and in particular to a page display method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of network technology, more and more information is available on the Internet. Users need to search for information of interest from a large amount of information. For example, users search for information of interest on the Internet through applications on electronic devices.
[0003] In related technologies, when a user opens a target application on an electronic device, the electronic device directly displays a page with a search box, and displays other information about the target application on the page, such as short videos and images. The user performs a search based on the search terms entered in the search box and displays the search results.
[0004] The aforementioned technology directly displays a page with a search box. However, users may not need to search, and the search box will occupy part of the page's display area, resulting in low page utilization during the page display process. Summary of the Invention
[0005] This disclosure provides a page display method, apparatus, electronic device, and storage medium, which improves page utilization during the page display process. The technical solution of this disclosure is as follows:
[0006] According to a first aspect of the present disclosure, a page display method is provided, the page display method comprising:
[0007] In response to a page display instruction, the target application's page is displayed, the page excluding the search box;
[0008] In response to detecting a triggering event on the page, determine the event information of the triggering event;
[0009] The event information is compared with the search box configuration information of the currently logged-in account of the target application, the search box configuration information including information that triggers the display of the search box of the target application;
[0010] In response to the event information matching the search box configuration information, the search box is displayed on the page.
[0011] In one possible implementation, the event information for determining the triggering event in response to detecting a triggering event on the page includes:
[0012] In response to a triggering operation detected on the page, the triggering position of the triggering operation on the page is obtained;
[0013] The search box configuration information includes the target location area. Correspondingly, comparing the event information with the search box configuration information of the target application's currently logged-in account includes:
[0014] In response to the triggering operation being located in the target location area on the page, the event information is determined to match the search box configuration information.
[0015] In one possible implementation, the event information for determining the triggering event in response to detecting a triggering event on the page includes:
[0016] In response to a triggering operation detected on the page, the triggering strength of the triggering operation on the page is obtained;
[0017] The search box configuration information includes the target intensity range. Correspondingly, comparing the event information with the search box configuration information of the target application's currently logged-in account includes:
[0018] In response to the triggering operation being within the target intensity range on the page, it is determined that the event information matches the search box configuration information.
[0019] In one possible implementation, the search box configuration information further includes a target intensity curve, wherein the trigger intensity on the page in response to the triggering operation is within the target intensity range, and determining that the event information matches the search box configuration information includes:
[0020] In response to the triggering force being within the target force range, the similarity between the force change curve of the triggering operation during the triggering process and the target force curve is determined;
[0021] In response to the curve similarity meeting the second target condition, it is determined that the event information matches the search box configuration information.
[0022] In one possible implementation, the triggering operation includes at least two triggering locations on the page, the triggering intensity on the page in response to the triggering operation being within the target intensity range, and determining that the event information matches the search box configuration information includes any of the following:
[0023] Based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, the total trigger strength of the triggering operation is determined. In response to the total trigger strength being within the target strength range, the event information is determined to match the search box configuration information.
[0024] In response to the triggering force at each of the at least two triggering positions being within the target force range, it is determined that the event information matches the search box configuration information.
[0025] In one possible implementation, the event information for determining the triggering event in response to detecting a triggering event on the page includes:
[0026] In response to a triggered operation detected on the page, the duration of the triggered operation on the page is obtained based on the start and end times of the triggered operation;
[0027] The search box configuration information includes the target operation duration. Correspondingly, comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0028] In response to the triggering operation's duration on the page exceeding the target operation duration, it is determined that the event information matches the search box configuration information.
[0029] In one possible implementation, the event information for determining the triggering event in response to detecting a triggering event on the page includes:
[0030] In response to a triggering operation detected on the page, the operation trajectory of the triggering operation on the page is obtained based on the start and end positions of the triggering operation;
[0031] The search box configuration information includes the target operation trajectory. Accordingly, comparing the event information with the search box configuration information of the target application's currently logged-in account includes:
[0032] Determine the trajectory similarity between the operation trajectory of the triggering operation on the page and the target operation trajectory, and in response to the trajectory similarity satisfying a first target condition, determine that the event information matches the search box configuration information.
[0033] In one possible implementation, the target operation trajectory includes at least one of a pull-down operation trajectory, an up-swipe operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
[0034] In one possible implementation, the event information for determining the triggering event in response to detecting a triggering event on the page includes:
[0035] In response to a voice signal detected on the page, at least one keyword included in the voice signal is obtained;
[0036] The search box configuration information also includes target keywords, and comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0037] In response to the fact that at least one keyword included in the voice signal includes the target keyword, it is determined that the event information matches the search box configuration information.
[0038] In one possible implementation, displaying the search box of the target application on the page in response to the event information matching the search box configuration information includes:
[0039] In response to a match between the event information and the search box configuration information, the target display format of the search box is obtained;
[0040] The search box is displayed on the page according to the target display format.
[0041] In one possible implementation, the target display format includes the target display size, and the target display format for obtaining the search box of the target application includes any of the following:
[0042] Based on the operation trajectory of the triggering event on the page, the size of the rectangular area covering the operation trajectory is determined as the target display size of the search box;
[0043] The historical display size of the search box in the historical search operation record of the currently logged-in account is used as the target display size of the search box;
[0044] The search box configuration information also includes the target display size of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0045] In one possible implementation, the target display format includes the target display location, and the target display format for obtaining the search box of the target application includes any of the following:
[0046] Based on the triggering location of the triggering event on the page, the area on the page that is no more than a target threshold away from the triggering location is determined as the target display location of the search box;
[0047] The historical display position of the search box in the historical search operation record of the currently logged-in account is used as the target display position of the search box;
[0048] The search box configuration information also includes the target display position of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0049] In one possible implementation, displaying the target application's page in response to a page display instruction includes any of the following:
[0050] Upon receiving the page display instruction, and in response to detecting the search box configuration information already set by the currently logged-in account, the page is displayed;
[0051] Upon receiving the page display instruction, and in response to the fact that the historical operation records of the currently logged-in account do not include search operation records based on the search box, the page is displayed.
[0052] In one possible implementation, after the search box configuration information is matched in response to the event information, and the search box of the target application is displayed on the page, the method further includes:
[0053] In response to a search end event on the page, the display of the search box on the page is stopped. The search end event is used to indicate that the search process based on the search box has ended.
[0054] In one possible implementation, the page is the main page of the target application or a subpage of the main page of the target application.
[0055] According to a second aspect of the present disclosure, a page display device is provided, the page display device comprising:
[0056] The display module is configured to execute a page display instruction in response to display a page of the target application, the page of which does not include a search box;
[0057] The determination module is configured to perform an action in response to detecting a triggering event on the page, and determine the event information of the triggering event;
[0058] The comparison module is configured to compare the event information with the search box configuration information of the current logged-in account of the target application, wherein the search box configuration information includes information that triggers the search box of the target application to be displayed;
[0059] The display module is also configured to respond to the event information matching the search box configuration information and display the search box on the page.
[0060] In one possible implementation, the determining module is configured to perform a response to a triggering operation detected on the page, and obtain the triggering position of the triggering operation on the page;
[0061] The search box configuration information includes a target location area. Correspondingly, the comparison module is configured to perform a response to the triggering operation on the page being located in the target location area, and to determine that the event information matches the search box configuration information.
[0062] In one possible implementation, the determining module is configured to perform a response to a triggering operation detected on the page, and to obtain the triggering strength of the triggering operation on the page;
[0063] The search box configuration information includes a target intensity range. Correspondingly, the comparison module is configured to perform a response to the triggering operation on the page being within the target intensity range, and to determine that the event information matches the search box configuration information.
[0064] In one possible implementation, the search box configuration information further includes a target intensity curve. The comparison module is configured to perform the following actions in response to the triggering intensity being within the target intensity range: determining the curve similarity between the intensity change curve of the triggering operation during the triggering process and the target intensity curve; and determining that the event information matches the search box configuration information in response to the curve similarity meeting a second target condition.
[0065] In one possible implementation, the triggering operation includes at least two triggering locations on the page, and the comparison module is configured to perform any of the following:
[0066] Based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, the total trigger strength of the triggering operation is determined. In response to the total trigger strength being within the target strength range, the event information is determined to match the search box configuration information.
[0067] In response to the triggering force at each of the at least two triggering positions being within the target force range, it is determined that the event information matches the search box configuration information.
[0068] In one possible implementation, the determining module is configured to perform a response to a triggering operation detected on the page, and to obtain the duration of the triggering operation on the page based on the start and end times of the triggering operation;
[0069] The search box configuration information includes a target operation duration. Correspondingly, the comparison module is configured to determine that the event information matches the search box configuration information if the operation duration on the page in response to the triggering operation exceeds the target operation duration.
[0070] In one possible implementation, the determining module is configured to perform an operation in response to a triggering operation detected on the page, and to obtain the operation trajectory of the triggering operation on the page based on the start and end positions of the triggering operation;
[0071] The search box configuration information includes the target operation trajectory. Correspondingly, the comparison module is configured to determine the trajectory similarity between the operation trajectory of the triggering operation on the page and the target operation trajectory, and in response to the trajectory similarity satisfying the first target condition, determine that the event information matches the search box configuration information.
[0072] In one possible implementation, the target operation trajectory includes at least one of a pull-down operation trajectory, an up-swipe operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
[0073] In one possible implementation, the determining module is configured to perform an action in response to a voice signal detected on the page, to obtain at least one keyword included in the voice signal;
[0074] The comparison module is configured to perform an action in response to the voice signal including at least one keyword containing the target keyword, and to determine that the event information matches the search box configuration information.
[0075] In one possible implementation, the display module is configured to perform an action in response to matching the event information with the search box configuration information, obtain the target display format of the search box, and display the search box on the page according to the target display format.
[0076] In one possible implementation, the target display format includes a target display size, and the display module is configured to perform any of the following:
[0077] Based on the operation trajectory of the triggering event on the page, the size of the rectangular area covering the operation trajectory is determined as the target display size of the search box;
[0078] The historical display size of the search box in the historical search operation record of the currently logged-in account is used as the target display size of the search box;
[0079] The search box configuration information also includes the target display size of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0080] In one possible implementation, the target display format includes a target display location, and the display module is configured to perform any of the following:
[0081] Based on the triggering location of the triggering event on the page, the area on the page that is no more than a target threshold away from the triggering location is determined as the target display location of the search box;
[0082] The historical display position of the search box in the historical search operation record of the currently logged-in account is used as the target display position of the search box;
[0083] The search box configuration information also includes the target display position of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0084] In one possible implementation, the display module is configured to perform any of the following:
[0085] Upon receiving the page display instruction, and in response to detecting the search box configuration information already set by the currently logged-in account, the page is displayed;
[0086] Upon receiving the page display instruction, and in response to the fact that the historical operation records of the currently logged-in account do not include search operation records based on the search box, the page is displayed.
[0087] In one possible implementation, the device further includes:
[0088] The stop module is configured to execute a search end event in response to a search end event on the page, stopping the display of the search box on the page. The search end event is used to indicate that the search process based on the search box has ended.
[0089] In one possible implementation, the page is the main page of the target application or a subpage of the main page of the target application.
[0090] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0091] One or more processors;
[0092] One or more memories for storing the one or more processor-executable instructions;
[0093] The one or more processors are configured to execute the instructions to implement the page display method as described in the first aspect or any possible implementation thereof.
[0094] According to a fourth aspect of the present disclosure, a storage medium is provided that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a page display method as described in the first aspect or any possible implementation thereof.
[0095] According to a fifth aspect of the present disclosure, a computer program product is provided that, when instructions in the computer program product are executed by a processor of an electronic device, enables the electronic device to perform the method as described in the first aspect or any possible implementation thereof.
[0096] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0097] By displaying a page excluding the search box when a page for the target application needs to be shown, if a user triggers an event on the page, the electronic device compares the event information of that event with the search box configuration information of the currently logged-in account. Since the search box configuration information includes information that triggers the display of the search box for the target application, if the event information of the triggering event matches the search box configuration information, it indicates that the user needs to display the search box, and the electronic device then displays the search box for the target application on that page. This technical solution displays the search box only when a triggering event matching the search box configuration information is detected on the page, thus avoiding unnecessary search box display that occupies page display area and improving page utilization during the display process.
[0098] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0099] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0100] Figure 1 This is a schematic diagram illustrating an implementation environment of a page display method according to an exemplary embodiment;
[0101] Figure 2 This is a flowchart illustrating a page display method according to an exemplary embodiment;
[0102] Figure 3 This is a flowchart illustrating a page display method according to an exemplary embodiment;
[0103] Figure 4 This is a block diagram illustrating a page display device according to an exemplary embodiment;
[0104] Figure 5 This is a block diagram illustrating a terminal according to an exemplary embodiment. Detailed Implementation
[0105] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0106] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data are interchangeable where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0107] Figure 1 This is a schematic diagram illustrating an implementation environment of a page display method according to an exemplary embodiment. See also: Figure 1 The implementation environment includes a terminal 101 and a server 102. The target application is installed on the terminal 101, and the server 102 is the backend server for the target application. The terminal 101 and the server 102 exchange information based on the target application.
[0108] The target application includes a search box, meaning that the target application can perform searches based on information entered by the user in the search box. For example, terminal 101 sends the information entered by the user in the search box to server 102, which then performs a search on the large amount of information included in the target application based on that information and sends the search results back to terminal 101, which displays the search results on the page.
[0109] The target application can be any application that provides search functionality, such as a short video application, audio playback application, live streaming application, shopping application, or social application. The target application can be a standalone application or a plugin embedded within a standalone application; for example, the target application can be a standalone short video application or a short video mini-program embedded within a social application.
[0110] Terminal 101 includes, but is not limited to, smartphones, personal computers, tablets, laptops, e-readers, etc.; this disclosure does not specifically limit this type. For example, Figure 1 The terminal 101 is illustrated using only a smartphone as an example. The server 102 is both an independent server and a server cluster composed of multiple servers; this disclosure does not impose any specific limitations on it.
[0111] Figure 2This is a flowchart illustrating a page display method according to an exemplary embodiment, such as... Figure 2 As shown, this page display method is used in electronic devices and includes the following steps.
[0112] 201. In response to a page display instruction, display the page of the target application, which does not include a search box.
[0113] 202. In response to the detection of a triggering event on the page, determine the event information of the triggering event.
[0114] 203. Compare the event information with the search box configuration information of the currently logged-in account of the target application. The search box configuration information includes the information that triggers the display of the search box of the target application.
[0115] 204. In response to the event information matching the search box configuration information, display the search box on the page.
[0116] The method provided in this disclosure displays a page excluding the search box when a page for a target application needs to be displayed. If a user triggers an event on the page, the electronic device compares the event information of the triggering event with the search box configuration information of the currently logged-in account. Since the search box configuration information includes information that triggers the display of the search box for the target application, if the event information of the triggering event matches the search box configuration information, it indicates that the user needs to display the search box. At this time, the electronic device displays the search box for the target application on the page. This technical solution displays the search box only when a triggering event matching the search box configuration information is detected on the page. That is, the search box is displayed only when the user needs it, avoiding unnecessary search box display that occupies page display area and improving page utilization during the page display process.
[0117] In one possible implementation, the response is based on detecting a triggering event on the page, and the event information determining the triggering event includes:
[0118] In response to a triggered action detected on this page, obtain the trigger location of that triggered action on this page;
[0119] The search box configuration information includes the target location area. Correspondingly, comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0120] In response to the triggering operation being located in the target location area on the page, the event information is determined to match the search box configuration information.
[0121] In one possible implementation, the response is based on detecting a triggering event on the page, and the event information determining the triggering event includes:
[0122] In response to a triggering action detected on this page, obtain the trigger strength of that triggering action on this page;
[0123] The search box configuration information includes the target intensity range. Correspondingly, comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0124] In response to the triggering action being within the target intensity range on the page, the event information is determined to match the search box configuration information.
[0125] In one possible implementation, the search box configuration information also includes a target intensity curve, wherein the trigger intensity of the response to the triggering operation on the page falls within the target intensity range, and determining that the event information matches the search box configuration information includes:
[0126] In response to the triggering force being within the target force range, the similarity between the force change curve of the triggering operation during the triggering process and the target force curve is determined;
[0127] In response to the curve similarity meeting the second objective condition, it is determined that the event information matches the search box configuration information.
[0128] In one possible implementation, the triggering operation includes at least two triggering locations on the page, the trigger strength of the response to the triggering operation on the page is within the target strength range, and determining that the event information matches the search box configuration information includes any of the following:
[0129] Based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, the total trigger strength of the trigger operation is determined. In response to the total trigger strength being within the target strength range, the event information is determined to match the search box configuration information.
[0130] In response to the trigger force at each of the at least two trigger positions being within the target force range, it is determined that the event information matches the search box configuration information.
[0131] In one possible implementation, the response is based on detecting a triggering event on the page, and the event information determining the triggering event includes:
[0132] In response to a triggered action detected on the page, the duration of the triggered action on the page is obtained based on the start and end times of the triggered action;
[0133] The search box configuration information includes the target operation duration. Correspondingly, comparing this event information with the search box configuration information of the currently logged-in account of the target application includes:
[0134] If the duration of the triggered operation on the page exceeds the target operation duration, the event information is determined to match the search box configuration information.
[0135] In one possible implementation, the response is based on detecting a triggering event on the page, and the event information determining the triggering event includes:
[0136] In response to a triggered operation detected on the page, the operation trajectory of the triggered operation on the page is obtained based on the start and end positions of the triggered operation;
[0137] The search box configuration information includes the target operation trajectory. Accordingly, comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0138] Determine the trajectory similarity between the triggering operation's trajectory on the page and the target operation trajectory. In response to the trajectory similarity satisfying the first target condition, determine that the event information matches the search box configuration information.
[0139] In one possible implementation, the target operation trajectory includes at least one of the following: a drop-down operation trajectory, a swipe-up operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
[0140] In one possible implementation, the response is based on detecting a triggering event on the page, and the event information determining the triggering event includes:
[0141] In response to a voice signal detected on the page, at least one keyword included in the voice signal is obtained;
[0142] The search box configuration information also includes target keywords, and comparing the event information with the search box configuration information of the currently logged-in account of the target application includes:
[0143] In response to the fact that at least one keyword included in the voice signal includes the target keyword, it is determined that the event information matches the search box configuration information.
[0144] In one possible implementation, the response to the event information matching the search box configuration information, displaying the search box for the target application on the page includes:
[0145] In response to the event information matching the search box configuration information, obtain the target display format of the search box;
[0146] Display the search box on this page according to the target display format.
[0147] In one possible implementation, the target display format includes the target display size, and the target display format of the search box for retrieving the target application includes any of the following:
[0148] Based on the operation trajectory of the triggering event on the page, the size of the rectangular area covering the operation trajectory is determined as the target display size of the search box;
[0149] Use the historical display size of the search box in the search history of the currently logged-in account as the target display size of the search box;
[0150] The search box configuration information also includes the target display size of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0151] In one possible implementation, the target display format includes the target display location, and the target display format of the search box for retrieving the target application includes any of the following:
[0152] Based on the triggering location of the event on the page, the area on the page that is no more than a target threshold away from the triggering location is determined as the target display location of the search box;
[0153] Use the historical display position of the search box in the search history of the currently logged-in account as the target display position of the search box;
[0154] The search box configuration information also includes the target display location of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0155] In one possible implementation, the response to a page display instruction, displaying a page of the target application, includes any of the following:
[0156] Upon receiving the instruction to display this page, and in response to detecting the search box configuration information set for the currently logged-in account, the page is displayed.
[0157] Upon receiving the instruction to display this page, and in response to the fact that the historical operation records of the currently logged-in account do not include search operation records based on this search box, the page is displayed.
[0158] In one possible implementation, after the response information matches the search box configuration information and the search box of the target application is displayed on the page, the method further includes:
[0159] In response to the search end event on this page, stop displaying the search box on this page. The search end event is used to indicate that the search process based on the search box has ended.
[0160] In one possible implementation, the page is the main page of the target application or a subpage of the main page of the target application.
[0161] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.
[0162] The above Figure 2 The flowchart shown is the basic flowchart of the embodiments of this disclosure. The detailed flowchart of the embodiments of this disclosure will be described below based on the basic flowchart.
[0163] Figure 3 This is a flowchart illustrating a page display method according to an exemplary embodiment, such as... Figure 3 As shown, the page display method is used in an electronic device, for example, a terminal, and the page display method includes the following steps.
[0164] 301. In response to a page display instruction, the electronic device displays a page of the target application, which does not include a search box.
[0165] In this embodiment of the disclosure, the page display instruction is used to instruct the display of a page of the target application. The page can be any application page of the target application; in one possible example, the page can be the main page of the target application or a subpage of the main page of the target application. For example, the page may include, but is not limited to: the homepage of the target application, the main page of the target application, a subpage of the main page of the target application, a user activity display page of the target application, or any information display page of the target application. Regardless of whether the page of the target application is a main page or a subpage, the electronic device can display the search box using the page display method provided in this embodiment of the disclosure, improving the applicability of the method and enabling convenient access to the search box on various pages of the application.
[0166] In this step, the electronic device displays a page based on the currently logged-in account of the target application. The electronic device receives a page display instruction and, based on the account information of the currently logged-in account, displays a page excluding the search box. This account information is the information configured by the user when logging into their personal account on the target application, or the user's usage information of the target application. In one possible implementation, the account information includes search box configuration information already set by the currently logged-in account. This search box configuration information includes information that triggers the display of the search box in the target application. Therefore, the electronic device displays a page based on whether the currently logged-in account has set search box configuration information. This step includes: the electronic device receiving the page display instruction; in response to detecting search box configuration information already set by the currently logged-in account, displaying the target application's page; in response to detecting that the currently logged-in account has not set search box configuration information, the electronic device directly displays the target application's search page, which refers to a page including a search box. Specifically, when the user has set the search box configuration information, the electronic device first displays a page excluding the search box, and then displays the search box based on user triggering. Of course, when the user has not configured the search box, the electronic device directly displays a page including the search box. Additionally, the electronic device also displays other information on this page or the search page, such as images of the target application, video feeds pushed to the user, the user's avatar icon, share buttons, and back buttons. By accurately identifying user needs based on their search box configuration, when the user has already configured the search box to be displayed via an event on the target application, displaying a page without a search box avoids excessive information redundancy and improves the page's display quality. The search box is then displayed based on the user's event trigger, thus minimizing page space usage while meeting user needs, improving the accuracy of the page display process, and enhancing the user experience.
[0167] In another possible implementation, the account information includes the historical operation records of the currently logged-in account, and the electronic device further displays the page based on these historical operation records. This step includes: the electronic device receiving the page display instruction; in response to the historical operation records of the currently logged-in account not including search operation records based on the search box, the electronic device displays the page of the target application; in response to the historical operation records of the currently logged-in account including search operation records based on the search box, the electronic device displays the search page of the target application. Here, the search operation records based on the search box refer to the user's operation records on the target application by entering information in the search box. These historical operation records are the user's operation records on the target application in the past, such as the user's operation records on the target application the previous day, last week, or 48 hours prior to the current time; or, the historical operation records are also the user's operation records before this use of the target application, such as the user's last use of the target application. When the historical operation records do not include search operation records, it means that the user did not use the target application's search function when using the target application previously, so the electronic device first displays a page without a search box, and then displays the search box based on user triggering. By accurately identifying user needs based on their historical activity, the system detects when a user hasn't used the search box, indicating they may not have a search need. In this case, displaying a page without a search box ensures the information on that page accurately matches the user's requirements, avoiding excessive information redundancy and improving the page's display quality. The search box is then displayed again based on subsequent user-triggered events, thus minimizing page space usage while still meeting user needs, improving the accuracy of page display, and enhancing the user experience.
[0168] In this step, when a page display instruction is received, the page is not initially displayed including the search box. This avoids excessive use of page space when the user has no search needs, thus maximizing the display of effective information. Subsequently, based on user triggers, the search box is displayed on the page, greatly improving page utilization.
[0169] 302. In response to the detection of a triggering event on the page, the electronic device determines the event information of the triggering event.
[0170] In this step, the triggering event refers to the event that triggers the display of the search box. When the electronic device displays this page, the user triggers the display of the search box through a trigger operation or voice. The electronic device detects triggering events on the page, and when it detects a user's triggering event on the page, it obtains the event information of that triggering event. This event information is either the operation information of the triggering operation or the voice information. Accordingly, this step includes the following five implementation methods.
[0171] In the first method, the electronic device responds to a triggering operation detected on the page and obtains the triggering location of the triggering operation on the page.
[0172] In this embodiment of the disclosure, the user triggers the display of a search box by performing gesture operations on the screen of the electronic device, such as touching the screen and performing swiping or clicking gestures on the screen. In one possible example, the screen of the electronic device is a touchscreen equipped with pressure sensors. When the electronic device detects a change in the pressure value of any of the multiple pressure sensors, the electronic device obtains the trigger position of the trigger operation based on the position of the pressure sensor. The number of trigger positions is one or more; that is, the user triggers the display of the search box by touching one or more locations on the page.
[0173] It should be noted that users can perform any triggering action on this page. In one possible example, the triggering action could be the user pressing with two fingers on two different locations on the screen with a certain pressure; or it could be the user double-tapping on a designated location on the screen, i.e., clicking twice consecutively; or it could be the user swiping down on a designated location on the screen, and so on. When the user's triggering action involves contact with multiple locations on the screen, the electronic device also acquires the multiple triggering locations on the page, as well as the triggering pressure at each location.
[0174] In the second method, the electronic device responds to a triggering operation detected on the page and obtains the triggering strength of the triggering operation on the page.
[0175] The electronic device also acquires the trigger force at the trigger location from the pressure sensor. In one possible example, the electronic device also acquires the trigger force at multiple moments during the user's triggering operation. For example, when a triggering operation is detected, the electronic device begins acquiring the trigger force at the trigger location according to a target acquisition period until the triggering operation ends, thereby obtaining multiple trigger forces during the triggering operation. These multiple trigger forces accurately represent the force changes during the triggering operation. The target acquisition period is set as needed, and this embodiment does not specifically limit it. For example, the target acquisition period could be once every 0.1 seconds, once every 0.05 seconds, etc.
[0176] In one possible example, when the pad device collects the trigger force at multiple trigger moments, the electronic device also plots a force change curve corresponding to these multiple trigger forces, based on the chronological order of the trigger moments. This force change curve illustrates the force change trend during the triggering process. It's worth noting that this force change curve more vividly and clearly demonstrates the force change trend during the triggering operation. This allows for subsequent comparison of event information and search box configuration information based on the force curve, improving the accuracy of the comparison and further enhancing the accuracy of the page display.
[0177] The third method involves the electronic device responding to a trigger operation detected on the page and obtaining the duration of the trigger operation on the page based on the start and end times of the trigger operation.
[0178] The electronic device uses the time when it detects a touch on any location on the page as the start time of the trigger, and the time when the page is no longer touched as the end time of the trigger. The duration from the start time to the end time is used as the operation duration of the trigger operation. In another possible example, the electronic device starts timing when it detects a touch on any location on the page and ends timing when the page is no longer touched; the electronic device uses this timing period as the operation duration of the trigger operation.
[0179] In one possible implementation, the electronic device acquires one or more of the trigger position, trigger force, operation trajectory, and operation duration of the trigger operation through any one or more of the four methods described above; this disclosure does not specifically limit this aspect. Of course, when a user triggers the electronic device to display a search box via voice signal, the electronic device also acquires the keywords included in the voice signal through the following fifth method.
[0180] The fourth method involves the electronic device responding to a trigger operation detected on the page and obtaining the operation trajectory of the trigger operation on the page based on the start and end positions of the trigger operation.
[0181] When the electronic device detects that any position on the page is touched, it takes that position as the starting position of the current trigger operation and begins timing. The touch position before the page is no longer touched within the target timing period is taken as the ending position of the current trigger operation. The electronic device acquires the operation trajectory of the trigger operation from the starting position to the ending position within the target timing period. In one possible example, the user can also trigger the electronic device to display a search box by swiping up, down, or drawing special symbols or graphics on the screen. Correspondingly, the operation trajectory can be a downward swipe trajectory from a point on the screen, an upward swipe trajectory from a point on the screen, a trajectory of drawing a question mark "?", or a trajectory of drawing a triangle, etc. The target timing period can be set as needed, for example, 0.5 seconds, 1 second, 2 seconds, etc., and this embodiment does not specifically limit this.
[0182] The fifth method involves the electronic device responding to a voice signal detected on the page and acquiring at least one keyword included in the voice signal.
[0183] The electronic device is also equipped with a voice acquisition module, such as a microphone. During the display of the page, the electronic device also detects in real time whether there are voice signals in the surrounding environment. When any voice signal is detected, the electronic device acquires the voice signal in the surrounding environment through the voice acquisition module. The electronic device then identifies at least one keyword included in the voice signal through the voice recognition module.
[0184] In one possible scenario, the account information pertains to the search function's activation status for the currently logged-in account. The electronic device further determines whether to detect a trigger event based on this activation status and obtains the event information for that trigger event. This step includes: the electronic device obtaining the activation status of the search function for the currently logged-in account; if the search function is activated, the electronic device checks if the page contains a trigger event that would display the search box; if a trigger event is detected on the page, the electronic device determines the event information; if the search function is not activated, the process ends, meaning the electronic device does not detect trigger events on the page. Since the search function refers to searching based on input information from the target application's search box, the electronic device only detects whether the page contains a trigger event that would display the search box when the user has activated the target application's search function, indicating that the user has configured themselves to have a search need. If the user has no search need, no detection is performed. By accurately identifying user needs based on the user's activation status of the search function and controlling the display of the search box based on those needs, the accuracy of the page display process is further improved.
[0185] By triggering user gestures or voice signals on the page, the electronic device can display a search box, enriching the applicable scenarios for the target application's search function and greatly improving the convenience of using the search box. Furthermore, the electronic device acquires one or more of the following information: the trigger location, trigger force, operation trajectory, and operation duration. Alternatively, it may acquire keywords included in the voice signal. Based on this information, the device subsequently determines whether to display the search box, improving the accuracy of the search box display process.
[0186] 303. The electronic device compares the event information with the search box configuration information of the currently logged-in account of the target application.
[0187] The electronic device compares the event information that triggers the event with the user-defined search box configuration information to detect whether the event information matches the search box configuration information. The search box configuration information includes one or more of the following: target location area, target force range, target operation duration, or target operation trajectory; alternatively, the search box configuration information may also include target keywords. Based on the various types of information included in the search box configuration information and the various compositions of the event information obtained in step 302, this step includes the following five methods.
[0188] In the first method, the electronic device responds to the triggering operation by determining that the triggering location on the page is located in the target location area and that the event information matches the search box configuration information.
[0189] The electronic device compares the trigger location with the target location area. When the trigger location is within the target location area, the electronic device determines that the event information matches the search box configuration information. When the trigger location is not within the target location area, the electronic device determines that the event information does not match the search box configuration information. The target location area is set as needed; for example, the target location area may be the upper half of the page, the left half of the page, etc. This embodiment does not specifically limit this.
[0190] In one possible example, when there are two or more trigger locations, the electronic device compares each of the at least two trigger locations with the target location area. If both trigger locations are within the target location area, the electronic device determines that the event information matches the search box configuration information. Alternatively, if there are also two or more target location areas, the electronic device compares each of the at least two trigger locations with the at least two target location areas. If each of the at least two target location areas includes one trigger location, the electronic device determines that the event information matches the search box configuration information. For example, if the target location area includes the upper and lower halves of the screen, the event information matches the search box configuration information only when the user touches both the upper and lower halves of the screen.
[0191] The first method in step 303 corresponds to the first method in step 302 above. By obtaining the trigger position of the trigger operation on the page, the location of the user's trigger operation is accurately located, and the trigger position is compared with the target position area to further determine whether the user's trigger position is within the specified area. Thus, based on the target position area and the user's trigger position, it is accurately determined whether the event information matches the search box configuration information, greatly improving the accuracy of the matching.
[0192] In the second method, the electronic device responds to the triggering operation on the page when the triggering force is within the target force range, and determines that the event information matches the search box configuration information.
[0193] The electronic device compares the trigger force with the target force range. When the trigger force falls within the target force range, the electronic device determines that the event information matches the search box configuration information; when the trigger force does not fall within the target force range, the electronic device determines that the event information does not match the search box configuration information. In one possible example, when the electronic device collects the trigger force at multiple moments during the triggering operation based on the target acquisition period, the electronic device also compares the trigger forces at these multiple trigger moments with the target force range. When all multiple trigger forces fall within the target force range, the electronic device determines that the event information matches the search box configuration information.
[0194] The second method in step 303 corresponds to the second method in step 302 above. By obtaining the trigger strength of the trigger operation on the page, the user's operation is evaluated from the perspective of the operation strength. The trigger strength is compared with the target strength range to further determine whether the user's trigger strength reaches the specified strength range, thereby avoiding errors caused by accidental touches by the user and accurately determining whether the event information matches the search box configuration information, greatly improving the accuracy of matching.
[0195] In one example, the search box configuration information also includes a target intensity curve. The electronic device further compares the intensity curve of the triggered event with the target intensity curve. This process includes: the electronic device, in response to the trigger intensity being within the target intensity range, determining the curve similarity between the intensity change curve of the trigger operation during the triggering process and the target intensity curve; and the electronic device, in response to the curve similarity meeting a second target condition, determining that the event information matches the search box configuration information. The second target condition includes the curve similarity being not less than a first threshold or the curve similarity being within the first threshold range. For example, the electronic device uses the distance between two curves to represent the curve similarity. When the electronic device detects that the trigger intensity is within the target intensity range, it further detects the curve similarity between the intensity change curve corresponding to the trigger intensity and the target intensity curve. When the curve similarity meets the second target condition, the electronic device determines that the event information matches the search box configuration information. By comparing the intensity change curve during the triggering process with the target intensity curve, the intensity change of the operation during the triggering process is further accurately represented. Based on the intensity change during the triggering process, it further determines whether the user has a search need, thereby greatly improving the accuracy of the matching.
[0196] In one possible implementation, the triggering operation on the page may include one triggering position, or two or more triggering positions. When the electronic device acquires the trigger strength at at least two triggering positions, it performs information matching based on the trigger strength at the at least two triggering positions. In one possible example, the electronic device determines the total trigger strength corresponding to the at least two triggering strengths based on the weight of each triggering position, and performs a comparison based on the total trigger strength. This process includes: the electronic device determining the total trigger strength of the triggering operation based on the trigger strength at each of the at least two triggering positions and the weight corresponding to each triggering position; and determining that the event information matches the search box configuration information in response to the total trigger strength being within the target strength range. For example, the first weight corresponding to the triggering position located on the left half of the screen is 0.4, and the second weight corresponding to the triggering position located on the right half of the screen is 0.6. The electronic device calculates a first product between the first weight and the triggering strength located on the left half of the screen, and calculates a second product between the second weight and the triggering strength located on both the right and left half of the screen, and uses the sum of the first and second products as the total trigger strength. In another possible example, the electronic device compares at least two trigger strengths with a target strength range. This process includes: in response to the trigger strength at each of the at least two trigger positions falling within the target strength range, the electronic device determines that the event information matches the search box configuration information. That is, the electronic device determines that the event information matches the search box configuration information when the trigger strength at each trigger position falls within the target strength range.
[0197] When a trigger action occurs at two or more trigger locations on the page, the system accurately calculates the total trigger strength based on the weight of each trigger location. This allows for precise evaluation of the strength at multiple trigger locations, enabling matching based on the total trigger strength. Furthermore, the system compares the strength at each trigger location with the target strength range individually, ensuring accurate matching of the strength of each user's trigger action. By considering the user's actual actions, the system further avoids accidental triggering, significantly improving matching accuracy and enhancing the usability of the page display process.
[0198] The third method is that the electronic device responds to the trigger operation by determining that the operation time on the page exceeds the target operation time, and then determines that the event information matches the search box configuration information.
[0199] The electronic device compares the operation duration with the target operation duration included in the search box configuration information. If the operation duration exceeds the target operation duration, the electronic device determines that the event information matches the search box configuration information; otherwise, the electronic device determines that the event information does not match the search box configuration information. The target operation duration can be set as needed, for example, the target operation duration is 2 seconds, 3 seconds, etc. This disclosure embodiment does not specifically limit this.
[0200] The third method in step 303 corresponds to the third method in step 302 above. By obtaining the trigger duration of the trigger operation on the page, the user operation is evaluated from a time perspective. The trigger duration is compared with the target operation duration to further determine whether the user's trigger duration exceeds the specified duration. This avoids situations where users accidentally trigger the device screen for a short period of time. Only if the user triggers for a certain duration is it determined that the user has a search need, thereby accurately locking in the user's true needs and avoiding page display errors caused by user mis-triggers, greatly improving the authenticity and accuracy of the matching results.
[0201] The fourth method involves the electronic device determining the trajectory similarity between the triggering operation's trajectory on the page and the target operation trajectory; in response to the trajectory similarity satisfying the first target condition, the electronic device determines that the event information matches the search box configuration information.
[0202] In one possible implementation, the target operation trajectory includes at least one of a pull-down operation trajectory, an up swipe operation trajectory, a double-tap operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory. The electronic device uses the degree of overlap between the operation trajectory and the target operation trajectory to represent the trajectory similarity. The electronic device uses a target algorithm to calculate the degree of overlap between the operation trajectory and the target operation trajectory. The first target condition is that the trajectory overlap is greater than a target overlap threshold or falls within a target threshold range. The target algorithm is set as needed; for example, the electronic device uses the Frechet Distance algorithm to calculate the curve similarity between two trajectories. The target operation trajectory is set as needed, and this embodiment does not specifically limit it. For example, the target operation trajectory also includes a triangle-shaped operation trajectory, a checkmark-shaped operation trajectory, etc.
[0203] The fourth method in step 303 corresponds to the fourth method in step 302 above. The electronic device acquires the user's operation trajectory on the page, compares the user's operation trajectory with a specified trajectory, and further accurately obtains the matching result, greatly improving the authenticity and accuracy of the matching result. Furthermore, by providing a matching process based on operation trajectory, users can also draw specified symbols, shapes, etc. on the page to trigger the display of the search box, greatly enriching the human-computer interaction content between the user and the page and improving the user experience. For example, the target operation trajectory is a drop-down operation trajectory, a double-click, or a question mark-shaped operation trajectory, all of which are simple and easy for users to operate, greatly improving the convenience of user triggering and enhancing the applicability of the page display process provided in this embodiment.
[0204] It should be noted that the electronic device determines whether the event information matches the search box configuration information using any one of the four methods described above, or a combination of any two or more of the four methods. For example, taking the first and second methods as examples, the electronic device first uses the first method to determine whether the trigger position is located within the target location area. When the trigger position is within the target location area, the electronic device further uses the second method to determine whether the trigger force is within the target force range. Only when the trigger force is within the target force range does the electronic device determine that the event information matches the search box configuration information. Of course, the electronic device also uses the fifth method described below to compare the keywords included in the voice signal with the target keywords to determine whether the event information matches the search box configuration information.
[0205] The fifth method involves the search box configuration information also including a target keyword; the electronic device, in response to the voice signal including at least one keyword including the target keyword, determines that the event information matches the search box configuration information.
[0206] The electronic device compares at least one keyword included in the voice signal with the target keyword. If the at least one keyword includes the target keyword, the electronic device determines that the event information matches the search box configuration information. Otherwise, the electronic device determines that the event information does not match the search box configuration information. For example, if the target keyword is "search" or "search", and the at least one keyword is "start search" or "search XXX", both of which include "search", the electronic device's event information matches the search box configuration information.
[0207] The fifth method in step 303 corresponds to the fifth method in step 302 above. By providing a voice-based matching process, users can trigger the display of the search box via voice. Specifically, the keywords included in the user's voice are obtained and matched with the target keywords. This allows users to trigger the display of the search box simply by speaking the keywords or a sentence, greatly simplifying the process and eliminating the need for finger-touch screen operations. This provides users with great convenience and significantly improves the usability of the page display process.
[0208] By allowing users to pre-define actions to trigger the search box in the search box configuration information—such as defining the location, intensity, trajectory, or duration of the action—the electronic device compares the result with the search box configuration information based on one or more of these parameters. This more accurately determines whether the event information matches the search box configuration information, improving the accuracy of the matching process. It also allows users to pre-define actions and trigger the search box with a single click, launching the search function of the target application, greatly enhancing the convenience of searching. Furthermore, the electronic device can also determine the matching result using keywords included in the voice signal, allowing users to trigger the search box display simply by voice without manual operation, greatly simplifying the triggering process, improving the convenience of triggering the search box display, and increasing the efficiency of page display. Moreover, the electronic device can perform matching through any one of the first to fourth methods or a combination of at least two of them, or based on voice signals, thereby increasing the flexibility of the matching process, enriching the applicable scenarios of the page display method, and improving its applicability.
[0209] 304. The electronic device responds to the event information matching the search box configuration information and obtains the target display format of the search box for the target application.
[0210] The target display format includes at least one of the target display position and the target display size; the electronic device obtains the target display format based on the operation information of this triggering operation, or the electronic device also obtains the configured target display format.
[0211] For cases where the target display format includes the target display size, this step includes the following three implementation methods.
[0212] In the first method, the electronic device determines the target display size of the search box by using the size of the rectangular area covering the operation trajectory on the page based on the operation trajectory of the triggering event.
[0213] The electronic device determines a rectangular area covering the operation trajectory based on its edge contour, and uses the size of this rectangular area as the target display size of the search box. For example, if the operation trajectory is the trajectory of a question mark "?" drawn in the center of the page, the electronic device uses the size of the smallest rectangular area surrounding the question mark "?" in the central area as the target display size of the search box. Alternatively, the electronic device may also use the size of a rectangular area that covers the operation trajectory, with an area two or three times the size of the smallest rectangular area covering the operation trajectory, as the target display size of the search box. This embodiment does not specifically limit this.
[0214] The second method involves using the historical display size of the search box when the electronic device records the historical search operations of the currently logged-in account as the target display size of the search box.
[0215] Based on the user identifier of the currently logged-in account, the electronic device obtains the historical display size corresponding to the currently logged-in account from the server of the target application, which is the display size of the search box during the user's historical search process. The electronic device uses the historical display size as the target display size of the search box for this time.
[0216] The third method involves the search box configuration information also including the target display size of the search box. The electronic device extracts the target display size of the search box from the search box configuration information of the currently logged-in account.
[0217] Users can also configure the display size of the search box themselves, for example, a rectangular bar with a height of 2cm and a length of 6cm, or a rectangular bar with a height of 5cm and a length of 6cm, etc. The electronic device then directly extracts the target display size from the search box configuration information.
[0218] For the process of obtaining the target display size, the electronic device uses any one of the first, second, and third methods described above to obtain the target display size, and then displays the search box on the page based on the target display size.
[0219] By using the area covered by the user's operation trajectory as the size of the search box displayed on the electronic device, users can manually specify the size of the search box. This allows users to trigger the display of the search box with a single operation, and also determines the display size of the search box, further enhancing the effective information content of human-computer interaction. Furthermore, allowing users to manually determine the size of the search box greatly satisfies their needs, increasing the fun of triggering the search box display and improving the user experience. In addition, the device can also use the search box display size from the user's previous operations as the current display size, or directly display the search box according to the size set in the configuration information, thereby further standardizing the display size of the search box on the page and improving the accuracy of page display.
[0220] For cases where the target display format includes the target display location, this step includes the following three implementation methods.
[0221] Method 1: Based on the triggering location of the event on the page, the electronic device determines the target display location of the search box as the area on the page that is no more than a target threshold away from the triggering location.
[0222] The electronic device uses the trigger location as the center and defines an area on the page that is no more than a target threshold away from the trigger location, using this area as the target display location. This target threshold can be set as needed, for example, 0.5cm, 3cm, etc. For instance, the electronic device might use the area within 3cm of the user's finger touch point to display the search box.
[0223] Method 2: The electronic device records the historical search operations of the currently logged-in account and uses the historical display position of the search box as the target display position of the search box.
[0224] Based on the user identifier of the currently logged-in account, the electronic device obtains the historical display position corresponding to the currently logged-in account from the server of the target application, which is the display position of the search box during the user's historical search process. The electronic device uses the historical display position as the target display position of the search box in this search.
[0225] Method 3: The search box configuration information also includes the target display location of the search box. The electronic device extracts the target display location of the search box from the search box configuration information of the currently logged-in account.
[0226] Users can also configure the display position of the search box, such as displaying it at the top, middle, or bottom of the page. The electronic device then directly extracts the target display position from the search box configuration information.
[0227] For the process of obtaining the target display location, the electronic device uses any one of the methods 1, 2 or 3 described above to obtain the target display location, and then displays the search box on the page based on the target display location.
[0228] By positioning the search box on electronic devices—for example, determining its exact location on the page based on the user's input position—the search box appears where it is triggered, greatly satisfying user needs and enhancing the effective information content of human-computer interaction. This also increases the fun of triggering the search box and improves the user experience. Furthermore, the search box's position can be locked onto the page using settings pre-defined in the user's historical input history, resulting in a more organized and standardized page display and improved accuracy.
[0229] For cases where the target display format includes the target display size and the target display position, this step includes any one of the first, second, or third methods mentioned above, as well as any one of method 1, method 2, or method 3 mentioned above. That is, the electronic device also obtains the target display size through any one of the first, second, or third methods mentioned above, and obtains the target display position through any one of method 1, method 2, or method 3 mentioned above. Subsequently, the display process of the search box is determined by combining the target display size and the target display position.
[0230] By displaying the search box in a specific format using electronic devices, such as by determining the target display size or target display position, the display format of the search box can be accurately determined. This further refines the display format of the search box from both size and position perspectives, greatly satisfying user needs and improving the accuracy of the search box display process.
[0231] 305. The electronic device displays the search box for the target application on the page according to the target display format.
[0232] When the target display format includes a target display position and a target display size, the electronic device displays the search box of the target application at the target display position on the page, according to the target display size. For example, the electronic device may display a search box with a height of 2cm and a length of 6cm in the middle of the page, the upper half of the screen, etc., or it may also display a square search box with a side length of 4cm in an area no more than 5cm from the center of the page.
[0233] In one possible example, when the target display format includes either a target display location or a target display size, for example, when the target display format includes a target display location, the electronic device displays the search box for the target application at the target display location on the page. Specifically, the electronic device displays the search box at the target display location on the page according to the system default size of the search box. Alternatively, when the target display format includes a target display size, the electronic device displays the search box for the target application on the page according to the target display size. Specifically, the electronic device displays the search box at the system default location according to the system default position of the search box.
[0234] In one possible example, the electronic device acquires the search information entered by the user in the search box and, based on this information, sends a search request to the server. This search request requests a search within the target application based on the search information and returns the search results. The server receives the search request and searches the information included in the target application based on the search information, sending the search results to the electronic device. The electronic device receives the search results returned by the server and displays them on the page. In another possible example, the electronic device also stops displaying the search box when the user finishes searching, thus preventing the search box from occupying the page when the user has no search needs. This process includes: in response to a search end event on the page, the electronic device stops displaying the search box on the page. The search end event indicates that the search process based on the search box has ended. The search end event includes, but is not limited to, a search end button triggered by the user on the page, a page back button, or the electronic device displaying the search results on the page for a duration exceeding a preset target time. The search end button is a button used to trigger the end of the search process, and the page back button is a button used to trigger the cessation of displaying the search results and return to the page, for example, a page back button that returns to displaying a video feed pushed by the target application. When the electronic device detects a search completion event, it continues to display a page excluding the search box. Of course, during the page display process, the electronic device can again detect triggering events on the page in real time based on steps 302-305 above, and further display the search box accordingly. By stopping the search box display when the user finishes searching, the information displayed on the page is minimized to avoid unnecessary information from the user. This prevents the search box from occupying too much page area when the user has no search needs. The search box is displayed based on user triggering events and stops displaying when the user no longer needs to search, thus flexibly controlling the search box display and improving the flexibility of the search box display process.
[0235] The display style of the search box can be precisely controlled based on at least one of the target display size and target display position. Both the target display size and target display position are triggered by the user, or by the user's past habit of triggering the display of the search box, or by the system's default format, etc. This allows the user to adjust the display format of the search box themselves, so as to meet the user's display needs of the search box as much as possible and improve the accuracy of the search box display.
[0236] It should be noted that steps 304-305 above are actually a specific implementation of step "the electronic device responds to the event information matching the search box configuration information and displays the search box of the target application on the page". In steps 304-305 above, the target display format of the search box is first obtained, and the search box is displayed on the page based on the display format. However, in another possible implementation, the electronic device may also directly display the search box on the page according to the system default size and system default position. This disclosure does not specifically limit this aspect.
[0237] It should be noted that, through the page display process of this embodiment, the page excluding the search box is displayed first. Then, based on the event information of the user's triggered event, the event information is further compared with the search box configuration information pre-configured by the user. Only when the comparison is successful, that is, when the event information matches the search box configuration information, is the search box displayed on the page. This prevents the search box from occupying too much of the page's display area and avoids displaying redundant information on the page, greatly improving the utilization rate of the page's display area. This allows users to conveniently perform video searches by one click without being aware of the search box. Furthermore, the user has pre-defined various operations. When using the device, the search box is triggered by mimicking these pre-defined operations. The user defines the location of the trigger operation on any position on the APP (Application) page according to personal habits, and also defines the trigger strength and trajectory of the trigger operation. This allows the electronic device to match the user's current operation with the user's preset operation and further display the search box. The user can invoke the search box with a single operation or voice command. The user can preset simple and frequently used operations according to personal needs, making the trigger operation to invoke the search box simple and convenient, with no usage threshold, greatly extending the usability of the search box.
[0238] The method provided in this disclosure displays a page excluding the search box when a page for a target application needs to be displayed. If a user triggers an event on the page, the electronic device compares the event information of the triggering event with the search box configuration information of the currently logged-in account. Since the search box configuration information includes information that triggers the display of the search box for the target application, if the event information of the triggering event matches the search box configuration information, it indicates that the user needs to display the search box. At this time, the electronic device displays the search box for the target application on the page. This technical solution displays the search box only when a triggering event matching the search box configuration information is detected on the page. That is, the search box is displayed only when the user needs it, avoiding unnecessary search box display that occupies page display area and improving page utilization during the page display process.
[0239] Figure 4 This is a block diagram illustrating a page display device according to an exemplary embodiment. (Refer to...) Figure 4 The device includes a display module 401, a determination module 402, and a comparison module 403.
[0240] Display module 401 is configured to execute a page display instruction in response to display a page of the target application, which does not include a search box;
[0241] The determination module 402 is configured to perform an action in response to a triggering event detected on the page, and determine the event information of the triggering event;
[0242] The comparison module 403 is configured to compare the event information with the search box configuration information of the currently logged-in account of the target application, the search box configuration information including information that triggers the display of the search box of the target application;
[0243] The display module 401 is also configured to respond to the event information matching the search box configuration information and display the search box on the page.
[0244] In one possible implementation, the determining module 402 is configured to perform a response to a triggering operation detected on the page and obtain the triggering position of the triggering operation on the page;
[0245] The search box configuration information includes a target location area. Accordingly, the comparison module 403 is configured to perform a response to the triggering operation on the page being located in the target location area, and determine that the event information matches the search box configuration information.
[0246] In one possible implementation, the determining module 402 is configured to perform a response to a triggering operation detected on the page, and obtain the triggering strength of the triggering operation on the page;
[0247] The search box configuration information includes the target intensity range. Accordingly, the comparison module 403 is configured to perform a response to the triggering operation on the page being within the target intensity range, and to determine that the event information matches the search box configuration information.
[0248] In one possible implementation, the search box configuration information also includes a target intensity curve. The comparison module 403 is configured to perform the following actions in response to the triggering intensity being within the target intensity range: determine the curve similarity between the intensity change curve of the triggering operation during the triggering process and the target intensity curve; and determine that the event information matches the search box configuration information in response to the curve similarity meeting a second target condition.
[0249] In one possible implementation, the triggering operation includes at least two triggering locations on the page, and the comparison module 403 is configured to perform any of the following:
[0250] Based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, the total trigger strength of the trigger operation is determined. In response to the total trigger strength being within the target strength range, the event information is determined to match the search box configuration information.
[0251] In response to the trigger force at each of the at least two trigger positions being within the target force range, it is determined that the event information matches the search box configuration information.
[0252] In one possible implementation, the determining module 402 is configured to perform a response to a triggering operation detected on the page, and obtain the duration of the triggering operation on the page based on the start and end times of the triggering operation;
[0253] The search box configuration information includes the target operation duration. Accordingly, the comparison module 403 is configured to determine that the event information matches the search box configuration information when the operation duration on the page in response to the triggering operation exceeds the target operation duration.
[0254] In one possible implementation, the determining module 402 is configured to perform a response to a trigger operation detected on the page, and obtain the operation trajectory of the trigger operation on the page based on the start and end positions of the trigger operation;
[0255] The search box configuration information includes the target operation trajectory. Accordingly, the comparison module 403 is configured to determine the trajectory similarity between the operation trajectory of the triggering operation on the page and the target operation trajectory. In response to the trajectory similarity satisfying the first target condition, the module determines that the event information matches the search box configuration information.
[0256] In one possible implementation, the target operation trajectory includes at least one of the following: a drop-down operation trajectory, a swipe-up operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
[0257] In one possible implementation, the determining module 402 is configured to perform an action in response to a voice signal detected on the page, obtaining at least one keyword included in the voice signal;
[0258] The comparison module 403 is configured to perform a response to the voice signal including at least one keyword containing the target keyword, and determine that the event information matches the search box configuration information.
[0259] In one possible implementation, the display module 401 is configured to perform an action in response to the event information matching the search box configuration information, obtain the target display format of the search box, and display the search box on the page according to the target display format.
[0260] In one possible implementation, the target display format includes a target display size, and the display module 401 is configured to perform any of the following:
[0261] Based on the operation trajectory of the triggering event on the page, the size of the rectangular area covering the operation trajectory is determined as the target display size of the search box;
[0262] Use the historical display size of the search box in the search history of the currently logged-in account as the target display size of the search box;
[0263] The search box configuration information also includes the target display size of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0264] In one possible implementation, the target display format includes a target display location, and the display module 401 is configured to perform any of the following:
[0265] Based on the triggering location of the event on the page, the area on the page that is no more than a target threshold away from the triggering location is determined as the target display location of the search box;
[0266] Use the historical display position of the search box in the search history of the currently logged-in account as the target display position of the search box;
[0267] The search box configuration information also includes the target display location of the search box, which is extracted from the search box configuration information of the currently logged-in account.
[0268] In one possible implementation, the display module 401 is configured to perform any of the following:
[0269] Upon receiving the instruction to display this page, and in response to detecting the search box configuration information set for the currently logged-in account, the page is displayed.
[0270] Upon receiving the instruction to display this page, and in response to the fact that the historical operation records of the currently logged-in account do not include search operation records based on this search box, the page is displayed.
[0271] In one possible implementation, the device further includes:
[0272] The stop module is configured to respond to a search end event on the page and stop displaying the search box on the page. The search end event is used to indicate that the search process based on the search box has ended.
[0273] In one possible implementation, the page is the main page of the target application or a subpage of the main page of the target application.
[0274] In this embodiment, when a page for the target application needs to be displayed, a page excluding the search box is shown. If a user triggers an event on the page, the electronic device compares the event information of the triggering event with the search box configuration information of the currently logged-in account. Since the search box configuration information includes information that triggers the display of the search box for the target application, if the event information of the triggering event matches the search box configuration information, it indicates that the user needs to display the search box. At this time, the electronic device displays the search box for the target application on the page. This technical solution displays the search box only when a triggering event matching the search box configuration information is detected on the page. That is, the search box is displayed only when the user needs it, avoiding unnecessary search box display that occupies page display area and improving page utilization during the page display process.
[0275] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0276] Optionally, the electronic device in the above embodiments is a terminal.
[0277] Figure 5This is a block diagram illustrating a terminal according to an exemplary embodiment. The terminal 500 is: a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 500 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0278] Typically, terminal 500 includes one or more processors 501 and one or more memories 502.
[0279] Processor 501 includes one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 501 is implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 501 also includes a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 501 integrates a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 501 also includes an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0280] Memory 502 includes one or more computer-readable storage media that are non-transitory. Memory 502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 502 are used to store at least one instruction that is executed by processor 501 to implement the page display method provided in the method embodiments of this disclosure.
[0281] In some embodiments, the terminal 500 may also optionally include: a peripheral device interface 503 and at least one peripheral device. The processor 501, memory 502, and peripheral device interface 503 are connected via a bus or signal line. Each peripheral device is connected to the peripheral device interface 503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 504, a display screen 505, a camera assembly 506, an audio circuit 507, a positioning assembly 508, and a power supply 509.
[0282] Peripheral device interface 503 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 501 and memory 502. In some embodiments, processor 501, memory 502 and peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 501, memory 502 and peripheral device interface 503 are implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0283] The radio frequency (RF) circuit 504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 504 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 504 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, etc. The RF circuit 504 communicates with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 504 also includes circuitry related to NFC (Near Field Communication), which is not limited herein.
[0284] Display screen 505 is used to display a UI (User Interface). This UI includes graphics, text, icons, videos, and any combination thereof. When display screen 505 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals are input as control signals to processor 501 for processing. In this case, display screen 505 also provides virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there is one display screen 505, disposed on the front panel of terminal 500; in other embodiments, there are at least two display screens 505, disposed on different surfaces of terminal 500 or in a folded design; in other embodiments, display screen 505 is a flexible display screen, disposed on a curved or folded surface of terminal 500. Furthermore, display screen 505 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 505 is made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0285] The camera assembly 506 is used to acquire images or videos. Optionally, the camera assembly 506 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 506 also includes a flash. The flash is a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, used for light compensation at different color temperatures.
[0286] The audio circuit 507 includes 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 that are input to the processor 501 for processing, or input to the radio frequency circuit 504 to realize voice communication. For stereo acquisition or noise reduction purposes, multiple microphones are used, respectively located at different parts of the terminal 500. The microphone can be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker can be a conventional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it not only converts the electrical signals into sound waves that humans can hear, but also converts the electrical signals into sound waves that humans cannot hear for purposes such as distance measurement. In some embodiments, the audio circuit 507 also includes a headphone jack.
[0287] Positioning component 508 is used to determine the current geographic location of terminal 500 for navigation or LBS (Location Based Service). Positioning component 508 is a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, Russia's Granas system, or the EU's Galileo system.
[0288] Power supply 509 is used to power the various components in terminal 500. Power supply 509 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 509 includes a rechargeable battery, the rechargeable battery supports wired or wireless charging. The rechargeable battery also supports fast charging technology.
[0289] In some embodiments, the terminal 500 further includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: an accelerometer 511, a gyroscope 512, a pressure sensor 513, a fingerprint sensor 514, an optical sensor 515, and a proximity sensor 516.
[0290] Accelerometer 511 detects the magnitude of acceleration along the three axes of a coordinate system established with terminal 500. For example, accelerometer 511 is used to detect the components of gravitational acceleration along the three axes. Processor 501 controls display screen 505 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 511. Accelerometer 511 is also used for collecting motion data from games or users.
[0291] The gyroscope sensor 512 detects the orientation and rotation angle of the terminal 500. The gyroscope sensor 512 and the accelerometer sensor 511 work together to collect the user's 3D movements on the terminal 500. Based on the data collected by the gyroscope sensor 512, the processor 501 performs the following functions: motion sensing (e.g., changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0292] Pressure sensor 513 is disposed on the side bezel of terminal 500 and / or the lower layer of display screen 505. When pressure sensor 513 is disposed on the side bezel of terminal 500, it detects the user's grip signal on terminal 500, and processor 501 performs left / right hand recognition or quick operation based on the grip signal collected by pressure sensor 513. When pressure sensor 513 is disposed on the lower layer of display screen 505, processor 501 controls operable controls on the UI interface based on the user's pressure operation on display screen 505. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0293] The fingerprint sensor 514 is used to collect the user's fingerprint. The processor 501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as trusted, the processor 501 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 514 is located on the front, back, or side of the terminal 500. When the terminal 500 has a physical button or manufacturer logo, the fingerprint sensor 514 is integrated with the physical button or manufacturer logo.
[0294] An optical sensor 515 is used to collect ambient light intensity. In one embodiment, the processor 501 controls the display brightness of the display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is decreased. In another embodiment, the processor 501 also dynamically adjusts the shooting parameters of the camera assembly 506 based on the ambient light intensity collected by the optical sensor 515.
[0295] The proximity sensor 516, also known as a distance sensor, is typically located on the front panel of the terminal 500. The proximity sensor 516 is used to detect the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the processor 501 controls the display screen 505 to switch from a screen-on state to a screen-off state; when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the processor 501 controls the display screen 505 to switch from a screen-off state to a screen-on state.
[0296] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on terminal 500, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0297] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, which can be executed by a terminal's processor to complete the page display method described above. Optionally, the storage medium is a non-transitory computer-readable storage medium, such as ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage devices.
[0298] In an exemplary embodiment, a computer program product is also provided, wherein the instructions in the computer program product can be executed by the processor of a terminal to complete the above-described page display method.
[0299] The user information disclosed herein is information authorized by the user or fully authorized by all parties.
[0300] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0301] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A page display method, characterized in that: The page display method comprises: receiving a page display instruction, and in response to detecting that the current login account of the target application has set the search box configuration information, displaying a page of the target application, the page not including the search box; in response to detecting that the current login account of the target application has not set the search box configuration information, displaying a search page of the target application, the search page being a page including the search box; Obtaining the activation status of the search function of the current login account, and in response to the search function of the current login account being activated, detecting whether the page includes a trigger event that triggers the display of the search box; in response to the search function of the current login account not being activated, not detecting the trigger event on the page; the search function refers to a function for searching based on input information of the search box of the target application; In response to a trigger operation detected on the page, determining a trigger position of the trigger operation on the page, the trigger position including at least two positions; In response to the trigger position of the trigger operation on the page being located in the target position area, acquiring multiple trigger positions of the trigger operation on the page and the trigger force at each trigger position; Determining a total trigger force of the trigger operation based on the trigger force at each trigger position of at least two trigger positions and a weight corresponding to each trigger position; In response to the total trigger force being within the target force range, the trigger force of the trigger operation at multiple trigger moments is obtained; according to the time sequence of the trigger moments corresponding to the multiple trigger forces, force change curves corresponding to the multiple trigger forces are drawn, and the curve similarity between the force change curve of the trigger operation during the triggering process and the target force curve is determined; In response to the curve similarity meeting the second target condition, determining that the event information of the triggering event matches the search box configuration information of the current login account of the target application, the search box configuration information includes information that triggers the search box of the target application to be displayed, and the event information of the triggering event is the operation information of the triggering operation; In response to the event information matching the search box configuration information, based on the operation track of the trigger event on the page, determining the size of a rectangular area covering the operation track as a target display size of the search box, wherein the operation track is the operation track of the trigger operation from a starting position to an ending position within a target timing period; The search box is displayed on the page according to a target display format, where the target display format includes the target display size.
2. The page display method according to claim 1, characterized in that: The search box configuration information includes the target location area.
3. The page display method according to claim 1, characterized in that: The search box configuration information includes the target force range.
4. The page display method according to claim 3, characterized in that: The search box configuration information also includes the target force curve.
5. The page display method according to claim 3, characterized in that: The method further comprises: In response to the trigger force at each of the at least two trigger positions being within the target force range, a curve similarity between the force change curve of the trigger operation during the triggering process and the target force curve is determined.
6. The page display method according to claim 1, characterized in that: The method further comprises: According to the start time and end time of the trigger operation, obtain the operation duration of the trigger operation on the page; The search box configuration information includes a target operation duration, and accordingly, the method further includes: Whether the event information matches the search box configuration information is determined according to whether the operation duration of the trigger operation on the page exceeds the target operation duration.
7. The page display method according to claim 1, characterized in that: The method further comprises: According to the starting position and the ending position of the trigger operation, obtaining the operation track of the trigger operation on the page; The search box configuration information includes a target operation track, and accordingly, the method further includes: Determine the track similarity between the operation track of the trigger operation on the page and the target operation track, and determine whether the event information matches the search box configuration information according to whether the track similarity meets the first target condition.
8. The page display method according to claim 7, characterized in that: The target operation trajectory includes at least one of a pull-down operation trajectory, a slide-up operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
9. The page display method according to claim 1, characterized in that: The target display format includes a target display position, and the method further includes any one of the following: Based on a triggering position of the triggering event on the page, determining an area of the page that is within a target threshold distance from the triggering position as a target display position of the search box; Using the historical display position of the search box in the historical search operation record of the current login account as the target display position of the search box; The search box configuration information also includes a target display position of the search box, and the target display position of the search box is extracted from the search box configuration information of the currently logged-in account.
10. The page display method according to claim 1, characterized in that: After displaying the search box on the page according to the target display format, the method further includes: In response to a search end event on the page, the search box is stopped from being displayed on the page, wherein the search end event is used to indicate that a search process based on the search box has ended.
11. The page display method according to claim 1, characterized in that: The page is a main page of the target application or a subpage of the main page of the target application.
12. A page display device, characterized in that: The page display device comprises: A display module is configured to execute a received page display instruction, and in response to detecting that the current login account of the target application has set the search box configuration information, display a page of the target application, the page does not include the search box; in response to detecting that the current login account of the target application has not set the search box configuration information, display a search page of the target application, the search page refers to a page including the search box; A module for performing the following steps: obtaining the activation status of the search function of the current login account, and in response to the search function of the current login account being activated, detecting whether the page includes a trigger event that triggers the display of the search box; in response to the search function of the current login account not being activated, not detecting the trigger event on the page; the search function refers to a function for searching based on input information of the search box of the target application; a determination module, configured to execute, in response to a trigger operation detected on the page, determining a trigger position of the trigger operation on the page, wherein the trigger position includes at least two positions; A comparison module is configured to execute, in response to the trigger position of the trigger operation on the page being located in a target position area, obtaining multiple trigger positions of the trigger operation on the page and the trigger strength at each trigger position; determining the total trigger strength of the trigger operation based on the trigger strength at each trigger position of at least two trigger positions and the weight corresponding to each trigger position; in response to the total trigger strength being located in a target strength range, obtaining the trigger strength of the trigger operation at multiple trigger moments; drawing the strength change curves corresponding to the multiple trigger strengths according to the time sequence of the trigger moments corresponding to the multiple trigger strengths, and determining the curve similarity between the strength change curves of the trigger operation during the triggering process and the target strength curve; in response to the curve similarity meeting the second target condition, determining that the event information of the trigger event matches the search box configuration information of the current login account of the target application, the search box configuration information including information that triggers the search box of the target application to be displayed, and the event information of the trigger event is the operation information of the trigger operation; The display module is further configured to execute, in response to matching the event information with the search box configuration information, based on the operation trajectory of the trigger event on the page, determining the size of a rectangular area covering the operation trajectory as a target display size of the search box, the operation trajectory being the operation trajectory of the trigger operation from a starting position to an ending position within a target timing period; and displaying the search box on the page according to a target display format, the target display format including the target display size.
13. The page display device according to claim 12, characterized in that: The search box configuration information includes the target location area.
14. The page display device according to claim 12, characterized in that: The search box configuration information includes the target force range.
15. The page display device according to claim 14, characterized in that: The search box configuration information also includes the target force curve.
16. The page display device according to claim 14, characterized in that: The comparison module is further configured to execute: In response to the trigger force at each of the at least two trigger positions being within the target force range, a curve similarity between the force change curve of the trigger operation during the triggering process and the target force curve is determined.
17. The page display device according to claim 12, characterized in that: The determining module is further configured to obtain the operation duration of the triggering operation on the page according to the start time and end time of the triggering operation; The search box configuration information includes a target operation duration. Accordingly, the comparison module is further configured to determine whether the event information matches the search box configuration information based on whether the operation duration of the trigger operation on the page exceeds the target operation duration.
18. The page display device according to claim 12, characterized in that: The determining module is further configured to obtain an operation track of the triggering operation on the page according to the starting position and the ending position of the triggering operation; The search box configuration information includes a target operation trajectory. Accordingly, the comparison module is further configured to determine the trajectory similarity between the operation trajectory of the trigger operation on the page and the target operation trajectory, and determine whether the event information matches the search box configuration information based on whether the trajectory similarity meets the first target condition.
19. The page display device according to claim 18, characterized in that: The target operation trajectory includes at least one of a pull-down operation trajectory, a slide-up operation trajectory, a double-click operation trajectory, a question mark-shaped operation trajectory, or a circle-shaped operation trajectory.
20. The page display device according to claim 12, characterized in that: The target display format includes a target display position, and the display module is configured to perform any of the following: Based on a triggering position of the triggering event on the page, determining an area of the page that is within a target threshold distance from the triggering position as a target display position of the search box; Using the historical display position of the search box in the historical search operation record of the current login account as the target display position of the search box; The search box configuration information also includes a target display position of the search box, and the target display position of the search box is extracted from the search box configuration information of the currently logged-in account.
21. The page display device according to claim 12, characterized in that: The device also includes: The stop module is configured to execute in response to a search end event on the page, stop displaying the search box on the page, and the search end event is used to indicate that the search process based on the search box has ended.
22. The page display device according to claim 12, characterized in that: The page is a main page of the target application or a subpage of the main page of the target application.
23. An electronic device, characterized in that: include: one or more processors; one or more memories for storing said one or more processor-executable instructions; The one or more processors are configured to execute the instructions to implement the page display method according to any one of claims 1 to 11.
24. A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the page display method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Search method, device and mobile terminal
CN104462496A
Fast search method and device
CN104484334A
Method for recommending position information and electronic equipment
CN105045935A
Screen capture method and terminal device
CN105487781A
Search bar operation method and terminal
CN105573579A
