Mini-program dynamic rendering method, device, equipment, readable storage medium and product

Through dynamic rendering technology, the floor rendering instructions on the decoration side are obtained and the rendering data is obtained from the preset resource pool, and the mini program is partially rendered, which solves the problems of large mini program and complicated modification, and achieves fast rendering and efficient modification of the mini program. .

CN113778431BActive Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110169349.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-07
Publication Date
2024-09-20
Estimated Expiration
2041-02-07

AI Technical Summary

Technical Problem

The existing mini program rendering method results in the mini program being large in size and complex to modify, requiring all components to be rendered, resulting in a large volume and a long modification cycle.

Method used

By obtaining the floor rendering instructions sent by the decoration end, obtain the target rendering data from the preset rendering data resource pool, and perform dynamic rendering operations on the floors to be rendered in the target applet to avoid rendering all floors and only modify the floors to be rendered. identification information to improve efficiency.

Benefits of technology

This reduces the size of the mini program and increases the rendering speed. When modifying, you only need to modify the identification information of the floor to be rendered, without changing the rendering data, which improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778431B
    Figure CN113778431B
Patent Text Reader

Abstract

The disclosed embodiments provide a method, device, equipment, readable storage medium and product for dynamic rendering of a mini-program. The method includes: obtaining a floor rendering instruction sent by the decoration end, the floor rendering instruction including identification information of at least one floor to be rendered in the target mini-program; according to the floor rendering instruction, obtaining target rendering data corresponding to the identification information of at least one floor to be rendered from a preset rendering data resource pool, the rendering data resource pool including at least one set of rendering data corresponding to each floor to be rendered in the target mini-program; according to the target rendering data, rendering operation is performed on at least one floor to be rendered in the target mini-program. Thereby, dynamic rendering of the floors to be rendered can be realized. There is no need to render all the floors in the target mini-program, and the target mini-program occupies less memory. By pre-setting the rendering data resource pool, when the floor needs to be modified, there is no need to modify the rendering data, and the rendering efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, equipment, readable storage medium and product for dynamic rendering of a mini-program. Background Art

[0002] With the development of technology, more and more applications in different forms have gradually entered the lives of users. For example, some applications can also be provided with a mini-program interface. Users can use the mini-program without downloading the mini-program. They can use the mini-program by triggering the mini-program interface or scanning the QR code corresponding to the mini-program. In order to improve the visual effect of the mini-program, it is generally necessary to render the mini-program.

[0003] In actual applications, a mini program generally corresponds to multiple components, including page-type components, component-type components, etc. Existing mini program rendering methods generally require rendering operations on all components corresponding to the mini program.

[0004] In the process of implementing the present disclosure, the inventors found that there are at least the following problems in the prior art: when the above-mentioned method is used to render the mini-program, on the one hand, the mini-program needs to occupy a large volume; on the other hand, when the mini-program needs to modify the page or content, the underlying data corresponding to the component needs to be modified, the modification cycle is long, and the data volume is large. Summary of the invention

[0005] The embodiments of the present disclosure provide a method, device, equipment, readable storage medium and product for dynamically rendering a mini-program, so as to solve the problem that the mini-program in the existing mini-program rendering method needs to occupy a large volume and is more complicated to modify.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for dynamically rendering a mini-program, including:

[0007] Obtaining a floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes identification information of at least one floor to be rendered in the target applet;

[0008] According to the floor rendering instruction, target rendering data corresponding to identification information of at least one floor to be rendered is obtained from a preset rendering data resource pool, wherein the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target applet;

[0009] According to the target rendering data, a rendering operation is performed on at least one floor to be rendered in the target applet.

[0010] In a second aspect, an embodiment of the present disclosure provides a mini-program dynamic rendering device, including:

[0011] An acquisition module, used to acquire a floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes identification information of at least one floor to be rendered in the target applet;

[0012] A processing module, configured to obtain target rendering data corresponding to identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction, wherein the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target mini-program;

[0013] A rendering module is used to perform a rendering operation on at least one floor to be rendered in the target applet according to the target rendering data.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a memory, a processor;

