Page control method and device, equipment and storage medium

By detecting the distance and duration of the sliding operation and determining whether the floating button is triggered, the user can quickly jump to the top or bottom of the long page, solving the time and fatigue problems caused by frequent sliding and improving operation efficiency.

CN119739307APending Publication Date: 2025-04-01SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411937419.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

When users use their mobile phone to browse long pages, they need to frequently slide to locate to the top or bottom of the page, which leads to time-consuming and user fatigue, especially in case of order-intensive scenarios.

Method used

By detecting the user's sliding operation, the sliding distance and contact duration are determined, and whether to trigger the display of the floating button. After the user clicks the floating button, the page jumps to the top or bottom.

Benefits of technology

It realizes rapid positioning to the top or bottom of the page, reducing the number of user sliding operations, improving operation efficiency and reducing user fatigue.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739307A_ABST
    Figure CN119739307A_ABST
Patent Text Reader

Abstract

The invention discloses a page control method and device, equipment and a storage medium, and relates to the technical field of computers.The method comprises the steps that when a sliding operation of a user on a current page is detected, the sliding distance corresponding to the sliding operation and the contact duration of the user and a terminal screen at the final position corresponding to the sliding operation are determined; judging whether a floating button is triggered and displayed on the current page or not according to the sliding distance and the contact duration; if yes, responding to the click operation of the user on the suspension button, and controlling the page to jump to the top or the bottom of the current page. According to the sliding distance of the sliding operation and the contact duration of the user with the terminal screen at the final position corresponding to the sliding operation, whether the one-key-to-top or one-key-to-bottom suspension button is triggered or not is judged, the user can click the suspension button to control jumping to the top or the bottom of the page, limitation of a terminal system or hardware conditions is avoided, and the user experience is improved. The universality is high, and direct reaching of the bottom or the top of the page is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page control method, device, equipment and storage medium. Background Art

[0002] When users use their mobile phones to browse long pages with rich content, in addition to the usual up and down swiping operations to view information section by section, they often encounter the need to quickly locate the top or bottom of the page. For example, when a user is on an order details page containing a lot of information, in order to view key information at the bottom of the page, such as payment methods, delivery details, etc., they have to swipe multiple times in succession, which is not only time-consuming but also easy to cause user fatigue. Similarly, in the order grabbing hall with dense orders, in order not to miss the latest order information and to grab orders in time, drivers also need to frequently swipe the page to the top to refresh the field, which to a certain extent affects the driver's work efficiency and the timeliness of grabbing orders.

[0003] At present, in response to this user demand, mobile phone systems and mainstream apps have provided some functions for quickly jumping to the top or bottom of the page, such as clicking the status bar at the top of the mobile phone screen, clicking a specific icon at the bottom of the app interface, or dragging the scroll bar on the side of the page. However, different mobile phone systems have differences in user interaction methods, resulting in some quick jump functions that may not be available or inconvenient to operate on some devices. Summary of the invention

[0004] Based on this, it is necessary to provide a page control method, device, equipment and storage medium for the above technical problems, so as to solve at least one of the above technical problems.

[0005] The present invention provides a page control method, comprising:

[0006] When a sliding operation of a user on the current page is detected, determining a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end point corresponding to the sliding operation;

[0007] Determining whether to trigger display of a floating button on the current page according to the sliding distance and the contact duration;

[0008] If so, in response to the user clicking the floating button, the control page jumps to the top or bottom of the current page.

[0009] Optionally, according to a page control method provided by the present invention, the determining a sliding distance corresponding to the sliding operation includes:

[0010] Determine the starting position and the ending position corresponding to the sliding operation;

[0011] Based on the starting position and the ending position, a vertical distance is determined, and the vertical distance is used as the sliding distance, wherein the vertical distance refers to the distance difference between the starting position and the ending position of the sliding operation in the vertical direction.

[0012] Optionally, according to a page control method provided by the present invention, judging whether to trigger display of a floating button on the current page according to the sliding distance and the contact duration includes:

[0013] Comparing the sliding distance with a preset distance, and comparing the contact duration with a preset duration;

[0014] When the moving distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, the floating button is triggered to be displayed on the current page.

[0015] Optionally, according to a page control method provided by the present invention, triggering display of a floating button on the current page includes:

[0016] Determining a sliding direction of the sliding operation based on a starting position and an end position corresponding to the sliding operation;

[0017] If the sliding direction is downward, a floating button is generated to jump to the top of the page and displayed on the current page;

[0018] If the sliding direction is upward sliding, a floating button that jumps to the bottom of the page is generated and displayed on the current page.

[0019] Optionally, according to a page control method provided by the present invention, the floating button that jumps to the top of the page is displayed in a preset top area of ​​the terminal screen; the floating button that jumps to the bottom of the page is displayed in a preset bottom area of ​​the terminal screen.

[0020] Optionally, according to a page control method provided by the present invention, the controlling page to jump to the top or bottom of the current page includes:

[0021] If the type of the floating button is a floating button that jumps to the top of the page, the control page jumps to the top of the current page;

[0022] If the type of the floating button is a floating button that jumps to the bottom of the page, the control page jumps to the bottom of the current page.

[0023] Optionally, according to a page control method provided by the present invention, in response to the user clicking the floating button, controlling the page to jump to the top or bottom of the current page, further includes:

[0024] When a click operation of the user on the screen area outside the floating button is detected, the floating button is hidden, wherein the display area of ​​the current page remains unchanged after the sliding operation.

[0025] The present invention also provides a page control device, comprising:

[0026] A determination module, configured to, when detecting a sliding operation of a user on a current page, determine a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end point corresponding to the sliding operation;

[0027] A display module, used for determining whether to trigger a display floating button on the current page according to the sliding distance and the contact duration;

[0028] The control module is used to control the page to jump to the top or bottom of the current page in response to the user clicking the floating button.

[0029] The present invention also provides a computer device, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-mentioned page control method when executing the computer-readable instructions.

[0030] The present invention also provides one or more readable storage media storing computer-readable instructions, and the computer-readable instructions implement the above page control method when executed by a processor.

[0031] The above-mentioned page control method, device, equipment and storage medium, the present invention determines whether to trigger the display of a floating button with one page key to the top or one page key to the bottom on the current page according to the sliding distance of the sliding operation and the length of time the user is in contact with the terminal screen at the corresponding end position of the sliding operation. The user can click the floating button to control the jump to the top or bottom of the page. It is not limited by the terminal system or hardware conditions, has strong versatility, and can achieve direct access to the bottom or top of the page. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0033] Figure 1 is a flow chart of a page control method in one embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a sliding upwards scenario provided by an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of a downward sliding scene provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of a scenario for calculating a sliding distance provided by an embodiment of the present invention;

[0037] Figure 5 This is a schematic diagram of a scenario in which a floating button that jumps to the bottom of a page is generated according to an embodiment of the present invention;

[0038] Figure 6 This is a schematic diagram of a scenario in which a floating button that jumps to the top of a page is generated according to an embodiment of the present invention;

[0039] Figure 7 is a structural schematic diagram of a page control device in one embodiment of the present invention;

[0040] Figure 8 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.

[0043] In one embodiment, specifically, Figure 1 As shown, Figure 1 : is a flow chart of a page control method in an embodiment of the present invention. The present invention provides a page control method, comprising the following steps:

[0044] Step S11, when a sliding operation of a user on a current page is detected, determining a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end position corresponding to the sliding operation;

[0045] It should be noted that, refer to Figure 2 and Figure 3 , Figure 2 is a schematic diagram of a sliding upwards scenario provided by an embodiment of the present invention; Figure 3 It is a schematic diagram of a downward sliding scene provided by an embodiment of the present invention; the user can slide upward or downward in any direction on the terminal screen.

[0046] Specifically, when a user's sliding operation on the current page is detected, the starting position and the end position of the sliding operation are determined, and then the sliding distance corresponding to the sliding operation is calculated based on the starting position and the end position. In addition, it is also necessary to determine the length of time the user is in contact with the terminal screen at the end position.

[0047] Step S12, judging whether to trigger display of a floating button on the current page according to the sliding distance and the contact duration;

[0048] Specifically, the sliding distance is compared with the preset distance, and the contact duration is compared with the preset duration. It should be noted that the preset distance is determined according to the length of the terminal screen, for example, the preset distance is set to 30% of the length of the terminal screen, and the preset duration is set according to the actual situation, for example, it is set to 3 seconds. When the moving distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, it is determined to trigger the display of the floating button on the current page. In more detail: based on the starting position and the end position corresponding to the sliding operation, the sliding direction of the sliding operation is determined. If the sliding direction is an upward sliding direction, a floating button that jumps to the bottom of the page is generated and displayed on the current page. If the sliding direction is a downward sliding direction, a floating button that jumps to the top of the page is generated and displayed on the current page.

