Configuration method and device of vehicle remote temperature control front-end page element
By matching the temperature control configuration list and obtaining the page element ID based on the vehicle information when detecting the initial configuration status at the vehicle control terminal, the problems of code redundancy and low iteration efficiency in the existing technology are solved, and the rapid configuration and efficient updating of the vehicle temperature control page are realized.
Patent Information
- Application Number
- CN202611305498.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-24
AI Technical Summary
The existing vehicle control app's temperature control page front-end rendering solution suffers from severe code redundancy, high development complexity, and an inability to quickly adapt to changes in vehicle configuration, resulting in low iteration efficiency and a poor user experience.
When the vehicle control terminal detects the initial configuration status, it matches the temperature control configuration list based on the vehicle information, obtains the page element ID using a pre-set function library, and dynamically displays the corresponding elements, reducing hard-coded judgments and realizing the automation and dynamic updating of the configuration.
It improves the iteration efficiency and user experience of vehicle control terminals, simplifies the configuration update process, adapts to rapid iteration of vehicle configuration changes, and reduces code maintenance costs.
Smart Images

Figure CN123157255A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle remote control technology, and in particular to a method and apparatus for configuring front-end page elements for vehicle remote temperature control. Background Technology
[0002] The existing vehicle control app's temperature control page front-end rendering solution mainly uses hard-coded judgment to control the display and hiding of page elements. That is, the judgment logic for different vehicle models and configuration levels is pre-written in the front-end code. By recognizing the vehicle model and configuration parameters, the display and hiding of each functional element on the temperature control page are controlled one by one to adapt to the temperature control function display requirements of different vehicles.
[0003] Existing technologies require writing a large amount of similar page display / hiding control code repeatedly for different vehicle models and configuration levels, which easily leads to redundant front-end code and significantly increases the workload and complexity of front-end development. At the same time, a large amount of homogeneous conditional code reduces the overall readability and maintainability of the code, and is prone to accidental modification or deletion when configuration logic is changed. Furthermore, existing technologies solidify vehicle model and temperature control configuration logic in the front-end code. Once the vehicle's temperature control configuration changes, the front-end code must be modified, retested, integrated, packaged, and resubmitted to the app store for review and release. This process is cumbersome, has a long iteration cycle, and cannot achieve rapid iterative updates of the vehicle control app's temperature control function.
[0004] Therefore, the relevant technologies suffer from serious code redundancy and poor maintainability, resulting in high development complexity and testing costs for the temperature control page of the vehicle control terminal; they cannot adapt to the rapid iteration scenarios of vehicle configuration changes, and configuration updates depend on code modifications and application release approvals; this reduces the iteration efficiency of the vehicle control terminal and the user experience, and urgently needs to be addressed. Summary of the Invention
[0005] This application provides a method and apparatus for configuring elements of a vehicle remote temperature control front-end page, in order to solve the problems in related technologies where the configuration update of the temperature control front-end page depends on code modification, resulting in high development complexity and testing costs of the temperature control page of the vehicle control terminal, making it unable to adapt to the rapid iteration scenario of vehicle configuration changes, and reducing the iteration efficiency and user experience of the vehicle control terminal.
[0006] The first aspect of this application provides a method for configuring front-end page elements of a vehicle remote temperature control system, comprising the following steps: when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time, matching a vehicle temperature control configuration list according to the vehicle model information; determining each temperature control function item in the vehicle temperature control configuration list, and using each temperature control function item to obtain the corresponding page element ID from a pre-set temperature control function library; setting the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to the display state, and displaying the vehicle remote temperature control front-end page element on the vehicle control terminal.
[0007] Optionally, in one embodiment of this application, before matching the vehicle temperature control configuration list according to the vehicle model information, the method further includes: receiving a vehicle control configuration command triggered by a user, and based on the vehicle control configuration command, detecting whether there is vehicle model configuration cache information locally on the vehicle control terminal; if the vehicle control terminal has the vehicle model configuration cache information, it is determined that the vehicle control terminal is not entering the vehicle control configuration state for the first time; if the vehicle control terminal does not have the vehicle model configuration cache information, it is determined that the vehicle control terminal is entering the vehicle control configuration state for the first time.
[0008] Optionally, in one embodiment of this application, determining each temperature control function item in the vehicle temperature control configuration list and obtaining the corresponding page element ID from a pre-set temperature control function library using each temperature control function item includes: initializing a temperature control function library in the form of target key-value pairs, wherein the temperature control function library stores the target mapping relationship between the enumerated names of temperature control function items and the front-end page element IDs; traversing each temperature control function item in the vehicle temperature control configuration list, and querying the temperature control function library based on each temperature control function item to obtain the page element ID corresponding to each temperature control function item.
[0009] Optionally, in one embodiment of this application, after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, the method further includes: obtaining the latest permission set version parameter issued by the server, comparing the latest permission set version parameter with the historical permission set version parameter of the vehicle control terminal, and obtaining a comparison result; in response to the comparison result satisfying a preset update condition, determining a new vehicle temperature control configuration list using the latest permission set version parameter, and updating the vehicle temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0010] Optionally, in one embodiment of this application, after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list, the method further includes: detecting whether the vehicle control terminal meets the restart conditions; when the vehicle control terminal meets the restart conditions, using the updated vehicle temperature control configuration list of the vehicle control terminal to determine the vehicle remote temperature control front-end page elements of the vehicle control terminal.
[0011] A second aspect of this application provides a configuration device for a vehicle remote temperature control front-end page element, comprising: a first detection module, configured to match a vehicle temperature control configuration list according to the vehicle model information when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time; a first determination module, configured to determine each temperature control function item in the vehicle temperature control configuration list, and obtain the corresponding page element ID from a pre-set temperature control function library using each temperature control function item; and a configuration module, configured to set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to a display state, and display the vehicle remote temperature control front-end page element on the vehicle control terminal.
[0012] Optionally, in one embodiment of this application, the apparatus further includes: a receiving module, configured to receive a vehicle control configuration command triggered by a user before matching a vehicle temperature control configuration list based on the vehicle's corresponding model information, and to detect whether the vehicle control terminal has local model configuration cache information based on the vehicle control configuration command; a first determining module, configured to determine that the vehicle control terminal is not entering the vehicle control configuration state for the first time if the vehicle control terminal has the model configuration cache information before matching a vehicle temperature control configuration list based on the vehicle's corresponding model information; and a second determining module, configured to determine that the vehicle control terminal is entering the vehicle control configuration state for the first time if the vehicle control terminal does not have the model configuration cache information before matching a vehicle temperature control configuration list based on the vehicle's corresponding model information.
[0013] Optionally, in one embodiment of this application, the determining module includes: an initialization unit, configured to initialize a temperature control function library in the form of target key-value pairs, wherein the temperature control function library stores the target mapping relationship between the enumerated names of temperature control function items and the IDs of front-end page elements; and an acquisition unit, configured to traverse each temperature control function item in the vehicle temperature control configuration list and query the temperature control function library based on each temperature control function item to obtain the page element ID corresponding to each temperature control function item.
[0014] Optionally, in one embodiment of this application, the apparatus further includes: an acquisition module, configured to, after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, acquire the latest permission set version parameter issued by the server, and compare the latest permission set version parameter with the historical permission set version parameter of the vehicle control terminal to obtain a comparison result; and an update module, configured to, after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, in response to the comparison result satisfying a preset update condition, determine a new vehicle temperature control configuration list using the latest permission set version parameter, and update the vehicle temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0015] Optionally, in one embodiment of this application, the apparatus further includes: a second detection module, configured to detect whether the vehicle control terminal meets the restart conditions after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list; and a second determination module, configured to determine the vehicle remote temperature control front-end page element of the vehicle control terminal using the updated vehicle temperature control configuration list of the vehicle control terminal when the restart conditions are detected after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0016] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the configuration method for vehicle remote temperature control front-end page elements as described in the above embodiments.
[0017] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for configuring front-end page elements for remote vehicle temperature control.
[0018] A fifth aspect of this application provides a computer program product, including a computer program that, when executed, is used to implement the above-described method for configuring front-end page elements for remote vehicle temperature control.
[0019] This application embodiment can, upon detecting that the vehicle control terminal is entering the vehicle control configuration state for the first time, match the vehicle temperature control configuration list based on the vehicle model information, determine each temperature control function item in the vehicle temperature control configuration list, and obtain the corresponding page element ID from a pre-set temperature control function library for each temperature control function item; set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to display status, and display the vehicle remote temperature control front-end page element on the vehicle control terminal, effectively improving the iteration efficiency of the vehicle control terminal and the user experience. Therefore, it solves the problems in related technologies where temperature control front-end page configuration updates depend on code modifications, cannot adapt to rapid iteration scenarios of vehicle configuration changes, and reduce the iteration efficiency of the vehicle control terminal and the user experience.
[0020] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0021] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart illustrating a method for configuring front-end page elements for remote temperature control of a vehicle according to an embodiment of this application; Figure 2 This is a schematic diagram illustrating the configuration principle of the front-end page elements of a vehicle control terminal when it first enters the vehicle control configuration state, according to a specific embodiment of this application. Figure 3 This is a schematic diagram illustrating the configuration principle of a vehicle remote temperature control front-end page element according to a specific embodiment of this application. Figure 4 This is a schematic diagram of the configuration device for front-end page elements of a vehicle remote temperature control according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0022] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0023] The following describes a method and apparatus for configuring vehicle remote temperature control front-end page elements according to embodiments of this application, with reference to the accompanying drawings. Addressing the issues mentioned in the background section regarding the dependence of temperature control front-end page configuration updates on code modification, which prevents adaptation to rapid iteration scenarios of vehicle configuration changes and reduces the iteration efficiency of vehicle control terminals and user experience, this application provides a method for configuring vehicle remote temperature control front-end page elements. In this method, when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time, a vehicle temperature control configuration list is matched based on the vehicle model information. Each temperature control function item in the vehicle temperature control configuration list is determined, and the corresponding page element ID is obtained from a pre-set temperature control function library for each temperature control function item. The target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID is set to display status, and the vehicle remote temperature control front-end page element is displayed on the vehicle control terminal, effectively improving the iteration efficiency of the vehicle control terminal and user experience. Therefore, this solves the problems in the related technologies where temperature control front-end page configuration updates depend on code modification, preventing adaptation to rapid iteration scenarios of vehicle configuration changes and reducing the iteration efficiency of vehicle control terminals and user experience.
[0024] Specifically, Figure 1 This is a flowchart illustrating a method for configuring front-end page elements for remote temperature control of a vehicle, as provided in an embodiment of this application.
[0025] like Figure 1 As shown, the configuration method for the front-end page elements of the vehicle's remote temperature control includes the following steps: In step S101, when it is detected that the vehicle control terminal is entering the vehicle control configuration state for the first time, the vehicle temperature control configuration list is matched according to the vehicle model information.
[0026] It is understood that the vehicle control terminal in this application embodiment is a mobile terminal with a vehicle control application installed. It can send requests to the cloud control platform, receive vehicle configuration information sent by the cloud control platform, and complete the rendering and display of the vehicle remote temperature control front-end page. Such as smartphones, tablets and other mobile devices. In this application embodiment, a mobile APP is used as an example for illustration. In the embodiments of this application, the first entry into the vehicle control configuration state refers to the vehicle control terminal entering the remote temperature control page when there is no vehicle model temperature control configuration cache locally, which is the first entry into the vehicle control configuration state; in addition, the vehicle model information may include model code, vehicle configuration level, vehicle thermal management configuration identifier, etc.
[0027] In actual implementation, such as Figure 2As shown, when a user opens the vehicle control application in the mobile app and enters the remote temperature control page, the vehicle control module of the mobile app first searches the local storage area to see if the temperature control permission list tcPermList corresponding to the currently bound vehicle exists. If the corresponding temperature control configuration data is not found in the cache, it is determined that the mobile app is entering the vehicle control configuration state for the first time. The vehicle control module initiates an interface request to the cloud control platform based on the vehicle model identifier bound to the vehicle. The cloud control platform issues a set of permissions of the parent class Permissions. The vehicle control module traverses the permission set to filter out the permission subclass corresponding to the temperature control business segment "TC", continues to traverse and extract all temperature control function items, and summarizes and generates the vehicle temperature control configuration list.
[0028] Specifically, after successfully obtaining the configuration through the cloud control platform interface, the vehicle control module can parse the configuration locally: (1) Current cloud control platform configuration interface strategy: The parent class is the overall Permissions, which contains multiple business segment permission subclasses (such as temperature control "TC" and charging center "CC"). Each permission subclass contains permissionName, permissionCode (commonly used), and a further layer of permission nesting (mainly used when there are more specific function configuration items in the function configuration items: for example, it includes seat ventilation and heating functions, where the further permission nesting is LV1 / LV3, which means that only level 1 or level 3 is available).
[0029] (2) Local configuration processing strategy: a. Create a local collection ArrayList <string>tcPermList is used to save the traversed function items later; b. Iterate through the parent class Permissions to get the corresponding temperature control "TC" permission subclass, then iterate through the temperature control "TC" permission to get the specific function items and save them into tcPermList; the local configuration processing logic is silently performed in the background of the homepage. The purpose of this approach is to use the homepage resources to save in advance, saving the time of entering the second-level page for processing. The rendering process can be started immediately upon entering the second-level page, which enhances the user experience.
[0030] Furthermore, after completing the configuration parsing of the cloud control platform and extracting the temperature control function item list tcPermList, this embodiment of the application can use the cache assistant SPHelper to persistently store the temperature control function item list in the form of key-value pairs to the local mobile APP. This persistent cache will not be invalidated when the application process is closed, and the stored configuration data will only be deleted when the application is uninstalled or the user actively clears the cache.
[0031] Optionally, in one embodiment of this application, before matching the vehicle temperature control configuration list according to the vehicle model information, the method further includes: receiving a vehicle control configuration command triggered by the user, and based on the vehicle control configuration command, detecting whether there is vehicle model configuration cache information locally on the vehicle control terminal; if there is vehicle model configuration cache information on the vehicle control terminal, it is determined that the vehicle control terminal is not entering the vehicle control configuration state for the first time; if there is no vehicle model configuration cache information on the vehicle control terminal, it is determined that the vehicle control terminal is entering the vehicle control configuration state for the first time.
[0032] In some embodiments, combined with Figure 2 and Figure 3 As shown, in this embodiment, before matching the vehicle temperature control configuration list based on the vehicle's corresponding model information, a vehicle control configuration command triggered by the user and accessing the remote temperature control page can be received via a mobile APP. In response to the vehicle control configuration command, the vehicle control terminal searches the local persistent cache to check whether the vehicle model configuration cache information corresponding to the currently bound vehicle is stored locally. If the corresponding vehicle model configuration cache information is found, it is determined that the mobile APP is not entering the vehicle control configuration state for the first time, and the cloud control platform configuration version comparison process will be executed subsequently, which will be described in detail in the following steps. If the vehicle model configuration cache information is not found, it is determined that the mobile APP is entering the vehicle control configuration state for the first time, and the configuration download interface is displayed. After the user confirms the download, the cloud control platform configuration interface (" / support / appPermission / queryAppPermission") is called to obtain permission data and parse and generate the vehicle temperature control configuration list. This embodiment uses the presence or absence of local cache as a criterion to distinguish between two different scenarios, realizes the separate processing of the initial loading process and the background version verification process, reasonably schedules terminal computing resources, and optimizes page loading efficiency.
[0033] In this embodiment, the user calls the cloud control platform configuration interface (" / support / appPermission / queryAppPermission") by clicking the download button. When the cloud control platform returns code = 0, the vehicle's various function configuration items have been successfully obtained. If the cloud control platform returns code != 0 or is empty, it means that the configuration acquisition has failed, and a failure message pops up on the page while maintaining the download configuration page. Thus, this embodiment can distinguish between successful and failed configuration acquisition scenarios by the status code returned by the interface, achieving accurate identification of the request result; when successful, the configuration data is parsed normally, and when unsuccessful, a clear pop-up message is given while the download entry is retained, making it convenient for the user to re-initiate the request, ensuring functional stability and user experience.
[0034] In step S102, each temperature control function item in the vehicle temperature control configuration list is determined, and the corresponding page element ID is obtained from the pre-set temperature control function library using each temperature control function item.
[0035] Understandably, in combination Figure 3 As shown, the vehicle control module of the mobile app redirects to the secondary temperature control page. Upon initial page loading, all front-end elements on the secondary temperature control page are hidden by default. For example, temperature control-related interactive controls such as seat heating controls, seat ventilation controls, and steering wheel heating adjustment components are all initially hidden. Basic static components such as the page background and temperature control slider are not subject to the hiding rules and can remain displayed normally. Subsequently, a key-value pair tcPermHashMap temperature control function library is initialized, which uses a HashMap.<String, Int> The structure is built with a String primary key to store the enumeration name of the temperature control function item and an Integer value to store the ID corresponding to the temperature control function item on the page, so as to establish a mapping relationship between the temperature control function item and the page element identifier ID.
[0036] As one possible implementation, the vehicle control module of the mobile app can traverse the vehicle temperature control configuration list tcPermList and extract each temperature control function item recorded in the list sequentially. The vehicle control terminal calls a pre-initialized temperature control function library constructed in key-value pair format, which stores the mapping relationship between the enumerated names of temperature control function items and page element identifiers. The extracted temperature control function items are used as search keywords to query the temperature control function library one by one, and the page element identifier ID corresponding to each temperature control function item is obtained through matching and retrieval. Thus, this embodiment establishes the association between function items and page elements based on the temperature control function library with the preset mapping relationship, realizes automatic matching between the configuration list and page elements, abandons the traditional large amount of hard-coded judgment logic, and reduces code redundancy.
[0037] Optionally, in one embodiment of this application, each temperature control function item in the vehicle temperature control configuration list is determined, and the corresponding page element ID is obtained from a pre-set temperature control function library using each temperature control function item. This includes: initializing a temperature control function library in the form of target key-value pairs, wherein the temperature control function library stores the target mapping relationship between the enumerated names of temperature control function items and the front-end page element IDs; traversing each temperature control function item in the vehicle temperature control configuration list, and querying the temperature control function library based on each temperature control function item to obtain the page element ID corresponding to each temperature control function item.
[0038] In actual implementation, combined with Figure 2 and Figure 3 As shown, when the mobile app redirects to the secondary temperature control page, it first initializes the tcPermHashMap temperature control function library in key-value pair format. This temperature control function library uses a HashMap.<String,Int> The data structure is constructed to establish a mapping relationship between the enumerated names of temperature control function items and the IDs of front-end page elements. Furthermore, all front-end page elements within the secondary temperature control page are initially set to hidden. The vehicle control module of the mobile app iterates through the vehicle temperature control configuration list (tcPermList) to extract each valid temperature control function item, using the enumerated names of each function item as search keywords to search the initialized temperature control function library one by one, matching the query to obtain the corresponding page element IDs for each temperature control function item. Therefore, this embodiment of the application achieves rapid mapping between function items and page identifiers through the temperature control function library, unifies the management of page element search logic, reduces redundant coding, and facilitates subsequent function iteration and maintenance.
[0039] In step S103, the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID is set to display status, and the vehicle remote temperature control front-end page element is displayed on the vehicle control terminal.
[0040] In actual implementation, combined with Figure 2 and Figure 3 As shown, the mobile app can locate the front-end page element corresponding to the secondary temperature control page based on the page element ID, set the display attribute of the page element to `View.VISIBLE`, and switch it to a visible state. For page elements that do not match a valid configuration, the page remains in its initial default hidden state. After all temperature control function items have been traversed and executed, the mobile app renders and displays the vehicle remote temperature control secondary page. The page only displays the temperature control function controls that are allowed to be enabled by the configuration issued by the cloud control platform. Thus, this embodiment of the application can control the visibility of page elements based on the configuration results of the cloud control platform, only displaying authorized function controls, achieving standardized page rendering logic, and the page content is fully dynamically adjusted according to the configuration of the cloud control platform, improving code maintainability and adapting to the differentiated configuration needs of multiple vehicle models.
[0041] Optionally, in one embodiment of this application, after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, the method further includes: obtaining the latest permission set version parameter issued by the server, comparing the latest permission set version parameter with the historical permission set version parameter of the vehicle control terminal, and obtaining a comparison result; in response to the comparison result meeting the preset update conditions, determining a new vehicle temperature control configuration list using the latest permission set version parameter, and updating the vehicle temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0042] In this embodiment, the server can be a cloud control platform. The cloud control platform centrally manages the configuration information of multiple vehicles, realizes the centralized distribution of vehicle permissions and temperature control function configurations, and unified version control, which facilitates batch adjustment of configurations by back-end maintenance, improves the efficiency of multi-vehicle configuration management, and reduces the local maintenance pressure on the terminal.
[0043] In some embodiments, after determining that the mobile APP is not entering the vehicle control configuration state for the first time, the vehicle control module of the mobile APP can silently initiate a network request in the background to call the cloud control platform configuration interface to obtain the latest version parameter carried in the permission set issued by the cloud control platform; the vehicle control module reads the version parameter of the historical permission set stored in the local persistent cache, compares the latest version parameter of the cloud control platform with the version parameter of the historical permission set saved in the local cache, and obtains the version comparison result; if the latest version parameter of the cloud control platform is inconsistent with the version parameter of the local cache, it is determined that the comparison result meets the update condition, which means that the vehicle configuration information of the cloud control platform has changed; the vehicle control module executes the configuration parsing and persistence process, parses the latest permission set issued by the cloud control platform to generate a new vehicle temperature control configuration list, overwrites and updates the original tcPermList temperature control configuration list in the local cache, completes the local configuration data synchronization, improves the automation of configuration synchronization, and ensures that the front-end display function is consistent with the cloud control platform configuration in real time.
[0044] Optionally, in one embodiment of this application, after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list, the method further includes: detecting whether the vehicle control terminal meets the restart conditions; when the vehicle control terminal is detected to meet the restart conditions, using the updated vehicle temperature control configuration list of the vehicle control terminal to determine the vehicle remote temperature control front-end page elements of the vehicle control terminal.
[0045] In some embodiments, after updating the vehicle control module's temperature control configuration list according to the new vehicle temperature control configuration list, this application embodiment can continuously monitor the running status of the mobile APP and detect whether the mobile APP triggers the restart condition. When it is detected that the user closes and restarts the mobile APP, it is determined that the restart condition is met. The vehicle control module of the mobile APP reads the latest updated vehicle temperature control configuration list in the local cache, traverses all valid temperature control function items in the list, and queries the temperature control function library to match the corresponding page element ID. Based on the page element ID, the front-end page element is located, and the page element corresponding to the configured function is set to the display state, while the unconfigured function remains hidden, so as to complete the rendering and display of the front-end page element of the vehicle remote temperature control according to the latest configuration list. Thus, this application embodiment can load the new configuration when the vehicle control terminal restarts, avoiding interface flickering and abnormal interaction caused by dynamic page refresh during operation, ensuring page rendering stability, and improving the stability of the vehicle remote temperature control front-end interaction and user experience.
[0046] Therefore, by comparing the version of the permission set, the embodiments of this application can realize the detection of cloud configuration updates by the vehicle control terminal, realize the automatic caching update of vehicle configuration on the mobile terminal and the page configuration update after restart, realize faster app iteration capability, and enhance user experience.
[0047] The configuration method for vehicle remote temperature control front-end page elements proposed in this application can, when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time, match the vehicle temperature control configuration list according to the vehicle model information, determine each temperature control function item in the vehicle temperature control configuration list, and obtain the corresponding page element ID from a pre-set temperature control function library for each temperature control function item; set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to display state, and display the vehicle remote temperature control front-end page element on the vehicle control terminal, effectively improving the iteration efficiency of the vehicle control terminal and the user experience. This solves the problems in related technologies where temperature control front-end page configuration updates depend on code modifications, cannot adapt to rapid iteration scenarios of vehicle configuration changes, and reduce the iteration efficiency of the vehicle control terminal and the user experience.
[0048] Next, referring to the accompanying drawings, a configuration device for the front-end page elements of a vehicle remote temperature control according to an embodiment of this application is described.
[0049] Figure 4 This is a block diagram illustrating the configuration device for the front-end page elements of the vehicle remote temperature control according to an embodiment of this application.
[0050] like Figure 4 As shown, the configuration device 10 for the front-end page elements of the vehicle remote temperature control includes: a first detection module 100, a first determination module 200, and a configuration module 300.
[0051] Specifically, the first detection module 100 is used to match the vehicle temperature control configuration list according to the vehicle model information when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time.
[0052] The first determining module 200 is used to determine each temperature control function item in the vehicle temperature control configuration list, and to obtain the corresponding page element ID from the pre-set temperature control function library for each temperature control function item.
[0053] The configuration module 300 is used to set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to the display state, and to display the vehicle remote temperature control front-end page element on the vehicle control terminal.
[0054] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: a receiving module, a first determination module, and a second determination module.
[0055] The receiving module is used to receive the vehicle control configuration command triggered by the user before matching the vehicle temperature control configuration list according to the vehicle model information, and to detect whether there is vehicle model configuration cache information on the local vehicle control terminal based on the vehicle control configuration command.
[0056] The first determination module is used to determine that the vehicle control terminal is not entering the vehicle control configuration state for the first time if there is vehicle configuration cache information on the vehicle control terminal before matching the vehicle temperature control configuration list according to the vehicle model information.
[0057] The second determination module is used to determine that the vehicle control terminal is entering the vehicle control configuration state for the first time if there is no vehicle configuration cache information on the vehicle control terminal before matching the vehicle temperature control configuration list according to the vehicle model information.
[0058] Optionally, in one embodiment of this application, the determining module 200 includes an initialization unit and an acquisition unit.
[0059] The initialization unit is used to initialize the temperature control function library in the form of target key-value pairs. The temperature control function library stores the target mapping relationship between the enumerated names of temperature control function items and the IDs of front-end page elements.
[0060] The acquisition unit is used to traverse each temperature control function item in the vehicle temperature control configuration list and query the temperature control function library based on each temperature control function item to obtain the page element ID corresponding to each temperature control function item.
[0061] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: an acquisition module and an update module.
[0062] The acquisition module is used to acquire the latest permission set version parameters issued by the server after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, and compare the latest permission set version parameters with the historical permission set version parameters of the vehicle control terminal to obtain the comparison result.
[0063] The update module is used to determine a new vehicle temperature control configuration list by using the latest permission set version parameters after determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, in response to the comparison result meeting the preset update conditions, and to update the vehicle temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0064] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: a second detection module and a second detection module.
[0065] The second detection module is used to detect whether the vehicle control terminal meets the restart conditions after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list.
[0066] The second determining module is used to determine the vehicle remote temperature control front-end page elements of the vehicle control terminal using the updated vehicle temperature control configuration list of the vehicle control terminal after updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list and when the vehicle control terminal is detected to meet the restart conditions.
[0067] It should be noted that the explanation of the above-described method for configuring front-end page elements of vehicle remote temperature control also applies to the configuration device for the front-end page elements of vehicle remote temperature control in this embodiment, and will not be repeated here.
[0068] The vehicle remote temperature control front-end page element configuration device proposed in this application can, when detecting that the vehicle control terminal is entering the vehicle control configuration state for the first time, match the vehicle temperature control configuration list according to the vehicle model information, determine each temperature control function item in the vehicle temperature control configuration list, and obtain the corresponding page element ID from a pre-set temperature control function library for each temperature control function item; set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to display state, and display the vehicle remote temperature control front-end page element on the vehicle control terminal, effectively improving the iteration efficiency of the vehicle control terminal and the user experience. Therefore, it solves the problems in related technologies where temperature control front-end page configuration updates depend on code modifications, cannot adapt to rapid iteration scenarios of vehicle configuration changes, and reduce the iteration efficiency of the vehicle control terminal and the user experience.
[0069] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0070] When the processor 502 executes the program, it implements the configuration method for the vehicle remote temperature control front-end page elements provided in the above embodiments.
[0071] Furthermore, electronic devices also include: Communication interface 503 is used for communication between memory 501 and processor 502.
[0072] The memory 501 is used to store computer programs that can run on the processor 502.
[0073] Memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0074] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0075] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0076] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0077] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for configuring front-end page elements of a vehicle remote temperature control system.
[0078] This embodiment also provides a computer program product, including a computer program, which, when executed, is used to implement the above-described method for configuring front-end page elements of a vehicle remote temperature control system.
[0079] In the description of this specification, the references to "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0080] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0081] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0082] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0083] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0084] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0085] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0086] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.< / string>
Claims
1. A method for configuring front-end page elements for remote vehicle temperature control, characterized in that, Applied to vehicle control terminals, the method includes the following steps: When the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time, the vehicle temperature control configuration list is matched according to the vehicle model information; Each temperature control function item in the vehicle temperature control configuration list is determined, and the corresponding page element identifier ID is obtained from the pre-set temperature control function library using each temperature control function item; Set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to display status, and display the vehicle remote temperature control front-end page element on the vehicle control terminal.
2. The method according to claim 1, characterized in that, Before matching the vehicle temperature control configuration list based on the vehicle model information, the process also includes: Receive vehicle control configuration instructions triggered by the user, and based on the vehicle control configuration instructions, detect whether there is vehicle model configuration cache information locally on the vehicle control terminal; If the vehicle control terminal has the vehicle model configuration cache information, then it is determined that the vehicle control terminal is not entering the vehicle control configuration state for the first time. If the vehicle control terminal does not have the vehicle model configuration cache information, then the vehicle control terminal is determined to be entering the vehicle control configuration state for the first time.
3. The method according to claim 1, characterized in that, The step of determining each temperature control function item in the vehicle temperature control configuration list and obtaining the corresponding page element ID from a pre-set temperature control function library using each temperature control function item includes: Initialize a temperature control function library in the form of target key-value pairs, wherein the temperature control function library stores the target mapping relationship between the enumerated names of temperature control function items and the IDs of front-end page elements; Iterate through each temperature control function item in the vehicle temperature control configuration list, and query the temperature control function library based on each temperature control function item to obtain the page element ID corresponding to each temperature control function item.
4. The method according to claim 2, characterized in that, After determining that the vehicle control terminal is not entering the vehicle control configuration state for the first time, the following steps are also included: Obtain the latest permission set version parameters issued by the server, and compare the latest permission set version parameters with the historical permission set version parameters of the vehicle control terminal to obtain the comparison result; In response to the comparison result meeting the preset update conditions, a new vehicle temperature control configuration list is determined using the latest permission set version parameter, and the vehicle temperature control configuration list of the vehicle control terminal is updated according to the new vehicle temperature control configuration list.
5. The method according to claim 4, characterized in that, After updating the temperature control configuration list of the vehicle control terminal according to the new vehicle temperature control configuration list, the method further includes: Check whether the vehicle control terminal meets the restart conditions; When the vehicle control terminal is detected to meet the restart conditions, the vehicle remote temperature control front-end page elements of the vehicle control terminal are determined using the updated vehicle temperature control configuration list of the vehicle control terminal.
6. A device for configuring front-end page elements for remote temperature control of a vehicle, characterized in that, The device, applied to a vehicle control terminal, includes: The detection module is used to match the vehicle temperature control configuration list according to the vehicle model information when the vehicle control terminal is detected to be entering the vehicle control configuration state for the first time. The determination module is used to determine each temperature control function item in the vehicle temperature control configuration list, and to obtain the corresponding page element identifier ID from the pre-set temperature control function library using each temperature control function item; The configuration module is used to set the target attribute of the vehicle remote temperature control front-end page element corresponding to the page element ID to the display state, and to display the vehicle remote temperature control front-end page element on the vehicle control terminal.
7. The apparatus according to claim 6, characterized in that, Also includes: The receiving module is used to receive a vehicle control configuration command triggered by the user before matching the vehicle temperature control configuration list according to the vehicle model information, and to detect whether there is vehicle model configuration cache information locally on the vehicle control terminal based on the vehicle control configuration command. The first determination module is used to determine that the vehicle control terminal is not entering the vehicle control configuration state for the first time if the vehicle control terminal has the vehicle configuration cache information before matching the vehicle temperature control configuration list according to the vehicle model information. The second determination module is used to determine that the vehicle control terminal is entering the vehicle control configuration state for the first time if the vehicle control terminal does not have the vehicle model configuration cache information before matching the vehicle temperature control configuration list according to the vehicle model information.
8. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and capable of running on the processor, the processor executing the program to implement the configuration method for vehicle remote temperature control front-end page elements as described in any one of claims 1-5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the configuration method of the vehicle remote temperature control front-end page element as described in any one of claims 1-5.
10. A computer program product, comprising a computer program, characterized in that, The computer program is executed by a processor to implement the configuration method of the vehicle remote temperature control front-end page element as described in any one of claims 1-5.
