A method and device for controlling page view

By judging and controlling the slidable page floor in the page view, the user experience and information exposure problems of carousel maps and nested slidable lists are solved, and the automatic sliding of the subview and complete information display are realized.

CN114579243BActive Publication Date: 2025-08-19BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210249785.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2025-08-19
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

In the prior art, the use of carousel maps or revolving lights at fixed positions on the page leads to poor user experience, and the nested slideable list requires the user to slide manually, resulting in low information exposure.

Method used

In the page view, determine whether there is a page floor that can be used for sliding control, and control its sliding when the child view appears on the display screen, including judging the sliding ability of the parent view and the child view and the user sliding speed. Preferring to the page floor that can slide vertically and horizontally but does not slide itself for sliding control.

Benefits of technology

Improve the exposure rate of subviews, improve the integrity of users' access to page information, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579243B_ABST
    Figure CN114579243B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for controlling a page view, relating to the field of computer technology. A specific implementation of the method includes: obtaining page data indicating one or more page levels constituting a display page; determining whether any of the page levels are capable of sliding control; and, if any of the page levels are capable of sliding control, controlling the subview corresponding to the page level to slide when it appears on the display screen. This implementation improves the exposure rate of subviews in the display page.
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 method and device for controlling a page view. Background Art

[0002] With the increasing diversification of UI (User Interface) styles, various display methods are often used to ensure the overall standardization and neatness of the page while taking into account page space utilization and enriching the displayed information. Among them, carousels are often located at the top of the page, displaying different images without time intervals; carousels are often used for notifications or announcements, displaying information continuously from left to right, right to left, top to bottom, or bottom to top; and nested scrollable lists often refer to nesting a horizontal list within a vertical page.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: carousels or revolving lanterns are often used in fixed positions on the page. If they are used simultaneously in different positions on the same page, it will lead to a messy page and poor user experience; and although nested slidable lists can be used in multiple places on the same page, in order to avoid dazzling the user, most nested slidable lists rely on manual sliding by the user. If the user unconsciously slides the list, the exposure rate of the information displayed in the nested list is poor, and the user cannot obtain complete page information. Summary of the Invention

[0004] In view of this, an embodiment of the present invention provides a method and device for controlling a page view, which can control the sub-view to slide when the sub-view corresponding to the page floor appears on the display screen to increase the exposure rate of the sub-view and improve the completeness of the page information obtained by the user.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for controlling a page view is provided, comprising:

[0006] Acquire page data, wherein the page data indicates one or more page levels for constituting a display page;

[0007] Determining whether there is a page floor that can be slidably controlled in the page floors;

[0008] In the case that there is a page floor that can be slidably controlled in the page floor, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0009] Optionally, the determining whether there is a page floor in the page floor that can be slide-controlled includes:

[0010] Determine whether the parent view corresponding to the display page supports vertical sliding;

[0011] If the parent view supports vertical sliding, determine whether the child view corresponding to the page floor supports horizontal sliding;

[0012] In a case where the sub-view supports horizontal sliding and the sub-view does not support self-sliding, the page level is determined to be a page level that can be slidably controlled.

[0013] Optionally, determining whether the parent view corresponding to the display page supports vertical sliding includes:

[0014] Determining a ratio of a page height corresponding to the display page to a screen height corresponding to the display screen;

[0015] Determining whether the ratio is greater than a preset ratio;

[0016] If it is greater than, the parent view supports vertical sliding; if it is not greater than, the parent view does not support vertical sliding.

[0017] Optionally, determining whether the sub-view corresponding to the page level supports horizontal sliding includes:

[0018] Get the subview width corresponding to the subview;

[0019] Determine whether the width of the subview is greater than the screen width corresponding to the display screen;

[0020] If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

[0021] Optionally, determining whether the sub-view corresponding to the page level supports horizontal sliding includes:

[0022] Get the number of items that the subview needs to display;

[0023] Determining whether the number of items is greater than the maximum number of display items corresponding to the display screen;

[0024] If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

[0025] Optionally, when there is a page level capable of sliding control in the page levels, when a sub-view corresponding to the page level appears in the display screen, controlling the sub-view to slide includes:

[0026] Determine the number of floors corresponding to the page floors that can be slid controlled;

[0027] Determining whether the number of floors is greater than a threshold number of floors;

