CN111813486A - Page display method, device, electronic device and storage medium - Google Patents
Page display method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN111813486A CN111813486A CN202010694384.7A CN202010694384A CN111813486A CN 111813486 A CN111813486 A CN 111813486A CN 202010694384 A CN202010694384 A CN 202010694384A CN 111813486 A CN111813486 A CN 111813486A
- Authority
- CN
- China
- Prior art keywords
- page
- search box
- target
- display
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开关于一种页面显示方法、装置、电子设备及存储介质,属于网络技术领域。该方法包括:响应于页面显示指令,显示目标应用的页面,该页面不包括搜索框;响应于在该页面上检测到触发事件,确定该触发事件的事件信息;将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对,该搜索框配置信息包括触发该目标应用的搜索框进行显示的信息;响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该搜索框。本公开在用户需要显示搜索框时才显示搜索框,避免了不必要的搜索框显示造成占用页面显示区域的问题,提高了页面显示过程中的页面利用率。
The present disclosure relates to a page display method, device, electronic device and storage medium, and belongs to the field of network technology. The method includes: in response to a page display instruction, displaying a page of a target application, the page does not include a search box; in response to detecting a trigger event on the page, determining event information of the trigger event; combining the event information with the target application The search box configuration information of the current login account is compared, and the search box configuration information includes the information that triggers the display of the search box of the target application; in response to the event information matching the search box configuration information, the page displays the search bar. The present disclosure only displays the search box when the user needs to display the search box, avoids the problem of occupying the page display area caused by unnecessary display of the search box, and improves the page utilization rate during the page display process.
Description
技术领域technical field
本公开涉及网络技术领域,尤其涉及一种页面显示方法、装置、电子设备及存储介质。The present disclosure relates to the field of network technologies, and in particular, to a page display method, apparatus, electronic device, and storage medium.
背景技术Background technique
随着网络技术的发展,互联网上可提供的信息越来越多,用户需要在大量信息中搜索所关注的信息,例如,用户通过电子设备上的应用程序在互联网上搜索所关注的信息。With the development of network technology, more and more information can be provided on the Internet, and users need to search for the information they care about in a large amount of information. For example, the user searches the Internet for the information of interest through an application program on an electronic device.
相关技术中,用户在电子设备上开启目标应用,电子设备直接显示带有搜索框的页面,并在该页面显示该目标应用的其他信息,例如,短视频、图像等,基于用户在该搜索框中输入的搜索词进行搜索,并显示搜索结果。In the related art, 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 of the target application on the page, such as short videos, images, etc. to search for the search term entered in and display the search results.
上述技术直接显示带有搜索框的页面,然而用户可能并不需要搜索,而该搜索框会占用该页面的部分显示区域,导致该页面显示过程中的页面利用率较低。The above technology directly displays a page with a search box, but the user may not need to search, and the search box will occupy part of the display area of the page, resulting in low page utilization during the page display process.
发明内容SUMMARY OF THE INVENTION
本公开提供一种页面显示方法、装置、电子设备及存储介质,提高了页面显示过程中的页面利用率。本公开的技术方案如下:The present disclosure provides a page display method, device, electronic device and storage medium, which improve the page utilization rate in the page display process. The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种页面显示方法,所述页面显示方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a page display method, the page display method comprising:
响应于页面显示指令,显示目标应用的页面,所述页面不包括搜索框;In response to the page display instruction, displaying the page of the target application, the page does not include a search box;
响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息;In response to detecting a trigger event on the page, determining event information of the trigger event;
将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对,所述搜索框配置信息包括触发所述目标应用的搜索框进行显示的信息;comparing the event information with the search box configuration information of the current login account of the target application, where the search box configuration information includes information that triggers the display of the search box of the target application;
响应于所述事件信息与所述搜索框配置信息相匹配,在所述页面显示所述搜索框。The search box is displayed on the page in response to the event information matching the search box configuration information.
在一种可能实现方式中,所述响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在所述页面上检测到的触发操作,获取所述触发操作在所述页面上的触发位置;In response to the triggering operation detected on the page, acquiring the triggering position of the triggering operation on the page;
所述搜索框配置信息包括目标位置区域,相应的,所述将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes a target location area, and correspondingly, the comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于所述触发操作在所述页面上的触发位置位于所述目标位置区域,确定所述事件信息与所述搜索框配置信息相匹配。In response to the triggering position of the triggering operation on the page being located in the target location area, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在所述页面上检测到的触发操作,获取所述触发操作在所述页面上的触发力度;In response to the triggering operation detected on the page, acquiring the triggering force of the triggering operation on the page;
所述搜索框配置信息包括目标力度范围,相应的,所述将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes a target strength range. Correspondingly, the comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于所述触发操作在所述页面上的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配。In response to the triggering force of the triggering operation on the page being within the target force range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述搜索框配置信息还包括目标力度曲线,所述响应于所述触发操作在所述页面上的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配包括:In a possible implementation manner, the search box configuration information further includes a target force curve, and the trigger force on the page in response to the trigger operation is within the target force range, and it is determined that the event information is related to the target force. The search box configuration information that matches the above includes:
响应于所述触发力度位于所述目标力度范围,确定所述触发操作在触发过程中的力度变化曲线与目标力度曲线之间的曲线相似度;In response to the trigger strength being located in the target strength range, determine the curve similarity between the strength change curve of the trigger operation during the triggering process and the target strength curve;
响应于所述曲线相似度符合第二目标条件,确定所述事件信息与所述搜索框配置信息相匹配。In response to the curve similarity meeting a second target condition, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述触发操作在所述页面上包括至少两个触发位置,所述响应于所述触发操作在所述页面上的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配包括以下任一项:In a possible implementation manner, the triggering operation includes at least two triggering positions on the page, and the triggering force on the page in response to the triggering operation being within the target force range, determining the The event information matching the search box configuration information includes any of the following:
基于所述至少两个触发位置中每个触发位置处的触发力度和每个触发位置对应的权重,确定所述触发操作的总触发力度,响应于所述总触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配;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, and in response to the total trigger strength being within the target strength range, determining that the event information matches the search box configuration information;
响应于所述至少两个触发位置中每个触发位置处的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配。In response to the trigger strength at each of the at least two trigger positions being within the target strength range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在所述页面上检测到的触发操作,根据所述触发操作的起始时间和终止时间,获取所述触发操作在所述页面上的操作时长;In response to the trigger operation detected on the page, obtain the operation duration of the trigger operation on the page according to the start time and the end time of the trigger operation;
所述搜索框配置信息包括目标操作时长,相应的,所述将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes the target operation duration. Correspondingly, the comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于所述触发操作在所述页面上的操作时长超过所述目标操作时长,确定所述事件信息与所述搜索框配置信息相匹配。In response to the operation duration of the trigger operation on the page exceeding the target operation duration, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在所述页面上检测到的触发操作,根据所述触发操作的起始位置和终止位置,获取所述触发操作在所述页面上的操作轨迹;In response to the trigger operation detected on the page, obtain the operation track of the trigger operation on the page according to the start position and the end position of the trigger operation;
所述搜索框配置信息包括目标操作轨迹,相应的,所述将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes the target operation track. Correspondingly, the comparing the event information with the search box configuration information of the current login account of the target application includes:
确定所述触发操作在所述页面上的操作轨迹与所述目标操作轨迹之间的轨迹相似度,响应于所述轨迹相似度满足第一目标条件,确定所述事件信息与所述搜索框配置信息相匹配。determining the trajectory similarity between the operation trajectory of the trigger operation on the page and the target operation trajectory, and determining the event information and the search box configuration in response to the trajectory similarity satisfying a first target condition information to match.
在一种可能实现方式中,所述目标操作轨迹包括下拉操作轨迹、上滑操作轨迹、双击操作轨迹、问号形状的操作轨迹或者圆圈形状的操作轨迹中的至少一项。In a possible implementation manner, 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.
在一种可能实现方式中,所述响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在所述页面上检测到的语音信号,获取所述语音信号包括的至少一个关键字;In response to the voice signal detected on the page, acquiring at least one keyword included in the voice signal;
所述搜索框配置信息还包括目标关键字,所述将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information further includes a target keyword, and the comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于所述语音信号所包括的至少一个关键字包括所述目标关键字,确定所述事件信息与所述搜索框配置信息相匹配。In response to at least one keyword included in the voice signal including the target keyword, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述响应于所述事件信息与所述搜索框配置信息相匹配,在所述页面显示所述目标应用的搜索框包括:In a possible implementation manner, in response to the event information being matched with the search box configuration information, displaying the search box of the target application on the page includes:
响应于所述事件信息与所述搜索框配置信息相匹配,获取所述搜索框的目标显示格式;obtaining a target display format of the search box in response to the event information being matched with the search box configuration information;
按照所述目标显示格式,在所述页面显示所述搜索框。The search box is displayed on the page according to the target display format.
在一种可能实现方式中,所述目标显示格式包括目标显示尺寸,所述获取所述目标应用的搜索框的目标显示格式包括以下任一项:In a possible implementation, the target display format includes a target display size, and the target display format for acquiring the search box of the target application includes any of the following:
基于所述触发事件在所述页面的操作轨迹,将覆盖所述操作轨迹的矩形区域的尺寸确定为所述搜索框的目标显示尺寸;Based on the operation track of the trigger event on the page, determining the size of the rectangular area covering the operation track as the target display size of the search box;
将所述当前登录账号的历史搜索操作记录中所述搜索框的历史显示尺寸,作为所述搜索框的目标显示尺寸;Taking the historical display size of the search box in the historical search operation record of the current login account as the target display size of the search box;
所述搜索框配置信息还包括所述搜索框的目标显示尺寸,从所述当前登录账号的搜索框配置信息中提取所述搜索框的目标显示尺寸。The search box configuration information further includes a target display size of the search box, and the target display size of the search box is extracted from the search box configuration information of the currently logged-in account.
在一种可能实现方式中,所述目标显示格式包括目标显示位置,所述获取所述目标应用的搜索框的目标显示格式包括以下任一项:In a possible implementation, the target display format includes a target display position, and the target display format for acquiring the search box of the target application includes any of the following:
基于所述触发事件在所述页面的触发位置,将所述页面中距离所述触发位置不超过目标阈值的区域确定为所述搜索框的目标显示位置;Based on the triggering position of the triggering event on the page, determining an area in the page that is not more than a target threshold from the triggering position as the target display position of the search box;
将所述当前登录账号的历史搜索操作记录中所述搜索框的历史显示位置,作为所述搜索框的目标显示位置;Taking 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 further 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.
在一种可能实现方式中,所述响应于页面显示指令,显示目标应用的页面包括以下任一项:In a possible implementation manner, in response to the page display instruction, displaying the page of the target application includes any of the following:
接收所述页面显示指令,响应于检测到所述当前登录账号已设置的搜索框配置信息,显示所述页面;receiving the page display instruction, and displaying the page in response to detecting the search box configuration information set by the current login account;
接收所述页面显示指令,响应于所述当前登录账号的历史操作记录不包括基于所述搜索框的搜索操作记录,显示所述页面。The page display instruction is received, and the page is displayed in response to the historical operation record of the current login account not including the search operation record based on the search box.
在一种可能实现方式中,所述响应于所述事件信息与所述搜索框配置信息相匹配,在所述页面显示所述目标应用的搜索框之后,所述方法还包括:In a possible implementation manner, in response to the event information being matched with the search box configuration information, after the page displays the search box of the target application, the method further includes:
响应于所述页面上的搜索结束事件,停止在所述页面显示所述搜索框,所述搜索结束事件用于指示基于所述搜索框进行搜索的搜索过程已结束。In response to a search end event on the page, displaying the search box on the page is stopped, and the search end event is used to indicate that the search process for searching based on the search box has ended.
在一种可能实现方式中,所述页面为所述目标应用的主页面或者所述目标应用的主页面的子页面。In a possible implementation manner, the page is a main page of the target application or a sub-page of the main page of the target application.
根据本公开实施例的第二方面,提供一种页面显示装置,所述页面显示装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a page display device, the page display device comprising:
显示模块,被配置为执行响应于页面显示指令,显示目标应用的页面,所述页面不包括搜索框;a display module, configured to display a page of the target application in response to the page display instruction, the page does not include a search box;
确定模块,被配置为执行响应于在所述页面上检测到触发事件,确定所述触发事件的事件信息;a determining module configured to perform, in response to detecting a triggering event on the page, determining event information of the triggering event;
比对模块,被配置为执行将所述事件信息与所述目标应用的当前登录账号的搜索框配置信息进行比对,所述搜索框配置信息包括触发所述目标应用的搜索框进行显示的信息;A comparison module, configured to perform a comparison between the event information and the search box configuration information of the current login account of the target application, where the search box configuration information includes information that triggers the display of the search box of the target application ;
所述显示模块,还被配置为执行响应于所述事件信息与所述搜索框配置信息相匹配,在所述页面显示所述搜索框。The display module is further configured to display the search box on the page in response to the event information being matched with the search box configuration information.
在一种可能实现方式中,所述确定模块,被配置为执行响应于在所述页面上检测到的触发操作,获取所述触发操作在所述页面上的触发位置;In a possible implementation manner, the determining module is configured to perform, in response to a triggering operation detected on the page, acquiring a triggering position of the triggering operation on the page;
所述搜索框配置信息包括目标位置区域,相应的,所述比对模块,被配置为执行响应于所述触发操作在所述页面上的触发位置位于所述目标位置区域,确定所述事件信息与所述搜索框配置信息相匹配。The search box configuration information includes a target location area, and correspondingly, the comparison module is configured to execute that the triggering location on the page in response to the triggering operation is located in the target location area, and determine the event information match the search box configuration information.
在一种可能实现方式中,所述确定模块,被配置为执行响应于在所述页面上检测到的触发操作,获取所述触发操作在所述页面上的触发力度;In a possible implementation manner, the determining module is configured to execute, in response to a triggering operation detected on the page, the triggering force of the triggering operation on the page;
所述搜索框配置信息包括目标力度范围,相应的,所述比对模块,被配置为执行响应于所述触发操作在所述页面上的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配。The search box configuration information includes a target force range, and correspondingly, the comparison module is configured to perform a triggering force on the page in response to the trigger operation that is located in the target force range, and determine the event information. match the search box configuration information.
在一种可能实现方式中,所述搜索框配置信息还包括目标力度曲线,所述比对模块,被配置为执行响应于所述触发力度位于所述目标力度范围,确定所述触发操作在触发过程中的力度变化曲线与目标力度曲线之间的曲线相似度;响应于所述曲线相似度符合第二目标条件,确定所述事件信息与所述搜索框配置信息相匹配。In a possible implementation manner, the search box configuration information further includes a target force curve, and the comparison module is configured to perform, in response to the trigger force being within the target force range, determine that the trigger operation is within the trigger force range. The curve similarity between the force change curve in the process and the target force curve; in response to the curve similarity meeting the second target condition, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述触发操作在所述页面上包括至少两个触发位置,所述比对模块,被配置为执行以下任一项:In a possible implementation manner, the trigger operation includes at least two trigger positions on the page, and the comparison module is configured to perform any one of the following:
基于所述至少两个触发位置中每个触发位置处的触发力度和每个触发位置对应的权重,确定所述触发操作的总触发力度,响应于所述总触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配;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, and in response to the total trigger strength being within the target strength range, determining that the event information matches the search box configuration information;
响应于所述至少两个触发位置中每个触发位置处的触发力度位于所述目标力度范围,确定所述事件信息与所述搜索框配置信息相匹配。In response to the trigger strength at each of the at least two trigger positions being within the target strength range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述确定模块,被配置为执行响应于在所述页面上检测到的触发操作,根据所述触发操作的起始时间和终止时间,获取所述触发操作在所述页面上的操作时长;In a possible implementation manner, the determining module is configured to perform, in response to a triggering operation detected on the page, obtain the location where the triggering operation is located according to the start time and the end time of the triggering operation. the duration of the operation on the above page;
所述搜索框配置信息包括目标操作时长,相应的,所述比对模块,被配置为执行响应于所述触发操作在所述页面上的操作时长超过所述目标操作时长,确定所述事件信息与所述搜索框配置信息相匹配。The search box configuration information includes a target operation duration, and correspondingly, the comparison module is configured to perform an operation duration on the page in response to the trigger operation exceeding the target operation duration, and determine the event information match the search box configuration information.
在一种可能实现方式中,所述确定模块,被配置为执行响应于在所述页面上检测到的触发操作,根据所述触发操作的起始位置和终止位置,获取所述触发操作在所述页面上的操作轨迹;In a possible implementation manner, the determining module is configured to perform, in response to the triggering operation detected on the page, obtain the location where the triggering operation is located according to the starting position and the ending position of the triggering operation. The operation track on the above page;
所述搜索框配置信息包括目标操作轨迹,相应的,所述比对模块,被配置为执行确定所述触发操作在所述页面上的操作轨迹与所述目标操作轨迹之间的轨迹相似度,响应于所述轨迹相似度满足第一目标条件,确定所述事件信息与所述搜索框配置信息相匹配。The search box configuration information includes a target operation trajectory. Correspondingly, the comparison module is configured to perform determining the trajectory similarity between the operation trajectory of the trigger operation on the page and the target operation trajectory, In response to the trajectory similarity satisfying a first target condition, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,所述目标操作轨迹包括下拉操作轨迹、上滑操作轨迹、双击操作轨迹、问号形状的操作轨迹或者圆圈形状的操作轨迹中的至少一项。In a possible implementation manner, 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.
在一种可能实现方式中,所述确定模块,被配置为执行响应于在所述页面上检测到的语音信号,获取所述语音信号包括的至少一个关键字;In a possible implementation manner, the determining module is configured to perform, in response to the voice signal detected on the page, acquiring at least one keyword included in the voice signal;
所述比对模块,被配置为执行响应于所述语音信号所包括的至少一个关键字包括所述目标关键字,确定所述事件信息与所述搜索框配置信息相匹配。The matching module is configured to perform determining that the event information matches the search box configuration information in response to the at least one keyword included in the speech signal including the target keyword.
在一种可能实现方式中,所述显示模块,被配置为执行响应于所述事件信息与所述搜索框配置信息相匹配,获取所述搜索框的目标显示格式;按照所述目标显示格式,在所述页面显示所述搜索框。In a possible implementation manner, the display module is configured to obtain a target display format of the search box in response to the event information being matched with the search box configuration information; according to the target display format, The search box is displayed on the page.
在一种可能实现方式中,所述目标显示格式包括目标显示尺寸,所述显示模块,被配置为执行以下任一项:In a possible implementation, the target display format includes a target display size, and the display module is configured to perform any one of the following:
基于所述触发事件在所述页面的操作轨迹,将覆盖所述操作轨迹的矩形区域的尺寸确定为所述搜索框的目标显示尺寸;Based on the operation track of the trigger event on the page, determining the size of the rectangular area covering the operation track as the target display size of the search box;
将所述当前登录账号的历史搜索操作记录中所述搜索框的历史显示尺寸,作为所述搜索框的目标显示尺寸;Taking the historical display size of the search box in the historical search operation record of the current login account as the target display size of the search box;
所述搜索框配置信息还包括所述搜索框的目标显示尺寸,从所述当前登录账号的搜索框配置信息中提取所述搜索框的目标显示尺寸。The search box configuration information further includes a target display size of the search box, and the target display size of the search box is extracted from the search box configuration information of the currently logged-in account.
在一种可能实现方式中,所述目标显示格式包括目标显示位置,所述显示模块,被配置为执行以下任一项:In a possible implementation manner, the target display format includes a target display position, and the display module is configured to perform any one of the following:
基于所述触发事件在所述页面的触发位置,将所述页面中距离所述触发位置不超过目标阈值的区域确定为所述搜索框的目标显示位置;Based on the triggering position of the triggering event on the page, determining an area in the page that is not more than a target threshold from the triggering position as the target display position of the search box;
将所述当前登录账号的历史搜索操作记录中所述搜索框的历史显示位置,作为所述搜索框的目标显示位置;Taking 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 further 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.
在一种可能实现方式中,所述显示模块,被配置为执行以下任一项:In a possible implementation, the display module is configured to perform any one of the following:
接收所述页面显示指令,响应于检测到所述当前登录账号已设置的搜索框配置信息,显示所述页面;receiving the page display instruction, and displaying the page in response to detecting the search box configuration information set by the current login account;
接收所述页面显示指令,响应于所述当前登录账号的历史操作记录不包括基于所述搜索框的搜索操作记录,显示所述页面。The page display instruction is received, and the page is displayed in response to the historical operation record of the current login account not including the search operation record based on the search box.
在一种可能实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
停止模块,被配置为执行响应于所述页面上的搜索结束事件,停止在所述页面显示所述搜索框,所述搜索结束事件用于指示基于所述搜索框进行搜索的搜索过程已结束。A stop module configured to stop displaying the search box on the page in response to a search end event on the page, the search end event being used to indicate that a search process for searching based on the search box has ended.
在一种可能实现方式中,所述页面为所述目标应用的主页面或者所述目标应用的主页面的子页面。In a possible implementation manner, the page is a main page of the target application or a sub-page of the main page of the target application.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising:
一个或多个处理器;one or more processors;
用于存储所述一个或多个处理器可执行指令的一个或多个存储器;one or more memories for storing the one or more processor-executable instructions;
其中,所述一个或多个处理器被配置为执行所述指令,以实现如第一方面或第一方面的任一种可能实现方式所述的页面显示方法。Wherein, the one or more processors are configured to execute the instructions to implement the page display method according to the first aspect or any possible implementation manner of the first aspect.
根据本公开实施例的第四方面,提供了一种存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如第一方面或第一方面的任一种可能实现方式所述的页面显示方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, when an instruction in the storage medium is executed by a processor of an electronic device, the electronic device can execute any one of the first aspect or the first aspect The page display method described in a possible implementation manner.
根据本公开实施例的第五方面,提供一种计算机程序产品,当所述计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备能够执行如第一方面或第一方面的任一种可能实现方式所述的方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product that, when the instructions in the computer program product are executed by a processor of an electronic device, enables the electronic device to execute any one of the first aspect or the first aspect. A possible implementation of the method described.
本公开的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
通过在需要显示目标应用的页面时,显示不包括搜索框的页面,如果用户在页面上进行了触发事件,则电子设备将该触发事件的事件信息与当前登录账号的搜索框配置信息进行比对,由于搜索框配置信息包括触发该目标应用的搜索框进行显示的信息,因此如果该触发事件的事件信息与该搜索框配置信息相匹配,则表明用户有显示搜索框的需求,此时电子设备在该页面显示该目标应用的搜索框。上述技术方案通过在页面上检测到事件信息与搜索框配置信息匹配的触发事件,才显示搜索框,也即是,在用户需要显示搜索框时才显示搜索框,避免了不必要的搜索框显示造成占用页面显示区域的问题,提高了页面显示过程中的页面利用率。By displaying the page without the search box when the page of the target application needs to be displayed, if the user triggers an event on the page, the electronic device compares the event information of the trigger event with the search box configuration information of the current login account , since the search box configuration information includes the information that triggers the display of the search box of the target application, if the event information of the trigger event matches the search box configuration information, it indicates that the user has the need to display the search box. At this time, the electronic device Displays the search box for the target application on this page. The above technical solution displays the search box only by detecting a trigger event in which the event information matches the configuration information of the search box on the page, that is, the search box is displayed only when the user needs to display the search box, avoiding unnecessary display of the search box. The problem of occupying the page display area is caused, and the page utilization rate during the page display process is improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种页面显示方法的实施环境示意图;1 is a schematic diagram of an implementation environment of a page display method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种页面显示方法的流程图;FIG. 2 is a flowchart of a method for displaying a page according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种页面显示方法的流程图;3 is a flowchart of a method for displaying a page according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种页面显示装置的框图;FIG. 4 is a block diagram of a page display apparatus according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种终端的框图。Fig. 5 is a block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used is interchanged under appropriate circumstances so that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种页面显示方法的实施环境示意图,参见图1,该实施环境包括终端101和服务器102。该终端101上安装有目标应用,该服务器102为该目标应用的后台服务器。该终端101与该服务器102之间基于该目标应用进行信息交互。FIG. 1 is a schematic diagram of an implementation environment of a page display method according to an exemplary embodiment. Referring to FIG. 1 , the implementation environment includes a terminal 101 and a
该目标应用包括搜索框,也即是,该目标应用能够基于用户在该搜索框输入的信息进行搜索。例如,该终端101将用户在该搜索框输入的信息发送至服务器102,由服务器102基于该信息在该目标应用所包括的大量信息中进行搜索,并将搜索结果发送至终端101,该终端101在该页面上显示该搜索结果。The target application includes a search box, that is, the target application is capable of searching based on information entered by the user in the search box. For example, the terminal 101 sends the information entered by the user in the search box to the
该目标应用为提供搜索功能的任一应用,例如,短视频应用、音频播放应用、直播应用或者购物应用、社交应用等。该目标应用为一个独立的应用程序,也为嵌入在独立应用程序中的程序插件,例如,该目标应用为一个独立的短视频应用,也为嵌入在社交应用上的短视频小程序。The target application is any application that provides a search function, for example, a short video application, an audio playback application, a live broadcast application or a shopping application, a social networking application, and the like. The target application is an independent application and is also a program plug-in embedded in the independent application. For example, the target application is an independent short video application and a short video applet embedded in a social application.
终端101类型包括但不限于:智能手机、个人计算机、平板电脑、笔记本电脑、电子阅读器等;本公开实施例对此不进行具体限定。示例性地,图1仅以智能手机为例对终端101进行举例说明。服务器102既是一个独立的服务器,也是由多个服务器组成的服务器集群,本公开实施例对此同样不进行具体限定。The type of the terminal 101 includes, but is not limited to, a smart phone, a personal computer, a tablet computer, a notebook computer, an electronic reader, and the like; this is not specifically limited in this embodiment of the present disclosure. Exemplarily, FIG. 1 only takes a smartphone as an example to illustrate the terminal 101 . The
图2是根据一示例性实施例示出的一种页面显示方法的流程图,如图2所示,该页面显示方法用于电子设备中,包括以下步骤。Fig. 2 is a flowchart of a page display method according to an exemplary embodiment. As shown in Fig. 2 , the page display method is used in an electronic device and includes the following steps.
201、响应于页面显示指令,显示目标应用的页面,该页面不包括搜索框。201. In response to the page display instruction, display a page of the target application, where the page does not include a search box.
202、响应于在该页面上检测到触发事件,确定该触发事件的事件信息。202. In response to detecting a trigger event on the page, determine event information of the trigger event.
203、将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对,该搜索框配置信息包括触发该目标应用的搜索框进行显示的信息。203. Compare the event information with the search box configuration information of the current login account of the target application, where the search box configuration information includes information that triggers the display of the search box of the target application.
204、响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该搜索框。204. In response to the event information matching the configuration information of the search box, display the search box on the page.
本公开实施例提供的方法,通过在需要显示目标应用的页面时,显示不包括搜索框的页面,如果用户在页面上进行了触发事件,则电子设备将该触发事件的事件信息与当前登录账号的搜索框配置信息进行比对,由于搜索框配置信息包括触发该目标应用的搜索框进行显示的信息,因此如果该触发事件的事件信息与该搜索框配置信息相匹配,则表明用户有显示搜索框的需求,此时电子设备在该页面显示该目标应用的搜索框。上述技术方案通过在页面上检测到事件信息与搜索框配置信息匹配的触发事件,才显示搜索框,也即是,在用户需要显示搜索框时才显示搜索框,避免不必要的搜索框显示造成占用页面显示区域的问题,提高了页面显示过程中的页面利用率。In the method provided by the embodiments of the present disclosure, when the page of the target application needs to be displayed, the page that does not include the search box is displayed. If the user triggers an event on the page, the electronic device associates the event information of the trigger event with the current login account. The configuration information of the search box is compared. Since the configuration information of the search box includes the information that triggers the display of the search box of the target application, if the event information of the trigger event matches the configuration information of the search box, it indicates that the user has displayed the search box. box, and the electronic device displays the search box of the target application on the page. The above technical solution displays the search box only by detecting a trigger event in which the event information matches the configuration information of the search box on the page, that is, the search box is displayed only when the user needs to display the search box, so as to avoid unnecessary display of the search box. The problem of occupying the page display area improves the page utilization rate during the page display process.
在一种可能实现方式中,该响应于在该页面上检测到触发事件,确定该触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发位置;In response to the trigger operation detected on the page, obtain the trigger position of the trigger operation on the page;
该搜索框配置信息包括目标位置区域,相应的,该将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes a target location area. Correspondingly, comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于该触发操作在该页面上的触发位置位于该目标位置区域,确定该事件信息与该搜索框配置信息相匹配。In response to the trigger position of the trigger operation on the page being located in the target location area, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该响应于在该页面上检测到触发事件,确定该触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发力度;In response to the triggering operation detected on the page, obtain the triggering force of the triggering operation on the page;
该搜索框配置信息包括目标力度范围,相应的,该将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes the target strength range. Correspondingly, comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于该触发操作在该页面上的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。In response to the triggering force of the triggering operation on the page being within the target force range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该搜索框配置信息还包括目标力度曲线,该响应于该触发操作在该页面上的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配包括:In a possible implementation manner, the search box configuration information further includes a target force curve, and the trigger force on the page in response to the trigger operation is located in the target force range, and it is determined that the event information matches the search box configuration information include:
响应于该触发力度位于该目标力度范围,确定该触发操作在触发过程中的力度变化曲线与目标力度曲线之间的曲线相似度;In response to the trigger strength being located in the target strength range, determine the curve similarity between the strength change curve of the trigger operation during the triggering process and the target strength curve;
响应于该曲线相似度符合第二目标条件,确定该事件信息与该搜索框配置信息相匹配。In response to the curve similarity meeting the second target condition, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该触发操作在该页面上包括至少两个触发位置,该响应于该触发操作在该页面上的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配包括以下任一项:In a possible implementation manner, the trigger operation includes at least two trigger positions on the page, and the event information is determined to be configured with the search box in response to the trigger strength of the trigger operation on the page being within the target strength range Information that matches includes any of the following:
基于该至少两个触发位置中每个触发位置处的触发力度和每个触发位置对应的权重,确定该触发操作的总触发力度,响应于该总触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配;Determine the total trigger strength of the trigger operation based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, and determine the event information in response to the total trigger strength being within the target strength range match the search box configuration information;
响应于该至少两个触发位置中每个触发位置处的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。In response to the trigger strength at each of the at least two trigger positions being within the target strength range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该响应于在该页面上检测到触发事件,确定该触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在该页面上检测到的触发操作,根据该触发操作的起始时间和终止时间,获取该触发操作在该页面上的操作时长;In response to the trigger operation detected on the page, obtain the operation duration of the trigger operation on the page according to the start time and end time of the trigger operation;
该搜索框配置信息包括目标操作时长,相应的,该将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes the target operation duration. Correspondingly, comparing the event information with the search box configuration information of the current login account of the target application includes:
响应于该触发操作在该页面上的操作时长超过该目标操作时长,确定该事件信息与该搜索框配置信息相匹配。In response to the operation duration of the trigger operation on the page exceeding the target operation duration, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该响应于在该页面上检测到触发事件,确定该触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在该页面上检测到的触发操作,根据该触发操作的起始位置和终止位置,获取该触发操作在该页面上的操作轨迹;In response to the trigger operation detected on the page, obtain the operation track of the trigger operation on the page according to the start position and the end position of the trigger operation;
该搜索框配置信息包括目标操作轨迹,相应的,该将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information includes the target operation track. Correspondingly, comparing the event information with the search box configuration information of the current login account of the target application includes:
确定该触发操作在该页面上的操作轨迹与该目标操作轨迹之间的轨迹相似度,响应于该轨迹相似度满足第一目标条件,确定该事件信息与该搜索框配置信息相匹配。Determine the track similarity between the operation track of the trigger operation on the page and the target operation track, and in response to the track similarity satisfying the first target condition, determine that the event information matches the search box configuration information.
在一种可能实现方式中,该目标操作轨迹包括下拉操作轨迹、上滑操作轨迹、双击操作轨迹、问号形状的操作轨迹或者圆圈形状的操作轨迹中的至少一项。In a possible implementation manner, 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.
在一种可能实现方式中,该响应于在该页面上检测到触发事件,确定该触发事件的事件信息包括:In a possible implementation manner, in response to detecting a trigger event on the page, determining the event information of the trigger event includes:
响应于在该页面上检测到的语音信号,获取该语音信号包括的至少一个关键字;In response to the voice signal detected on the page, obtain at least one keyword included in the voice signal;
该搜索框配置信息还包括目标关键字,该将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对包括:The search box configuration information also includes a target keyword, and the comparison of the event information with the search box configuration information of the current login account of the target application includes:
响应于该语音信号所包括的至少一个关键字包括该目标关键字,确定该事件信息与该搜索框配置信息相匹配。In response to the at least one keyword included in the voice signal including the target keyword, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该目标应用的搜索框包括:In a possible implementation manner, in response to the event information being matched with the search box configuration information, displaying the search box of the target application on the page includes:
响应于该事件信息与该搜索框配置信息相匹配,获取该搜索框的目标显示格式;In response to the event information being matched with the search box configuration information, acquiring the target display format of the search box;
按照该目标显示格式,在该页面显示该搜索框。Display the search box on this page according to the target display format.
在一种可能实现方式中,该目标显示格式包括目标显示尺寸,该获取该目标应用的搜索框的目标显示格式包括以下任一项:In a possible implementation manner, the target display format includes a target display size, and the target display format for acquiring the search box of the target application includes any of the following:
基于该触发事件在该页面的操作轨迹,将覆盖该操作轨迹的矩形区域的尺寸确定为该搜索框的目标显示尺寸;Based on the operation track of the trigger event on the page, the size of the rectangular area covering the operation track is determined as the target display size of the search box;
将该当前登录账号的历史搜索操作记录中该搜索框的历史显示尺寸,作为该搜索框的目标显示尺寸;Use the historical display size of the search box in the historical search operation record of the current login account as the target display size of the search box;
该搜索框配置信息还包括该搜索框的目标显示尺寸,从该当前登录账号的搜索框配置信息中提取该搜索框的目标显示尺寸。The search box configuration information further includes a target display size of the search box, and the target display size of the search box is extracted from the search box configuration information of the currently logged-in account.
在一种可能实现方式中,该目标显示格式包括目标显示位置,该获取该目标应用的搜索框的目标显示格式包括以下任一项:In a possible implementation manner, the target display format includes a target display position, and the target display format for acquiring the search box of the target application includes any of the following:
基于该触发事件在该页面的触发位置,将该页面中距离该触发位置不超过目标阈值的区域确定为该搜索框的目标显示位置;Based on the triggering position of the triggering event on the page, determine an area in the page that is far from the triggering position and does not exceed the target threshold as the target display position of the search box;
将该当前登录账号的历史搜索操作记录中该搜索框的历史显示位置,作为该搜索框的目标显示位置;Use 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 further 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.
在一种可能实现方式中,该响应于页面显示指令,显示目标应用的页面包括以下任一项:In a possible implementation manner, in response to the page display instruction, displaying the page of the target application includes any of the following:
接收该页面显示指令,响应于检测到该当前登录账号已设置的搜索框配置信息,显示该页面;Receive the page display instruction, and display the page in response to detecting the search box configuration information set by the current login account;
接收该页面显示指令,响应于该当前登录账号的历史操作记录不包括基于该搜索框的搜索操作记录,显示该页面。The page display instruction is received, and the page is displayed in response to the historical operation record of the current login account not including the search operation record based on the search box.
在一种可能实现方式中,该响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该目标应用的搜索框之后,该方法还包括:In a possible implementation manner, in response to the event information being matched with the search box configuration information, after the page displays the search box of the target application, the method further includes:
响应于该页面上的搜索结束事件,停止在该页面显示该搜索框,该搜索结束事件用于指示基于该搜索框进行搜索的搜索过程已结束。In response to a search end event on the page, displaying the search box on the page is stopped, and the search end event is used to indicate that the search process for searching based on the search box has ended.
在一种可能实现方式中,该页面为该目标应用的主页面或者该目标应用的主页面的子页面。In a possible implementation manner, the page is the main page of the target application or a sub-page of the main page of the target application.
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, which will not be repeated here.
上述图2所示的流程为本公开实施例的基本流程,下面基于该基本流程对本公开实施例的详细流程进行介绍。The above-mentioned flow shown in FIG. 2 is the basic flow of the embodiment of the present disclosure, and the detailed flow of the embodiment of the present disclosure will be introduced below based on the basic flow.
图3是根据一示例性实施例示出的一种页面显示方法的流程图,如图3所示,页面显示方法用于电子设备中,例如,该电子设备为终端,该页面显示方法包括以下步骤。Fig. 3 is a flowchart of a page display method according to an exemplary embodiment. As shown in Fig. 3, the page display method is used in an electronic device, for example, the electronic device is a terminal, and the page display method includes the following steps .
301、电子设备响应于页面显示指令,显示目标应用的页面,该页面不包括搜索框。301. The electronic device displays a page of the target application in response to the page display instruction, and the page does not include a search box.
本公开实施例中,该页面显示指令用于指示显示该目标应用的页面。该页面为该目标应用的任一应用页面,在一个可能示例中,该页面为该目标应用的主页面或者该目标应用的主页面的子页面。例如,该页面包括但不限于:该目标应用的首页页面、该目标应用的主页面、该目标应用的主页面的子页面、用户在该目标应用的用户动态展示页面或者该目标应用上的任一信息展示页面等。无论目标应用的页面为主页面还是子页面,电子设备均能够通过本公开实施例提供的页面显示方法,来显示搜索框,提高了方法的适用性,使得在应用程序的各个页面上都可以便捷的调度出搜索框。In this embodiment of the present disclosure, the page display instruction is used to instruct to display the page of the target application. The page is any application page of the target application, and in a possible example, the page is the main page of the target application or a sub-page of the main page of the target application. For example, the page includes, but is not limited to: the home page of the target application, the main page of the target application, the sub-pages of the main page of the target application, the user dynamic display page of the target application, or any page on the target application. An information display page, etc. Regardless of whether the page of the target application is the main page or the sub-page, the electronic device can display the search box by using the page display method provided by the embodiment of the present disclosure, which improves the applicability of the method and makes it convenient to use on each page of the application program. The scheduler out of the search box.
本步骤中,该电子设备基于该目标应用的当前登录账号进行页面显示。电子设备接收页面显示指令,该电子设备基于该目标应用的当前登录账号的账号信息,显示不包括搜索框的页面。该账号信息是用户在该目标应用上登录个人账号时,在该目标应用上配置的信息或者该用户对该目标应用的使用信息。在一种可能实现方式中,该账号信息包括当前登录账号已设置的搜索框配置信息,该搜索框配置信息包括触发该目标应用的搜索框进行显示的信息,则该电子设备基于当前登录账号是否设置有搜索框配置信息进行页面显示。则本步骤包括:电子设备接收该页面显示指令,响应于检测到该当前登录账号已设置的搜索框配置信息,显示该目标应用的页面;响应于检测到该目标应用的当前登录账号未设置的搜索框配置信息,该电子设备直接显示该目标应用的搜索页面,该搜索页面是指包括有搜索框的页面。其中,当用户已设置该搜索框配置信息时,该电子设备先显示不包括搜索框的页面,后续基于用户的触发再显示搜索框。当然,当该用户未设置该搜索框配置信息时,该电子设备直接显示包括搜索框的页面。另外,该电子设备还在该页面或者搜索页面中显示其他信息,例如,该目标应用的图像、向用户推送的视频画面、用户的头像图标、分享按钮、返回按钮等。通过基于用户对搜索框的配置情况准确定位用户需求,在用户已设置了搜索框配置信息时,说明用户已在目标应用上配置了通过触发事件触发显示搜索框的过程,此时,通过显示不包括搜索框的页面,避免页面上的信息过冗余的情况,提高了该页面的显示效果,后续再基于用户的触发事件进一步显示搜索框,从而在满足用户的需求的前提下,尽量减少对页面的占用,提高了页面显示过程的准确性,提升了用户体验。In this step, the electronic device performs page display based on the current login account of the target application. The electronic device receives the page display instruction, and the electronic device displays a page that does not include a search box based on the account information of the current login account of the target application. The account information is information configured on the target application when the user logs in to the personal account on the target application or information on the user's use of the target application. In a possible implementation manner, the account information includes search box configuration information that has been set by the current login account, and the search box configuration information includes information that triggers the display of the search box of the target application, then the electronic device is based on whether the current login account is Set the configuration information of the search box for page display. Then this step includes: the electronic device receives the page display instruction, displays the page of the target application in response to detecting the search box configuration information that has been set by the current login account; in response to detecting that the current login account of the target application has not been set Search box configuration information, the electronic device directly displays the search page of the target application, where the search page refers to a page including a search box. Wherein, when the user has set the configuration information of the search box, the electronic device first displays a page that does not include the search box, and then displays the search box based on the user's triggering. Of course, when the user does not set the configuration information of the search box, the electronic device directly displays the page including the search box. In addition, the electronic device also displays other information on the page or the search page, for example, the image of the target application, the video image pushed to the user, the user's avatar icon, a share button, a return button, and the like. By accurately locating the user's needs based on the user's configuration of the search box, when the user has set the search box configuration information, it means that the user has configured the process of triggering the display of the search box by triggering events on the target application. The page including the search box avoids the redundant information on the page, improves the display effect of the page, and then further displays the search box based on the user's trigger event, so as to meet the needs of the user, minimize the need for The occupation of the page improves the accuracy of the page display process and improves the user experience.
在另一种可能实现方式中,该账号信息包括当前登录账号的历史操作记录,该电子设备还基于该历史操作记录进行页面显示。则本步骤包括:电子设备接收该页面显示指令,响应于该当前登录账号的历史操作记录不包括基于该搜索框的搜索操作记录,该电子设备显示该目标应用的页面;响应于该当前登录账号的历史操作记录包括基于该搜索框的搜索操作记录,该电子设备显示该目标应用的搜索页面。其中,基于该搜索框的搜索操作记录是指用户通过在该搜索框输入信息在目标应用上进行该的操作记录。该历史操作记录为用户在过去的时间对该目标应用的操作记录,例如,用户在前一天、上个星期或者距离当前时间之前的48小时等使用该目标应用的历史操作记录;或者,该历史操作记录还为用户在本次使用该目标应用之前的操作记录,例如,用户上一次使用该目标应用的记录。当该历史操作记录不包括搜索操作记录时,说明该用户之前使用该目标应用时并未用到该目标应用的搜索功能,则该电子设备先显示不包括搜索框的页面,后续基于用户的触发再显示搜索框。通过基于用户的历史操作记录准确定位用户需求,在检测到用户不曾使用搜索框进行搜索时,说明用户可能没有搜索需求,此时通过显示不包括搜索框的页面,使得该页面中显示的信息准确匹配到用户的需求,避免页面上的信息过冗余的情况,提高了该页面的显示效果,后续再基于用户的触发事件进一步显示搜索框,从而在满足用户的需求的前提下,尽量减少对页面的占用,提高了页面显示过程的准确性,提升了用户体验。In another possible implementation manner, the account information includes a historical operation record of the currently logged-in account, and the electronic device further displays a page based on the historical operation record. Then this step includes: the electronic device receives the page display instruction, and in response to the historical operation record of the current login account not including the search operation record based on the search box, the electronic device displays the page of the target application; in response to the current login account The historical operation record includes the search operation record based on the search box, and the electronic device displays the search page of the target application. Wherein, the search operation record based on the search box refers to the operation record performed by the user on the target application by inputting information in the search box. The historical operation record is the operation record of the user on the target application in the past time, for example, the historical operation record of the user using the target application on the previous day, the last week, or 48 hours before the current time; or, the historical operation record The operation record is also the operation record of the user before using the target application this time, for example, the record that the user used the target application last time. When the historical operation record does not include the search operation record, it means that the user did not use the search function of the target application when using the target application before, then the electronic device first displays the page that does not include the search box, and then triggers the user based on the user The search box is displayed again. Accurately locate the user's needs based on the user's historical operation records. When it is detected that the user has not used the search box to search, it indicates that the user may have no search needs. At this time, by displaying a page that does not include the search box, the information displayed on the page is accurate. It matches the needs of users, avoids redundant information on the page, improves the display effect of the page, and then further displays the search box based on the user's trigger events, so as to meet the needs of users, minimize the need for The occupation of the page improves the accuracy of the page display process and improves the user experience.
本步骤中,通过接收到页面显示指令时,先不包括搜索框的页面,从而避免用户在没有搜索需求时,过多占用页面中的区域,从而尽可能的将页面的区域最大化的展示有效信息,后续基于用户的触发,进一步在该页面上显示搜索框,大大提高了页面利用率。In this step, when the page display instruction is received, the page of the search box is not included first, so as to prevent the user from occupying too much area in the page when there is no search demand, so as to maximize the display area of the page as effectively as possible. information, and then based on the user's trigger, the search box is further displayed on the page, which greatly improves the page utilization.
302、电子设备响应于在该页面上检测到触发事件,确定该触发事件的事件信息。302. In response to detecting the trigger event on the page, the electronic device determines event information of the trigger event.
本步骤中,该触发事件是指触发显示搜索框的事件。该电子设备在显示该页面时,用户通过触发操作或者语音,以触发电子设备显示该搜索框。该电子设备检测该页面的触发事件,当检测到用户在该页面上的触发事件时,该电子设备获取该触发事件的事件信息。该事件信息为该触发操作的操作信息,或者语音信息。相应的,本步骤包括以下五种实现方式。In this step, the trigger event refers to an event that triggers the display of the search box. When the electronic device displays the page, the user triggers the electronic device to display the search box by triggering operation or voice. The electronic device detects the triggering event of the page, and when detecting the triggering event of the user on the page, the electronic device obtains the event information of the triggering event. The event information is operation information of the triggering operation, or voice information. Correspondingly, this step includes the following five implementation manners.
第一种方式、该电子设备响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发位置。In a first manner, the electronic device acquires the triggering position of the triggering operation on the page in response to the triggering operation detected on the page.
本公开实施例中,用户通过在该电子设备的显示屏上的手势操作,例如,触摸显示屏,并在显示屏上进行滑动或者点击等手势操作,以触发电子设备显示搜索框。在一种可能示例中,该电子设备的显示屏为配置有压力传感器的触摸屏,该电子设备检测到多个压力传感器中任一压力传感器的压力数值发生变化时,该电子设备基于该压力传感器的位置,获取该触发操作的触发位置。其中,该触发位置的数目为一个或多个,也即是,用户通过在该页面的一个或多个位置上的触摸,以触发显示搜索框。In the embodiment of the present disclosure, the user performs a gesture operation on the display screen of the electronic device, for example, touches the display screen, and performs gesture operations such as sliding or clicking on the display screen to trigger the electronic device to display the search box. In a possible example, the display screen of the electronic device is a touch screen configured with a pressure sensor, and when the electronic device detects that the pressure value of any pressure sensor in the plurality of pressure sensors changes, the electronic device based on the pressure sensor position to get the trigger position of the trigger operation. The number of the trigger positions is one or more, that is, the user touches one or more positions on the page to trigger the display of the search box.
需要说明的是,用户在该页面上进行任意触发操作。在一个可能示例中,该触发操作为用户通过两个手指在屏幕指定的两个不同位置以一定的力度进行按压的操作;或者,还为用户通过手指在屏幕的指定位置上进行双击的操作,也即是连续的点击两次的操作;又或者,还为用户通过手指在屏幕的指定位置上进行下滑的操作等。当用户的触发操作与该屏幕上的多个位置有接触的操作时,该电子设备还分别获取该触发操作在页面上的多个触发位置,以及每个触发位置处的触发力度。It should be noted that the user performs any trigger operation on this page. In a possible example, the triggering operation is an operation in which the user presses two different positions designated by the screen with a certain force with a certain force; That is, it is an operation of clicking twice in a row; or, it is also an operation of sliding the user through a finger on a designated position on the screen. When the user's triggering operation is in contact with multiple positions on the screen, the electronic device further obtains the multiple triggering positions on the page for the triggering operation, and the triggering force at each triggering position.
第二种方式、该电子设备响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发力度。In a second manner, the electronic device acquires the triggering force of the triggering operation on the page in response to the triggering operation detected on the page.
该电子设备还从该压力传感器中获取该触发位置处的触发力度。在一个可能示例中,该电子设备还获取用户在触发操作过程中多个时刻的触发力度。例如,该电子设备还在检测到触发操作时,按照目标采集周期,开始采集触发位置处的触发力度,直至触发操作结束时停止采集,从而得到触发操作过程中多个触发力度,该多个触发力度精确的表示出该触发操作在操作过程中的力度变化情况。其中,该目标采集周期基于需要进行设置,本公开实施例对此不做具体限定。例如,该目标采集周期为每0.1秒采集一次、每0.05秒采集一次等。The electronic device also acquires the triggering force at the triggering position from the pressure sensor. In a possible example, the electronic device further acquires the triggering strength of the user at multiple moments during the triggering operation. For example, when the electronic device still detects the trigger operation, it starts to collect the trigger strength at the trigger position according to the target acquisition cycle, and stops the acquisition when the trigger operation ends, so as to obtain multiple trigger strengths during the trigger operation. The force accurately represents the force change of the trigger operation during the operation. The target collection period is set based on needs, which is not specifically limited in this embodiment of the present disclosure. For example, the target collection period is collection every 0.1 seconds, collection every 0.05 seconds, and so on.
在一个可能示例中,当垫子设备采集触发操作在多个触发时刻的触发力度时,该电子还根据该多个触发力度对应的触发时刻时间先后顺序,绘制该多个触发力度对应的力度变化曲线,也即是该触发操作在触发过程中的力度变化曲线。需要说明的是,通过该力度变化曲线,更加形象、清晰的展示出该触发操作时力度变化趋势,从而后续基于力度曲线,进行事件信息和搜索框配置信息的比对,提高了比对的准确性,从而进一步提高了页面显示的准确性。In a possible example, when the cushion device collects the triggering strengths of the triggering operation at multiple triggering moments, the electronic device also draws the force variation curves corresponding to the multiple triggering strengths according to the chronological sequence of the triggering moments corresponding to the multiple triggering strengths , that is, the force change curve of the trigger operation during the triggering process. It should be noted that, through the force change curve, the force change trend during the trigger operation can be displayed more vividly and clearly, so that the subsequent comparison of the event information and the search box configuration information based on the force curve improves the accuracy of the comparison. , thereby further improving the accuracy of page display.
第三种方式、该电子设备响应于在该页面上检测到的触发操作,根据该触发操作的起始时间和终止时间,获取该触发操作在该页面上的操作时长。In a third manner, in response to the trigger operation detected on the page, the electronic device acquires the operation duration of the trigger operation on the page according to the start time and the end time of the trigger operation.
该电子设备在检测到该页面上的任一位置被触摸时的时间作为本次触发的起始时间,将页面不再被触摸时的触摸时间作为本次触发的终止时间,该电子设备将从起始时间到终止时间的时长作为本次触发操作的操作时长。在另一个可能示例中,该电子设备检测到该页面上的任一位置被触摸时,开始计时,直至页面不再被触摸时结束计时,该电子设备将该计时时段作为本次触发操作的操作时长。The time when the electronic device detects that any position on the page is touched is used as the start time of this trigger, and the touch time when the page is no longer touched is the end time of this trigger. The duration from the start time to the end time is used as the operation duration of this trigger operation. In another possible example, the electronic device starts timing when it detects that any position on the page is touched, and ends the timing when the page is no longer touched, and the electronic device uses the timing period as the operation for this triggering operation duration.
在一种可能实现方式中,该电子设备通过上述四种方式中的任一种或多种方式,获取触发操作的触发位置、触发力度、操作轨迹和操作时长中的一项或多项,本公开实施例对此不做具体限定。当然,当用户通过语音信号触发电子设备显示搜索框时,该电子设备还通过以下第五种方式,获取语音信号所包括的关键字。In a possible implementation manner, the electronic device obtains one or more of the triggering position, triggering force, operation trajectory and operation duration of the triggering operation through any one or more of the above four methods. The disclosed embodiments do not specifically limit this. Certainly, when the user triggers the electronic device to display the search box through the voice signal, the electronic device also obtains the keywords included in the voice signal in the following fifth manner.
第四种方式、该电子设备响应于在该页面上检测到的触发操作,根据该触发操作的起始位置和终止位置,获取该触发操作在该页面上的操作轨迹。In a fourth manner, the electronic device, in response to the trigger operation detected on the page, acquires the operation track of the trigger operation on the page according to the start position and the end position of the trigger operation.
该电子设备检测到该页面上的任一位置被触摸时,该电子设备将该位置作为本次触发操作的起始位置,并开始计时,将目标计时时段内页面不再被触摸前的触摸位置作为本次触发操作的终止位置,该电子设备获取目标计时时段内从该起始位置到终止位置的触发操作的操作轨迹。在一个可能示例中,用户还通过上滑、下滑或者在屏幕上划出特殊符号、图形等方式,触发电子设备显示搜索框。相应的,该操作轨迹为从屏幕上一点向下方滑动的下滑轨迹、从屏幕上一点向上方滑动的上滑轨迹、在屏幕上划出问号“?”的符号轨迹或者划出三角形的图形轨迹等。其中,该目标计时时段基于需要进行设置,例如,该目标计时时段为0.5秒、1秒、2秒等,本公开实施例对此不做具体限定。When the electronic device detects that any position on the page is touched, the electronic device uses the position as the starting position of this trigger operation, and starts timing, and sets the touch position before the page is no longer touched within the target timing period. As the termination position of this triggering operation, the electronic device obtains the operation track of the triggering operation from the starting position to the ending position within the target timing period. In a possible example, the user also triggers the electronic device to display the search box by sliding up, sliding down, or drawing special symbols or graphics on the screen. Correspondingly, the operation trajectory is a sliding trajectory that slides downward from a point on the screen, an upward sliding trajectory that slides upward from a point on the screen, a symbol trajectory that draws a question mark "?" on the screen, or a graphic trajectory that draws a triangle, etc. . The target timing period is set based on needs, for example, the target timing period is 0.5 seconds, 1 second, 2 seconds, etc., which is not specifically limited in this embodiment of the present disclosure.
第五种方式、该电子设备响应于在该页面上检测到的语音信号,获取该语音信号包括的至少一个关键字。In a fifth manner, the electronic device acquires at least one keyword included in the voice signal in response to the voice signal detected on the page.
该电子设备还配置有语音采集模块,例如,麦克风,该电子设备显示该页面过程中,该电子设备还实时检测周围环境中是否存在语音信号,当检测到任一语音信号时,该电子设备通过语音采集模块采集周围环境中的语音信号,该电子设备通过语音识别模块,识别出该语音信号包括的至少一个关键字。The electronic device is also equipped with a voice acquisition module, for example, a microphone. When the electronic device displays the page, the electronic device also detects in real time whether there is a voice signal in the surrounding environment. When any voice signal is detected, the electronic device passes The voice acquisition module collects voice signals in the surrounding environment, and the electronic device recognizes at least one keyword included in the voice signal through the voice recognition module.
在一种可能场景中,该账号信息为当前登录账号的搜索功能的开启状态,该电子设备还基于该搜索功能的开启状态来确定是否检测触发事件,并获取该触发事件的事件信息。则本步骤包括:电子设备获取该当前登录账号的搜索功能的开启状态,响应于该当前登录账号的搜索功能已开启,该电子设备检测该页面上是否包括触发搜索框显示的触发事件,响应于在该页面上检测到触发事件,该电子设备确定触发事件的事件信息;响应于该当前登录账号的搜索功能未开启,结束,也即是,该电子设备不检测该页面上的触发事件。由于该搜索功能是指基于该目标应用的搜索框的输入信息进行搜索的功能,当该用户已开启该目标应用的搜索功能时,说明该用户已配置自己有搜索需求,该电子设备才检测页面上是否包括触发搜索框显示的触发事件,如果用户没有搜索需求,则不会检测。通过基于用户对搜索功能的开启状态,精准定位用户需求,并基于用户需求控制搜索框的显示,进一步提高了页面显示过程的准确性。In a possible scenario, the account information is the enabled state of the search function of the currently logged-in account, and the electronic device further determines whether to detect a trigger event based on the enabled state of the search function, and obtains event information of the trigger event. Then this step includes: the electronic device obtains the open state of the search function of the current login account, and in response to the search function of the current login account being turned on, the electronic device detects whether the page includes a trigger event that triggers the display of the search box, and responds to the search box. When a trigger event is detected on the page, the electronic device determines the event information of the trigger event; in response to that the search function of the currently logged-in account is not enabled, it ends, that is, the electronic device does not detect the trigger event on the page. Since the search function refers to the function of searching based on the input information of the search box of the target application, when the user has enabled the search function of the target application, it means that the user has configured himself to have search requirements, and the electronic device detects the page Whether to include the trigger event that triggers the display of the search box, if the user has no search demand, it will not be detected. The accuracy of the page display process is further improved by accurately locating user needs based on the user's open state of the search function, and controlling the display of the search box based on user needs.
通过用户在页面上的手势操作或者发出语音信号等,触发电子设备显示搜索框,丰富了该目标应用的搜索功能的适用场景,大大提升了用户使用搜索框的便捷性。并且,该电子设备获取触发操作的触发位置、触发力度、操作轨迹和操作时长中的一项或多项,或者,该电子设备还获取语音信号所包括的关键字,从而后续基于该一种或多种事件信息,来确定是否显示搜索框,提高了搜索框显示过程的准确性。The electronic device is triggered to display a search box through a user's gesture operation on the page or a voice signal, which enriches the applicable scenarios of the search function of the target application, and greatly improves the convenience for the user to use the search box. In addition, the electronic device acquires one or more of the triggering position, triggering force, operation trajectory and operation duration of the triggering operation, or the electronic device also acquires the keywords included in the voice signal, so that the subsequent basis is based on the one or more keywords. A variety of event information is used to determine whether to display the search box, which improves the accuracy of the display process of the search box.
303、电子设备将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对。303. The electronic device compares the event information with the search box configuration information of the current login account of the target application.
该电子设备将触发事件的事件信息与用户已设置的搜索框配置信息进行比对,检测该事件信息与该搜索框配置信息是否匹配。该搜索框配置信息包括目标位置区域、目标力度范围、目标操作时长或者目标操作轨迹中的一项或多项,或者,该搜索框配置信息还包括目标关键字;基于搜索框配置信息所包括信息的多种情况,以及步骤302中所获取的事件信息的多种组成情况,本步骤包括以下五种方式。The electronic device compares the event information that triggers the event with the search box configuration information set by the user, and detects whether the event information matches the search box configuration information. The search box configuration information includes one or more of the target location area, the target strength range, the target operation duration, or the target operation trajectory, or the search box configuration information also includes target keywords; based on the information included in the search box configuration information , and the various composition conditions of the event information obtained in
第一种方式、该电子设备响应于该触发操作在该页面上的触发位置位于该目标位置区域,确定该事件信息与该搜索框配置信息相匹配。In a first manner, the electronic device determines that the event information matches the search box configuration information in response to the triggering position of the triggering operation on the page being located in the target location area.
该电子设备将该触发位置与目标位置区域进行比对,当该触发位置位于该目标位置区域时,该电子设备确定该事件信息与该搜索框配置信息相匹配。当该触发位置不位于该目标位置区域时,该电子设备确定该事件信息与该搜索框配置信息不匹配。该目标位置区域基于需要进行设置,例如,该目标位置区域为该页面的上半屏页面区域、左半屏页面区域等,本公开实施例对此不做具体限定。The electronic device compares the trigger position with the target position area, and when the trigger position is located in the target position area, the electronic device determines that the event information matches the search box configuration information. When the trigger location is not located in 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 based on needs, for example, the target location area is the upper half-screen page area, the left half-screen page area, etc. of the page, which are not specifically limited in this embodiment of the present disclosure.
在一个可能示例中,当该触发位置的数目为两个或两个以上时,则该电子设备分别将至少两个触发位置中每个触发位置与目标位置区域进行比对,当该至少两个触发位置均位于该目标位置区域时,该电子设备确定该事件信息与该搜索框配置信息相匹配。或者,该目标位置区域的数目也对应有两个或两个以上,例如,该电子设备分别将至少两个触发位置与该至少两个目标位置区域进行比对,当该至少两个目标位置区域中每个目标位置区域内均包括一个触发位置时,该电子设备确定该事件信息与该搜索框配置信息相匹配。例如,该目标位置区域包括该页面上的上半屏和下半屏,则检测到用户分别在上半屏和下半屏均有触摸时,才确定事件信息与搜索框配置信息相匹配。In a possible example, when the number of the trigger positions is two or more, the electronic device compares each of the at least two trigger positions with the target position area respectively, and when the at least two trigger positions When the trigger positions are all located in the target position area, the electronic device determines that the event information matches the configuration information of the search box. Alternatively, the number of the target location areas also corresponds to two or more. For example, the electronic device compares at least two trigger locations with the at least two target location areas, respectively, when the at least two target location areas When each target location area includes a 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 half screen and the lower half screen on the page, it is only determined that the event information matches the search box configuration information when it is detected that the user touches the upper half screen and the lower half screen respectively.
本步骤303中的第一种方式对应于上述步骤302中的第一种方式。通过获取触发操作在页面上的触发位置,以准确锁定用户触发操作的位置,并将触发位置与目标位置区域进行比对,进一步判断用户的触发位置是否在指定的区域内,从而基于目标位置区域和用户的触发位置,准确的判断出事件信息是否与搜索框配置信息匹配,大大提高了匹配的准确性。The first manner in this
第二种方式、该电子设备响应于该触发操作在该页面上的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。In a second manner, the electronic device determines that the event information matches the configuration information of the search box in response to the triggering force of the triggering operation on the page being within the target force range.
该电子设备将该触发力度与目标力度范围进行比对,当该触发力度位于该目标力度范围时,该电子设备确定该事件信息与该搜索框配置信息相匹配;当该触发力度不位于该目标力度范围时,该电子设备确定该事件信息与该搜索框配置信息不匹配。在一个可能示例中,当电子设备基于目标采集周期,采集了触发操作过程中的多个时刻的触发力度时,该电子设备还将该多个触发时刻的多个触发力度分别与目标力度范围进行比对,当该多个触发力度均位于该目标力度范围时,该电子设备确定该事件信息与该搜索框配置信息相匹配。The electronic device compares the trigger strength with the target strength range, and when the trigger strength is within the target strength range, the electronic device determines that the event information matches the search box configuration information; when the trigger strength is not within the target strength range When the force range is exceeded, the electronic device determines that the event information does not match the search box configuration information. In a possible example, when the electronic device collects trigger strengths at multiple moments during the triggering operation based on the target acquisition period, the electronic device further compares the multiple trigger strengths at the multiple trigger moments with the target strength range, respectively. By comparison, when the multiple triggering forces are all within the target force range, the electronic device determines that the event information matches the configuration information of the search box.
本步骤303中的第二种方式对应于上述步骤302中的第二种方式。通过获取触发操作在页面上的触发力度,从操作力度上来评估用户操作,将触发力度与目标力度范围进行比对,进一步判断用户的触发力度是否达到指定的力度范围,从而避免用户误触引起的误差,准确的判断出事件信息是否与搜索框配置信息匹配,大大提高了匹配的准确性。The second manner in this
在一个示例中,还搜索框配置信息还包括目标力度曲线,该电子设备还比较触发事件的力度曲线和目标力度曲线之间的匹配情况。该过程包括:该电子设备响应于该触发力度位于该目标力度范围,确定该触发操作在触发过程中的力度变化曲线与目标力度曲线之间的曲线相似度;该电子设备响应于该曲线相似度符合第二目标条件,确定该事件信息与该搜索框配置信息相匹配。其中,该第二目标条件为该曲线相似度不小于第一阈值或者该曲线相似度位于第一阈值范围内等。例如,该电子设备采用两个曲线之间的距离表示该曲线相似度。电子设备在检测到触发力度位于该目标力度范围时,再进一步检测该该触发力度对应的力度变化曲线与目标力度曲线之间的曲线相似度,当该曲线相似度满足第二目标条件时,该电子设备确定该事件信息与该搜索框配置信息相匹配。通过触发过程中的力度变化曲线与目标力度曲线之间的比对,进一步准确的表示出操作力度在触发过程中的力度变化情况,基于触发过程的力度变化情况进一步判断用户是否有搜索需求,从而大大提高了匹配的准确性。In one example, the search box configuration information further includes a target force curve, and the electronic device further compares the matching situation between the force curve of the trigger event and the target force curve. The process includes: in response to the triggering force being located in the target force range, the electronic device determines the curve similarity between the force change curve of the trigger operation during the triggering process and the target force curve; the electronic device responds to the curve similarity Meeting the second target condition, it is determined that the event information matches the configuration information of the search box. Wherein, the second target condition is that the similarity of the curve is not less than the first threshold or the similarity of the curve is within the range of the first threshold, or the like. For example, the electronic device uses the distance between two curves to represent the similarity of the curves. When the electronic device detects that the trigger strength is within the target strength range, it further detects the curve similarity between the strength change curve corresponding to the trigger strength and the target strength curve, and when the curve similarity satisfies the second target condition, the The electronic device determines that the event information matches the search box configuration information. Through the comparison between the force change curve in the trigger process and the target force curve, the force change of the operation force during the trigger process is further accurately represented, and based on the force change in the trigger process, it is further judged whether the user has a search demand, so as to The matching accuracy is greatly improved.
在一种可能实现方式中,该触发操作在页面上还包括一个触发位置,也包括两个或两个以上的触发位置,当该电子设备分别获取至少两个触发位置处的触发力度时,该电子设备基于该少两个触发位置处的触发力度进行信息匹配。在一个可能示例中,该电子设备基于每个触发位置的权重,确定该至少两个触发力度对应的总触发力度,基于该总触发力度进行比对,该过程包括:该电子设备基于该至少两个触发位置中每个触发位置处的触发力度和每个触发位置对应的权重,确定该触发操作的总触发力度,响应于该总触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。例如,位于左半屏的触发位置对应的第一权重为0.4,位于右半屏的触发位置对应的第二权重为0.6,该电子设备分别计算第一权重与位于左半屏上的触发力度之间的第一乘积,以及计算第二权重与位于右左半屏上的触发力度之间的第二乘积,将该第一乘积和第二乘积之和作为该总触发力度。在另一个可能示例中,该电子设备分别将至少两个触发力度与目标力度范围进行比对,该过程包括:响应于该至少两个触发位置中每个触发位置处的触发力度位于该目标力度范围,该电子设备确定该事件信息与该搜索框配置信息相匹配。也即是,当每个触发位置处的触发力度均位于该目标力度范围时,该电子设备确定该事件信息与该搜索框配置信息相匹配。In a possible implementation manner, the trigger operation further includes one trigger position on the page, and also includes two or more trigger positions. When the electronic device obtains the trigger strengths at at least two trigger positions respectively, the The electronic device performs information matching based on the triggering strengths at the at least two triggering positions. In a possible example, the electronic device determines a total triggering force corresponding to the at least two triggering forces based on the weight of each triggering position, and performs comparison based on the total triggering force. The process includes: the electronic device is based on the at least two triggering forces. The trigger strength at each trigger position among the trigger positions and the weight corresponding to each trigger position are determined, the total trigger strength of the trigger operation is determined, and in response to the total trigger strength being within the target strength range, the event information and the search box are determined. configuration information to match. For example, the first weight corresponding to the trigger position on the left half of the screen is 0.4, and the second weight corresponding to the trigger position on the right half of the screen is 0.6. The electronic device calculates the difference between the first weight and the trigger strength on the left half of the screen. and calculate the second product between the second weight and the trigger strength on the right and left half screens, and use the sum of the first product and the second product as the total trigger strength. In another possible example, the electronic device compares at least two trigger strengths with a target strength range respectively, and the process includes: in response to the trigger strength at each of the at least two trigger positions being at the target strength range, the electronic device determines that the event information matches the search box configuration information. That is, when the trigger strength at each trigger position is within the target strength range, the electronic device determines that the event information matches the search box configuration information.
通过当触发操作在页面上的触发位置有两个或两个以上时,还通过触发位置对应的权重,精准计算出用户触发的总触发力度,准确的对多个触发位置上的力度进行评估,从而基于总触发力度进行匹配;另外,还单独将每个触发位置上的力度与目标力度范围进行比对,实现对用户每次触发操作的力度的准确匹配,结合用户的实际操作可能,进一步准确的避免用户误触发的情况,大大提高了匹配的准确性,提高了页面显示过程的实用性。When the trigger operation has two or more trigger positions on the page, the weight corresponding to the trigger position can be used to accurately calculate the total trigger strength triggered by the user, and the strength on multiple trigger positions can be accurately evaluated. Therefore, matching is performed based on the total trigger strength; in addition, the strength at each trigger position is compared with the target strength range separately, so as to achieve accurate matching of the strength of each trigger operation of the user. It avoids the user's false triggering situation, greatly improves the matching accuracy, and improves the practicability of the page display process.
第三种方式、该电子设备响应于该触发操作在该页面上的操作时长超过该目标操作时长,确定该事件信息与该搜索框配置信息相匹配。In a third manner, the electronic device determines that the event information matches the configuration information of the search box in response to the operation duration of the trigger operation on the page exceeding the target operation duration.
该电子设备将该操作时长与该搜索框配置信息所包括的目标操作时长进行比对,当该操作时长超过该目标操作时长时,该电子设备确定该事件信息与该搜索框配置信息相匹配;否则,该电子设备确定事件信息与该搜索框配置信息不匹配。该目标操作时长基于需要进行设置,例如,该目标操作时长为2秒、3秒等。本公开实施例对此不做具体限定。The electronic device compares the operation duration with the target operation duration included in the search box configuration information, and when 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 is set based on needs, for example, the target operation duration is 2 seconds, 3 seconds, and so on. This embodiment of the present disclosure does not specifically limit this.
本步骤303中的第三种方式对应于上述步骤302中的第三种方式。通过获取触发操作在页面上的触发时长,从时间维度来评估用户操作,将触发时长与目标操作时长进行比对,进一步判断用户的触发时长是否超过指定时长,避免用户短暂性的误触发设备屏幕的情况,如果用户触发有一定时长,才确定用户有搜索需求,从而准确锁定用户的真实需求,避免因为用户误触发导致的页面显示错误,大大提高了匹配结果的真实性和准确性。The third manner in this
第四种方式、该电子设备确定该触发操作在该页面上的操作轨迹与该目标操作轨迹之间的轨迹相似度;响应于该轨迹相似度满足第一目标条件,该电子设备确定该事件信息与该搜索框配置信息相匹配。In a fourth manner, the electronic device determines the track similarity between the operation track of the trigger operation on the page and the target operation track; in response to the track similarity meeting the first target condition, the electronic device determines the event information Match the search box configuration information.
在一种可能实现方式中,该目标操作轨迹包括下拉操作轨迹、上滑操作轨迹、双击操作轨迹、问号形状的操作轨迹或者圆圈形状的操作轨迹中的至少一项。该电子设备采用该操作轨迹与该目标操作轨迹之间的轨迹重合程度,来表示该轨迹相似度。该电子设备采用目标算法计算操作轨迹与该目标操作轨迹之间的轨迹重合程度。该第一目标条件为该轨迹重合度大于目标重合度阈值或者位于目标阈值范围等。该目标算法基于需要进行设置,例如,该电子设备采用Frechet Distance(弗雷歇距离)算法计算两个轨迹之间的曲线相似度。其中,该目标操作轨迹基于需要进行设置,本公开实施例对此不做具体限定。例如,该目标操作轨迹还包括三角形操作轨迹、对号形状的操作轨迹等。In a possible implementation manner, 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. The electronic device uses the track coincidence degree between the operation track and the target operation track to represent the track similarity. The electronic device uses a target algorithm to calculate the degree of trajectory coincidence between the operation trajectory and the target operation trajectory. The first target condition is that the track coincidence degree is greater than the target coincidence degree threshold, or is within the target threshold range, or the like. The target algorithm is set based on needs, for example, the electronic device uses the Frechet Distance algorithm to calculate the curve similarity between the two trajectories. The target operation trajectory is set based on needs, which is not specifically limited in this embodiment of the present disclosure. For example, the target operation trajectory further includes a triangle operation trajectory, a checkmark-shaped operation trajectory, and the like.
本步骤303中的第四种方式对应于上述步骤302中的第四种方式。电子设备通过获取用户在页面上的操作轨迹,将用户的操作轨迹与指定的轨迹进行比对,进一步准确的得到匹配结果,大大提高了匹配结果的真实性和准确性。并且,通过提供基于操作轨迹的匹配过程,使得用户还在页面上划出指定的符号、形状等操作,来触发显示搜索框,大大丰富了用户与页面之间的人机互动内容,提升了用户体验。例如,目标操作轨迹是下拉操作轨迹、双击或者问号形状的操作轨迹等均是用户简单易操作的,大大提高了用户触发的便捷性,提高了本公开实施例所提供的页面显示过程的适用性。The fourth manner in this
需要说明的是,该电子设备通过上述四种方式中任一种方式,或者结合上述四种方式中任两种或多种方式,来确定该事件信息与搜索框配置信息是否匹配。例如,以采用上述第一种方式和第二种方式为例,该电子设备先采用第一种方式,判断该触发位置是否位于目标位置区域。当该触发位置位于该目标位置区域时,该电子设备进一步采用第二种方式,判断该触发力度是否位于该目标力度范围,当该触发力度位于该目标力度范围,该电子设备才确定该事件信息与该搜索框配置信息相匹配。当然,该电子设备还采用下面第五种方式,将语音信号包括的关键字与目标关键字进行比对,来确定该事件信息与搜索框配置信息是否匹配。It should be noted that the electronic device determines whether the event information matches the configuration information of the search box by any one of the above four methods, or in combination with any two or more of the above four methods. For example, taking the above-mentioned first manner and the second manner as an example, the electronic device firstly adopts the first manner to determine whether the trigger position is located in the target position area. When the trigger position is located in the target position area, the electronic device further uses the second method to determine whether the trigger force is within the target force range, and the electronic device determines the event information only when the trigger force is within the target force range. Match the search box configuration information. Of course, the electronic device also uses the following fifth method to compare the keyword included in the voice signal with the target keyword to determine whether the event information matches the search box configuration information.
第五种方式、该搜索框配置信息还包括目标关键字;该电子设备响应于该语音信号所包括的至少一个关键字包括该目标关键字,确定该事件信息与该搜索框配置信息相匹配。In a fifth manner, the search box configuration information further includes a target keyword; the electronic device determines that the event information matches the search box configuration information in response to at least one keyword included in the voice signal including the target keyword.
该电子设备将该语音信号所包括的至少一个关键字与该目标关键字进行比对,当该至少一个关键字包括该目标关键字,确定该事件信息与该搜索框配置信息相匹配。否则,该电子设备确定该事件信息与该搜索框配置信息不匹配。例如,该目标关键字为“搜索”、“搜”等,该至少一个关键字为“开启搜索”、“搜索XXX”,均包括“搜索”,该电子设备事件信息与该搜索框配置信息相匹配。The electronic device compares at least one keyword included in the voice signal with the target keyword, and when the at least one keyword includes the target keyword, 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, the target keyword is "search", "search", etc., the at least one keyword is "open search", "search XXX", both include "search", the electronic device event information is consistent with the search box configuration information match.
本步骤303中的第五种方式对应于上述步骤302中的第五种方式。通过提供基于语音的匹配过程,使得用户还通过语音触发显示搜索框,具体获取用户语音包括的关键字,将用户语音包括的关键字与目标关键字进行匹配,使得用户仅需要说出关键字或者说一句话,就触发显示搜索框,大大简化了用户触发显示搜索框的流程,亦省掉了手指触发屏幕操作的过程,为用户提供了极大的便利性,大大提高了页面显示过程的实用性。The fifth manner in this
通过用户预先在搜索框配置信息中定义触发搜索框的操作,例如定义操作的位置、力度、轨迹或者时长等,通过电子设备基于触发操作的触发位置、触发力度、触发轨迹或者操作时长中的一项或者多项,与搜索框配置信息进行比对,从而更加准确的确定出该事件信息是否与搜索框配置信息匹配的结果,提高了匹配过程的准确性,也使得用户预先定义操作,并使用预先定义的操作,一键触发显示搜索框,启动目标应用的搜索功能,大大提高了搜索的便捷性。并且,该电子设备还通过语音信号所包括的关键字,来确定该匹配结果,使得用户甚至无需手动操作,仅通过语音即可触发搜索框的显示过程,大大简化了触发过程,提高了触发搜索框显示的便捷性,提高了页面显示的效率。并且,该电子设备通过上述第一种方式至第四种方式中的任一种或者结合至少两种方式,进行匹配,又或者,基于语音信号进行匹配,从而提高了匹配过程的灵活性,丰富了页面显示方法的适用场景,提高了页面显示方法的适用性。The user defines the operation to trigger the search box in the search box configuration information in advance, such as defining the position, strength, trajectory or duration of the operation, etc., through the electronic device based on the trigger position, trigger strength, trigger trajectory or operation duration of the trigger operation. Item or multiple items are compared with the configuration information of the search box, so as to more accurately determine whether the event information matches the configuration information of the search box, which improves the accuracy of the matching process and enables users to pre-define operations and use Pre-defined operations, one-click trigger to display the search box, and start the search function of the target application, which greatly improves the convenience of search. In addition, the electronic device also determines the matching result through the keywords included in the voice signal, so that the user can trigger the display process of the search box only through voice without manual operation, which greatly simplifies the triggering process and improves the triggering of search results. The convenience of box display improves the efficiency of page display. In addition, the electronic device performs matching through any one of the first to fourth methods or a combination of at least two methods, or performs matching based on voice signals, thereby improving the flexibility of the matching process and enriching the The applicable scene of the page display method is improved, and the applicability of the page display method is improved.
304、电子设备响应于该事件信息与该搜索框配置信息相匹配,获取该目标应用的搜索框的目标显示格式。304. In response to the event information matching the search box configuration information, the electronic device acquires a target display format of the search box of the target application.
其中,该目标显示格式包括目标显示位置和目标显示尺寸中的至少一项;该电子设备基于本次触发操作的操作信息获取该目标显示格式,或者,该电子设备也获取已配置的目标显示格式。Wherein, the target display format includes at least one of a target display position and a target display size; the electronic device obtains the target display format based on the operation information of the current trigger operation, or the electronic device also obtains the configured target display format .
针对目标显示格式包括目标显示尺寸的情况,本步骤包括以下三种实现方式。In the case where the target display format includes the target display size, this step includes the following three implementation manners.
第一种方式、电子设备基于该触发事件在该页面的操作轨迹,将覆盖该操作轨迹的矩形区域的尺寸确定为该搜索框的目标显示尺寸。In the first manner, the electronic device determines the size of the rectangular area covering the operation track as the target display size of the search box based on the operation track of the trigger event on the page.
该电子设备根据该操作轨迹的边缘轮廓,确定覆盖该操作轨迹的矩形区域,将覆盖该操作轨迹的矩形区域的尺寸,作为该搜索框的目标显示尺寸。例如,该操作轨迹为在页面中央区域划出的问号“?”的符号轨迹,该电子设备将该中央区域中围绕该问号“?”最小矩形区域的尺寸,作为该搜索框的目标显示尺寸。当然,该电子设备也将覆盖该操作轨迹,且区域面积为覆盖该操作轨迹最小矩形区域的两倍或三倍大小的矩形区域的尺寸,作为该搜索框的目标显示尺寸。本公开实施例对此不做具体限定。The electronic device determines a rectangular area covering the operation trajectory according to the edge contour of the operation trajectory, and takes the size of the rectangular area covering the operation trajectory as the target display size of the search box. For example, the operation trajectory is a symbol trajectory of a question mark "?" drawn in the central area of the page, and the electronic device takes the size of the smallest rectangular area surrounding the question mark "?" in the central area as the target display size of the search box. Of course, the electronic device will also cover the operation track, and the area area is the size of a rectangular area twice or three times the size of the smallest rectangular area covering the operation track, as the target display size of the search box. This embodiment of the present disclosure does not specifically limit this.
第二种方式、电子设备将该当前登录账号的历史搜索操作记录时该搜索框的历史显示尺寸,作为该搜索框的目标显示尺寸。In the second manner, the electronic device uses the historical display size of the search box when recording the historical search operation of the current login account as the target display size of the search box.
该电子设备基于该当前登录账号的用户标识,从该目标应用的服务器中获取该当前登录账号对应的历史显示尺寸,也即是该用户历史搜索过程中搜索框的显示尺寸,该电子设备将该历史显示尺寸作为本次搜索框显示的目标显示尺寸。The electronic device obtains, based on the user ID of the current login account, the historical display size corresponding to the current login account from the server of the target application, that is, the display size of the search box in the user's historical search process, the electronic device uses the The historical display size is used as the target display size displayed in this search box.
第三种方式、该搜索框配置信息还包括该搜索框的目标显示尺寸,电子设备从该当前登录账号的搜索框配置信息中提取该搜索框的目标显示尺寸。In a third manner, the search box configuration information further includes the target display size of the search box, and the electronic device extracts the target display size of the search box from the search box configuration information of the currently logged-in account.
用户也自行配置搜索框的显示尺寸,例如,高为2cm和长为6cm的矩形条,或者高为5cm和长为6cm的矩形条等。则该电子设备从该搜索框配置信息中直接提取该目标显示尺寸。Users can also configure the display size of the search box by themselves, for example, a rectangular bar with a height of 2 cm and a length of 6 cm, or a rectangular bar with a height of 5 cm and a length of 6 cm, etc. Then the electronic device directly extracts the target display size from the search box configuration information.
对于目标显示尺寸的获取过程,该电子设备采用上述第一种方式、第二种方式和第三种方式中的任一种,获取该目标显示尺寸,后续基于该目标显示尺寸在页面上显示该搜索框。For the acquisition process of the target display size, the electronic device adopts any one of the first, second, and third methods to acquire the target display size, and subsequently displays the target display size on the page based on the target display size. search bar.
通过电子设备将用户的操作轨迹覆盖的区域作为搜索框尺寸进行显示,使得用户手动操作来指定搜索框的大小,从而用户一次操作即可触发显示搜索框,还定位搜索框的显示大小,进一步增强了人机交互的有效信息量,并且,由用户自己手动操作来决定搜索框的大小,极大满足了用户的需求,进一步增加用户在触发搜索框显示过程的趣味性,提升用户体验。另外,还能够将用户历史操作时的搜索框显示尺寸,作为本次显示的尺寸,或者直接按照配置信息中已设定的尺寸来显示搜索框,从而使得电子设备在页面上进一步规范搜索框的显示尺寸,提高页面显示的精准度。The area covered by the user's operation track is displayed as the size of the search box through the electronic device, so that the user can manually specify the size of the search box, so that the user can trigger the display of the search box with one operation, and also locate the display size of the search box, further enhancing The effective information amount of human-computer interaction is increased, and the size of the search box is determined by the user's own manual operation, which greatly meets the user's needs, further increases the user's interest in triggering the search box display process, and improves the user experience. In addition, the display size of the search box during the user's historical operations can also be used as the size displayed this time, or the search box can be displayed directly according to the size set in the configuration information, so that the electronic device can further regulate the size of the search box on the page. Display size, improve the accuracy of page display.
针对目标显示格式包括目标显示位置的情况,本步骤包括以下三种实现方式。In the case where the target display format includes the target display position, this step includes the following three implementation manners.
方式1、电子设备基于该触发事件在该页面的触发位置,将该页面中距离该触发位置不超过目标阈值的区域确定为该搜索框的目标显示位置。Manner 1: Based on the trigger position of the trigger event on the page, the electronic device determines an area on the page that does not exceed the target threshold from the trigger position as the target display position of the search box.
该电子设备以该触发位置为中心,在该页面中确定出距离该触发位置不超过目标阈值的区域,将该区域作为该目标显示位置。该目标阈值基于需要进行设置,例如,该目标阈值为0.5cm、3cm等。例如,该电子设备将用户手指触摸处周围3cm内的区域,均用来显示搜索框。The electronic device takes the trigger position as the center, determines an area on the page whose distance from the trigger position does not exceed the target threshold, and uses the area as the target display position. The target threshold is set based on needs, for example, the target threshold is 0.5cm, 3cm, and so on. For example, the electronic device uses an area within 3 cm around where the user's finger touches to display a search box.
方式2、电子设备将该当前登录账号的历史搜索操作记录时该搜索框的历史显示位置,作为该搜索框的目标显示位置。Mode 2: The electronic device uses the historical display position of the search box when the historical search operation of the current login account is recorded as the target display position of the search box.
该电子设备基于该当前登录账号的用户标识,从该目标应用的服务器中获取该当前登录账号对应的历史显示位置,也即是该用户历史搜索过程中搜索框的显示位置,该电子设备将该历史显示位置作为本次搜索框显示的目标显示位置。Based on the user ID of the current login account, the electronic device obtains the historical display position corresponding to the current login account from the server of the target application, that is, the display position of the search box in the user's historical search process, and the electronic device will The historical display position is used as the target display position displayed in the search box this time.
方式3、该搜索框配置信息还包括该搜索框的目标显示位置,电子设备从该当前登录账号的搜索框配置信息中提取该搜索框的目标显示位置。Mode 3: The search box configuration information further includes a target display position of the search box, and the electronic device extracts the target display position of the search box from the search box configuration information of the currently logged-in account.
用户也自行配置搜索框的显示位置,例如,显示在页面的顶部、中间位置或者最下方区域等。则该电子设备从该搜索框配置信息中直接提取该目标显示位置。Users can also configure the display position of the search box by themselves, for example, at the top, middle or bottom area of the page. Then the electronic device directly extracts the target display position from the search box configuration information.
对于目标显示位置的获取过程,该电子设备采用上述方式1、方式2或方式3中的任一种方式,获取该目标显示位置,后续基于该目标显示位置在页面上显示该搜索框。For the acquisition process of the target display position, the electronic device acquires the target display position by using any one of the above-mentioned methods 1, 2 or 3, and subsequently displays the search box on the page based on the target display position.
通过电子设备定位搜索框的显示位置,例如,基于用户的操作位置来决定搜索框具体显示在页面的哪个位置,使得搜索框跟随用户触发在页面上定位显示,极大的满足了用户的需求,进一步增强了人机交互的有效信息量以及触发搜索框显示过程的趣味性,提升用户体验。另外,还将用户历史操作时的搜索框显示位置配置信息中已设定的位置来锁定搜索框在页面上的位置,使得页面整体显示更加有序、规范,提高页面显示的精准度。The display position of the search box is located through the electronic device, for example, based on the user's operation position to determine where the search box is displayed on the page, so that the search box follows the user to trigger the positioning display on the page, which greatly satisfies the user's needs. It further enhances the effective amount of information of human-computer interaction and the fun of triggering the display process of the search box, improving user experience. In addition, the position set in the configuration information of the search box display position during user's historical operations is also used to lock the position of the search box on the page, so that the overall display of the page is more orderly and standardized, and the accuracy of the page display is improved.
针对目标显示格式包括目标显示尺寸和目标显示位置的情况,本步骤包括上述第一种方式、第二种方式或第三种方式中的任一种方式,以及上述方式1、方式2或方式3中的任一种方式,也即是,该电子设备还通过上述第一种方式、第二种方式或第三种方式中的任一种,获取该目标显示尺寸,并通过上述方式1、方式2或方式3中的任一种,获取该目标显示位置,后续结合目标显示尺寸和目标显示位置,共同确定该搜索框的显示过程。For the case 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 above, as well as the above-mentioned methods 1, 2 or 3 In any one of the ways, that is, the electronic device also obtains the target display size through any one of the above-mentioned first way, the second way or the third way, and obtains the target display size through the above-mentioned way 1, way In any one of 2 or 3, the target display position is acquired, and then the display process of the search box is jointly determined in combination with the target display size and the target display position.
通过电子设备按照一定的格式来显示搜索框,例如通过目标显示尺寸或者目标显示位置中的至少一项,来定位该搜索框的显示格式,进一步从尺寸大小和位置两个方面精确定位该搜索框的显示格式,大大满足了用户需求,提高了搜索框显示过程的准确性。The search box is displayed in a certain format by the electronic device, for example, the display format of the search box is positioned by at least one of the target display size or the target display position, and the search box is further accurately positioned from the two aspects of size and position. The display format of the search box greatly meets the needs of users and improves the accuracy of the display process of the search box.
305、电子设备按照该目标显示格式,在该页面显示该目标应用的搜索框。305. The electronic device displays the search box of the target application on the page according to the target display format.
当该目标显示格式包括目标显示位置和目标显示尺寸时,该电子设备在该页面的目标显示位置处,按照该目标显示尺寸显示该目标应用的搜索框。例如,该电子设备将高为2cm和长为6cm的矩形条的搜索框显示在页面的中间位置、上半屏等,或者,该电子设备还将边长为4cm的正方形搜索框显示在距离页面的中心不超过5cm的区域内。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 according to the target display size at the target display position of the page. For example, the electronic device displays a rectangular search box with a height of 2cm and a length of 6cm in the middle of the page, the upper half screen, etc., or the electronic device also displays a square search box with a side length of 4cm at a distance from the page within an area of no more than 5cm from the center.
在一个可能示例中,当该目标显示格式包括目标显示位置和目标显示尺寸中的一项时,例如,当该目标显示格式包括目标显示位置时,该电子设备在该页面的目标显示位置处显示该目标应用的搜索框。其中,该电子设备按照该搜索框的系统默认尺寸,将该搜索框显示在该页面的目标显示位置处。或者,当该目标显示格式包括目标显示尺寸时,该电子设备按照该目标显示尺寸在该页面上显示该目标应用的搜索框。其中,该电子设备按照该搜索框的系统默认位置,将该目标显示尺寸的搜索框显示在该系统默认位置处。In a possible example, when the target display format includes one of a target display position and a target display size, for example, when the target display format includes a target display position, the electronic device displays the page at the target display position The search box for this target application. Wherein, the electronic device displays the search box at the target display position of the page according to the system default size of the search box. Or, when the target display format includes the target display size, the electronic device displays the search box of the target application on the page according to the target display size. Wherein, the electronic device displays the search box of the target display size at the system default position according to the system default position of the search box.
在一个可能示例中,该电子设备获取用户在该搜索框输入的搜索信息,并基于该搜索信息,向服务器发送搜索请求,该搜索请求用于请求基于该搜索信息在目标应用上进行搜索,并返回搜索结果;该服务器接收搜索请求,并基于该搜索信息在目标应用所包括的信息中进行搜索,将搜索结果发送至电子设备,该电子设备接收服务器返回的搜索结果,并在该页面上显示该搜索结果。在一个可能示例中,该电子设备还在用户搜索结束时,不再显示该搜索框,从而避免搜索框在用户无搜索需求时占用页面。该过程包括:响应于该页面上的搜索结束事件,该电子设备停止在该页面显示该搜索框,该搜索结束事件用于指示基于该搜索框进行搜索的搜索过程已结束。其中,该搜索结束事件包括但不限于:用户在该页面上触发的搜索结束按钮、页面返回按钮,或者,电子设备在页面上显示搜索结果的显示时长超过目标预设时长等。其中,该搜索结束按钮为用于触发结束搜索过程的按钮,该页面返回按钮为用于触发停止显示搜索结果并返回页面的按钮,例如,返回显示目标应用中推送的视频画面的页面返回按钮。电子设备检测到搜索结束事件时,继续显示不包括搜索框的页面。当然,该电子设备还在页面显示过程中,能够再次基于上述步骤302-305的过程,实时检测该页面上的触发事件,进一步进行搜索框的显示。通过当用户搜索结束时,停止显示搜索框,使得页面所显示的信息尽可能不包括用户不需要的信息,避免在用户没有搜索需求时搜索框过多占用页面区域,使得搜索框基于用户的触发事件随时显示,并在用户不需要搜索时随时停止显示,从而灵活的控制了搜索框显示,提高了搜索框显示过程的灵活性。In a possible example, the electronic device acquires the search information input by the user in the search box, and based on the search information, sends a search request to the server, where the search request is used to request to search on the target application based on the search information, and Return the search result; the server receives the search request, searches the information included in the target application based on the search information, sends the search result to the electronic device, and the electronic device receives the search result returned by the server and displays it on the page the search results. In a possible example, the electronic device also does not display the search box when the user searches, so as to prevent the search box from occupying the page when the user does not need to search. The 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 being used to indicate that the search process for searching based on the search box has ended. The search end event includes but is not limited to: a search end button or a page return button triggered by the user on the page, or the display duration of the electronic device displaying the search result on the page exceeds the target preset duration, etc. The search end button is a button used to trigger the end of the search process, and the page return button is a button used to stop displaying the search results and return to the page, for example, return to the page return button displaying the video image pushed in the target application. When the electronic device detects the search end event, it continues to display the page that does not include the search box. Of course, the electronic device is still in the process of displaying the page, and based on the above steps 302-305 again, it can detect the trigger event on the page in real time, and further display the search box. By stopping the display of the search box when the user's search is over, the information displayed on the page does not include information that the user does not need as much as possible, so as to prevent the search box from occupying too much page area when the user has no search demand, so that the search box is triggered based on the user's trigger. Events are displayed at any time, and can be stopped at any time when the user does not need to search, thereby flexibly controlling the display of the search box and improving the flexibility of the display process of the search box.
通过基于该目标显示尺寸和目标显示位置中的至少一项,来精准控制搜索框的显示样式,并且,目标显示尺寸和目标显示位置均由用户的触发操作,或者用户曾经触发显示搜索框的显示习惯,又或者系统默认的格式等,来显示搜索框,从而使得用户自己调节搜索框的显示格式,尽可能的满足用户对搜索框的显示需求,提高了搜索框显示的准确性。The display style of the search box is precisely controlled based on at least one of the target display size and the target display position, and both the target display size and the target display position are triggered by the user, or the user once triggered the display of the search box. Habits, or the default format of the system, etc., to display the search box, so that the user can adjust the display format of the search box, meet the user's display requirements for the search box as much as possible, and improve the accuracy of the display of the search box.
需要说明的是,上述步骤304-305实际上是步骤“电子设备响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该目标应用的搜索框”的一种具体实现方式,上述步骤304-305中,是先获取搜索框的目标显示格式,基于该显示格式,在该页面显示搜索框,然而,在另一种可能的实施方式中,该电子设备还直接按照系统默认尺寸和系统默认位置,将搜索框显示在页面上。本公开实施例对此不做具体限定。It should be noted that the
需要说明的是,通过本公开实施例的页面显示过程,先显示不包括搜索框的页面,再基于用户的触发事件的事件信息,进一步将事件信息与用户事先配置的搜索框配置信息进行比对,当比对成功时,也即是,事件信息与搜索框配置信息匹配时,才在页面上显示搜索框,使得搜索框不会过多占用页面的显示区域,也避免了页面上展示冗余信息,大大提高了页面的显示区域利用率;使得用户在不感知到搜索框的前提下,也能一键式调度出搜索框,便捷的进行视频搜索。并且,该用户还预先定于多种操作,在使用时,通过模仿预先定义的操作来触发显示搜索框,用户按照个人习惯,将触发操作的位置定义在APP(Application,应用程序)的页面的任意位置,还定义触发操作的触发力度、触发轨迹等,使得后续使用时,电子设备都能够基于用户的当前操作匹配用户的预设操作,进一步为用户显示搜索框,使得用户一步操作或者发出语音,即可调度出搜索框,用户基于个人需要预设简易、常用的操作,使得调出搜索框的触发操作简单便捷,没有使用门槛,大大延展了搜索框的可用性。It should be noted that, through the page display process of the embodiment of the present disclosure, the page that does not include the search box is displayed first, and then based on the event information of the user's trigger event, the event information is further compared with the search box configuration information configured in advance by the user. , when the comparison is successful, that is, when the event information matches the configuration information of the search box, the search box is displayed on the page, so that the search box does not occupy too much the display area of the page, and also avoids redundant display on the page information, which greatly improves the utilization rate of the display area of the page; enables users to dispatch the search box with one click without perceiving the search box, and conduct video search conveniently. In addition, the user also pre-determines a variety of operations. During use, the search box is triggered to display by imitating the pre-defined operations. The user defines the location of the triggering operation on the page of the APP (Application) according to personal habits. At any position, the trigger strength and trigger trajectory of the trigger operation are also defined, so that in subsequent use, the electronic device can match the user's preset operation based on the user's current operation, and further display the search box for the user, so that the user can operate in one step or make a voice. , the search box can be dispatched, and the user can preset simple and commonly used operations based on personal needs, which makes the triggering operation for calling up the search box simple and convenient, and there is no threshold for use, which greatly extends the usability of the search box.
本公开实施例提供的方法,通过在需要显示目标应用的页面时,显示不包括搜索框的页面,如果用户在页面上进行了触发事件,则电子设备将该触发事件的事件信息与当前登录账号的搜索框配置信息进行比对,由于搜索框配置信息包括触发该目标应用的搜索框进行显示的信息,因此如果该触发事件的事件信息与该搜索框配置信息相匹配,则表明用户有显示搜索框的需求,此时电子设备在该页面显示该目标应用的搜索框。上述技术方案通过在页面上检测到事件信息与搜索框配置信息匹配的触发事件,才显示搜索框,也即是,在用户需要显示搜索框时才显示搜索框,避免不必要的搜索框显示造成占用页面显示区域的问题,提高了页面显示过程中的页面利用率。In the method provided by the embodiments of the present disclosure, when the page of the target application needs to be displayed, the page that does not include the search box is displayed. If the user triggers an event on the page, the electronic device associates the event information of the trigger event with the current login account. The configuration information of the search box is compared. Since the configuration information of the search box includes the information that triggers the display of the search box of the target application, if the event information of the trigger event matches the configuration information of the search box, it indicates that the user has displayed the search box. box, and the electronic device displays the search box of the target application on the page. The above technical solution displays the search box only by detecting a trigger event in which the event information matches the configuration information of the search box on the page, that is, the search box is displayed only when the user needs to display the search box, so as to avoid unnecessary display of the search box. The problem of occupying the page display area improves the page utilization rate during the page display process.
图4是根据一示例性实施例示出的一种页面显示装置的框图。参照图4,该装置包括显示模块401,确定模块402和比对模块403。Fig. 4 is a block diagram of a page display apparatus according to an exemplary embodiment. Referring to FIG. 4 , the apparatus includes a
显示模块401,被配置为执行响应于页面显示指令,显示目标应用的页面,该页面不包括搜索框;The
确定模块402,被配置为执行响应于在该页面上检测到触发事件,确定该触发事件的事件信息;A
比对模块403,被配置为执行将该事件信息与该目标应用的当前登录账号的搜索框配置信息进行比对,该搜索框配置信息包括触发该目标应用的搜索框进行显示的信息;The
该显示模块401,还被配置为执行响应于该事件信息与该搜索框配置信息相匹配,在该页面显示该搜索框。The
在一种可能实现方式中,该确定模块402,被配置为执行响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发位置;In a possible implementation manner, the determining
该搜索框配置信息包括目标位置区域,相应的,该比对模块403,被配置为执行响应于该触发操作在该页面上的触发位置位于该目标位置区域,确定该事件信息与该搜索框配置信息相匹配。The search box configuration information includes a target location area. Correspondingly, the
在一种可能实现方式中,该确定模块402,被配置为执行响应于在该页面上检测到的触发操作,获取该触发操作在该页面上的触发力度;In a possible implementation manner, the determining
该搜索框配置信息包括目标力度范围,相应的,该比对模块403,被配置为执行响应于该触发操作在该页面上的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。The search box configuration information includes a target strength range. Correspondingly, the
在一种可能实现方式中,该搜索框配置信息还包括目标力度曲线,该比对模块403,被配置为执行响应于该触发力度位于该目标力度范围,确定该触发操作在触发过程中的力度变化曲线与目标力度曲线之间的曲线相似度;响应于该曲线相似度符合第二目标条件,确定该事件信息与该搜索框配置信息相匹配。In a possible implementation manner, the search box configuration information further includes a target force curve, and the
在一种可能实现方式中,该触发操作在该页面上包括至少两个触发位置,该比对模块403,被配置为执行以下任一项:In a possible implementation manner, the trigger operation includes at least two trigger positions on the page, and the
基于该至少两个触发位置中每个触发位置处的触发力度和每个触发位置对应的权重,确定该触发操作的总触发力度,响应于该总触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配;Determine the total trigger strength of the trigger operation based on the trigger strength at each of the at least two trigger positions and the weight corresponding to each trigger position, and determine the event information in response to the total trigger strength being within the target strength range match the search box configuration information;
响应于该至少两个触发位置中每个触发位置处的触发力度位于该目标力度范围,确定该事件信息与该搜索框配置信息相匹配。In response to the trigger strength at each of the at least two trigger positions being within the target strength range, it is determined that the event information matches the search box configuration information.
在一种可能实现方式中,该确定模块402,被配置为执行响应于在该页面上检测到的触发操作,根据该触发操作的起始时间和终止时间,获取该触发操作在该页面上的操作时长;In a possible implementation manner, the determining
该搜索框配置信息包括目标操作时长,相应的,该比对模块403,被配置为执行响应于该触发操作在该页面上的操作时长超过该目标操作时长,确定该事件信息与该搜索框配置信息相匹配。The search box configuration information includes the target operation duration. Correspondingly, the
在一种可能实现方式中,该确定模块402,被配置为执行响应于在该页面上检测到的触发操作,根据该触发操作的起始位置和终止位置,获取该触发操作在该页面上的操作轨迹;In a possible implementation manner, the determining
该搜索框配置信息包括目标操作轨迹,相应的,该比对模块403,被配置为执行确定该触发操作在该页面上的操作轨迹与该目标操作轨迹之间的轨迹相似度,响应于该轨迹相似度满足第一目标条件,确定该事件信息与该搜索框配置信息相匹配。The search box configuration information includes a target operation track. Correspondingly, the
在一种可能实现方式中,该目标操作轨迹包括下拉操作轨迹、上滑操作轨迹、双击操作轨迹、问号形状的操作轨迹或者圆圈形状的操作轨迹中的至少一项。In a possible implementation manner, 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.
在一种可能实现方式中,该确定模块402,被配置为执行响应于在该页面上检测到的语音信号,获取该语音信号包括的至少一个关键字;In a possible implementation manner, the determining
该比对模块403,被配置为执行响应于该语音信号所包括的至少一个关键字包括该目标关键字,确定该事件信息与该搜索框配置信息相匹配。The
在一种可能实现方式中,该显示模块401,被配置为执行响应于该事件信息与该搜索框配置信息相匹配,获取该搜索框的目标显示格式;按照该目标显示格式,在该页面显示该搜索框。In a possible implementation manner, the
在一种可能实现方式中,该目标显示格式包括目标显示尺寸,该显示模块401,被配置为执行以下任一项:In a possible implementation manner, the target display format includes a target display size, and the
基于该触发事件在该页面的操作轨迹,将覆盖该操作轨迹的矩形区域的尺寸确定为该搜索框的目标显示尺寸;Based on the operation track of the trigger event on the page, the size of the rectangular area covering the operation track is determined as the target display size of the search box;
将该当前登录账号的历史搜索操作记录中该搜索框的历史显示尺寸,作为该搜索框的目标显示尺寸;Use the historical display size of the search box in the historical search operation record of the current login account as the target display size of the search box;
该搜索框配置信息还包括该搜索框的目标显示尺寸,从该当前登录账号的搜索框配置信息中提取该搜索框的目标显示尺寸。The search box configuration information further includes a target display size of the search box, and the target display size of the search box is extracted from the search box configuration information of the currently logged-in account.
在一种可能实现方式中,该目标显示格式包括目标显示位置,该显示模块401,被配置为执行以下任一项:In a possible implementation manner, the target display format includes a target display position, and the
基于该触发事件在该页面的触发位置,将该页面中距离该触发位置不超过目标阈值的区域确定为该搜索框的目标显示位置;Based on the triggering position of the triggering event on the page, determine an area in the page that is far from the triggering position and does not exceed the target threshold as the target display position of the search box;
将该当前登录账号的历史搜索操作记录中该搜索框的历史显示位置,作为该搜索框的目标显示位置;Use 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 further 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.
在一种可能实现方式中,该显示模块401,被配置为执行以下任一项:In a possible implementation manner, the
接收该页面显示指令,响应于检测到该当前登录账号已设置的搜索框配置信息,显示该页面;Receive the page display instruction, and display the page in response to detecting the search box configuration information set by the current login account;
接收该页面显示指令,响应于该当前登录账号的历史操作记录不包括基于该搜索框的搜索操作记录,显示该页面。The page display instruction is received, and the page is displayed in response to the historical operation record of the current login account not including the search operation record based on the search box.
在一种可能实现方式中,该装置还包括:In a possible implementation, the device further includes:
停止模块,被配置为执行响应于该页面上的搜索结束事件,停止在该页面显示该搜索框,该搜索结束事件用于指示基于该搜索框进行搜索的搜索过程已结束。The stop module is configured to stop displaying the search box on the page in response to a search end event on the page, the search end event being used to indicate that the search process for searching based on the search box has ended.
在一种可能实现方式中,该页面为该目标应用的主页面或者该目标应用的主页面的子页面。In a possible implementation manner, the page is the main page of the target application or a sub-page of the main page of the target application.
本公开实施例中,通过在需要显示目标应用的页面时,显示不包括搜索框的页面,如果用户在页面上进行了触发事件,则电子设备将该触发事件的事件信息与当前登录账号的搜索框配置信息进行比对,由于搜索框配置信息包括触发该目标应用的搜索框进行显示的信息,因此如果该触发事件的事件信息与该搜索框配置信息相匹配,则表明用户有显示搜索框的需求,此时电子设备在该页面显示该目标应用的搜索框。上述技术方案通过在页面上检测到事件信息与搜索框配置信息匹配的触发事件,才显示搜索框,也即是,在用户需要显示搜索框时才显示搜索框,避免不必要的搜索框显示造成占用页面显示区域的问题,提高了页面显示过程中的页面利用率。In the embodiment of the present disclosure, when the page of the target application needs to be displayed, the page that does not include the search box is displayed. If the user performs a trigger event on the page, the electronic device searches the event information of the trigger event with the current login account. The configuration information of the search box is compared with the configuration information of the search box. Since the configuration information of the search box includes the information that triggers the display of the search box of the target application, if the event information of the trigger event matches the configuration information of the search box, it indicates that the user has the ability to display the search box. requirements, at this time, the electronic device displays the search box of the target application on the page. The above technical solution displays the search box only by detecting a trigger event in which the event information matches the configuration information of the search box on the page, that is, the search box is displayed only when the user needs to display the search box, so as to avoid unnecessary display of the search box. The problem of occupying the page display area improves the page utilization rate during the page display process.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
可选地,上述实施例中的电子设备为终端。Optionally, the electronic device in the above embodiment is a terminal.
图5是根据一示例性实施例示出的一种终端的框图。该终端500是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端500还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Fig. 5 is a block diagram of a terminal according to an exemplary embodiment. The terminal 500 is: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, the standard audio layer of the moving picture experts compression), MP4 (Moving Picture Experts Group Audio Layer IV, the standard audio layer of the moving picture experts compression) 4) Player, laptop or desktop computer.
通常,终端500包括有:一个或多个处理器501和一个或多个存储器502。Generally, the terminal 500 includes: one or
处理器501包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器501采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-ProgrammableGate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器501也包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器501集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器501还包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The
存储器502包括一个或多个计算机可读存储介质,该计算机可读存储介质是非暂态的。存储器502还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器502中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器501所执行以实现本公开中方法实施例提供的页面显示方法。
在一些实施例中,终端500还可选包括有:外围设备接口503和至少一个外围设备。处理器501、存储器502和外围设备接口503之间通过总线或信号线相连。各个外围设备通过总线、信号线或电路板与外围设备接口503相连。具体地,外围设备包括:射频电路504、显示屏505、摄像头组件506、音频电路507、定位组件508和电源509中的至少一种。In some embodiments, the terminal 500 may optionally further include: a
外围设备接口503可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器501和存储器502。在一些实施例中,处理器501、存储器502和外围设备接口503被集成在同一芯片或电路板上;在一些其他实施例中,处理器501、存储器502和外围设备接口503中的任意一个或两个在单独的芯片或电路板上实现,本实施例对此不加以限定。The
射频电路504用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路504通过电磁信号与通信网络以及其他通信设备进行通信。射频电路504将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路504包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路504通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路504还包括NFC(Near Field Communication,近距离无线通信)有关的电路,本公开对此不加以限定。The
显示屏505用于显示UI(User Interface,用户界面)。该UI包括图形、文本、图标、视频及其它们的任意组合。当显示屏505是触摸显示屏时,显示屏505还具有采集在显示屏505的表面或表面上方的触摸信号的能力。该触摸信号作为控制信号输入至处理器501进行处理。此时,显示屏505还用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏505为一个,设置在终端500的前面板;在另一些实施例中,显示屏505为至少两个,分别设置在终端500的不同表面或呈折叠设计;在另一些实施例中,显示屏505是柔性显示屏,设置在终端500的弯曲表面上或折叠面上。甚至,显示屏505还设置成非矩形的不规则图形,也即异形屏。显示屏505采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The
摄像头组件506用于采集图像或视频。可选地,摄像头组件506包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件506还包括闪光灯。闪光灯是单色温闪光灯,也是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,用于不同色温下的光线补偿。The
音频电路507包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器501进行处理,或者输入至射频电路504以实现语音通信。出于立体声采集或降噪的目的,麦克风为多个,分别设置在终端500的不同部位。麦克风还是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器501或射频电路504的电信号转换为声波。扬声器是传统的薄膜扬声器,也是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅将电信号转换为人类可听见的声波,也将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路507还包括耳机插孔。
定位组件508用于定位终端500的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件508是基于美国的GPS(Global PositioningSystem,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或欧盟的伽利略系统的定位组件。The
电源509用于为终端500中的各个组件进行供电。电源509是交流电、直流电、一次性电池或可充电电池。当电源509包括可充电电池时,该可充电电池支持有线充电或无线充电。该可充电电池还用于支持快充技术。The
在一些实施例中,终端500还包括有一个或多个传感器510。该一个或多个传感器510包括但不限于:加速度传感器511、陀螺仪传感器512、压力传感器513、指纹传感器514、光学传感器515以及接近传感器516。In some embodiments, the terminal 500 also includes one or more sensors 510 . The one or more sensors 510 include, but are not limited to, an acceleration sensor 511 , a gyro sensor 512 , a
加速度传感器511检测以终端500建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器511用于检测重力加速度在三个坐标轴上的分量。处理器501根据加速度传感器511采集的重力加速度信号,控制显示屏505以横向视图或纵向视图进行用户界面的显示。加速度传感器511还用于游戏或者用户的运动数据的采集。The acceleration sensor 511 detects the magnitude of acceleration on the three coordinate axes of the coordinate system established by the
陀螺仪传感器512检测终端500的机体方向及转动角度,陀螺仪传感器512与加速度传感器511协同采集用户对终端500的3D动作。处理器501根据陀螺仪传感器512采集的数据,实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 512 detects the body direction and rotation angle of the terminal 500 , and the gyroscope sensor 512 cooperates with the acceleration sensor 511 to collect 3D actions of the user on the
压力传感器513设置在终端500的侧边框和/或显示屏505的下层。当压力传感器513设置在终端500的侧边框时,检测用户对终端500的握持信号,由处理器501根据压力传感器513采集的握持信号进行左右手识别或快捷操作。当压力传感器513设置在显示屏505的下层时,由处理器501根据用户对显示屏505的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The
指纹传感器514用于采集用户的指纹,由处理器501根据指纹传感器514采集到的指纹识别用户的身份,或者,由指纹传感器514根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器501授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器514被设置终端500的正面、背面或侧面。当终端500上设置有物理按键或厂商Logo时,指纹传感器514与物理按键或厂商Logo集成在一起。The
光学传感器515用于采集环境光强度。在一个实施例中,处理器501根据光学传感器515采集的环境光强度,控制显示屏505的显示亮度。具体地,当环境光强度较高时,调高显示屏505的显示亮度;当环境光强度较低时,调低显示屏505的显示亮度。在另一个实施例中,处理器501还根据光学传感器515采集的环境光强度,动态调整摄像头组件506的拍摄参数。
接近传感器516,也称距离传感器,通常设置在终端500的前面板。接近传感器516用于采集用户与终端500的正面之间的距离。在一个实施例中,当接近传感器516检测到用户与终端500的正面之间的距离逐渐变小时,由处理器501控制显示屏505从亮屏状态切换为息屏状态;当接近传感器516检测到用户与终端500的正面之间的距离逐渐变大时,由处理器501控制显示屏505从息屏状态切换为亮屏状态。A
本领域技术人员理解,图5中示出的结构并不构成对终端500的限定,包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art understand that the structure shown in FIG. 5 does not constitute a limitation on the terminal 500, and includes more or less components than the one shown, or combines some components, or adopts different component arrangements.
在示例性实施例中,还提供了一种包括指令的存储介质,例如包括指令的存储器,上述指令可由终端的处理器执行以完成上述页面显示方法。可选地,存储介质是非临时性计算机可读存储介质,例如,所述非临时性计算机可读存储介质是ROM(Read-Only Memory,ROM,只读内存)、RAM(Random Access Memory,随机存取存储器)、CD-ROM(Compact DiscRead-Only Memory,只读光盘)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a storage medium including instructions, such as a memory including instructions, is also provided, and the above-mentioned instructions can be executed by the processor of the terminal to complete the above-mentioned page display method. Optionally, the storage medium is a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium is ROM (Read-Only Memory, ROM, read-only memory), RAM (Random Access Memory, random memory) CD-ROM (Compact Disc Read-Only Memory), magnetic tapes, floppy disks and optical data storage devices, etc.
在示例性实施例中,还提供了一种计算机程序产品,该计算机程序产品中的指令可由终端的处理器执行以完成上述页面显示方法。In an exemplary embodiment, a computer program product is also provided, and the instructions in the computer program product can be executed by the processor of the terminal to complete the above-mentioned page display method.
本公开所涉及的用户信息为经用户授权或者经过各方充分授权的信息。The user information involved in this disclosure is the information authorized by the user or fully authorized by all parties.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily suggest themselves 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 general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010694384.7A CN111813486B (en) | 2020-07-17 | 2020-07-17 | Page display method, device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010694384.7A CN111813486B (en) | 2020-07-17 | 2020-07-17 | Page display method, device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111813486A true CN111813486A (en) | 2020-10-23 |
| CN111813486B CN111813486B (en) | 2024-11-22 |
Family
ID=72866044
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010694384.7A Active CN111813486B (en) | 2020-07-17 | 2020-07-17 | Page display method, device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111813486B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114138298A (en) * | 2021-11-12 | 2022-03-04 | 北京乐我无限科技有限责任公司 | Resource processing method and device for client, electronic equipment, storage medium and program product |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012252495A (en) * | 2011-06-02 | 2012-12-20 | Sharp Corp | Information display system |
| US20130106686A1 (en) * | 2011-10-31 | 2013-05-02 | Broadcom Corporation | Gesture processing framework |
| CN104462496A (en) * | 2014-12-19 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Search method, device and mobile terminal |
| CN104484334A (en) * | 2014-11-17 | 2015-04-01 | 高唱 | Fast search method and device |
| US20150309682A1 (en) * | 2014-04-28 | 2015-10-29 | Verizon New Jersey Inc. | Pop-up search box |
| CN105045935A (en) * | 2015-09-09 | 2015-11-11 | 北京奇虎科技有限公司 | Method for recommending position information and electronic equipment |
| CN105487781A (en) * | 2016-01-29 | 2016-04-13 | 广东欧珀移动通信有限公司 | Screen capture method and terminal device |
| CN105573579A (en) * | 2015-05-26 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Search bar operation method and terminal |
| CN105824851A (en) * | 2015-01-09 | 2016-08-03 | 北京蓝光引力网络股份有限公司 | Various desktop positions of search box |
| WO2017032089A1 (en) * | 2015-08-27 | 2017-03-02 | 广东欧珀移动通信有限公司 | Search method and terminal |
| CN107153498A (en) * | 2016-03-30 | 2017-09-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and intelligent terminal |
| CN110162264A (en) * | 2019-05-24 | 2019-08-23 | Oppo广东移动通信有限公司 | Application processing method and Related product |
-
2020
- 2020-07-17 CN CN202010694384.7A patent/CN111813486B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012252495A (en) * | 2011-06-02 | 2012-12-20 | Sharp Corp | Information display system |
| US20130106686A1 (en) * | 2011-10-31 | 2013-05-02 | Broadcom Corporation | Gesture processing framework |
| US20150309682A1 (en) * | 2014-04-28 | 2015-10-29 | Verizon New Jersey Inc. | Pop-up search box |
| CN104484334A (en) * | 2014-11-17 | 2015-04-01 | 高唱 | Fast search method and device |
| CN104462496A (en) * | 2014-12-19 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Search method, device and mobile terminal |
| CN105824851A (en) * | 2015-01-09 | 2016-08-03 | 北京蓝光引力网络股份有限公司 | Various desktop positions of search box |
| CN105573579A (en) * | 2015-05-26 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Search bar operation method and terminal |
| WO2017032089A1 (en) * | 2015-08-27 | 2017-03-02 | 广东欧珀移动通信有限公司 | Search method and terminal |
| CN105045935A (en) * | 2015-09-09 | 2015-11-11 | 北京奇虎科技有限公司 | Method for recommending position information and electronic equipment |
| CN105487781A (en) * | 2016-01-29 | 2016-04-13 | 广东欧珀移动通信有限公司 | Screen capture method and terminal device |
| CN107153498A (en) * | 2016-03-30 | 2017-09-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and intelligent terminal |
| CN110162264A (en) * | 2019-05-24 | 2019-08-23 | Oppo广东移动通信有限公司 | Application processing method and Related product |
Non-Patent Citations (1)
| Title |
|---|
| 张才千: "iOS开发从入门到精通", 北京希望电子出版社 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114138298A (en) * | 2021-11-12 | 2022-03-04 | 北京乐我无限科技有限责任公司 | Resource processing method and device for client, electronic equipment, storage medium and program product |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111813486B (en) | 2024-11-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11551726B2 (en) | Video synthesis method terminal and computer storage medium | |
| CN109874312B (en) | Method and device for playing audio data | |
| US20140101617A1 (en) | Method and apparatus for generating task recommendation icon in a mobile device | |
| CN110865754B (en) | Information display method and device and terminal | |
| CN112052897B (en) | Multimedia data shooting method, device, terminal, server and storage medium | |
| CN113613053B (en) | Video recommendation method and device, electronic equipment and storage medium | |
| WO2022088765A1 (en) | Interaction processing method and computer device | |
| CN108848313A (en) | A method, terminal and storage medium for multiple people to take pictures | |
| CN112860046B (en) | Method, device, electronic equipment and medium for selecting operation mode | |
| CN110933468A (en) | Playing method, playing device, electronic equipment and medium | |
| CN110209316B (en) | Category label display method, device, terminal and storage medium | |
| CN112788359B (en) | Live broadcast processing method and device, electronic equipment and storage medium | |
| CN111341317B (en) | Evaluation method, device, electronic device and medium for wake-up audio data | |
| CN115361481A (en) | Prompt text display method and device, electronic equipment and storage medium | |
| CN112511889B (en) | Video playing method, device, terminal and storage medium | |
| CN113592874B (en) | Image display method, device and computer equipment | |
| CN113420172B (en) | Picture sharing method and device, computer equipment and medium | |
| CN111796990A (en) | Resource display method, device, terminal and storage medium | |
| CN112100528B (en) | Method, device, equipment and medium for training search result scoring model | |
| CN110134902B (en) | Data information generation method, device and storage medium | |
| CN113722040A (en) | Work processing method, device, computer equipment and medium | |
| CN111813486A (en) | Page display method, device, electronic device and storage medium | |
| CN111898488A (en) | Video image recognition method, device, terminal and storage medium | |
| CN114296620A (en) | Information interaction method, device, electronic device and storage medium | |
| CN114860363B (en) | Content item display method and device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |