Rapid list positioning method and device, storage medium and electronic equipment
By caching homepage data in video applications and generating positioning controls, users can quickly locate target videos, solving the problem of inconvenient video search in video applications, and achieving efficient and accurate object positioning and smooth list experience.
Patent Information
- Application Number
- CN202411672546.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-11
AI Technical Summary
In video applications, users often face inconvenience in searching when they are backtracking specific videos they have watched, especially under a large amount of video content. Traditional methods are difficult to achieve large-scale data management while ensuring a smooth experience, which may lead to page lag or excessive memory usage.
When the target object is detected to enter the object list, the list item of the homepage object is displayed according to the homepage data of the data list obtained by the server, and the homepage data is cached. When the target object is not in the homepage data, create and display the positioning control, and send the data request of the target object to the server to obtain the target page data.
It realizes efficient and accurate object positioning and smooth list experience, solves the problem of slow list data positioning, reduces the operation steps of user manual search, and reduces the consumption of equipment resources.
Smart Images

Figure CN119597386A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for quickly locating a list. Background Art
[0002] With the advancement of smartphones and mobile technology, video applications (such as short video apps) have become an important way for users to entertain themselves in their daily lives. In these applications, users can browse a large amount of short video content and click on the author's avatar to view the author's portfolio if they are interested. However, many video authors have released a large number of videos, and users often face inconveniences when looking back at specific videos they have watched. Video content usually has a correlation between the past and the present, and users hope to be able to jump to related content seamlessly. Especially with a large amount of video content, the application needs to have accurate positioning capabilities so that users can quickly access videos they have watched. In addition, maintaining the smoothness of page sliding and optimizing memory consumption are important requirements for mobile terminal design. Traditional methods make it difficult to ensure a smooth experience while achieving large-scale data management, which may cause page freezes or excessive memory usage, affecting the user experience. Summary of the invention
[0003] The present application provides a method, device, storage medium and electronic device for quickly locating a list to solve the technical problem of slow list data positioning.
[0004] In a first aspect, the present application provides a method for quickly locating a list, comprising: when it is detected that an object list of the target object is entered from a target object, according to the home page data of the data list obtained from the server, the list item of each object of the home page object is displayed, and the home page data is cached, wherein the object list is a list displayed on the client, and the object list displays the list item of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server; when the target object is not in the home page object, a positioning control for the target object is created and displayed; when the target object is not in the home page data, a data request for the target object is sent to the server, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request for the target object includes the target object identifier; when it is detected that the user clicks the positioning control, according to the target page data, a list item of each object of the target page object is displayed, wherein the target object is in the target page object.
[0005] In a second aspect, the present application provides a device for quickly locating a list, including: a first display module, for, when detecting entry from a target object to an object list of the target object, displaying the list items of each object of the home page object according to the home page data of the data list obtained from the server, and caching the home page data, wherein the object list is a list displayed on the client, and the object list displays the list items of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server; a second display module, for, when the target object is not in the home page object , create and display the positioning control of the above-mentioned target object; the first sending module is used to send the data request of the above-mentioned target object to the above-mentioned server when the above-mentioned target object is not in the above-mentioned home page data, so that the above-mentioned server returns the target page data corresponding to the above-mentioned target object in the above-mentioned data list according to the target object identifier of the above-mentioned target object, and caches the above-mentioned target page data, wherein the data request of the above-mentioned target object includes the above-mentioned target object identifier; the third display module is used to display the list item of each object of the target page object according to the above-mentioned target page data when it is detected that the user clicks the above-mentioned positioning control, wherein the above-mentioned target object is in the above-mentioned target page object.
[0006] As an optional example, the first display module includes: a first acquisition unit, used to acquire home page data of the data list from the server, wherein the home page data includes a first number of objects; a second acquisition unit, used to acquire a second number of objects displayed on one page of the object list, wherein the first number is greater than or equal to the second number; a first display unit, used to use the first second number of objects in the home page data as the home page objects and display the list item of each object.
[0007] As an optional example, the above-mentioned device also includes: a first determination module, which is used to determine that the above-mentioned target object is not in the above-mentioned home page data and is not in the above-mentioned home page object after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, if the above-mentioned target object identifier does not exist in the above-mentioned home page data; a second determination module, which is used to determine that the above-mentioned target object is in the above-mentioned home page data and in the above-mentioned home page object if the above-mentioned target object identifier exists in the above-mentioned home page data and the position of the list item of the above-mentioned target object is within the target range; a third determination module, which is used to determine that the above-mentioned target object is in the above-mentioned home page data and is not in the above-mentioned home page object if the above-mentioned target object identifier exists in the above-mentioned home page data and the position of the list item of the above-mentioned target object is not within the above-mentioned target range.
[0008] As an optional example, the above-mentioned device also includes: a fourth determination module, which is used to determine the above-mentioned target page object according to the position of the list item of the above-mentioned target object and the above-mentioned home page data after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, when the above-mentioned target object is in the above-mentioned home page data and when it is detected that the user clicks the above-mentioned positioning control; a fourth display module, which is used to display the list item of each object of the above-mentioned target page object.
[0009] As an optional example, the above-mentioned device also includes: a fifth determination module, which is used to monitor the sliding direction of the above-mentioned user when it is detected that the above-mentioned user slides the above-mentioned object list after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, and determine the pre-display page object according to the above-mentioned sliding direction; a monitoring module, which is used to monitor the sliding speed of the above-mentioned user when the above-mentioned pre-display page object is not cached; and a creation module, which is used to create an empty list item for each object of the above-mentioned pre-display page object when it is detected that the above-mentioned sliding speed is greater than or equal to the target threshold, so that when the above-mentioned user slides to the above-mentioned pre-display page object a second sending module, for, when it is detected that the sliding speed is less than the target threshold, sending a data request for the pre-display page object to the server, so that the server returns the pre-display page data corresponding to the pre-display page object in the data list according to the object identifier of each object of the pre-display page object, caches the pre-display page data, and displays a list item for each object of the pre-display page object when the user slides to the pre-display page object, wherein the data request for the pre-display page object includes the object identifier of at least one object of the pre-display page object.
[0010] As an optional example, the creation module includes: a creation unit, used to create an empty list item for each object of the above-mentioned pre-display page object; a first rendering unit, used to perform interface rendering on the empty list item for each object of the above-mentioned pre-display page object according to preset elements, so that when the above-mentioned user slides to the above-mentioned pre-display page object, the empty list item of each object of the above-mentioned pre-display page object after interface rendering is displayed.
[0011] As an optional example, the second sending module includes: a second rendering unit, used to perform interface rendering on the empty list items of each object of the pre-display page object according to the pre-display page data when the user slides to the pre-display page object, so as to obtain the list items of each object of the pre-display page object; and a display unit, used to display the list items of each object of the pre-display page object.
[0012] In a third aspect, the present application provides a storage medium storing a computer program, wherein the computer program executes the method for quickly locating the above-mentioned list when executed by a processor.
[0013] In a fourth aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method for quickly locating the above-mentioned list through the computer program.
[0014] In an embodiment of the present application, when it is detected that the target object enters the object list of the target object, the list items of each object of the home page object are displayed according to the home page data of the data list obtained from the server, and the home page data is cached, wherein the object list is a list displayed on the client, and the object list displays the list items of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server; when the target object is not in the home page object, a positioning control for the target object is created and displayed; when the target object is not in the home page data In the case of the above, the data request of the target object is sent to the above server, so that the above server returns the target page data corresponding to the target object in the above data list according to the target object identifier of the above target object, and caches the above target page data, wherein the data request of the target object includes the above target object identifier; in the case of detecting that the user clicks the above positioning control, according to the above target page data, the list item of each object of the target page object is displayed, wherein the method of the above target object in the above target page object, because in the above method, when the user enters the target object list, the home page data is obtained from the server and cached, so as to realize the rapid display of the home page object. If the target object is not on the home page object, a positioning control is generated and a data request is sent when the user clicks it, and the server locates the page data where the object is located and returns it. Subsequently, the target page object including the target object is rendered and displayed according to the page data, thereby achieving the purpose of efficient and accurate object positioning and smooth list experience, and then solving the technical problem of slow positioning of list data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 is a flowchart of an optional method for quickly locating a list according to an embodiment of the present application;
[0019] Figure 2 is a schematic structural diagram of a quick positioning device of an optional list according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0022] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0023] According to a first aspect of an embodiment of the present application, a method for quickly locating a list is provided. Optionally, as follows: Figure 1 As shown, the above method includes:
[0024] S102, when it is detected that the target object enters the object list of the target object, the list item of each object of the home page object is displayed according to the home page data of the data list obtained from the server, and the home page data is cached, wherein the object list is a list displayed on the client, and the object list displays the list item of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server;
[0025] S104, when the target object is not in the home page object, create and display a positioning control for the target object;
[0026] S106, when the target object is not in the home page data, sending a data request for the target object to the server, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request for the target object includes the target object identifier;
[0027] S108, when it is detected that the user clicks on the positioning control, displaying a list item of each object of the target page object according to the target page data, wherein the target object is in the target page object.
[0028] Optionally, in this embodiment, the target object may be a video, a picture, an article or other content. The following takes the target object as a target video as an example.
[0029] The system is divided into a positioning management module, a data loading module, a data caching module, a sliding detection module, and a list rendering module. Specifically, when a user enters the list page of a short video application from a target video, the positioning management module will first check whether the user's target video is within the range of the home page display of the object list. At this time, the data loading module will request the first page of data in the data list from the server, and display each list item of the home page video object in the client's object list. After the data is loaded successfully, the list rendering module starts to render the home page object (including cover image, title, etc.) and cache the home page data of the data list. This caching strategy ensures that the page content can be displayed quickly when the user returns to the home page without repeated loading, which improves the smoothness of the display. If the target video is not in the home page data, the positioning management module will display a positioning control, prompting the user to click to jump to the location of the target video. This control determines whether the target video identifier passed in is within the visible items of the current page. If it is not visible, the positioning control is placed on the screen. If the target video is not found in the home page data, a new request will be triggered, and the data loading module will send the target video identifier to the server. The server will locate the "target page" where the video is located according to the target video identifier, and return the data of that page to the client. For example, if the target video identifier is used to locate the video on page 5 of the data list, the fifth page of data in the data list will be returned to the client. This data will not only be rendered in the interface layer, but also cached to ensure that users experience smooth loading when viewing the target page content. After the user clicks the positioning control, the sliding detection module is responsible for scrolling the page to the target page and displaying the target video. For example, if the target video is on page 10 in the object list, the page will be scrolled to page 10 to display the target video.
[0030] Optionally, in this embodiment, a positioning control is used to accurately guide the user to the target object, avoiding the inefficient process of manual scrolling and searching, which significantly improves the user experience. The system caches the data of the home page and the target page on the client, reducing the frequent data requests and loading pressure, reducing the consumption of device resources, and ensuring the smooth operation of the application.
[0031] As an optional example, according to the home page data of the data list obtained from the server, the list items of each object of the home page object are displayed including:
[0032] Acquire home page data of a data list from a server, wherein the home page data includes a first number of objects;
[0033] Obtaining a second number of objects displayed on a page of the object list, wherein the first number is greater than or equal to the second number;
[0034] The first second number of objects in the home page data are taken as home page objects and a list item of each object is displayed.
[0035] Optionally, in this embodiment, when the user enters the video list page (object list), the data loading module requests the data of the first page (i.e., home page data) from the server, and the data includes several objects (first quantity), each object representing a video content. According to the screen space limitation, the number of objects that can be displayed per page of the object list (second quantity) is defined, and the second quantity is based on the device display capability and layout design, and has nothing to do with the actual data volume. The total number of objects (first quantity) of the home page data is usually more than the number of objects (second quantity) displayed per page by the client, ensuring that the user can fully display the content in the current page, and select the first second number of objects from the home page data as the initial objects of the page for display. For example, the home page data includes 20 objects, and the object list can display 9 objects per page, then select the first 9 objects from the 20 objects in the home page data as the home page objects of the object list for display. The list rendering module presents these selected home page objects as list items, that is, the cover, title, etc. of each object are displayed on the screen area visible to the user. At the same time, the data cache module caches the home page data to ensure that the page can be loaded quickly when the user looks back or slides up and down, without repeatedly requesting the server.
[0036] Optionally, in this embodiment, by displaying only part of the home page data, the initial loading amount is reduced, the page response speed is faster, and the user has a smooth experience when entering the list page. The home page data cache reduces repeated requests, and the loaded content can be quickly displayed when the user slides up and down, reducing the impact of network delay.
[0037] As an optional example, after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes:
[0038] If the target object identifier does not exist in the home page data, determining that the target object is not in the home page data and is not in the home page object;
[0039] If the target object identifier exists in the home page data and the position of the list item of the target object is within the target range, it is determined that the target object is in the home page data and in the home page object;
[0040] When the target object identifier exists in the home page data and the position of the list item of the target object is not within the target range, it is determined that the target object is in the home page data but not in the home page object.
[0041] Optionally, in this embodiment, after the data loading module obtains the home page data from the server, the positioning management module checks whether the data contains the identifier of the target object. If the home page data does not contain the identifier, it means that the target object is not in the home page data and is not in the currently displayed home page object. If the identifier of the target object exists in the home page data, the positioning management module further checks whether the position of the target object is within the current page display range (target range). If the position of the target object is within the target range, the positioning management module determines that the object is in the home page data and in the home page object, indicating that the user can directly view the object without additional operation. If the identifier of the target object exists in the home page data, but the position of the target object exceeds the current page display range (that is, the target object is in the home page data but not in the home page object), the positioning management module determines that the object is in the home page data but not in the current display range. In this case, the positioning management module can display the positioning control according to user needs, so that the user can quickly locate the position of the target object. By accurately determining the position of the target object, the content required by the user can be quickly located, reducing the operation steps of manual search by the user. When the target object is in the home page data but is not in the display range, the positioning management module can guide the user to directly view the target object by displaying the positioning control, thereby ensuring the accurate presentation of the target object and improving the overall user experience.
[0042] As an optional example, after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes:
[0043] When the target object is in the home page data and when it is detected that the user clicks the positioning control, the target page object is determined according to the position of the list item of the target object and the home page data;
[0044] Displays a list item for each object of the target page object.
[0045] Optionally, in this embodiment, when the home page data obtained by the data loading module from the server contains the identifier of the target object, the positioning management module will record the location of the target object in preparation for possible subsequent positioning operations by the user. When the user clicks the positioning control, the positioning management module responds to the user's need for quick positioning of the target object through this operation, triggering a further positioning process. The positioning management module determines the specific page where the target object is located based on the position of the target object in the home page data, and regards the page as a "target page object." This step involves calculating the number of pages containing the target object, so as to accurately find the required content and ensure that the correct page data is displayed. Each list item of the target page object (the page containing the target object) is loaded and presented to the user, so that the user can intuitively view the target object and its associated data content.
[0046] As an optional example, after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes:
[0047] In the case of detecting that the user slides the object list, monitoring the sliding direction of the user, and determining the pre-display page object according to the sliding direction;
[0048] When the preview page object is not cached, monitor the user's scrolling speed;
[0049] When it is detected that the sliding speed is greater than or equal to the target threshold, an empty list item for each object of the pre-display page object is created, so that when the user slides to the pre-display page object, the empty list item for each object of the pre-display page object is displayed;
[0050] When it is monitored that the sliding speed is less than the target threshold, a data request for the pre-display page object is sent to the server, so that the server returns the pre-display page data corresponding to the pre-display page object in the data list according to the object identifier of each object of the pre-display page object, caches the pre-display page data, and displays the list item of each object of the pre-display page object when the user slides to the pre-display page object, wherein the data request for the pre-display page object includes the object identifier of at least one object in the pre-display page object.
[0051] Optionally, in this embodiment, when the user starts to slide the object list, the sliding detection module monitors the sliding direction (upward or downward) in real time, and predicts the next page that the user may view (i.e., the "pre-display page object") based on this, and the data cache module checks whether the data of the pre-display page object has been cached. If not cached, the user's sliding speed is further monitored to determine how to prepare to request the page data. High speed (greater than or equal to the threshold): If the user slides faster, the positioning management module will create a blank list item for each item of the pre-display page object. In this way, when the user slides quickly to the page, the pre-display page will not freeze immediately, but will first display the placeholder content to improve the smoothness of the display. Low speed (less than the threshold): If the user slides slowly, the positioning management module will directly request the data of the pre-display page object from the server and cache the returned content. When the user reaches the page, the complete list item will be displayed immediately, providing a more detailed content presentation.
[0052] Optionally, in this embodiment, by real-time monitoring of the sliding speed and displaying a blank placeholder at high speed, the loading delay when switching pages is effectively reduced, making the sliding experience smoother. When the user slides slowly and has a strong demand for content viewing, the real data is requested and cached in time to ensure timely and detailed display of the content, so that the user will not be inconvenienced by waiting for data loading. The loading strategy is adjusted according to the sliding speed to avoid unnecessary server requests and save network resources. It can respond with the least data and computing resources when sliding at high speed, and provide complete content at low speed, so as to achieve a balance between resource usage and user experience.
[0053] As an optional example, creating an empty list item for each object of the pre-display page object includes:
[0054] Create an empty list item for each object of the pre-display page object;
[0055] According to the preset elements, the interface rendering is performed on the empty list items of each object of the pre-display page object, so that when the user slides to the pre-display page object, the interface-rendered empty list items of each object of the pre-display page object are displayed.
[0056] Optionally, in this embodiment, when the user slides to the pre-display page object, in order to keep the interface smooth and avoid loading delays, the positioning management module will create an empty list item for each object in advance. Specifically, for each object in the pre-display page object, the positioning management module creates an empty list item. The empty list item is usually just a placeholder, indicating that real content will be displayed at this location in the future. The list rendering module performs interface rendering on these empty list items according to the system's preset elements (such as color, shape, placeholder icon, etc.). This process includes generating a placeholder box with a default background color, rounded corners or a virtual box, giving the user a visual cue of "loading". When the user slides to the page, these rendered empty list items are immediately displayed on the interface. Although the content has not yet been loaded, the user can see structured blank items, which enhances visual fluency and reduces the abrupt loading experience.
[0057] As an optional example, when the user slides to the pre-display page object, the list items of each object of the pre-display page object are displayed including:
[0058] When the user slides to the pre-display page object, the interface is rendered for the empty list item of each object of the pre-display page object according to the pre-display page data to obtain the list item of each object of the pre-display page object;
[0059] Displays a list item for each object of the pre-display page object.
[0060] Optionally, in this embodiment, when the user slides to the pre-display page object, the pre-display page data read from the cache or obtained from the server replaces the created empty list item. Specifically, the list rendering module performs interface rendering for each empty list item of the pre-display page object according to the obtained pre-display page data. This includes loading actual content, such as text, images, buttons, etc., so that each empty list item is converted into a list item containing complete content. After the rendering is completed, the complete list item of each object is immediately presented on the user interface, replacing the previous placeholder, and finally allowing the user to see the actual data. When the user slides to the page, the placeholder is quickly replaced with the actual content, providing a smooth visual switch and avoiding blank or delayed feeling. Loading the empty list items in advance and using the cached data to render the content, the complete content can be displayed when the user demand is triggered, significantly reducing the loading time. Only the empty list items are displayed before sliding to the new page, reducing unnecessary data requests and real-time rendering, thereby saving system resources, especially in the case of low network or device performance, can improve loading and display efficiency.
[0061] In conjunction with an example, the present invention relates to a system for quickly locating a list, which includes a location management module, a data loading module, a data cache module, a sliding detection module, and a list rendering module. The workflow of each module is described in detail below:
[0062] (1) Positioning management module: The main function is to handle the display and hiding of video positioning controls and manage requests for positioning data.
[0063] Determine whether the video is within the current screen: When the user enters the list page, determine whether the video ID passed in from the parent page is within the current screen range. If the video ID is within the current screen, the positioning control is not displayed; otherwise, the positioning control is displayed.
[0064] Data loading after clicking the positioning control: When the user clicks the positioning control, the data loading module is called to request the positioning data. If the positioning page data is large, you can load it while sliding or preload the first few pages of data. To optimize the experience, use the strategy of occupying empty list items, and load data according to the speed when sliding, avoiding unnecessary requests and improving sliding smoothness.
[0065] (2) Data loading module: responsible for loading video list data and positioning data, and managing the loading status.
[0066] Load home page data: request the interface to load home page data. After the data is loaded successfully, notify the list rendering module to render the interface.
[0067] Positioning data loading: When the user clicks the positioning button, the positioning interface is called to request positioning data, the cache data is calculated based on the video ID, and the data is obtained from the server.
[0068] Loading data from other pages: When loading data from other pages, first check whether there is data in the cache. If so, return it directly; if not, check the request status. Only pages that have not been requested will trigger data requests.
[0069] (3) Data cache module: used to cache loaded data to avoid repeated loading and improve the sliding experience.
[0070] Paging cache: cache the data loaded each time in pages for subsequent use, avoid repeated loading, and record the data request status of each page (such as requested, not requested, etc.).
[0071] Cache management during sliding: To prevent repeated data requests during fast sliding, cache the data request status of each page, cache the preloaded data during slow sliding, and get data directly from the cache when rendering the interface.
[0072] (4) Sliding detection module: Determines whether to load data before or after the current page based on the user's sliding speed to improve the sliding experience.
[0073] Sliding after clicking the positioning button: After the user clicks the positioning button, the positioning module loads the positioning data and automatically slides to the corresponding page.
[0074] When the user continues to slide, there are two situations:
[0075] Swipe up: Check whether there is enough data in the current list to be displayed (such as less than two rows). If not, preload the next page of data;
[0076] Slide down: Detect the sliding speed. If the speed is fast, no data will be loaded; if the speed is slow, load the empty object data of the current page, and do a second check after the sliding stops to ensure that the data is loaded completely.
[0077] (5) List rendering module: responsible for interface rendering of the data returned by the data loading module.
[0078] Rendering when loading data for the first time: When the data loading module returns the home page data, render the interface (such as cover image, title, etc.).
[0079] Rendering during fast sliding: If the user slides quickly, an empty object is constructed and elements such as the default cover image are rendered to ensure smooth interface rendering.
[0080] The system optimizes the loading and display process of the video list through the close cooperation of the positioning management module, data loading module, data caching module, sliding detection module and list rendering module. Through sliding speed detection, empty object placeholder, caching mechanism and other means, the user's sliding experience is improved, repeated loading and unnecessary data requests are avoided, and the interface fluency and response speed are guaranteed.
[0081] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0082] According to another aspect of the embodiment of the present application, a quick location device for a list is also provided. Figure 2 As shown, including:
[0083] The first display module 202 is used to display the list items of each object of the home page object according to the home page data of the data list obtained from the server when it is detected that the target object enters the object list of the target object, and cache the home page data, wherein the object list is a list displayed on the client, and the object list displays the list items of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server;
[0084] The second display module 204 is used to create and display a positioning control of the target object when the target object is not in the home page object;
[0085] The first sending module 206 is used to send a data request of the target object to the server when the target object is not in the home page data, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request of the target object includes the target object identifier;
[0086] The third display module 208 is used to display the list item of each object of the target page object according to the target page data when it is detected that the user clicks the positioning control, wherein the target object is in the target page object.
[0087] It should be noted that the first display module 202 in this embodiment can be used to execute step S102 in the embodiment of the present application, the second display module 204 in this embodiment can be used to execute step S104 in the embodiment of the present application, the first sending module 206 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the third display module 208 in this embodiment can be used to execute step S108 in the embodiment of the present application.
[0088] As an optional example, the first display module includes:
[0089] A first acquisition unit is used to acquire home page data of a data list from a server, wherein the home page data includes a first number of objects;
[0090] A second acquisition unit, configured to acquire a second number of objects displayed on one page of the object list, wherein the first number is greater than or equal to the second number;
[0091] The first display unit is used to use the first second number of objects in the home page data as home page objects and display a list item of each object.
[0092] As an optional example, the above device further includes:
[0093] A first determination module is used to determine that the target object is not in the home page data and is not in the home page object after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, if there is no target object identifier in the home page data;
[0094] A second determination module is used to determine that the target object is in the home page data and in the home page object when there is a target object identifier in the home page data and the position of the list item of the target object is within the target range;
[0095] The third determination module is used to determine that the target object is in the home page data but not in the home page object when there is a target object identifier in the home page data and the position of the list item of the target object is not within the target range.
[0096] As an optional example, the above device further includes:
[0097] A fourth determination module is used to determine the target page object according to the position of the list item of the target object and the home page data after displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, if the target object is in the home page data and if it is detected that the user clicks the positioning control;
[0098] The fourth display module is used to display the list item of each object of the target page object.
[0099] As an optional example, the above device further includes:
[0100] A fifth determination module, for, after displaying the list items of each object of the home page object according to the home page data of the data list obtained from the server, monitoring the sliding direction of the user when detecting that the user slides the object list, and determining the pre-display page object according to the sliding direction;
[0101] A monitoring module, used for monitoring the user's sliding speed when the pre-display page object is not cached;
[0102] A creation module, used for creating an empty list item for each object of the pre-display page object when it is detected that the sliding speed is greater than or equal to the target threshold, so that when the user slides to the pre-display page object, the empty list item for each object of the pre-display page object is displayed;
[0103] The second sending module is used to send a data request for the pre-display page object to the server when it is monitored that the sliding speed is less than the target threshold, so that the server returns the pre-display page data corresponding to the pre-display page object in the data list according to the object identifier of each object of the pre-display page object, caches the pre-display page data, and displays the list item of each object of the pre-display page object when the user slides to the pre-display page object, wherein the data request for the pre-display page object includes the object identifier of at least one object in the pre-display page object.
[0104] As an optional example, create a module including:
[0105] A creation unit, used to create an empty list item for each object of the pre-display page object;
[0106] The first rendering unit is used to perform interface rendering on the empty list items of each object of the pre-display page object according to the preset elements, so that when the user slides to the pre-display page object, the interface rendered empty list items of each object of the pre-display page object are displayed.
[0107] As an optional example, the second sending module includes:
[0108] A second rendering unit is used to perform interface rendering on an empty list item of each object of the pre-display page object according to the pre-display page data when the user slides to the pre-display page object, so as to obtain a list item of each object of the pre-display page object;
[0109] The display unit is used to display the list item of each object of the pre-display page object.
[0110] For other examples of this embodiment, please refer to the above examples and will not be repeated here.
[0111] Figure 3is a schematic diagram of an optional electronic device according to an embodiment of the present application, such as Figure 3 As shown, it includes a processor 302, a communication interface 304, a memory 306 and a communication bus 308, wherein the processor 302, the communication interface 304 and the memory 306 communicate with each other through the communication bus 308, wherein,
[0112] Memory 306, used for storing computer programs;
[0113] The processor 302 is used to implement the following steps when executing the computer program stored in the memory 306:
[0114] When entering the object list of the target object from the target object is detected, the list item of each object of the home page object is displayed according to the home page data of the data list obtained from the server, and the home page data is cached, wherein the object list is a list displayed on the client, and the object list displays the list item of each object in pages on the client, and the data list is a list stored on the server, and the data list stores the object data of each object in pages on the server;
[0115] When the target object is not in the home page object, create and display the positioning control of the target object;
[0116] If the target object is not in the home page data, a data request for the target object is sent to the server, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request for the target object includes the target object identifier;
[0117] In the case where it is detected that the user clicks on the positioning control, a list item of each object of the target page object is displayed according to the target page data, wherein the target object is in the target page object.
[0118] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The communication interface is used for communication between the above electronic device and other devices.
[0119] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0120] As an example, the memory 306 may include, but is not limited to, the first display module 202, the second display module 204, the first sending module 206, and the third display module 208 in the rapid positioning device in the above list. In addition, other module units in the rapid positioning device in the above list may also be included but are not limited to, which will not be repeated in this example.
[0121] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0122] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0123] It can be understood by those skilled in the art that Figure 3 The structure shown is for illustration only. The device for implementing the rapid positioning method in the above list may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 3 The structure of the electronic device is not limited. For example, the electronic device may also include Figure 3 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 3 Different configurations shown.
[0124] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0125] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program executes the steps in the method for quickly locating the above list when executed by a processor.
[0126] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0127] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0128] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0129] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0130] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for quickly locating a list, characterized in that: include: When it is detected that the target object enters the object list of the target object, the list item of each object of the home page object is displayed according to the home page data of the data list obtained from the server, and the home page data is cached, wherein the object list is a list displayed on the client, and the object list displays the list item of each object in pages on the client, and the data list is a list stored on the server, and the data list stores the object data of each object in pages on the server; In the case that the target object is not in the home page object, creating and displaying a positioning control for the target object; In the case where the target object is not in the home page data, sending a data request for the target object to the server, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request for the target object includes the target object identifier; In the case where it is detected that the user clicks the positioning control, a list item of each object of the target page object is displayed according to the target page data, wherein the target object is in the target page object.
2. The method according to claim 1, characterized in that The list item of each object of the home page object is displayed according to the home page data of the data list obtained from the server, including: Acquire home page data of the data list from the server, wherein the home page data includes a first number of objects; Acquire a second number of objects displayed on one page of the object list, wherein the first number is greater than or equal to the second number; The first second number of objects in the home page data are used as the home page objects and a list item of each object is displayed.
3. The method according to claim 1, characterized in that After displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes: If the target object identifier does not exist in the home page data, determining that the target object is not in the home page data and is not in the home page object; If the target object identifier exists in the home page data and the position of the list item of the target object is within the target range, determining that the target object is in the home page data and in the home page object; When the target object identifier exists in the home page data and the position of the list item of the target object is not within the target range, it is determined that the target object is in the home page data but not in the home page object.
4. The method according to claim 3, characterized in that After displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes: In a case where the target object is in the home page data and a user clicks on the positioning control is detected, determining the target page object according to the position of the list item of the target object and the home page data; Display a list item of each object of the target page object.
5. The method according to claim 1, characterized in that After displaying the list item of each object of the home page object according to the home page data of the data list obtained from the server, the method further includes: In the case of detecting that the user slides the object list, monitoring the sliding direction of the user, and determining the pre-display page object according to the sliding direction; In the case where the pre-display page object is not cached, monitoring the sliding speed of the user; When it is detected that the sliding speed is greater than or equal to the target threshold, creating an empty list item for each object of the pre-display page object, so that when the user slides to the pre-display page object, the empty list item for each object of the pre-display page object is displayed; When it is monitored that the sliding speed is less than the target threshold, a data request for the pre-display page object is sent to the server, so that the server returns the pre-display page data corresponding to the pre-display page object in the data list according to the object identifier of each object of the pre-display page object, caches the pre-display page data, and displays the list item of each object of the pre-display page object when the user slides to the pre-display page object, wherein the data request for the pre-display page object includes the object identifier of at least one object in the pre-display page object.
6. The method according to claim 5, characterized in that Creating an empty list item for each object of the preview page object includes: Create an empty list item for each object of the pre-display page object; According to the preset elements, interface rendering is performed on the empty list items of each object of the pre-display page object, so that when the user slides to the pre-display page object, the interface-rendered empty list items of each object of the pre-display page object are displayed.
7. The method according to claim 5, characterized in that When the user slides to the pre-display page object, displaying a list item of each object of the pre-display page object includes: When the user slides to the pre-display page object, performing interface rendering on an empty list item of each object of the pre-display page object according to the pre-display page data to obtain a list item of each object of the pre-display page object; A list item of each object of the pre-display page object is displayed.
8. A device for quickly locating a list, characterized in that: include: A first display module is used to display the list items of each object of the home page object according to the home page data of the data list obtained from the server when it is detected that the target object enters the object list of the target object, and cache the home page data, wherein the object list is a list displayed on the client, and the object list displays the list items of each object in pages on the client, and the data list is a list stored in the server, and the data list stores the object data of each object in pages on the server; A second display module, used for creating and displaying a positioning control of the target object when the target object is not in the home page object; A first sending module is used for sending a data request for the target object to the server when the target object is not in the home page data, so that the server returns the target page data corresponding to the target object in the data list according to the target object identifier of the target object, and caches the target page data, wherein the data request for the target object includes the target object identifier; The third display module is used to display the list item of each object of the target page object according to the target page data when it is detected that the user clicks the positioning control, wherein the target object is in the target page object.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.