List page processing method, device and computer equipment of vehicle control community

By obtaining and determining the enumeration values ​​and position information of the vehicle control community list page, the display method can be quickly determined, solving the problem of repetitive configuration code in list page development and improving processing efficiency.

CN120743273BActive Publication Date: 2026-07-31CHENGDU CELIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHENGDU CELIS TECH CO LTD
Filing Date
2025-08-18
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In the development of list pages for vehicle control communities, existing technologies require configuring a large amount of repetitive code for each list page, resulting in low processing efficiency.

Method used

By responding to operation commands to obtain list page data, determining enumeration values ​​and display methods, and combining them with location information to display data on the page, the display method can be quickly determined using enumeration values ​​and location information, avoiding duplicate configuration code.

Benefits of technology

It improves the processing efficiency of list pages, reduces the time and manpower required to configure code separately for each page, and enhances development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743273B_ABST
    Figure CN120743273B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, and computer device for processing list pages in a vehicle control community. The method includes: responding to a first operation instruction of a primary list page in the vehicle control community, acquiring list page data of the primary list page; determining an enumeration value of the list page data, and determining a display method for the list page data based on the enumeration value; acquiring location information of the list page data, and displaying the list page data in the primary list page based on the location information and the display method. Using this method can improve the processing efficiency of list pages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, and computer device for processing list pages in a vehicle control community. Background Technology

[0002] In the automotive industry, to ensure a good user experience, it is crucial to develop efficient list pages for car control communities.

[0003] In traditional technology, when developing list pages for vehicle control communities, it is generally necessary to configure corresponding code for each list page. However, since there are many largely overlapping parts among the list pages, configuring corresponding code for each list page can easily consume a lot of time and manpower, resulting in low processing efficiency for list pages. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, and computer device for processing list pages in a vehicle control community that can improve the processing efficiency of list pages, addressing the aforementioned technical problems.

[0005] Firstly, this application provides a method for processing list pages in a vehicle control community, including:

[0006] In response to the first operation command of the vehicle control community's primary list page, obtain the list page data of the primary list page;

[0007] Determine the enumeration values ​​of the list page data, and determine the display method of the list page data based on the enumeration values;

[0008] Obtain the location information of the list page data, and display the list page data in the first-level list page according to the location information and the display method.

[0009] In one embodiment, determining the enumeration value of the list page data includes:

[0010] Identify the current data type of the list page data;

[0011] The correspondence between data types and enumeration values ​​is queried to obtain the enumeration value corresponding to the current data type, which is then used as the enumeration value for the list page data.

[0012] In one embodiment, after obtaining the location information of the list page data and displaying the list page data in the first-level list page according to the location information and the display method, the method further includes:

[0013] In response to a second operation instruction for the second-level list page corresponding to the first-level list page, the page refresh method corresponding to the first-level list page is determined according to the operation instruction type corresponding to the second operation instruction; the second-level list page is used to represent the list page entered after clicking any cell on the first-level list page;

[0014] The primary list page is refreshed according to the page refresh method described above.

[0015] In one embodiment, determining the refresh method corresponding to the primary list page based on the operation instruction type corresponding to the second operation instruction includes:

[0016] When the operation instruction type is a preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be a global refresh;

[0017] or,

[0018] If the operation instruction type is not the preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be partial refresh.

[0019] In one embodiment, the list page data further includes video data;

[0020] The method further includes:

[0021] Obtain the current lifecycle status information of the video data;

[0022] Query the correspondence between lifecycle status information and video processing instructions to obtain the video processing instructions corresponding to the current lifecycle status information;

[0023] Based on the video processing instructions corresponding to the current lifecycle state information, the current video processing instructions for the video data are obtained;

[0024] Perform corresponding video processing on the video data according to the current video processing instructions.

[0025] In one embodiment, the list page data further includes pagination data;

[0026] The method further includes:

[0027] In response to a refresh command for the paginated data, the amount of loaded data and the requested data per page corresponding to the paginated data are obtained;

[0028] Based on the amount of data already loaded and the data requested per page, the target page number corresponding to the pagination data is determined, and the target pagination data corresponding to the target page number is loaded.

[0029] In one embodiment, the list page data further includes image data;

[0030] The method further includes:

[0031] In response to an upload request for the image data, the number of images corresponding to the image data is obtained;

[0032] When there are multiple images, the upload request for each image data is processed in parallel.

[0033] Secondly, this application also provides a list page processing device for a vehicle control community, including:

[0034] The data acquisition module is used to respond to the first operation command of the first-level list page of the vehicle control community and acquire the list page data of the first-level list page;

[0035] The method determination module is used to determine the enumeration value of the list page data and determine the display method of the list page data based on the enumeration value.

[0036] The data display module is used to obtain the location information of the list page data, and display the list page data in the first-level list page according to the location information and the display method.

[0037] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0038] In response to the first operation command of the vehicle control community's primary list page, obtain the list page data of the primary list page;

[0039] Determine the enumeration values ​​of the list page data, and determine the display method of the list page data based on the enumeration values;

[0040] Obtain the location information of the list page data, and display the list page data in the first-level list page according to the location information and the display method.

[0041] The aforementioned method, apparatus, and computer equipment for processing list pages in the vehicle control community first respond to the first operation command of the primary list page of the vehicle control community, obtain the list page data of the primary list page, then determine the enumeration value of the list page data, and based on the enumeration value, determine the display method of the list page data. Next, it obtains the location information of the list page data and displays the list page data in the primary list page according to the location information and the display method. In this way, during the development of the list pages of the vehicle control community, for each list page, the corresponding display method can be quickly determined based on the enumeration value of the list page data. Combined with the location information of the list page data, the list page data can be efficiently displayed in the vehicle control community list page, which helps improve the processing efficiency of the list pages. This avoids the drawback of configuring code separately for each vehicle control community list page, which easily consumes a lot of time and manpower, resulting in low processing efficiency. This further improves the processing efficiency of the list pages. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating a method for processing the list page of a vehicle control community in one embodiment;

[0044] Figure 2 This is a flowchart illustrating the method for processing the list page of the vehicle control community in another embodiment;

[0045] Figure 3 This is a schematic diagram of a vehicle control community application page in one embodiment;

[0046] Figure 4 This is a schematic diagram of the vehicle control community application page in another embodiment;

[0047] Figure 5 This is a schematic diagram of the vehicle control community application page in yet another embodiment;

[0048] Figure 6 This is a structural block diagram of a list page processing device for a vehicle control community in one embodiment;

[0049] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0052] In one exemplary embodiment, such as Figure 1 As shown, a method for processing a list page in a vehicle control community is provided. This embodiment illustrates the application of this method to a server. It is understood that this method can also be applied to a terminal, or to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, and tablets; the server can be a standalone server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:

[0053] Step S101: In response to the first operation command of the vehicle control community's primary list page, obtain the list page data of the primary list page.

[0054] Among them, "vehicle control community" refers to an online community platform used for vehicle control and management.

[0055] The first-level list page refers to the main-level list page in the vehicle control community.

[0056] The first operation instruction refers to the operation instruction for the first-level list page, such as the page loading instruction, refresh instruction, etc.

[0057] Among them, list page data refers to the specific data that needs to be displayed in the first-level list page.

[0058] For example, the server responds to the first operation command on the primary list page of the vehicle control community, performs an integrity check on the first operation command, and obtains the integrity check result corresponding to the first operation command; if the integrity check result passes, the server obtains the video data, pagination data, and image data of the primary list page; then, the server uses the video data, pagination data, and image data of the primary list page as the list page data of the primary list page.

[0059] Step S102: Determine the enumeration values ​​of the list page data, and determine the display method of the list page data based on the enumeration values.

[0060] The enumeration values ​​are used to represent predefined constants corresponding to the data types of the list page data.

[0061] The display method is used to represent the data rendering rules for the list page data.

[0062] For example, the server determines the enumeration value of the list page data based on the current data type of the list page data; then, the server queries the correspondence between the enumeration value and the display method based on the enumeration value (for example, when the enumeration value is 1, the corresponding display method is a square thumbnail; when the enumeration value is 2, the corresponding display method is a rectangular label), and obtains the display method of the list page data.

[0063] Step S103: Obtain the location information of the list page data, and display the list page data in the first-level list page according to the location information and display method.

[0064] The location information indicates the index position of the data on the list page. In practical scenarios, location information refers to the row number of the cell containing the data on the list page within the corresponding list.

[0065] For example, the server determines the cell containing the list page data and the list corresponding to the list page data; then, the server uses the row number of that cell in the list as the position information of the list page data; then, the server displays the list page data in the cell corresponding to the position information in the first-level list page according to the display method of the list page data.

[0066] In the above-mentioned method for processing list pages in the vehicle control community, the system first responds to the first operation command of the primary list page of the vehicle control community, obtains the list page data of the primary list page, then determines the enumeration value of the list page data, and determines the display method of the list page data based on the enumeration value. Next, it obtains the location information of the list page data, and displays the list page data in the primary list page according to the location information and the display method. In this way, during the development of the list pages of the vehicle control community, for each list page, the corresponding display method can be quickly determined based on the enumeration value of the list page data. Combined with the location information of the list page data, the list page data can be efficiently displayed in the vehicle control community list page, which helps improve the processing efficiency of the list pages. This avoids the drawback of configuring code separately for each vehicle control community list page, which easily consumes a lot of time and manpower, resulting in low processing efficiency. Therefore, it further improves the processing efficiency of the list pages.

