Page rendering method and device, storage medium and electronic device
By dynamically rendering application pages based on target information, the resource consumption and user dissatisfaction issues of traditional update methods are solved, enabling flexible and fast page rendering and improving user experience and application adaptability.
Patent Information
- Application Number
- CN202510763636.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-10-28
AI Technical Summary
Traditional application update methods consume development resources and extend the cycle, users dislike frequent updates, and cannot effectively render pages to meet user needs and business expansion.
By dynamically obtaining target information (such as application version, device location, and login account) from the backend server, the page is rendered based on the target rules, and error handling and automatic updates are supported.
It enables flexible and rapid page rendering, improves user experience and personalized service capabilities, reduces development costs and user resistance, and enhances application adaptability and market competitiveness.
Smart Images

Figure CN120848877A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a page rendering method and apparatus, a storage medium, and an electronic device. Background Technology
[0002] With the widespread adoption of mobile applications and the diversification of user needs, applications need to be able to quickly adapt to different marketing campaigns, holiday celebrations, or changes in user preferences to provide the best user experience and enhance user engagement. The traditional approach to application updates—changing page layouts or styles by releasing new versions—has significant limitations and drawbacks. First, each update requires redeveloping the code, which not only consumes development resources but also prolongs the update cycle. New version releases must undergo a rigorous review process by app stores, and the uncertainty of review times can lead to delays. Second, frequent version updates can cause user resentment, especially when the update content is not significant to users. Users may miss out on new features due to reluctance to update frequently, thus affecting user retention and activity. Furthermore, if existing users choose not to update, the features and page changes in the new version will not reach this user group, limiting the adoption and use of the application's functionality.
[0003] While existing technologies offer solutions that don't require releasing new versions—such as modifying component background images in the backend to achieve page changes—this method, while avoiding a complete app re-release, has significant limitations: the page layout remains virtually unchanged. Given today's increasingly demanding user experience, this approach struggles to attract users, effectively support business expansion and innovation, and adequately meet product needs.
[0004] There is currently no effective solution to the problem that related technologies cannot render application pages well.
[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0006] This invention provides a page rendering method, apparatus, storage medium, and electronic device to at least solve the problem of failing to render application pages effectively.
[0007] According to one aspect of the present invention, a page rendering method is provided, comprising: when a target object is detected to be performing a page update operation in a target application, obtaining page configuration information corresponding to the target information, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application; and rendering the page of the target application according to the page configuration information.
[0008] In an exemplary embodiment, the method further includes: when the target application is started, obtaining page configuration information corresponding to the target information from the background server of the target application; and / or when the time interval between the current time and the time of the last page update of the target application is greater than a preset time interval, obtaining page configuration information corresponding to the target information from the background server of the target application.
[0009] In an exemplary embodiment, rendering the page of the target application according to the page configuration information includes: parsing the page configuration information according to target rules, and rendering the page of the target application according to the parsed information, wherein the target rules are used to describe the components in the page.
[0010] In an exemplary embodiment, if an error occurs in parsing the page configuration information according to the target rule, an error message is sent to the backend server of the target application; the updated target rule and / or updated page configuration information sent by the backend server are obtained.
[0011] In an exemplary embodiment, the page configuration information is obtained from the backend server of the target application. The backend server has multiple configuration information, each of which corresponds to different target information. Each of the multiple configuration information is information that has been configured by the component management system and stored on the backend server. The multiple configuration information includes the page configuration information.
[0012] In an exemplary embodiment, each of the plurality of configuration information includes the layout and configuration information of a plurality of components, wherein the configuration information of the components includes: background image, icon, title, rounded corners, spacing, and jump link.
[0013] In an exemplary embodiment, after obtaining the page configuration information corresponding to the target information, the method further includes: determining the behavioral preferences of the target object; invoking the target model, and adjusting the page configuration information based on the behavioral preferences of the target object to obtain the adjusted page configuration information.
[0014] According to another aspect of the present invention, a page rendering apparatus is also provided, comprising: an acquisition module, configured to acquire page configuration information corresponding to target information when a target object is detected performing a page update operation in a target application, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application; and a rendering module, configured to render the page of the target application according to the page configuration information.
[0015] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described page rendering method at runtime.
[0016] According to another aspect of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the page rendering method described above through the computer program.
[0017] According to another aspect of the present invention, a computer program product is also provided, including a computer program, which is executed by a processor as a page rendering method.
[0018] This application, upon detecting that a target object is performing a page update operation on a target application, obtains page configurations related to target information (such as application version, device location, and login account), thereby enabling better rendering of the application's pages, significantly improving user experience and the application's personalized service capabilities, and solving the problem of inadequate rendering of application pages. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the hardware environment for a page rendering method according to an embodiment of this application;
[0022] Figure 2 This is a flowchart of a page rendering method according to an embodiment of the present invention;
[0023] Figure 3 This is a flowchart of another page rendering method according to an embodiment of the present invention;
[0024] Figure 4 This is a structural block diagram of a page rendering apparatus according to an embodiment of the present invention. Detailed Implementation
[0025] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] According to one aspect of the embodiments of this application, a page rendering method is provided. This page rendering method is widely used in whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligencehouse ecosystems. Optionally, in this embodiment, the above-mentioned page rendering method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0028] The aforementioned networks may include, but are not limited to, wired networks and wireless networks. Wired networks may include, but are not limited to, wide area networks (WANs), metropolitan area networks (MANs), and local area networks (LANs). Wireless networks may include, but are not limited to, Wi-Fi (Wireless Fidelity) and Bluetooth. Terminal device 102 may not be limited to PCs, mobile phones, tablets, smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom fixtures, smart robot vacuums, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.
[0029] To address the aforementioned issues, this embodiment provides a page rendering method, which may, but is not limited to, be applied to the aforementioned terminal device 102. Figure 2 This is a flowchart of a page rendering method according to an embodiment of the present invention, the process including the following steps S202-S204:
[0030] Step S202: When it is detected that the target object performs a page update operation in the target application, obtain the page configuration information corresponding to the target information, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application;
[0031] Optionally, the page configuration information corresponding to the target information can be obtained from the backend server of the target application. The target application obtains the page configuration information corresponding to the target information by calling the first interface of the backend server.
[0032] Step S204: Render the page of the target application according to the page configuration information.
[0033] The above steps, upon detecting that the target object is performing a page update operation in the target application, obtain page configurations related to the target information (such as application version, device location, login account), thereby enabling better rendering of the application's pages, significantly improving user experience and the application's personalized service capabilities, and solving the problem of not being able to render application pages well.
[0034] In an exemplary embodiment, the method further includes: when the target application is started, obtaining page configuration information corresponding to the target information from the background server of the target application; and / or when the time interval between the current time and the time of the last page update of the target application is greater than a preset time interval, obtaining page configuration information corresponding to the target information from the background server of the target application.
[0035] It should be noted that, in order to achieve flexible configuration and real-time updates of the APP page, this application proposes a dynamic page configuration information acquisition mechanism. This mechanism includes, but is not limited to, the following three trigger points to ensure that the APP can promptly obtain the latest page configuration information corresponding to the target information from the backend server in different scenarios:
[0036] 1. Page Update Trigger: When a target object (such as a user or system) performs a page update operation within the app, such as when a user manually refreshes the page or the system detects a change in network status, the app immediately sends a request to the backend server to obtain page configuration information that matches the target information (including application version number, terminal device location, currently logged-in account, etc.). This mechanism ensures that the page content can quickly respond to user actions and present the latest state.
[0037] 2. Application Launch Trigger: Each time the target application launches, it automatically retrieves the latest page configuration information corresponding to the target information from the backend server. This ensures that users see the page layout that best matches their current conditions (such as geographical location and application version) every time they open the application. Even if the backend server updates the page configuration while the user is offline, the latest changes will be immediately displayed when the user logs in again, improving the real-time performance and personalization of the page.
[0038] 3. Time Interval Trigger: When the time interval between the current moment and the last page update of the target application exceeds a preset time threshold, the system will proactively check and retrieve the page configuration information corresponding to the target information from the backend server. The preset time interval can be flexibly set according to actual needs, such as one hour or one day, to adapt to the update frequency of different applications. This mechanism helps to update page content regularly, keeping the application active and fresh, while avoiding unnecessary frequent requests and optimizing the use of network resources.
[0039] Through the aforementioned triggering mechanism, this invention can intelligently and efficiently update page configuration information based on the actual needs and usage scenarios of the target application, enabling dynamic rendering and personalized display of the page, significantly improving user experience and application responsiveness. Simultaneously, it avoids the cumbersome process of frequent version releases in traditional update methods, reducing development costs and time consumption, and providing strong technical support for the rapid iteration and market adaptation of apps.
[0040] In an exemplary embodiment, step S204 above can be implemented as follows: parsing the page configuration information according to the target rule, and rendering the page of the target application according to the parsed information, wherein the target rule is used to describe the components in the page.
[0041] It should be noted that the target rules include the agreed-upon names of each component, component identifiers (component keys), names of each component's attribute information, and the JSON data structure of the page configuration information.
[0042] It should be noted that, through this target-rule-based page configuration information parsing and application mechanism, this application allows developers to achieve real-time changes to the front-end page layout and style simply by modifying the back-end page configuration file, without affecting the core functionality of the application. This method greatly improves development efficiency, reduces user inconvenience caused by application updates, and enhances the application's flexibility and adaptability. It enables the application to display more personalized page content based on different user information, geographical location, and application version, thereby improving user satisfaction and enhancing the application's market competitiveness.
[0043] In an exemplary embodiment, the method further includes: sending error information to the backend server of the target application if an error occurs in parsing the page configuration information according to the target rules; and obtaining the updated target rules and / or updated page configuration information sent by the backend server.
[0044] It should be noted that during the process of parsing page configuration information based on target rules, parsing errors may occur, such as configuration file formats not conforming to expectations, missing or incorrectly formatted data fields, or mismatches between target rules and configuration information. To address these issues, this application provides an effective error handling and automatic update mechanism to ensure the accuracy and stability of page rendering.
[0045] 1. Error Detection and Reporting: When the target application attempts to parse page configuration information, if any parsing errors are found, such as incomplete data or incorrect format, the application will immediately generate detailed error information, including the error type, error location, and possible cause. This error information will then be sent to the backend server so that the development team can promptly understand the specifics of the problem and take appropriate action.
[0046] 2. Automatic Update Request: Upon receiving error messages, the backend server will automatically or manually check and correct any issues with the target rules and page configuration information. Once corrected, the server will push the updated target rules and page configuration information to the target application, ensuring the accuracy and completeness of the information.
[0047] 3. Application receiving updates: After receiving the update notification, the target application will attempt to download the updated target rules and page configuration information again. This process may be automatic, ensuring the application can quickly restore correct page rendering capabilities, or it may occur the next time the user opens the application to minimize the impact on the user.
[0048] 4. Updated Page Rendering: After successfully obtaining the updated information, the application will re-parse the page configuration information according to the latest target rules, correct previous errors, and re-render the page. This ensures that users see an accurate and up-to-date page, whether during page updates, application startup, or at preset time intervals.
[0049] Through this series of error handling and automatic update mechanisms, this application not only improves the flexibility and update speed of page configuration, but also enhances the robustness of the system. Even when the configuration information is abnormal, it can quickly restore the normal page rendering process, ensure the consistency of the user interface and the continuity of the user experience, and provide a solid guarantee for the stable operation and rapid iteration of the application.
[0050] In an exemplary embodiment, the page configuration information is obtained from the backend server of the target application. The backend server has multiple configuration information, each of which corresponds to different target information. Each of the multiple configuration information is information that has been configured by the component management system and stored on the backend server. The multiple configuration information includes the page configuration information.
[0051] It's important to note that the backend server stores multiple configuration information generated by the component management system. Each configuration is customized for different target information (such as application version, user geolocation, account type, etc.). This configuration information is carefully configured by the component management system through a visual editing interface using predefined component templates and attribute settings to meet specific scenario requirements. Once configured, it is stored on the server in structured data form (such as JSON), containing page configuration information. When the target application requests a page update, the server can quickly retrieve and return the most matching configuration information based on the target information provided by the application, ensuring that the page presented by the application conforms to the current conditions, achieving both personalization and efficiency.
[0052] It should be noted that the component management system stores the configured page configuration information on the backend server by calling the second interface of the backend server.
[0053] In an exemplary embodiment, each of the plurality of configuration information includes the layout and configuration information of a plurality of components, wherein the configuration information of the components includes: background image, icon, title, rounded corners, spacing, and jump link.
[0054] In an exemplary embodiment, after obtaining the page configuration information corresponding to the target information, the method further includes: determining the behavioral preferences of the target object; invoking the target model, and adjusting the page configuration information based on the behavioral preferences of the target object to obtain the adjusted page configuration information.
[0055] It's important to note that after obtaining the page configuration information corresponding to the target information, the system can further analyze the target user's behavioral preferences to make personalized adjustments to the page configuration information. Specifically, the system collects and analyzes the target user's historical behavioral data, such as page browsing history, interaction frequency, and dwell time, to uncover their preferences and habits. Subsequently, by calling a pre-trained target model, the system fine-tunes the component layout, color scheme, and recommended content in the page configuration information based on behavioral preferences, generating the adjusted page configuration information. This process achieves a high degree of customization of page content and design, ensuring that the page received by each user not only meets business needs but also closely matches personal preferences, thereby improving user activity and satisfaction and strengthening the interaction between users and the application.
[0056] Obviously, the embodiments described above are merely some embodiments of the present invention, and not all embodiments. To better understand the above method, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of the present invention. Optionally:
[0057] To accommodate various holidays and major events throughout the year, app homepages and event pages often need frequent changes, displaying different styles and layouts. However, for a better user experience, apps generally don't use hot-updateable technology frameworks, such as H5. Apps that don't support hot updates need to be uploaded to app stores to release new features. Even after the technology team releases a new version, existing users may still be unwilling to update, preventing the new features from being implemented for them. Furthermore, uploading to app stores carries the risk of rejection in today's increasingly stringent app store review environment, leading to longer release cycles for new features.
[0058] This application adopts a front-end and back-end combined approach. By configuring the page layout and style in the back-end page management system, the page layout is then sent to the APP in JSON format via an interface. The APP displays the page by parsing the configuration information in the JSON, so as to quickly realize the page changes on the APP without the need for APP version release. It can even display different page content based on different user information.
[0059] Specifically, Figure 3 This illustrates an overall flowchart, such as Figure 3 As shown, it includes:
[0060] S1: Possible styles for UI design components, including rounded corners, background, spacing, etc.
[0061] In other words, the UI designer compiles as many different styles of components as possible based on commonly used event pages and outputs UI diagrams.
[0062] S2: The APP, component management system, and interface agree on the names of each component, component identifiers (component keys), names of each component's attribute information, and JSON data structures of page configuration information;
[0063] S3: The component management system creates new pages based on elements such as APP version, region, and user.
[0064] S4: The component management system allows for the layout of new pages through drag-and-drop;
[0065] S5: Configure the display information of each component, including rounded corners, background color, margins, etc.
[0066] S6: The backend interface defines the corresponding fields for the component configuration information of the component management system;
[0067] It's important to note that the component management system creates page configuration files. Configuration items include information such as the app version, region, and user ID to differentiate user groups. The system develops templates for each component and provides drag-and-drop editing pages for previewing the configured page. Clicking on each component template allows users to fill in different configuration information based on the component's configurable attributes, including background image, icon, title, rounded corners, spacing, and jump links. The component management system saves different page configurations based on app version, region, and user ID.
[0068] S7: When the APP calls the interface, it should provide the APP version, geographical location, user information, etc. to obtain accurate page configuration information;
[0069] S8: After the APP receives the component configuration file, it parses the component configuration information based on the key (component identifier) and other information agreed upon with the backend;
[0070] S9: The APP client modifies the component's properties based on the component configuration information to achieve different pages.
[0071] It should be noted that if this application needs to change the page, it only needs to create a new page configuration and configure the component information in the component management system. After the configuration is published, it can be immediately distributed to the APP, which is highly efficient and does not require the release of an APP version.
[0072] The key to this application lies in enabling diverse front-end page displays through flexible backend configuration, without requiring an app release. Specifically, this is reflected in:
[0073] (1) A unique front-end and back-end collaboration mode, where the back-end performs page layout and style configuration and sends configuration information in JSON format.
[0074] (2) The APP accurately parses the JSON information and completes the page rendering based on the agreed specifications.
[0075] (3) Utilize multi-dimensional information such as APP version, region, and user ID to achieve differentiated page configuration and display for different user groups.
[0076] It should be noted that this application has the following advantages:
[0077] 1. Improved development efficiency: Compared to the traditional approach of redeveloping every page modification, this application only requires configuring the page in the backend, greatly reducing the workload and saving development time, allowing the development team to devote more energy to business innovation and optimization.
[0078] 2. User Experience Optimization: Frequent app updates are avoided, reducing user disruption and mitigating user resistance caused by frequent updates. Simultaneously, it can quickly respond to the needs of holidays and events, providing users with a novel and rich page experience, thereby increasing user satisfaction and usage frequency.
[0079] 3. Flexibility and versatility: Through backend configuration, various page combination formats can be easily realized to meet the ever-changing business needs of the product. Whether dealing with holiday promotions, themed events or sudden hot topics, the page layout and style can be quickly adjusted to enhance the product's market competitiveness.
[0080] 4. Cost reduction: It reduces the time and manpower costs associated with redeveloping and releasing new versions, as well as the additional costs that may result from failure to pass the review process, while also reducing the potential economic losses caused by user churn.
[0081] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0082] This embodiment also provides a page rendering apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.
[0083] Figure 4 This is a structural block diagram of a page rendering apparatus according to an embodiment of the present invention, the apparatus comprising:
[0084] The acquisition module 42 is used to acquire page configuration information corresponding to the target information when the target object performs a page update operation in the target application. The target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application.
[0085] Rendering module 44 is used to render the page of the target application according to the page configuration information.
[0086] The aforementioned device, upon detecting that a target object is performing a page update operation on a target application, obtains page configurations related to target information (such as application version, device location, and login account), thereby enabling better rendering of the application's pages, significantly improving user experience and the application's personalized service capabilities, and solving the problem of inadequate rendering of application pages.
[0087] In an exemplary embodiment, the acquisition module 42 is further configured to acquire page configuration information corresponding to the target information from the background server of the target application when the target application is started; and / or acquire page configuration information corresponding to the target information from the background server of the target application when the time interval between the current time and the time of the last page update of the target application is greater than a preset time interval.
[0088] In an exemplary embodiment, the rendering module 44 is further configured to parse the page configuration information according to the target rules, and render the page of the target application according to the parsed information, wherein the target rules are used to describe the components in the page.
[0089] In an exemplary embodiment, the acquisition module 42 is further configured to send error information to the backend server of the target application if an error occurs in parsing the page configuration information according to the target rule; and acquire the updated target rule and / or updated page configuration information sent by the backend server.
[0090] In an exemplary embodiment, the page configuration information is obtained from the backend server of the target application. The backend server has multiple configuration information, each of which corresponds to different target information. Each of the multiple configuration information is information that has been configured by the component management system and stored on the backend server. The multiple configuration information includes the page configuration information.
[0091] In an exemplary embodiment, each of the plurality of configuration information includes the layout and configuration information of a plurality of components, wherein the configuration information of the components includes: background image, icon, title, rounded corners, spacing, and jump link.
[0092] In an exemplary embodiment, the apparatus further includes: an adjustment module, configured to determine the behavioral preferences of a target object after obtaining page configuration information corresponding to the target information; and to call a target model to adjust the page configuration information based on the behavioral preferences of the target object to obtain adjusted page configuration information.
[0093] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0094] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0095] S1, when it is detected that the target object performs a page update operation in the target application, obtain the page configuration information corresponding to the target information, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application;
[0096] S2, Render the page of the target application according to the page configuration information.
[0097] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0098] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0099] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0100] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0101] S1, when it is detected that the target object performs a page update operation in the target application, obtain the page configuration information corresponding to the target information, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application;
[0102] S2, Render the page of the target application according to the page configuration information.
[0103] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0104] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0105] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0106] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0107] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0108] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0109] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A page rendering method, characterized in that, include: When it is detected that the target object is performing a page update operation in the target application, the page configuration information corresponding to the target information is obtained, wherein the target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application; The target application's page is rendered based on the page configuration information.
2. The page rendering method according to claim 1, characterized in that, The method further includes: When the target application is launched, obtain the page configuration information corresponding to the target information from the background server of the target application; and / or If the time interval between the current moment and the last page update of the target application is greater than a preset time interval, obtain the page configuration information corresponding to the target information from the background server of the target application.
3. The page rendering method according to claim 1, characterized in that, Rendering the target application's page according to the page configuration information includes: The page configuration information is parsed according to the target rules, and the page of the target application is rendered based on the parsed information, wherein the target rules are used to describe the components in the page.
4. The page rendering method according to claim 3, characterized in that, The method further includes: If an error occurs while parsing the page configuration information according to the target rules, an error message is sent to the backend server of the target application. Obtain the updated target rules and / or updated page configuration information sent by the backend server.
5. The page rendering method according to claim 1, characterized in that, The page configuration information is obtained from the backend server of the target application. The backend server has multiple configuration information, each of which corresponds to different target information. Each of the multiple configuration information is information that has been configured by the component management system and stored on the backend server. The multiple configuration information includes the page configuration information.
6. The page rendering method according to claim 5, characterized in that, Each of the multiple configuration information includes the layout and configuration information of multiple components, wherein the configuration information of the components includes: background image, icon, title, rounded corners, spacing, and jump links.
7. The page rendering method according to claim 1, characterized in that, After obtaining the page configuration information corresponding to the target information, the method further includes: Determine the behavioral preferences of the target audience; The target model is invoked, and the page configuration information is adjusted based on the behavioral preferences of the target object to obtain the adjusted page configuration information.
8. A page rendering apparatus, characterized in that, include: The acquisition module is used to acquire page configuration information corresponding to the target information when the target object performs a page update operation in the target application. The target information includes at least one of the following: the version number of the target application, the location information of the terminal device corresponding to the target application, and the current login account of the target application. The rendering module is used to render the page of the target application according to the page configuration information.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 7 through the computer program.
Citation Information
Cited By
Application page rendering method and device, storage medium and electronic equipment
CN121541968A