[0028] In a case where the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0029] Optionally, when the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears in the display screen, controlling the sub-view to slide includes:

[0030] Obtaining the screen coordinates corresponding to the page floors to calculate the interval distance between the page floors;

[0031] Determining whether the interval distance is greater than the screen height corresponding to the display screen;

[0032] In a case where the interval distance is greater than the screen height corresponding to the display screen, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0033] Optionally, before controlling the subview to slide, the method further includes:

[0034] Obtaining a sliding speed when a user slides the display page;

[0035] Determining whether the sliding speed is within a preset sliding speed range;

[0036] If so, when the sub-view appears in the display screen, the sub-view is controlled to slide; if not, when the sub-view appears in the display screen, the sub-view is not controlled to slide.

[0037] Optionally, the method further includes: when the sub-view no longer appears in the display screen, restoring the sub-view to a state where no sliding control is performed.

[0038] To achieve the above object, according to another aspect of an embodiment of the present invention, a control device for a page view is provided, comprising: a page data acquisition module, a page floor determination module, and a sub-view control module; wherein,

[0039] The page data acquisition module is used to acquire page data, wherein the page data indicates one or more page floors for constituting a display page;

[0040] The page floor determination module is used to determine whether there is a page floor that can be slide-controlled among the page floors;

[0041] The sub-view control module is used to control the sub-view to slide when a page floor that can be slidably controlled exists in the page floor and the sub-view corresponding to the page floor appears in the display screen.

[0042] Optionally, the determining whether there is a page floor in the page floor that can be slide-controlled includes:

[0043] Determine whether the parent view corresponding to the display page supports vertical sliding;

[0044] If the parent view supports vertical sliding, determine whether the child view corresponding to the page floor supports horizontal sliding;

[0045] In a case where the sub-view supports horizontal sliding and the sub-view does not support self-sliding, the page level is determined to be a page level that can be slidably controlled.

[0046] Optionally, determining whether the parent view corresponding to the display page supports vertical sliding includes:

[0047] Determining a ratio of a page height corresponding to the display page to a screen height corresponding to the display screen;

[0048] Determining whether the ratio is greater than a preset ratio;

[0049] If it is greater than, the parent view supports vertical sliding; if it is not greater than, the parent view does not support vertical sliding.

[0050] Optionally, determining whether the sub-view corresponding to the page level supports horizontal sliding includes:

[0051] Get the subview width corresponding to the subview;

[0052] Determine whether the width of the subview is greater than the screen width corresponding to the display screen;

[0053] If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

[0054] Optionally, determining whether the sub-view corresponding to the page level supports horizontal sliding includes:

[0055] Get the number of items that the subview needs to display;

[0056] Determining whether the number of items is greater than the maximum number of display items corresponding to the display screen;

[0057] If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

[0058] Optionally, when there is a page level capable of sliding control in the page levels, when a sub-view corresponding to the page level appears in the display screen, controlling the sub-view to slide includes:

[0059] Determine the number of floors corresponding to the page floors that can be slid controlled;

[0060] Determining whether the number of floors is greater than a threshold number of floors;

[0061] In a case where the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0062] Optionally, when the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears in the display screen, controlling the sub-view to slide includes:

[0063] Obtaining the screen coordinates corresponding to the page floors to calculate the interval distance between the page floors;

[0064] Determining whether the interval distance is greater than the screen height corresponding to the display screen;

[0065] In a case where the interval distance is greater than the screen height corresponding to the display screen, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0066] Optionally, the subview sliding control module is further configured to, before controlling the subview to slide:

[0067] Obtaining a sliding speed when a user slides the display page;

[0068] Determining whether the sliding speed is within a preset sliding speed range;

[0069] If so, when the sub-view appears in the display screen, the sub-view is controlled to slide; if not, when the sub-view appears in the display screen, the sub-view is not controlled to slide.

[0070] Optionally, the subview sliding control module is further configured to:

[0071] When the sub-view no longer appears in the presentation screen, the sub-view is restored to a state where no sliding control is performed.

[0072] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, an electronic device for page view control is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the page view control method above.

[0073] To achieve the above object, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, any of the methods described above in the page view control method is implemented.