[0067] In an exemplary embodiment, step S102 above, determining the enumeration value of the list page data, specifically includes the following: identifying the current data type of the list page data; querying the correspondence between the data type and the enumeration value to obtain the enumeration value corresponding to the current data type, which is used as the enumeration value of the list page data.

[0068] The current data type is used to represent the business scenario information corresponding to the data on the list page.

[0069] The correspondence between data types and enumeration values ​​represents the mapping relationship between them. For example, if the data type is animated image data or user avatar data, the corresponding enumeration value is 1; if the data type is article category tag data or topic tag data, the corresponding enumeration value is 2.

[0070] For example, the server performs feature extraction on the list page data to obtain the feature vector of the list page data. The feature vector is then input into the trained data type prediction model to obtain the prediction probability of the list page data under each preset data type. From each preset data type, the preset data type with the highest prediction probability is selected as the current data type of the list page data. Next, the server queries the correspondence between data types and enumeration values ​​to obtain the enumeration value corresponding to the current data type, which is then used as the enumeration value of the list page data.

[0071] In this embodiment, by automatically identifying the current data type of the list page data and querying the corresponding enumeration value based on the predefined mapping relationship, the enumeration value of the list page data can be determined more accurately, which helps to improve the accuracy of the determination of the enumeration value of the list page data and provides a reliable foundation for subsequent data processing.

[0072] In an exemplary embodiment, step S103, after obtaining the location information of the list page data and displaying the list page data in the first-level list page according to the location information and display method, specifically includes the following: in response to a second operation instruction for the second-level list page corresponding to the first-level list page, determining the page refresh method corresponding to the first-level list page according to the operation instruction type corresponding to the second operation instruction; the second-level list page is used to represent the list page entered after clicking any cell on the first-level list page; and performing corresponding refresh processing on the first-level list page according to the page refresh method.

[0073] The second operation command refers to the operation command for the second-level list page, such as the data deletion command, like command, follow command, browse command, etc.

[0074] The operation instruction type is used to indicate the category corresponding to the second operation instruction.

[0075] The page refresh method is used to indicate the data update strategy for the first-level list page, including global refresh and partial refresh.

[0076] In this context, a cell refers to the smallest unit of a first-level list page.

[0077] For example, in response to a second operation instruction for a second-level list page corresponding to a first-level list page, the server performs feature extraction processing on the second operation instruction to obtain a feature vector of the second operation instruction. This feature vector is then input into a trained operation instruction type prediction model to obtain the predicted probability of the second operation instruction under each preset operation instruction type. The server then selects the preset operation instruction type with the highest predicted probability from among these preset operation instruction types as the corresponding operation instruction type for the second operation instruction. Next, based on the operation instruction type corresponding to the second operation instruction, the server queries the correspondence between the operation instruction type and the page refresh method to obtain the page refresh method for the operation instruction type corresponding to the second operation instruction, which is then used as the page refresh method for the first-level list page. Finally, the server determines the refresh range corresponding to the first-level list page according to the page refresh method and performs the corresponding refresh processing on the first-level list page according to this refresh range.

[0078] In this embodiment, the refresh method of the primary list page is dynamically matched based on the operation command type of the secondary list page, thereby realizing a precise page update strategy. This significantly reduces the network request frequency and front-end rendering overhead while ensuring the real-time consistency of the primary list data, and improves the page response speed and the smoothness of user interaction.

[0079] In an exemplary embodiment, the refresh method corresponding to the first-level list page is determined according to the operation instruction type corresponding to the second operation instruction. Specifically, this includes the following: if the operation instruction type is a preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be a global refresh; or, if the operation instruction type is not a preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be a partial refresh.

[0080] The preset operation command type refers to the pre-defined operation command type, such as a data deletion command. It should be noted that the preset operation command type depends on the situation.

[0081] Global refresh refers to a refresh method that performs a full update on the first-level list page.

[0082] Partial refresh refers to a refresh method that updates only the affected local area of ​​the primary list page.

[0083] For example, the server determines the operation instruction type according to a preset operation instruction type and obtains a determination result; if the determination result indicates that the operation instruction type is a preset operation instruction type, the server determines that the refresh method corresponding to the first-level list page is a global refresh; if the determination result indicates that the operation instruction type is not a preset operation instruction type, the server determines that the refresh method corresponding to the first-level list page is a partial refresh.

[0084] In this embodiment, by intelligently associating the operation command type with the refresh range, precise control of page updates is achieved, which not only ensures the timeliness of data updates but also improves page response speed, effectively solving the contradictions of wasted resources in full refresh and insufficient coverage in partial refresh in traditional refresh mechanisms.