[0015] Memory; Memory for storing instructions executable by the processor;

[0016] Wherein, when the computer execution instruction is executed by the processor, it is used to implement the mini-program dynamic rendering method as described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the mini-program dynamic rendering method as described in the first aspect.

[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the mini-program dynamic rendering method as described in the first aspect.

[0019] The mini-program dynamic rendering method, device, equipment, readable storage medium and product provided by the embodiments of the present disclosure obtain target rendering data corresponding to the identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction sent by the decoration end, and use the target rendering data to perform a rendering operation on the floor to be rendered in the target mini-program, thereby realizing dynamic rendering of the floor to be rendered. There is no need to render all the floors in the target mini-program, and the target mini-program occupies a smaller volume. In addition, by pre-setting a rendering data resource pool, the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target mini-program, so that when the floor needs to be modified, it is only necessary to modify the identification of the floor to be rendered on the decoration end, without modifying the rendering data, which is more efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] Figure 1 A schematic diagram of the network architecture on which the present disclosure is based;

[0022] Figure 2 A schematic diagram of the flow of a mini-program dynamic rendering method provided in the first embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram of a decoration terminal display interface provided in an embodiment of the present disclosure;

[0024] Figure 4 A flowchart of a method for dynamic rendering of a mini-program provided in the second embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram of the structure of a floor assembly provided in an embodiment of the present disclosure;

[0026] Figure 6 A flowchart of a method for dynamic rendering of a mini-program provided in Embodiment 3 of the present disclosure;

[0027] Figure 7 A schematic diagram of the structure of a mini-program dynamic rendering device provided in the fourth embodiment of the present disclosure;

[0028] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present disclosure.

[0029] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0031] First, the terms involved in the embodiments of the present disclosure are explained:

[0032] Obfuscation mechanism: mainly renames classes, fields, methods, and properties in the code with short and meaningless letter combinations, but it cannot obfuscate strings;

[0033] The language used to describe the page structure: WeiXin Markup Language (WXML for short) is a set of tag languages ​​designed by the framework. Combined with basic components and event systems, the page structure can be constructed.

[0034] Used to describe style language: WeiXin Style Sheets (WXSS for short) is a style language used to describe the component style of WXML;

[0035] Lifecycle function: refers to the function that the Vue instance will automatically execute at a certain point in time.

[0036] In response to the above-mentioned problem that the existing mini-program rendering method requires the mini-program to occupy a large volume and is relatively complex to modify, the present disclosure provides a mini-program dynamic rendering method, device, equipment, readable storage medium and product.

[0037] It should be noted that the present disclosure provides methods, devices, equipment, readable storage media and products for dynamic rendering of mini-programs, which can be used in various scenarios of mini-program rendering.

[0038] Existing methods for rendering small programs generally require rendering operations on all components in the small program, which results in a large size of the small program and a slow rendering speed.

[0039] In the process of solving the above technical problems, the inventor discovered through research that in order to realize the dynamic rendering of floors in the mini program, the target rendering data corresponding to the identification information of at least one floor to be rendered can be dynamically obtained from the preset rendering data resource pool according to the floor rendering instruction sent by the decoration end, and the target rendering data is used to render the floors to be rendered in the target mini program, thereby realizing the dynamic rendering of the floors to be rendered. There is no need to render all the floors in the target mini program, and the target mini program occupies a small volume. In addition, by dynamically rendering some floors to be rendered according to the floor rendering instruction issued by the decoration end, the mini program rendering speed is faster.

[0040] Figure 1 This is a schematic diagram of the network architecture based on which the present disclosure is based. Figure 1 As shown, the network architecture based on the present disclosure at least includes: a decoration terminal 1 and a server 2, wherein a small program dynamic rendering device is provided in the server 2. The small program dynamic rendering device is written in languages ​​such as C / C++, Java, Shell or Python; the decoration terminal 1 can be, for example, a desktop computer, a tablet computer, etc.

[0041] Figure 2A flowchart of a method for dynamically rendering a mini-program provided in the first embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the method includes:

[0042] Step 201: Obtain a floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes identification information of at least one floor to be rendered in the target applet.