[0049] Step S13: If yes, in response to the user clicking the floating button, the control page jumps to the top or bottom of the current page.

[0050] Specifically, if the floating button is triggered to be displayed, and a click operation of the user on the floating button is detected, the page is controlled to jump to the top or bottom of the current page. Optionally, if the type of the floating button is a floating button that jumps to the top of the page; when the user's click operation on the floating button is detected, the page is controlled to jump to the top of the current page. In addition, if the type of the floating button is a floating button that jumps to the bottom of the page; when the user's click operation on the floating button is detected, the page is controlled to jump to the bottom of the current page.

[0051] The embodiment of the present invention, through the above scheme, includes: when a sliding operation of a user on the current page is detected, determining the sliding distance corresponding to the sliding operation and the contact time of the user with the terminal screen at the end position corresponding to the sliding operation; judging whether to trigger the display of a floating button on the current page according to the sliding distance and the contact time; if so, in response to the user's click operation on the floating button, controlling the page to jump to the top or bottom of the current page. The embodiment of the present invention judges whether to trigger the display of a floating button from one page key to the top or one page key to the bottom on the current page according to the sliding distance of the sliding operation and the contact time of the user with the terminal screen at the end position corresponding to the sliding operation. The user can click the floating button to control the jump to the top or bottom of the page. It is not limited by the terminal system or hardware conditions, has strong versatility, and can achieve direct access to the bottom or top of the page.

[0052] In one embodiment of the present invention, determining the sliding distance corresponding to the sliding operation includes:

[0053] Determine a starting position and an end position corresponding to the sliding operation; determine a vertical distance based on the starting position and the end position, and use the vertical distance as the sliding distance.

[0054] It should be noted that the terminal screen is provided with a corresponding spatial rectangular coordinate system. In one embodiment, the horizontal direction of the X-axis of the spatial rectangular coordinate system is determined according to the upper and lower short sides of the terminal screen, and the vertical direction of the Y-axis is determined according to the left and right long sides of the terminal screen; the vertical distance is calculated according to the starting position and the end position corresponding to the sliding operation in the spatial rectangular coordinate system. The vertical distance refers to the difference in the vertical direction between the starting position and the end position of the user's sliding operation. Figure 4 , Figure 4 This is a schematic diagram of a scenario for calculating a sliding distance provided by an embodiment of the present invention. The distances corresponding to x, y, and z are the vertical distances of each sliding operation, and the vertical distance is used as the sliding distance.

[0055] The embodiment of the present invention, through the above scheme, includes: determining the starting position and the end position corresponding to the sliding operation; determining the vertical distance based on the starting position and the end position, and using the vertical distance as the sliding distance. It is realized that the sliding distance of the sliding operation is determined according to the starting position and the end position corresponding to the sliding operation, and then judging whether to trigger the function of one page key to the top or one key to the bottom according to parameters such as the sliding distance.

[0056] In one embodiment of the present invention, judging whether to trigger display of a floating button on the current page according to the sliding distance and the contact duration includes:

[0057] The sliding distance is compared with the preset distance, and the contact duration is compared with the preset duration; when the sliding distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, the floating button is triggered to be displayed on the current page.

[0058] It should be noted that the preset distance is determined according to the length of the terminal screen. Figure 4 , Figure 4 A in represents the length of the terminal screen, and the preset distance can be set to 30% of the length. The preset duration is set according to the actual situation, for example, it is set to 3 seconds. Specifically, the sliding distance is compared with the preset distance, and the contact duration is compared with the preset duration. When the moving distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, it is determined to trigger a page key to the top or a key to the bottom function, and then trigger the display of the floating button on the current page. It should be noted that the floating button includes a floating button that jumps to the top of the page and a floating button that jumps to the bottom of the page. The corresponding floating button can be generated according to the sliding direction of the sliding operation, wherein the sliding direction can be determined according to the starting position and the end position corresponding to the sliding operation. For example, if the sliding direction is sliding downward, a floating button that jumps to the top of the page is generated and displayed on the current page; if the sliding direction is sliding upward, a floating button that jumps to the bottom of the page is generated and displayed on the current page.

[0059] The embodiment of the present invention uses the above scheme to determine whether to trigger a floating button from a page key to the top or a page key to the bottom, based on the sliding distance and contact duration of the sliding operation, so that a direct jump to the bottom or top of the page can be achieved according to the floating button.

[0060] In one embodiment of the present invention, triggering display of a floating button on the current page includes:

[0061] Based on the starting position and the end position corresponding to the sliding operation, the sliding direction of the sliding operation is determined; if the sliding direction is a downward slide, a floating button that jumps to the top of the page is generated and displayed on the current page; if the sliding direction is an upward slide, a floating button that jumps to the bottom of the page is generated and displayed on the current page.

[0062] Specifically, based on the starting position and the end position corresponding to the sliding operation, the sliding direction of the sliding operation is determined, wherein the sliding direction includes sliding downward and sliding upward. During page browsing, sliding the page upward means that the user slides from a lower position of the screen to a higher position to gradually view information close to the bottom of the page; sliding the page downward means that the user slides from a higher position of the screen to a lower position to view information gradually close to the top of the page. If the sliding direction is sliding downward, a floating button that jumps to the top of the page is generated and displayed on the current page; if the sliding direction is sliding upward, a floating button that jumps to the bottom of the page is generated and displayed on the current page. Reference Figure 5 and Figure 6 , Figure 5 1 is a schematic diagram of a scenario in which a floating button that jumps to the bottom of a page is generated according to an embodiment of the present invention. Figure 6 This is a scene schematic diagram of generating a floating button that jumps to the top of a page according to an embodiment of the present invention. Optionally, the floating button that jumps to the top of the page is displayed in a preset top area of ​​the terminal screen; the floating button that jumps to the bottom of the page is displayed in a preset bottom area of ​​the terminal screen, for example, displayed in the center area at the top or bottom of the terminal screen.

[0063] The embodiment of the present invention, through the above scheme, includes: determining the sliding direction of the sliding operation based on the starting position and the end position corresponding to the sliding operation; if the sliding direction is sliding downward, generating a floating button that jumps to the top of the page and displays it on the current page; if the sliding direction is sliding upward, generating a floating button that jumps to the bottom of the page and displays it on the current page. It is achieved that a floating button that jumps to the top or bottom of the page is generated according to the sliding direction of the sliding operation, and the user can click the floating button to control the jump to the top or bottom of the page.

[0064] In one embodiment of the present invention, in response to the user clicking the floating button, before controlling the page to jump to the top or bottom of the current page, the method further includes:

[0065] When a click operation of the user on the screen area outside the floating button is detected, the floating button is hidden, wherein the display area of ​​the current page remains unchanged after the sliding operation.

[0066] Specifically, when it is detected that the user clicks on the screen area outside the floating button, the floating button will be automatically hidden. At the same time, the display area of ​​the current page after the sliding operation remains unchanged, that is, the page will not scroll or change due to the click operation, and the area where the user is after the sliding operation is still displayed.

[0067] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0068] In one embodiment, a page control device is provided, which corresponds one-to-one to the page control method in the above embodiment. Figure 7 As shown, Figure 7 : is a schematic diagram of a structure of a page control device in an embodiment of the present invention, the page control device comprises:

[0069] A determination module 21, configured to determine, when a sliding operation of a user on a current page is detected, a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end position corresponding to the sliding operation;

[0070] The display module 22 is used to determine whether to trigger the display of a floating button on the current page according to the sliding distance and the contact duration;

[0071] The control module 23 is used to control the page to jump to the top or bottom of the current page in response to the user clicking the floating button.

[0072] The determination module 21 is further used for:

[0073] Determine the starting position and the ending position corresponding to the sliding operation;

[0074] Based on the starting position and the ending position, a vertical distance is determined, and the vertical distance is used as the sliding distance, wherein the vertical distance refers to the distance difference between the starting position and the ending position of the sliding operation in the vertical direction.

[0075] The display module 22 is also used for:

[0076] Comparing the sliding distance with a preset distance, and comparing the contact duration with a preset duration;

[0077] When the moving distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, the floating button is triggered to be displayed on the current page.

[0078] The display module 22 is also used for:

[0079] Determining a sliding direction of the sliding operation based on a starting position and an end position corresponding to the sliding operation;

[0080] If the sliding direction is downward, a floating button is generated to jump to the top of the page and displayed on the current page;

[0081] If the sliding direction is upward sliding, a floating button that jumps to the bottom of the page is generated and displayed on the current page.

[0082] The page control device also includes: the floating button for jumping to the top of the page is displayed in a preset top area of ​​the terminal screen; the floating button for jumping to the bottom of the page is displayed in a preset bottom area of ​​the terminal screen.

[0083] The control module 23 is also used for:

[0084] If the type of the floating button is a floating button that jumps to the top of the page, the control page jumps to the top of the current page;

[0085] If the type of the floating button is a floating button that jumps to the bottom of the page, the control page jumps to the bottom of the current page.