[0085] In one exemplary embodiment, the list page data also includes video data.

[0086] The method includes the following steps: obtaining the current lifecycle state information of the video data; querying the correspondence between the lifecycle state information and the video processing instructions to obtain the video processing instructions corresponding to the current lifecycle state information; obtaining the current video processing instructions for the video data based on the video processing instructions corresponding to the current lifecycle state information; and performing corresponding video processing on the video data according to the current video processing instructions.

[0087] Video data refers to data stored in video format.

[0088] The current lifecycle status information is used to indicate the stage of video data in the platform's processing flow, including page visible, page about to disappear, and page already disappeared.

[0089] The correspondence between lifecycle state information and video processing instructions represents the mapping relationship between them. For example, when the lifecycle state information is "page visible," the corresponding video processing instruction is "play"; when the lifecycle state information is "page about to disappear," the corresponding video processing instruction is "pause"; and when the lifecycle state information is "page has disappeared," the corresponding video processing instruction is "release resources."

[0090] Among them, the current video processing instruction refers to the video processing instruction that matches the current lifecycle state information.

[0091] For example, the server determines the current lifecycle state information based on the intersection state of the video data and the viewport; then, the server queries the correspondence between the lifecycle state information and the video processing instructions to obtain the video processing instructions corresponding to the current lifecycle state information; then, the server uses the video processing instructions corresponding to the current lifecycle state information as the current video processing instructions for the video data; then, the server performs corresponding video processing on the video data according to the current video processing instructions.

[0092] In this embodiment, by acquiring the lifecycle status information of video data and accurately matching video processing instructions with predefined mapping relationships, the automation and intelligence of the video processing process are realized, effectively avoiding manual intervention and processing oversights, and significantly improving the flexibility and scalability of the video processing system.

[0093] In one exemplary embodiment, the list page data also includes pagination data.

[0094] The method includes the following: in response to a refresh command for paginated data, obtaining the amount of loaded data and the requested data per page corresponding to the paginated data; determining the target page number corresponding to the paginated data based on the amount of loaded data and the requested data per page, and loading the target paginated data corresponding to the target page number.

[0095] Paginated data refers to data that is organized into multiple pages and displayed in a fixed number of columns.

[0096] The refresh command refers to the operation command used to update pagination data.

[0097] The amount of data already loaded refers to the total amount of paginated data that has been retrieved from the server and displayed.

[0098] Here, "data requested per page" refers to the amount of data specified for a single page each time pagination data is requested.

[0099] The target page number refers to the specific page number that needs to be loaded.

[0100] The target pagination data refers to the specific data content corresponding to the target page number.

[0101] For example, in response to a refresh command for paginated data, the server obtains the amount of data already loaded and the requested data for each page corresponding to the paginated data; then, the server inputs the amount of data already loaded and the requested data for each page into the trained page number prediction model to obtain the page number corresponding to the amount of data already loaded and the requested data for each page, which is used as the target page number corresponding to the paginated data; then, the server loads the target paginated data corresponding to the target page number.

[0102] In this embodiment, by responding to the refresh command and accurately calculating the target page number by combining the amount of loaded data and the data requested for each page, efficient updating and intelligent loading of paginated data are achieved. This avoids repeatedly loading the acquired data, reduces the amount of data transmission and system resource consumption, and helps improve the loading efficiency of paginated data.

[0103] In one exemplary embodiment, the list page data also includes image data.

[0104] Therefore, the method includes the following: in response to an upload request for image data, obtaining the number of images corresponding to the image data; and when there are multiple images, processing each image data upload request in parallel.

[0105] Image data refers to image information stored in digital form.

[0106] Among them, the upload request refers to the operation request that triggers the image upload.

[0107] The number of images refers to the number of images selected in the upload request.

[0108] For example, in response to an upload request for image data, the server obtains the number of images corresponding to the image data and determines the number of images; if there are multiple images, the upload request for each image data is processed in parallel; if there is only one image, the upload request for each image data is processed serially.

[0109] In this embodiment, by obtaining the number of images and dynamically adjusting the upload strategy accordingly, an optimized balance between image upload efficiency and resource utilization is achieved. When there are multiple images, the parallel processing mechanism can utilize multi-threaded or multi-core computing power to transmit multiple images simultaneously, significantly shortening the overall upload time and improving image upload efficiency.

[0110] In one exemplary embodiment, such as Figure 2 As shown, another method for processing list pages in a vehicle control community is provided. Taking the application of this method to a server as an example, the steps include:

[0111] Step S201: In response to the first operation command of the vehicle control community's primary list page, obtain the list page data of the primary list page.