[0043] The execution subject of this embodiment is a mini-program dynamic rendering device, which is coupled to a server. The server is connected to the decoration end in communication, so as to be able to exchange information with the decoration end.

[0044] In this embodiment, the target applet that needs to be rendered can be an applet with an interface set in the application software, which includes multiple preset floors. The decoration end can specifically be a user's terminal device, and the user can select at least one floor to be rendered on the decoration end according to actual needs. The decoration end can generate a floor rendering instruction based on the at least one floor to be rendered selected by the user, and send the floor rendering instruction to the applet dynamic rendering device. Accordingly, the applet dynamic rendering device can obtain the floor rendering instruction sent by the decoration end, and the floor rendering instruction includes the identification information of at least one floor to be rendered in the target applet.

[0045] Step 202: According to the floor rendering instruction, target rendering data corresponding to identification information of at least one floor to be rendered is obtained from a preset rendering data resource pool, wherein the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target applet.

[0046] In this embodiment, in order to realize the dynamic rendering operation of the target applet, for each preset floor in the target applet, at least one set of rendering data corresponding to the preset floor can be preset. For example, the target applet has different display interfaces at different times. Therefore, in order to enable the target applet to display the correct rendered interface, a rendering data resource pool can be preset, and the rendering data resource pool includes at least one set of rendering data corresponding to each preset floor.

[0047] Specifically, after the floor rendering instruction is obtained, target rendering data corresponding to the identification information of the at least one floor to be rendered may be obtained from a preset rendering data resource pool according to the floor rendering instruction.

[0048] Step 203: Perform a rendering operation on at least one floor to be rendered in the target applet according to the target rendering data.

[0049] In this embodiment, after the target rendering data is obtained, the rendering operation of at least one floor to be rendered can be implemented according to the target rendering data, and the dynamic rendering operation of the target applet can be implemented.

[0050] Figure 3 A schematic diagram of the decoration terminal display interface provided by the embodiment of the present disclosure, such as Figure 3 As shown, the user can select the identification of the floor that currently needs to be rendered on the display interface according to actual needs.

[0051] The mini-program dynamic rendering method provided in this embodiment obtains target rendering data corresponding to the identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction sent by the decoration end, and uses the target rendering data to perform rendering operations on the floors to be rendered in the target mini-program, thereby realizing dynamic rendering of the floors to be rendered. There is no need to render all the floors in the target mini-program, and the target mini-program occupies a smaller volume. In addition, by pre-setting a rendering data resource pool, the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target mini-program, so that when the floor needs to be modified, it is only necessary to modify the identification of the floor to be rendered on the decoration end, without modifying the rendering data, which is more efficient.

[0052] Figure 4 A flowchart of a method for dynamically rendering a mini-program provided in the second embodiment of the present disclosure is shown in FIG. Figure 2 As shown, based on the first embodiment, before step 102, the following steps are further included:

[0053] Step 401: Obtain floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor public configuration data corresponding to each preset floor in the target applet.

[0054] Step 402: Generate the rendering data resource pool according to the floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor public configuration data corresponding to each preset floor.

[0055] In this embodiment, in order to implement dynamic rendering operation on the target applet, a rendering data resource pool may be pre-set for each preset floor in the target applet.

[0056] Specifically, the target applet includes multiple preset floors. For each preset floor, in order to adapt it to different application scenarios, different floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor common configuration data can be set for each preset floor. The rendering data resource pool is generated based on the floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor common configuration data.

[0057] Further, based on the first embodiment, step 402 specifically includes:

[0058] The floor template information is imported into a preset language file for describing page structure, the floor style information is imported into a preset language file for describing style, and the obfuscation mechanism and floor common configuration data are imported into a preset component constructor.

[0059] The rendering data resource pool is determined according to the preset language file for describing the page structure, the preset language file for describing the style, and the preset component constructor.

[0060] Figure 5 A schematic diagram of the structure of the floor assembly provided in the embodiment of the present disclosure, such as Figure 5 As shown, the floor collection component 50 includes a language file 51 for describing the page structure, a language file 52 for describing the style, and a component constructor 53. The component constructor 53 can be used to write an obfuscation mechanism 54 and floor public configuration data 55.