[0086] The page control device also includes:

[0087] The hiding module is used to hide the floating button when detecting a click operation of the user on the screen area outside the floating button, wherein the display area of ​​the current page remains unchanged after the sliding operation.

[0088] For the specific definition of the page control device, please refer to the definition of the page control method above, which will not be repeated here. Each module in the above-mentioned page control device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0089] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, Figure 8: is a schematic diagram of a computer device in one embodiment of the present invention. The computer device includes a processor, a memory, a network interface and a database connected by a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating device, a computer-readable instruction and a database. The internal memory provides an environment for the operation of the operating device and the computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the page control method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instruction is executed by the processor, a page control method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0090] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, and a network interface connected through a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a page control method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0091] In one embodiment, a computer device is provided, including a memory, a processor, and a computer-readable instruction stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned page control method when executing the computer-readable instruction. The steps include: when a user's sliding operation on the current page is detected, determining the sliding distance corresponding to the sliding operation and the contact duration of the user with the terminal screen at the corresponding end position of the sliding operation; judging whether to trigger the display of a floating button on the current page according to the sliding distance and the contact duration; if so, in response to the user's click operation on the floating button, controlling the page to jump to the top or bottom of the current page.

[0092] In one embodiment, a readable storage medium is provided, the readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor to implement the above-mentioned page control method steps. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0093] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0094] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A page control method, characterized in that: include: When a sliding operation of a user on the current page is detected, determining a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end point corresponding to the sliding operation; Determining whether to trigger display of a floating button on the current page according to the sliding distance and the contact duration; If so, in response to the user clicking the floating button, the control page jumps to the top or bottom of the current page.

2. The page control method according to claim 1, characterized in that: The determining a sliding distance corresponding to the sliding operation includes: Determine the starting position and the ending position corresponding to the sliding operation; Based on the starting position and the ending position, a vertical distance is determined, and the vertical distance is used as the sliding distance, wherein the vertical distance refers to the distance difference between the starting position and the ending position of the sliding operation in the vertical direction.

3. The page control method according to claim 1, characterized in that: The determining, according to the sliding distance and the contact duration, whether to trigger display of a floating button on the current page includes: Comparing the sliding distance with a preset distance, and comparing the contact duration with a preset duration; When the moving distance is greater than or equal to the preset distance, and the contact duration is greater than or equal to the preset duration, the floating button is triggered to be displayed on the current page.

4. The page control method according to claim 3, characterized in that: The triggering of displaying a floating button on the current page includes: Determining a sliding direction of the sliding operation based on a starting position and an end position corresponding to the sliding operation; If the sliding direction is downward, a floating button is generated to jump to the top of the page and displayed on the current page; If the sliding direction is upward sliding, a floating button that jumps to the bottom of the page is generated and displayed on the current page.

5. The page control method according to claim 4, characterized in that: The floating button for jumping to the top of the page is displayed in a preset top area of ​​the terminal screen; the floating button for jumping to the bottom of the page is displayed in a preset bottom area of ​​the terminal screen.

6. The page control method according to claim 1, characterized in that: The control page jumps to the top or bottom of the current page, including: If the type of the floating button is a floating button that jumps to the top of the page, the control page jumps to the top of the current page; If the type of the floating button is a floating button that jumps to the bottom of the page, the control page jumps to the bottom of the current page.

7. The page control method according to claim 1, characterized in that: Before the control page jumps to the top or bottom of the current page in response to the user clicking the floating button, the method further includes: When a click operation of the user on the screen area outside the floating button is detected, the floating button is hidden, wherein the display area of ​​the current page remains unchanged after the sliding operation.

8. A page control device, characterized in that: include: A determination module, configured to, when detecting a sliding operation of a user on a current page, determine a sliding distance corresponding to the sliding operation and a contact time duration between the user and the terminal screen at an end point corresponding to the sliding operation; A display module, used for determining whether to trigger a display floating button on the current page according to the sliding distance and the contact duration; The control module is used to control the page to jump to the top or bottom of the current page in response to the user clicking the floating button.

9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executed on the processor, characterized in that: When the processor executes the computer-readable instructions, the page control method according to any one of claims 1 to 7 is implemented.

10. A readable storage medium having computer readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the page control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Page sliding method and device, and electronic equipment

    CN112114723A

  • Method and device for operating screen icons

    CN112860141A

  • Page control method and device, equipment and storage medium

    CN114415888A

  • Control moving method and electronic device

    US12164759B2