[0112] Step S202: Identify the current data type of the list page data.

[0113] Step S203: Query the correspondence between data types and enumeration values ​​to obtain the enumeration value corresponding to the current data type, which is then used as the enumeration value for the list page data.

[0114] Step S204: Determine the display method of the list page data based on the enumeration values.

[0115] Step S205: Obtain the location information of the list page data, and display the list page data in the first-level list page according to the location information and display method.

[0116] Step S206: In response to the second operation instruction for the second-level list page corresponding to the first-level list page, determine the page refresh method corresponding to the first-level list page according to the operation instruction type corresponding to the second operation instruction; the second-level list page is used to represent the list page entered after clicking any cell on the first-level list page.

[0117] Step S207: Refresh the first-level list page according to the page refresh method.

[0118] In the above-mentioned method for processing list pages in the vehicle control community, during the development of the list pages, the corresponding display method can be quickly determined based on the enumerated values ​​of the list page data for each list page. Combined with the location information of the list page data, the list page data can be efficiently displayed in the list page of the vehicle control community. This helps to improve the processing efficiency of the list page and avoids the drawback of configuring code separately for each list page, which easily consumes a lot of time and manpower and leads to low processing efficiency. This further improves the processing efficiency of the list page.

[0119] In an exemplary embodiment, to more clearly illustrate the list page processing method for the vehicle control community provided in this application, the following specific embodiment will be used to describe the list page processing method for the vehicle control community. In one embodiment, this application also provides a vehicle control community architecture design method based on a reactive programming framework. Specifically, it includes the following:

[0120] 1. Data Enumeration:

[0121] Data summarization is a necessary step, simplifying complex data and unifying it for use in general-purpose table views. Specifically:

[0122] Define a data enumeration, where each enumeration value represents a business function, and the enumeration's additional value includes the data entity corresponding to that business function.

[0123] In an app (application), a business function can be understood as a page, such as... Figure 3 and Figure 4 As shown, the data formats on these two pages are clearly different.

[0124] 2. Business cell:

[0125] Each business is different, of course, and all the details are completely encapsulated in the business cell. The general tableview described later will systematically use these cells.

[0126] 3. General tableview:

[0127] No matter how varied the page may be, this universal tableview can be used as long as it is a list. Its attributes are shown below.

[0128] (1) Attributes, i.e., arrays of data entities:

[0129] List data is stored as an attribute of type "data enumeration" as described above.

[0130] This ingenious design of "data enumeration" solves the problem of inconsistent data required in various business scenarios, and does not use complex general generic design.

[0131] (2) General tableview property settings:

[0132] The numberOfRowsInSection property (number of rows in each section of the table view) returns the count of the data.

[0133] The cellForRowAt (row cell creation method) property includes retrieving the data from the corresponding row number and then performing a switch statement on the data.

[0134] For enumeration switches, it is guaranteed that all enumeration values ​​will be processed without omission. Therefore, once a new business function (page) is added, you only need to add a new value to the "data enumeration", and the compiler will provide hints in all the corresponding places, without missing any details.

[0135] In each case (a keyword used in conjunction with conditional branching statements), the aforementioned business cell is returned. This is also to process different business data with specific business logic. Here, the combination of cell display and data is guaranteed, and the complex and difficult-to-understand inheritance mechanism is abandoned. The logic is sorted out in the most mobile and concise way, which is convenient for later maintenance.

[0136] The `didSelectRowAt` property (click event of a cell in the table view) still follows the `cellforrowat` method (row cell configuration method), retrieving `typeData` (data type information). However, a switch statement is no longer used because not every row of cells will have a click event. Therefore, an `if case` statement (pattern matching conditional statement) is used to specify the required click events.

[0137] (3) Necessary settings:

[0138] During initialization, the corresponding viewContainer (view container) must be passed in, which is the necessary view controller (view controller).

[0139] In addition, initialization requires necessary settings, such as: adding observers for business requirements, registering business cells, setting row height, and setting the proxy to self (self-reference).

[0140] In response to the characteristics of community services, when users perform certain actions on the secondary page, such as liking, following, browsing, commenting, or participating in activities, the primary list page should change accordingly. However, this change cannot be achieved by simply refreshing the list, because once refreshed, the position where the user was on the outer list page will no longer exist, which will greatly affect the user experience. Therefore, data updates must be performed locally.

[0141] Therefore, an observer is created in the general table view. When an operation is performed on the secondary page, a notification is sent, and the table view receives the notification and processes it accordingly.

[0142] Search for individual data returned by the second-level page in the datas folder, extract it, and then selectively perform a global refresh or a partial refresh, depending on the specific situation.

[0143] Global refresh uses reloadData (reload data), while partial refresh uses reconfigVisiableCell (reconfigure visible cells).