[0061] In this embodiment, the floor template information can be written into the preset language file for describing the page structure, the floor style information can be imported into the preset language file for describing the style, and the obfuscation mechanism and the floor common configuration data can be imported into the preset component constructor. Thus, the rendering data resource pool, i.e., the above-mentioned floor collection component, can be determined according to the language file for describing the page structure written with the floor template information, the language file for describing the style written with the floor style information, and the component constructor for writing the obfuscation mechanism and the floor common configuration data.

[0062] The mini-program dynamic rendering method provided in this embodiment obtains the floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor common configuration data corresponding to each preset floor set by the user, and generates a rendering data resource pool based on the floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor common configuration data, thereby realizing dynamic rendering of the mini-program and making the mini-program applicable to various application scenarios.

[0063] Figure 6This is a flowchart of a method for dynamically rendering a mini-program provided in Embodiment 3 of the present disclosure. Based on any of the above embodiments, Figure 6 As shown, step 203 specifically includes:

[0064] Step 601: Input the target rendering data into a preset assignment component.

[0065] Step 602: Copy the target rendering data in the assignment component to the private data to obtain first copy data.

[0066] Step 603: For each floor to be rendered in the floor rendering instruction, copy the first copy data according to the obfuscation mechanism to obtain second copy data, traverse the second copy data, filter the second copy data according to the floor to be rendered, obtain the data to be rendered corresponding to the floor to be rendered, and render the floor to be rendered using the data to be rendered.

[0067] In this embodiment, after the target rendering data is obtained, in order to implement the rendering operation of the target applet, the target rendering data can be written into a preset assignment component. The assignment component can specifically be a component in the applet for receiving the attributes of the component parameters, and the data in the attributes cannot be modified by the component itself. The target rendering data in the assignment component is copied to the private data to obtain the first copy data. Among them, the copy operation of the target rendering data can be specifically implemented through the attached lifecycle function. The attached lifecycle function is a applet component lifecycle function, which is executed when the component instance enters the page node tree.

[0068] For each floor to be rendered, the first copy data is copied according to the obfuscation mechanism to obtain the second copy data, the second copy data is traversed, the second copy data is screened according to the floor to be rendered, the data to be rendered corresponding to the floor to be rendered is obtained, and the floor to be rendered is rendered using the data to be rendered. The obfuscation mechanism is also called behavior, which is used to realize the feature of code sharing between components.

[0069] In e-commerce websites, the concept of "floors" is used on the homepage. The order of floors rendered on the homepage is usually determined by data sent from the backend decoration end, so that the homepage can be updated without going online. In web development, dynamic components are usually used to determine the rendering of floors, but in WeChat applets, there is no concept of dynamic components, so it is impossible to directly realize the dynamic and configurable floors.

[0070] The above method utilizes the characteristics of the complete life cycle of the obfuscation mechanism behavior, and realizes a method in which the target rendering data also has a component life cycle. By utilizing the dynamic nature of the target rendering data, the purpose of dynamic rendering of similar floors is achieved, and the purpose of dynamic decoration of pages in the mini program is achieved. When the number, type, and position of floor templates change, it is only necessary to change the floor rendering instructions issued by the decoration end to achieve the purpose of dynamic update of floors.

[0071] Further, based on any of the above embodiments, the step 603 of rendering the floor to be rendered by using the data to be rendered includes:

[0072] The third-party data for rendering the floor to be rendered is obtained through a preset calling interface.

[0073] The data to be rendered and the third-party data are used to perform a rendering operation on the floor to be rendered.

[0074] In this embodiment, in the rendering process, in addition to the to-be-rendered data corresponding to each floor, some third-party data may also be required according to different application scenarios. Therefore, the component constructor is also provided with a calling interface for interacting with a third-party platform to obtain third-party data.

[0075] Specifically, the third-party data for rendering the floor to be rendered can be obtained through the preset calling interface, and the rendering operation of the floor to be rendered is implemented according to the data to be rendered and the third-party data.