[0074] One embodiment of the above invention has the following advantages or beneficial effects: by judging whether the page level of the displayed page can be slid controlled, and when there is a page level that can be slid controlled in the page view, when the sub-view corresponding to the page level appears on the display screen, the sub-view is controlled to slide, thereby increasing the exposure rate of the sub-view corresponding to the page level that can be slid controlled and improving the completeness of the page information obtained by the user.

[0075] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0077] Figure 1 is a schematic diagram of the main process of a method for controlling a page view according to an embodiment of the present invention;

[0078] Figure 2a is a schematic diagram of a display page according to an embodiment of the present invention;

[0079] Figure 2b is a schematic diagram of a page floor capable of sliding control according to an embodiment of the present invention;

[0080] Figure 3 is a schematic diagram of the main process of another method for controlling a page view according to an embodiment of the present invention;

[0081] Figure 4 is a schematic diagram of main modules of a device for controlling a page view according to an embodiment of the present invention;

[0082] Figure 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0083] Figure 6It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0084] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0085] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for controlling a page view according to an embodiment of the present invention. Figure 1 As shown, the page view control method may specifically include the following steps:

[0086] Step S101: acquiring page data, wherein the page data indicates one or more page levels for constituting a display page.

[0087] like Figure 2a As shown, a vertical display page consists of multiple page levels, namely Level 1 for displaying carousels, Level 2 for displaying item categories, and Level 3 for displaying selected items. During the page display process, different levels display page information in sequence from top to bottom. Specifically, the client used to display the page can directly obtain page data from the server. In addition to the page level, the page data also includes the page level template, dynamic data, static data, and the page level display method used by the page level, as well as any other information used to generate the display page.

[0088] Step S102: determine whether there is a page level in the page level that can be slide-controlled.

[0089] Among them, the page floor that can be slid refers to the page floor of the corresponding sub-view nested in the vertical display page that can slide horizontally. It can be understood that the vertical display page can be displayed as a fixed page within the display screen, that is, it only has a one-screen parent view, or it can slide up and down along the display screen, but for a fixed page, the user's line of sight is always focused on the current display page, so it is easier to notice the page floor that can be slid nested in the page, so there is no need to perform too much control to meet the exposure rate. In addition, for the page floor with nested sub-views that can slide horizontally, if the sub-view itself can slide by itself, such as scrolling from left to right, without the user manually sliding, then there is no need to perform sliding control to meet the exposure rate. Therefore, in this embodiment, the page floor that does not have the self-sliding feature but supports horizontal sliding nested in the vertically slidable display page is preferably selected as the page floor that can be slid.

[0090] Specifically, see Figure 2b A sliding-controlled page floor is provided for displaying selected items, and the selected items are distributed horizontally, arranged from left to right as item 1, item 2, item 3, item 4, etc. Since there are a large number of selected items and the width of the display screen used to display the page is limited, in order to obtain complete selected item information, the user needs to manually slide the corresponding sub-view horizontally when browsing. If the user does not notice that the sub-view can be slid when browsing the display page, the exposure rate of the selected items is insufficient, and the user cannot browse all the selected items. Based on this, it is considered to slide the sub-view that appears in the display screen when the user browses the display page to increase the exposure rate of the selected items and enable the user to browse the complete selected items.

[0091] In an optional embodiment, the determination of whether there is a page floor capable of sliding control in the page floor includes: determining whether the parent view corresponding to the displayed page supports vertical sliding; if the parent view supports vertical sliding, determining whether the child view corresponding to the page floor supports horizontal sliding; if the child view supports horizontal sliding and does not support self-sliding, determining that the page floor is a page floor capable of sliding control. In addition, the page floors capable of sliding control and the number of floors can also be determined directly based on the page data sent by the server.

[0092] More specifically, determining whether the parent view corresponding to the displayed page supports vertical sliding includes: determining the ratio of the page height corresponding to the displayed page to the screen height corresponding to the display screen; determining whether the ratio is greater than a preset ratio; if so, the parent view supports vertical sliding; if not, the parent view does not support vertical sliding. Specifically, the page height corresponding to the displayed page can be obtained from the page data and calculated using the following formula:

[0093] Ratio = page height / screen height