[0144] The `reconfigVisiableCell` is involved in this embodiment. Because a player is embedded, partial refresh needs to take the player into account. If a video is playing, only the visible cells are refreshed, instead of a full refresh.

[0145] 4. The media player is an additional feature, but it is necessary for the car control community, such as... Figure 5 As shown.

[0146] (1) The general tableview attribute player:

[0147] Add a player attribute to a general tableview. Although it may appear that many cells are playing videos when the user swipes up or down, there is actually only one player, which can be a custom player or a third-party framework.

[0148] This property uses the sk_setting (configuration) function to perform many initialization settings for the player. This function is a method for customizing the SKVideoPlayer (a custom video player library) type.

[0149] (2) Custom SKVideoPlayer: SKVideoPlayer inherits from SJVideoPlayer (a custom video player library).

[0150] (3) Play / Stop Button. First, design a button and specify its tag; second, in the player's "playback control change callback", i.e., in the timeControlStatusDidChangeExeBlock (time control status callback) callback block, determine whether the player is playing. If it is playing, change its image accordingly. After each setting, refresh the layer where the button is located; third, the button's click event sk_playOrPause (play / pause toggle) pauses the player if it is playing, and plays it if it is not playing; fourth, add the button to the appropriate layer.

[0151] When the control or third party does not provide any external API (Application Programming Interface) to tell itself whether to hide or show, the observer technique is used to listen to the alpha (transparency) property of its layer. If alpha < 0.1, it means that the layer is hidden; otherwise, it means that the layer is shown.

[0152] Therefore, when the layer is hidden, remove this button; when the layer is displayed, add this button; regardless of whether it is removed or added, after the layer is modified, call its reload method to refresh the layer display.

[0153] By monitoring when the UIView's layoutSubview is called, the block is executed only after this function occurs. The block sets the rounded corners.

[0154] (4) Mute Button. First, design a button; second, in the player's "callback for changing the player's mute state," that is, in the mutedDidChangeExeBlock (mute state callback) callback block, determine whether the player itself is in a mute state. If it is in a mute state, change its corresponding image. After each setting, refresh the layer where the button is located; third, the button's click event sk_muteOrNot (mute toggle method) can invert the player's mute state; fourth, add the button to the appropriate layer.

[0155] (5) Setting functions. These include mute playback, disabling volume adjustment, disabling brightness adjustment, setting the video fill mode to proportional scaling and not exceeding the edge, disallowing rotation, not supporting picture-in-picture, not displaying the "more item" (three dots) in the Top bar, disallowing swiping, hiding the back button in portrait mode, hiding the top view (setting its color to transparent), hiding the bottom view (setting its color to transparent), removing the existing playback button, adding the aforementioned playback button, adding the aforementioned mute button, and monitoring volume changes.

[0156] (6) Lifecycle association. The player mentioned above needs to be processed accordingly at the times of viewDidAppear (page is visible), viewWillDisappear (page is about to disappear), and viewDidDisappear (page has disappeared) in the ViewController to ensure its normal use. Therefore, the relationship between the two is linked through tableview.

[0157] (7) Override reloadData (data refresh). As the only refresh function of the tableview, reloadData needs to be handled because it involves video playback on the cell. Specifically, this includes: first, closing the player; second, calling the player's sj_enableAutoplay (autoplay switch) with the config (configuration object) as the input parameter; allowing the player to choose to play automatically at the appropriate time.

[0158] Here, `config` means providing a container called `videoContainer` (video container view), within which the player plays content, and specifying the player's proxy as itself. With these settings, the player embedding function can be completed.

[0159] 5. Corresponding ViewContainer:

[0160] As mentioned above, the ViewController that uses this list tableview is passed to the tableview as a property of the tableview during its initialization.

[0161] (1) Set list properties: Set the general tableview as a member property of the ViewController, add it to the appropriate position of the view according to the design, and set the size.

[0162] (2) Regular data: Request interface data at the appropriate time, and after the request is completed, set the datas property of the tableview and refresh the tableview.

[0163] (3) Paginated data: If it is paginated data processing, continue to request interface data in the normal way. After completion, set the datas property of the tableview to concatenate, such as append (add a single element at the end), insert (add an element at a specified position), etc.

[0164] The pagination calculation method is as follows: If we follow the conventional method of recording page number index, it will be too cumbersome and prone to errors, because each request will add 1 or subtract 1, and we will also have to consider the case of request failure and push back. This solution provides a convenient way to calculate based on the actual number of data.

[0165] (4) Multi-interface parallelism:

[0166] First, the tableview header and list have different data sources. Sometimes the header requires one API, while the tableview list uses another; this is quite common. If we follow the conventional approach of making separate requests and then reloading the data after each request returns, it's prone to crashing because this differs from a regular partial refresh. Both the header and list belong to the tableview and shouldn't be refreshed so frequently and indiscriminately. Ideally, if one of the two APIs fails, the entire page should be designed as an error page. However, if we handle the two APIs separately, an error in one requires monitoring the other, and the processing needs to be done twice, which is inconvenient. Furthermore, performance is poor because since the two APIs affect each other, if one fails, the request for the other should be terminated before it's even sent; this is difficult to achieve with conventional code.

[0167] This solution is also cleverly designed based on a reactive programming framework to avoid this problem and is applicable to multiple (not just two) interdependent interfaces.

[0168] The successful callback utilizes the zip (data merging) function to combine the header and list API requests. The order in the request determines the final order; therefore, the header data comes first, followed by the list attributes.

[0169] The failure callback is designed to handle errors. Since the header and list data can be considered a complete business logic, if one fails, the entire process fails. Upon receiving any error, all other pending API requests will be terminated.

[0170] (5) Multiple Image Uploads: The community frequently requires multiple image uploads. For each uploaded image, `$0.uploadSingle.asObservable` (converts elements to operators) is used to transform them into a single request. `uploadSingle` (the element of a single upload task) refers to an extension written in the image data in this solution, specifically a network request to upload the image to the server. By using `Observable.zip(uploadSingles).asSingle` (executes multiple upload tasks in parallel), multiple network requests can be merged, avoiding the need to cancel various complex operations on other images if a single image upload fails. This significantly improves both performance and quality.

[0171] In the above embodiments, during the development of the vehicle control community's list pages, the corresponding display method can be quickly determined based on the enumerated values ​​of the list page data for each vehicle control community list page. Combined with the location information of the list page data, the list page data can be efficiently displayed on the vehicle control community list pages, improving the processing efficiency of the list pages. This avoids the drawback of configuring code separately for each vehicle control community list page, which easily consumes a lot of time and manpower, resulting in low processing efficiency. Furthermore, it utilizes the convenient concept of reactive programming frameworks and applies them to the vehicle control community, creating a multi-data compatible architecture that can adapt to any data scenario, and a multi-UI (User Interface) compatible architecture that can adapt to any layout scenario.

[0172] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0173] Based on the same inventive concept, this application also provides a vehicle control community list page processing device for implementing the above-described vehicle control community list page processing method. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of the one or more vehicle control community list page processing device embodiments provided below can be found in the limitations of the vehicle control community list page processing method described above, and will not be repeated here.

[0174] In one exemplary embodiment, such as Figure 6 As shown, a list page processing device for a vehicle control community is provided, including: a data acquisition module 601, a method determination module 602, and a data display module 603, wherein:

[0175] The data acquisition module 601 is used to respond to the first operation command of the first-level list page of the vehicle control community and acquire the list page data of the first-level list page.

[0176] The method determination module 602 is used to determine the enumeration value of the list page data and, based on the enumeration value, determine the display method of the list page data.

[0177] The data display module 603 is used to obtain the location information of the list page data and display the list page data in the first-level list page according to the location information and display method.

[0178] In an exemplary embodiment, the method determination module 602 is further configured to identify the current data type of the list page data; query the correspondence between the data type and the enumeration value to obtain the enumeration value corresponding to the current data type, and use it as the enumeration value of the list page data.

[0179] In an exemplary embodiment, the list page processing device of the vehicle control community further includes a page refresh module, which is used to respond to a second operation instruction for a second-level list page corresponding to a first-level list page, and determine the page refresh method corresponding to the first-level list page according to the operation instruction type corresponding to the second operation instruction; the second-level list page is used to represent the list page entered after clicking any cell on the first-level list page; and the first-level list page is refreshed according to the page refresh method.

[0180] In an exemplary embodiment, the page refresh module is further configured to determine that the refresh method corresponding to the first-level list page is a global refresh when the operation instruction type is a preset operation instruction type; or, when the operation instruction type is not a preset operation instruction type, determine that the refresh method corresponding to the first-level list page is a partial refresh.

[0181] In an exemplary embodiment, the list page processing device of the vehicle control community further includes a video processing module, which is used to obtain the current lifecycle status information of video data; query the correspondence between the lifecycle status information and video processing instructions to obtain the video processing instructions corresponding to the current lifecycle status information; obtain the current video processing instructions for the video data based on the video processing instructions corresponding to the current lifecycle status information; and perform corresponding video processing on the video data according to the current video processing instructions.

[0182] In an exemplary embodiment, the list page processing device of the vehicle control community further includes a data loading module, which is used to obtain the amount of loaded data and the requested data for each page in response to a refresh command for paginated data; determine the target page number corresponding to the paginated data based on the amount of loaded data and the requested data for each page; and load the target paginated data corresponding to the target page number.