[0076] Further, based on any of the above embodiments, the step 603 of rendering the floor to be rendered by using the data to be rendered includes:

[0077] Get the preset floor common configuration data.

[0078] A rendering operation is performed on the floor to be rendered using the data to be rendered and the floor common configuration data.

[0079] In this embodiment, during the rendering process, floor common configuration data is also required, and the floor common configuration data is specifically data required for each floor during the rendering process. Specifically, the floor common configuration data can be obtained, and the rendering operation is performed on the floor to be rendered according to the floor common configuration data and the data to be rendered.

[0080] Further, based on any of the above embodiments, the obtaining of preset floor common configuration data includes:

[0081] Acquire the common configuration data from the preset rendering data resource pool; or,

[0082] Obtain the floor public configuration data sent by the decoration end.

[0083] In this embodiment, the floor configuration data can be stored in the rendering data resource pool, so the public configuration data can be obtained from the rendering data resource pool. In addition, in order to further reduce the size of the target applet, the public configuration data can also be sent by the decoration end. Therefore, the floor public configuration data sent by the decoration end can be obtained. Thereby, the rendering operation can be performed on the floor to be rendered according to the floor public configuration data and the data to be rendered.

[0084] The mini-program dynamic rendering method provided in this embodiment performs rendering operations on the target mini-program by adopting multiple life cycle functions, obfuscation mechanisms, and target rendering data in the target mini-program, thereby realizing dynamic rendering of the target mini-program and reusing floor rendering data, thereby reducing the size of the mini-program and optimizing the rendering speed of the mini-program.

[0085] Figure 7 This is a schematic diagram of the structure of the mini-program dynamic rendering device provided in the fourth embodiment of the present disclosure, such as Figure 7 As shown, the mini-program dynamic rendering device 70 includes: an acquisition module 71, a processing module 72 and a rendering module 73. Among them, the acquisition module 71 is used to obtain the floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes the identification information of at least one floor to be rendered in the target mini-program. The processing module 72 is used to obtain the target rendering data corresponding to the identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction, and the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target mini-program. The rendering module 73 is used to perform a rendering operation on at least one floor to be rendered in the target mini-program according to the target rendering data.

[0086] Furthermore, based on the fourth embodiment, the device further includes: an acquisition module, which is further used to acquire the floor template information, floor style information, and the obfuscation mechanism for multi-floor data sharing and floor common configuration data corresponding to each preset floor in the target applet. A generation module is used to generate the rendering data resource pool according to the floor template information, floor style information, and the obfuscation mechanism for multi-floor data sharing and floor common configuration data corresponding to each preset floor.

[0087] Further, based on the fourth embodiment, the generation module is used to: import the floor template information into a preset language file for describing page structure, import the floor style information into a preset language file for describing style, and import the obfuscation mechanism and floor common configuration data into a preset component constructor. The rendering data resource pool is determined according to the preset language file for describing page structure, the preset language file for describing style, and the preset component constructor.

[0088] Further, based on any of the above embodiments, the rendering module is used to: input the target rendering data into a preset assignment component. Copy the target rendering data in the assignment component to private data to obtain first copy data. For each floor to be rendered in the floor rendering instruction, copy the first copy data according to the obfuscation mechanism to obtain second copy data, traverse the second copy data, filter the second copy data according to the floor to be rendered, obtain the data to be rendered corresponding to the floor to be rendered, and render the floor to be rendered using the data to be rendered.

[0089] Further, based on any of the above embodiments, the rendering module is used to: obtain third-party data for rendering the floor to be rendered through a preset calling interface, and perform a rendering operation on the floor to be rendered using the data to be rendered and the third-party data.

[0090] Further, based on any of the above embodiments, the rendering module is used to: obtain preset common configuration data of floors, and perform rendering operation on the floors to be rendered according to the data to be rendered and the common configuration data of floors.

[0091] Further, based on any of the above embodiments, the rendering module is used to: obtain the public configuration data from the preset rendering data resource pool; or obtain the floor public configuration data sent by the decoration end.