[0094] The preset ratio can be set based on actual needs or experience. For example, taking a preset ratio of 1.5 as an example, if the ratio of the page height to the screen height is greater than 1.5, it means that the content of the display page cannot be fully displayed by directly using the display screen for a fixed page display, and vertical sliding is required. Therefore, it is judged that the parent view corresponding to the display page supports vertical sliding; if the ratio of the page height to the screen height is not greater than 1.5, it means that the content of the display page, except for the blank space in the upper and lower parts of the page, can be fully displayed by directly using the display screen for a fixed page display, and no vertical sliding is required. Therefore, it is judged that the parent view corresponding to the display page does not support vertical sliding.

[0095] Furthermore, determining whether the sub-view corresponding to the page floor supports horizontal sliding includes: obtaining the sub-view width corresponding to the sub-view; determining whether the sub-view width is greater than the screen width corresponding to the display screen; if greater than, the sub-view supports horizontal sliding; if not greater than, the sub-view does not support horizontal sliding.

[0096] In addition, the following method can be used to determine whether the sub-view corresponding to the page floor supports horizontal sliding: obtain the number of items required to be displayed in the sub-view; determine whether the number of items is greater than the maximum number of display items corresponding to the display screen; if it is greater, the sub-view supports horizontal sliding; if it is not greater, the sub-view does not support horizontal sliding. Among them, the number of items required to be displayed in the sub-view refers to the number of items required to be displayed in a row horizontally or from left to right, and the maximum number of display items corresponding to the display screen is the maximum number of display items corresponding to the horizontal direction or a row. For example, if the maximum number of display items corresponding to the horizontal direction of the display screen is 5, if the number of items required to be displayed in the sub-view is greater than 5, the table name sub-view cannot be fully displayed in one screen and needs to be slid horizontally, so it is determined that the sub-view supports horizontal sliding; if the number of items required to be displayed in the sub-view is not greater than 5, the table name sub-view can be fully displayed in one screen without the need for horizontal sliding, so it is determined that the sub-view does not support horizontal sliding.

[0097] Step S103: When there is a page floor in the page floor that can be slid controlled, when the sub-view corresponding to the page floor appears in the display screen, control the sub-view to slide.

[0098] Controlling the subview to slide means that, when the subview appears on the display screen, the subview is controlled to slide horizontally, that is, from left to right or from right to left, at a certain sliding speed, such as one item per second or two items per second.

[0099] It is understandable that when there are page floors that can be slid controlled in the page floors, if the number of page floors that can be slid controlled in the entire display page is small, such as only 1, then users will be more likely to notice the page floors that can be slid controlled nested in the page when browsing the page, and the exposure rate can be met without too much control. In order to avoid waste of resources, it can be considered to further determine whether to control the sliding of the sub-view based on the number of floors corresponding to the page floors that can be slid controlled.

[0100] On this basis, if there is a page floor that can be slidably controlled in the page floor, when the sub-view corresponding to the page floor appears on the display screen, the sub-view is controlled to slide, including: determining the number of floors corresponding to the page floors that can be slidably controlled; judging whether the number of floors is greater than a threshold number of floors; if the number of floors is greater than the threshold number of floors, when the sub-view corresponding to the page floor appears on the display screen, controlling the sub-view to slide. The threshold number of floors is set based on actual needs or experience, such as 1 or 2.

[0101] Furthermore, when the number of floors is greater than a threshold number of floors, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide, including: obtaining the screen coordinates corresponding to the page floor to calculate the interval distance between the page floors; judging whether the interval distance is greater than the screen height corresponding to the display screen; when the interval distance is greater than the screen height corresponding to the display screen, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0102] Specifically, the screen coordinates can be obtained when the page layout is performed after the server sends the page data. For example, the page floors that can be slid controlled in the display page are floor a and floor b in the order of appearance on the display screen, and the corresponding screen coordinates are Ya and Yb respectively. The distance between the floors can be calculated based on the following formula:

[0103] Dab=Yb-Ya

[0104] Based on this, we can compare the spacing distance with the screen height of the display screen. If the spacing distance Dab is not greater than the screen height, it indicates that floors a and b may appear on the display screen at the same time. If the sub-views corresponding to floors a and b are slid, it will inevitably cause a dizzying feeling to the user, reducing the user experience. Therefore, it is considered not to slid the sub-views corresponding to floors a and b. If the spacing distance Dab is greater than the screen height, it indicates that floors a and b are far apart and cannot appear on the display screen at the same time. To increase the exposure rate of the sub-views corresponding to floors a and b, when the corresponding sub-views appear on the display screen, the sub-views are controlled to slide.