[0183] In an exemplary embodiment, the list page processing device of the vehicle control community further includes an image processing module, which is used to obtain the number of images corresponding to the image data in response to the upload request for image data; and to process the upload request for each image data in parallel when there are multiple images.

[0184] The modules in the list page processing device of the aforementioned vehicle control community can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0185] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores list page data, enumeration values, etc. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a list page processing method for a vehicle control community.

[0186] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0187] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0188] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0189] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0190] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for processing a list page of a car-controlled community, characterized in that, The method includes: In response to the first operation command of the vehicle control community's primary list page, the list page data of the primary list page is obtained; the list page data also includes video data; Determine the enumeration values ​​of the list page data, and based on the enumeration values, query the correspondence between the enumeration values ​​and the display methods to obtain the display method of the list page data; the display method is used to represent the data rendering rules of the list page data. Determine the cell containing the list page data in the first-level list page, and determine the list corresponding to the list page data. Use the row number of the cell in the list as the position information of the list page data. Display the list page data in the cell according to the display method. The method further includes: Based on the intersection state between the video data and the viewport, the current lifecycle status information of the video data is determined; the current lifecycle status information is used to indicate the status identifier of the stage of the video data in the platform processing flow. Query the correspondence between lifecycle status information and video processing instructions to obtain the video processing instructions corresponding to the current lifecycle status information; Based on the video processing instructions corresponding to the current lifecycle state information, the current video processing instructions for the video data are obtained; Perform corresponding video processing on the video data according to the current video processing instructions.

2. The method of claim 1, wherein, The process of determining the enumeration values ​​of the list page data includes: Identify the current data type of the list page data; The correspondence between data types and enumeration values ​​is queried to obtain the enumeration value corresponding to the current data type, which is then used as the enumeration value for the list page data.

3. The method according to claim 1, characterized in that, After determining the cell containing the list page data in the first-level list page and the list corresponding to the list page data, and using the row number of the cell in the list as the position information of the list page data, and displaying the list page data in the cell according to the display method, the method further includes: In response to a second operation instruction for the second-level list page corresponding to the first-level list page, the page refresh method corresponding to the first-level list page is determined according to the operation instruction type corresponding to the second operation instruction; the second-level list page is used to represent the list page entered after clicking any cell on the first-level list page; The primary list page is refreshed according to the page refresh method described above.

4. The method according to claim 3, characterized in that, The step of determining the refresh method corresponding to the first-level list page based on the operation instruction type corresponding to the second operation instruction includes: When the operation instruction type is a preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be a global refresh; or, If the operation instruction type is not the preset operation instruction type, the refresh method corresponding to the first-level list page is determined to be partial refresh.

5. The method according to claim 1, characterized in that, The list page data also includes pagination data; The method further includes: In response to a refresh command for the paginated data, the amount of loaded data and the requested data per page corresponding to the paginated data are obtained; Based on the amount of data already loaded and the data requested per page, the target page number corresponding to the pagination data is determined, and the target pagination data corresponding to the target page number is loaded.

6. The method according to claim 1, characterized in that, The list page data also includes image data; The method further includes: In response to an upload request for the image data, the number of images corresponding to the image data is obtained; When there are multiple images, the upload request for each image data is processed in parallel.

7. A list page processing device for a vehicle control community, characterized in that, The device includes: The data acquisition module is used to respond to the first operation command of the vehicle control community's primary list page and acquire the list page data of the primary list page; the list page data also includes video data; The mode determination module is used to determine the enumeration value of the list page data, and query the correspondence between the enumeration value and the display mode based on the enumeration value to obtain the display mode of the list page data; the display mode is used to represent the data rendering rules of the list page data. The data display module is used to determine the cell where the list page data is located in the first-level list page, and to determine the list corresponding to the list page data. The row value of the cell in the list is used as the position information of the list page data. According to the display method, the list page data is displayed in the cell. The device further includes a video processing module, used to determine the current lifecycle status information of the video data based on the intersection state of the video data and the viewport; the current lifecycle status information is used to represent the status identifier of the stage of the video data in the platform processing flow; query the correspondence between the lifecycle status information and video processing instructions to obtain the video processing instructions corresponding to the current lifecycle status information; obtain the current video processing instructions for the video data based on the video processing instructions corresponding to the current lifecycle status information; and perform corresponding video processing on the video data according to the current video processing instructions.

8. The apparatus according to claim 7, characterized in that, The method determination module is further used to identify the current data type of the list page data; query the correspondence between the data type and the enumeration value to obtain the enumeration value corresponding to the current data type, and use it as the enumeration value of the list page data.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.