[0092] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present disclosure, such as Figure 8 As shown, the device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0093] Device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0094] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0095] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0096] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0097] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0098] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0099] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0100] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0101] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0102] In an exemplary embodiment, the device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0103] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0104] Another embodiment of the present disclosure further provides a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute the above-mentioned method for dynamically rendering a mini-program of the terminal device.

[0105] Another embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for dynamic rendering of a mini-program as described in any of the above embodiments.

[0106] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0107] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for dynamic rendering of a small program, It is characterized in that include: Obtaining a floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes identification information of at least one floor to be rendered in the target applet; According to the floor rendering instruction, target rendering data corresponding to identification information of at least one floor to be rendered is obtained from a preset rendering data resource pool, wherein the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target applet; According to the target rendering data, a rendering operation is performed on at least one floor to be rendered in the target applet.

2. The method according to claim 1, It is characterized in that Before obtaining target rendering data corresponding to identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction, the method further includes: Obtain the floor template information, floor style information, obfuscation mechanism for multi-floor data sharing, and floor public configuration data corresponding to each preset floor in the target applet; The rendering data resource pool is generated according to the floor template information, floor style information, the obfuscation mechanism for multi-floor data sharing, and the floor public configuration data corresponding to each preset floor.

3. The method according to claim 2, It is characterized in that The generating the rendering data resource pool according to the floor template information, floor style information, the obfuscation mechanism for multi-floor data sharing, and the floor public configuration data corresponding to each preset floor includes: Importing the floor template information into a preset language file for describing page structure, importing the floor style information into a preset language file for describing style, and importing the obfuscation mechanism and floor common configuration data into a preset component constructor; The rendering data resource pool is determined according to the preset language file for describing the page structure, the preset language file for describing the style, and the preset component constructor.

4. The method according to any one of claims 1 to 3, It is characterized in that The step of performing a rendering operation on at least one floor to be rendered in the target applet according to the target rendering data includes: Inputting the target rendering data into a preset assignment component; Copy the target rendering data in the assignment component to the private data to obtain first copy data; For each floor to be rendered in the floor rendering instruction, the first copy data is copied according to the obfuscation mechanism to obtain the second copy data, the second copy data is traversed, the second copy data is filtered according to the floor to be rendered, the data to be rendered corresponding to the floor to be rendered is obtained, and the floor to be rendered is rendered using the data to be rendered.

5. The method according to claim 4, It is characterized in that The rendering operation on the floor to be rendered using the data to be rendered includes: Acquire third-party data for rendering the floor to be rendered through a preset calling interface; The data to be rendered and the third-party data are used to perform a rendering operation on the floor to be rendered.

6. The method according to claim 4, It is characterized in that The rendering operation on the floor to be rendered using the data to be rendered includes: Get the preset floor public configuration data; A rendering operation is performed on the floor to be rendered using the data to be rendered and the floor common configuration data.

7. The method according to claim 6, It is characterized in that The obtaining of preset floor common configuration data includes: Acquire the common configuration data from the preset rendering data resource pool; or, Obtain the floor public configuration data sent by the decoration end.

8. A mini-program dynamic rendering device, It is characterized in that include: An acquisition module, used to acquire a floor rendering instruction sent by the decoration end, wherein the floor rendering instruction includes identification information of at least one floor to be rendered in the target applet; A processing module, configured to obtain target rendering data corresponding to identification information of at least one floor to be rendered from a preset rendering data resource pool according to the floor rendering instruction, wherein the rendering data resource pool includes at least one set of rendering data corresponding to each floor to be rendered in the target mini-program; A rendering module is used to perform a rendering operation on at least one floor to be rendered in the target applet according to the target rendering data.

9. An electronic device, include: Memory, processor; Memory; a memory for storing instructions executable by the processor; Wherein, when the executable instructions are executed by the processor, they are used to implement the mini-program dynamic rendering method as described in any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the mini-program dynamic rendering method as described in any one of claims 1 to 7.

11. A computer program product, It is characterized in that It comprises a computer program, which, when executed by a processor, implements the applet dynamic rendering method according to any one of claims 1-7.