[0105] In addition, it is worth noting that when there are many page levels that can be slid controlled in the display page, in addition to selecting the page levels for sliding control according to the above method, you can also select one or more page levels for sliding control based on custom strategies, such as based on the importance of the content corresponding to the page level or selecting one out of every three levels.

[0106] It is understandable that when a user browses a page and swipes the page, they may swipe quickly or slowly. If they swipe quickly, regardless of whether they control the sliding of the page floor subview, the user will not be able to fully browse the entire content of the subview; if they swipe slowly, the user has ample time to notice that the subview corresponding to the page floor is swipable, so it is necessary to control the sliding of the subview. Based on this, to avoid wasting resources, it is considered to further determine whether to control the sliding of the subview based on the user's sliding speed on the page, and continue to control the sliding of the subview only when the user's sliding speed is within a reasonable sliding range.

[0107] On this basis, before controlling the subview to slide, the method further includes: obtaining the sliding speed of the user when sliding the display page; determining whether the sliding speed is within a preset sliding speed range; if so, controlling the subview to slide when the subview appears on the display screen; if not, not controlling the subview to slide when the subview appears on the display screen. The preset sliding speed range can be set based on actual needs or empirical values, or can be determined by counting historical sliding speeds of users on similar display pages or the same display page.

[0108] For example, if the historical sliding speeds of users on similar or identical display pages are V1, V2, V1, ..., Vn, the average sliding speed of the user can be calculated based on the following formula:

[0109] V=(V1+V2+V3+……+Vn) / n

[0110] Based on this, considering the instability of the sliding speed, the sliding speed range R is set with the average sliding speed as the center. v =(Vm)~(V+m), where the value of m can be set according to actual needs. For example, if the value of m is 50, the sliding speed range R v =(V-50)~(V+50).

[0111] In an optional implementation, the method further includes: when the sub-view no longer appears in the display screen, restoring the sub-view to a state where no sliding control is performed.

[0112] Specifically, Figure 2b Take the sliding control page level shown as an example for explanation. If the selected items appearing on the display screen in order are item 1, item 2, item 3, and item 4 when no sliding is performed, when the subview appears on the display screen, the subview is controlled to slide so that the selected items appearing on the display screen in order are item 2, item 3, item 4, and item 5. When the user finishes browsing the subview, that is, when the subview slides vertically out of the display screen, the items displayed in the subview are restored to item 1, item 2, item 3, and item 4. In this way, when the user repeatedly slides the display page up and down or vertically, the user can always start over to browse through the selected items.

[0113] Based on the above embodiment, by judging whether the page floor of the displayed page can be slid controlled, and when there are page floors that can be slid controlled in the page view, the page floors that can be slid controlled are filtered, so that when the sub-view corresponding to the page floor appears on the display screen, the sub-view is controlled to slide, thereby increasing the exposure rate of the sub-view corresponding to the page floor that can be slid controlled and improving the completeness of the page information obtained by the user.

[0114] See also Figure 3 Based on the above embodiment, an embodiment of the present invention provides another method for controlling a page view, which may specifically include the following steps:

[0115] Step S301: acquiring page data, wherein the page data indicates one or more page levels for constituting a display page.

[0116] Step S302, determine whether the parent view corresponding to the display page supports vertical sliding; if it does, continue to execute the following step S303; if it does not, do not slide the subview of the page floor.

[0117] Step S303, determine whether the sub-view corresponding to the page floor supports horizontal sliding and does not support self-sliding; if so, continue to execute the following step S304; if not, do not perform sliding control on the sub-view of the page floor.

[0118] Step S304: Determine that the page level corresponding to the sub-view is a page level that can be slidably controlled.

[0119] Step S305, determine whether the number of floors corresponding to the page floors that can be slidably controlled is greater than the threshold number of floors; if so, continue to execute the following step S306; if not, do not slidably control the sub-views of the page floors.

[0120] Step S306, determine whether the interval distance between the page floors is greater than the screen height of the display screen; if so, continue to execute the following step S307; if not, do not slide the sub-views of the page floors.

[0121] Step S307, determining whether the user's sliding speed on the display page is within a preset sliding speed range; if so, proceeding to the following step S308; if not, not performing sliding control on the sub-view of the page floor.

[0122] Step S308: When the sub-view appears on the display screen, control the sub-view to slide.

[0123] Step S309: When the sub-view no longer appears in the display screen, the sub-view is restored to a state where no sliding control is performed.

[0124] See also Figure 4 Based on the above embodiment, the present invention provides a control device 400 for a page view, comprising: a page data acquisition module 401, a page floor determination module 402, and a sub-view control module 403; wherein,

[0125] The page data acquisition module 401 is used to acquire page data, wherein the page data indicates one or more page floors for constituting a display page;

[0126] The page floor determination module 402 is used to determine whether there is a page floor that can be slide-controlled among the page floors;

[0127] The sub-view control module 403 is used to control the sub-view to slide when a sub-view corresponding to a page floor appears on the display screen, if there is a page floor that can be slidably controlled in the page floor.

[0128] In an optional embodiment, the determination of whether there is a page floor in the page floor that can be slidably controlled includes: determining whether the parent view corresponding to the displayed page supports vertical sliding; if the parent view supports vertical sliding, determining whether the child view corresponding to the page floor supports horizontal sliding; if the child view supports horizontal sliding and the child view does not support self-sliding, determining that the page floor is a page floor that can be slidably controlled.

[0129] In an optional embodiment, determining whether the parent view corresponding to the display page supports vertical sliding includes: determining the ratio of the page height corresponding to the display page to the screen height corresponding to the display screen; determining whether the ratio is greater than a preset ratio; if greater than, the parent view supports vertical sliding; if not greater than, the parent view does not support vertical sliding.

[0130] In an optional embodiment, determining whether the sub-view corresponding to the page floor supports horizontal sliding includes: obtaining the sub-view width corresponding to the sub-view; determining whether the sub-view width is greater than the screen width corresponding to the display screen; if greater than, the sub-view supports horizontal sliding; if not greater than, the sub-view does not support horizontal sliding.

[0131] In an optional embodiment, determining whether the sub-view corresponding to the page floor supports horizontal sliding includes: obtaining the number of items required to be displayed in the sub-view; determining whether the number of items is greater than the maximum number of display items corresponding to the display screen; if greater, the sub-view supports horizontal sliding; if not greater, the sub-view does not support horizontal sliding.

[0132] In an optional embodiment, when there is a page floor that can be slid controlled in the page floor, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide, including: determining the number of floors corresponding to the page floor that can be slid controlled; judging whether the number of floors is greater than a threshold number of floors; when the number of floors is greater than the threshold number of floors, when the sub-view corresponding to the page floor appears in the display screen, controlling the sub-view to slide.

[0133] In an optional embodiment, when the number of floors is greater than a threshold number of floors, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide, including: obtaining the screen coordinates corresponding to the page floor to calculate the interval distance between the page floors; judging whether the interval distance is greater than the screen height corresponding to the display screen; when the interval distance is greater than the screen height corresponding to the display screen, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

[0134] In an optional embodiment, the sub-view sliding control module 403 is also used to, before controlling the sub-view to slide: obtain the sliding speed when the user slides the display page; determine whether the sliding speed is within a preset sliding speed range; if so, control the sub-view to slide when the sub-view appears in the display screen; if not, do not control the sub-view to slide when the sub-view appears in the display screen.

[0135] In an optional implementation, the sub-view sliding control module 403 is further configured to restore the sub-view to a non-sliding controlled state when the sub-view no longer appears in the display screen.

[0136] Figure 5 An exemplary system architecture 500 is shown to which the method for controlling a page view or the apparatus for controlling a page view according to an embodiment of the present invention may be applied.

[0137] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0138] Users can use terminal devices 501, 502, and 503 to interact with server 505 via network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, and 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0139] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0140] Server 505 may be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 501, 502, and 503. The backend management server may analyze and process received data such as product information query requests, and feed back the processing results to the terminal devices.

[0141] It should be noted that the page view control method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the page view control device is generally provided in the server 505 .

[0142] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0143] Reference below Figure 6 , which shows a schematic structural diagram of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0144] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the system 600 are also stored in the RAM 603. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0145] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.

[0146] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are performed.

[0147] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0148] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a processor including a page data acquisition module, a page floor determination module, and a sub-view control module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, a sending unit may also be described as a "module for sending a picture acquisition request to a connected server."

[0150] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining page data, the page data indicating one or more page levels for constituting a display page; determining whether there is a page level that can be slid in the page level; if there is a page level that can be slid in the page level, when the sub-view corresponding to the page level appears in the display screen, controlling the sub-view to slide.

[0151] According to the technical solution of an embodiment of the present invention, by judging whether the page floor of the displayed page can be slid controlled, and when there is a page floor that can be slid controlled in the page view, when the sub-view corresponding to the page floor appears on the display screen, the exposure rate of the sub-view corresponding to the page floor that can be slid controlled is increased, and the completeness of the page information obtained by the user is improved.

[0152] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for controlling a page view, characterized in that: include: Acquire page data, wherein the page data indicates one or more page levels for constituting a display page; Determine whether the parent view corresponding to the display page supports vertical sliding; If the parent view supports vertical sliding, determine whether the child view corresponding to the page floor supports horizontal sliding; In a case where the subview supports horizontal sliding and the subview does not support self-sliding, determining that the page level is a page level capable of sliding control; In the case that there is a page floor that can be slidably controlled in the page floor, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide horizontally at a certain sliding speed.

2. The page view control method according to claim 1, characterized in that: The determining whether the parent view corresponding to the display page supports vertical sliding includes: Determining a ratio of a page height corresponding to the display page to a screen height corresponding to the display screen; Determining whether the ratio is greater than a preset ratio; If it is greater than, the parent view supports vertical sliding; if it is not greater than, the parent view does not support vertical sliding.

3. The page view control method according to claim 1, characterized in that: The determining whether the sub-view corresponding to the page level supports horizontal sliding includes: Get the subview width corresponding to the subview; Determine whether the width of the subview is greater than the screen width corresponding to the display screen; If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

4. The method for controlling a page view according to claim 1, wherein: The determining whether the sub-view corresponding to the page level supports horizontal sliding includes: Get the number of items that the subview needs to display; Determining whether the number of items is greater than the maximum number of display items corresponding to the display screen; If it is greater than, the subview supports horizontal sliding; if it is not greater than, the subview does not support horizontal sliding.

5. The page view control method according to claim 1, characterized in that: In the case where there is a page floor capable of sliding control in the page floors, when a sub-view corresponding to the page floor appears in the display screen, controlling the sub-view to slide includes: Determine the number of floors corresponding to the page floors that can be slid controlled; Determining whether the number of floors is greater than a threshold number of floors; In a case where the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

6. The method for controlling a page view according to claim 5, wherein: When the number of floors is greater than a threshold number of floors, when a sub-view corresponding to the page floor appears on the display screen, controlling the sub-view to slide includes: Obtaining the screen coordinates corresponding to the page floors to calculate the interval distance between the page floors; Determining whether the interval distance is greater than the screen height corresponding to the display screen; In a case where the interval distance is greater than the screen height corresponding to the display screen, when the sub-view corresponding to the page floor appears in the display screen, the sub-view is controlled to slide.

7. The method for controlling a page view according to any one of claims 1 to 6, wherein: Before controlling the subview to slide, it also includes: Obtaining a sliding speed when a user slides the display page; Determining whether the sliding speed is within a preset sliding speed range; If so, when the sub-view appears in the display screen, the sub-view is controlled to slide; if not, when the sub-view appears in the display screen, the sub-view is not controlled to slide.

8. The method for controlling a page view according to claim 7, wherein: Also includes: When the sub-view no longer appears in the presentation screen, the sub-view is restored to a state where no sliding control is performed.

9. A control device for a page view, characterized in that: include: Page data acquisition module, page floor determination module, sub-view control module; among them, The page data acquisition module is used to acquire page data, wherein the page data indicates one or more page floors for constituting a display page; The page floor determination module is used to determine whether the parent view corresponding to the displayed page supports vertical sliding; if the parent view supports vertical sliding, determine whether the child view corresponding to the page floor supports horizontal sliding; if the child view supports horizontal sliding and the child view does not support self-sliding, determine that the page floor is a page floor that can be slidably controlled; The sub-view control module is used to control the sub-view to slide horizontally at a certain sliding speed when a sub-view corresponding to a page floor appears in the display screen when there is a page floor that can be slid controlled in the page floor.

10. An electronic device for page view control, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.