Interactive interface rendering method and device, storage medium and electronic equipment
Patent Information
- Application Number
- CN202410961058.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-12
AI Technical Summary
[0005]本申请实施例提供了一种交互界面的渲染方法和装置、存储介质及电子设备,以至少解决相关技术中,多端框架形成多端应用的交互界面的方式,存在学习成本高,且后续如果有修改需求,修改成本也很高的问题
[0015] According to another aspect of the embodiment of the present application, 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 above-mentioned steps through the computer program. The rendering method of the interactive interface.
Smart Images

Figure CN118939260A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for rendering an interactive interface, a storage medium, and an electronic device. Background Art
[0002] In the field of front-end development, when development engineers write user interfaces, they usually need to implement UI effects through code based on UI design drawings. Most of the UI effects implemented by code require similar content such as components and styles, which have certain commonalities. The development, testing, and deployment processes of a user interface are relatively long. Even the simplest user interface needs to go through this life cycle. If the same user interface is to be developed on multiple terminals such as APP, web, and mini-programs, the complexity will increase several times. To some extent, the utilization efficiency of development resources is low.
[0003] The solution in the related art is to use some multi-terminal frameworks to write a set of codes and package them into multi-terminal applications such as APP, web, and mini-programs to solve the problem of inefficiency caused by writing multiple sets of interactive interfaces. However, the cost of forming an interactive interface for multi-terminal applications based on a framework is high and cannot be effectively promoted. If there is a need for modification, the modification cost is also very high.
[0004] Regarding the related technology, the way in which a multi-terminal framework forms an interactive interface for multi-terminal applications has a high learning cost, and if there is a need for subsequent modifications, the modification cost is also very high. No effective solution has yet been proposed. Summary of the invention
[0005] The embodiments of the present application provide a method and device for rendering an interactive interface, a storage medium, and an electronic device, so as to at least solve the problem in the related art that a multi-terminal framework forms an interactive interface for a multi-terminal application, which has a high learning cost and a high modification cost if there is a need for subsequent modification.
[0006] According to an embodiment of the embodiments of the present application, a method for rendering an interactive interface is provided, comprising: when different user-side applications have respectively written renderers, receiving JSON structure data corresponding to the design requirements of the interactive interface through a target client application; instructing the renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0007] In an optional embodiment, instructing the renderer corresponding to the target user-side application to render an interactive interface based on the JSON structure data, including: instructing the renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application; and rendering an interactive interface allowed to be displayed in the target user-side application according to the tag language.
[0008] In an optional embodiment, instructing a renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application, including: obtaining language rules of the tag language corresponding to the target user-side application; calling a data model of the JSON structure data to parse the JSON structure data according to the language rules to obtain the tag language corresponding to the JSON structure data.
[0009] In an optional embodiment, rendering an interactive interface that is allowed to be displayed in the target user-side application according to the tag language includes: parsing the structure and syntax of the tag language, and mapping the structure and syntax of the tag language to the HTML structure; constructing a document structure that is allowed to be parsed by the target user-side application according to the HTML structure; and rendering an interactive interface that is allowed to be displayed in the target user-side application according to the document structure.
[0010] In an optional embodiment, instructing the renderer corresponding to the target user-side application to render an interactive interface based on the JSON structure data, including: confirming whether the JSON structure data passes data security verification; if passing the data security verification, instructing the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application based on the JSON structure data.
[0011] In an optional embodiment, after instructing the renderer corresponding to the target user-side application to render an interactive interface based on the JSON structure data, the method further includes: displaying the interactive interface on the target user-side application; receiving a modification operation of the target object; and modifying the interactive interface according to the modification operation if the modification operation passes the authority verification.
[0012] In an optional embodiment, after receiving a modification operation on the target object, the method further includes: parsing identity authentication information of the target object from the modification operation; and determining that the modification authority passes the authority verification if the identity authentication information passes the verification.
[0013] According to another aspect of the present invention, a rendering device for an interactive interface is also provided, comprising: a receiving module, used to receive JSON structure data corresponding to the design requirements of the interactive interface through a target client application when different user-side applications have respectively written renderers; an indication module, used to instruct the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for rendering the interactive interface when running.
[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-mentioned method for rendering the interactive interface through the computer program.
[0016] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned method for rendering an interactive interface is implemented.
[0017] In an embodiment of the present application, when renderers have been written separately for different user-side applications, JSON structure data corresponding to the design requirements of the interactive interface are received through the target client application; the renderer corresponding to the target user-side application is instructed to render an interactive interface that is allowed to be displayed in the target user-side application according to the JSON structure data, wherein the different user-side applications include: the target user-side application. That is, the JSON data of the interactive interface is first determined, and then the page can be rendered according to the JSON data based on the renderers created for different user-side applications in advance or after the JSON data is determined. The above technical solution is adopted to solve the problem in the related art that the multi-terminal framework forms an interactive interface for multi-terminal applications, which has a high learning cost, and if there is a need for modification later, the modification cost is also high, thereby achieving a set of pages that only needs to write a set of JSON structure data and can be rendered on multiple terminals, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 It is a hardware environment diagram of a rendering method of an interactive interface in an embodiment of the present application;
[0021] Figure 2 is a flowchart of a method for rendering an interactive interface according to an embodiment of the present application;
[0022] Figure 3 is a flowchart of a method for rendering an interactive interface according to an optional embodiment of the present invention;
[0023] Figure 4 It is a structural block diagram of a rendering device for an interactive interface according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] According to one aspect of an embodiment of the present application, a method for rendering an interactive interface is provided. The method for rendering an interactive interface is widely used in smart home, smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for rendering an interactive interface can be applied to Figure 1 In the hardware environment composed of the system platform 102 and the operation 104 shown in FIG. Figure 1 As shown, the operation terminal 104 is connected to the system platform 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the operation terminal or independently of the operation terminal to provide data storage services for the operation terminal 104. Cloud computing and / or edge computing services can be configured on the operation terminal or independently of the operation terminal to provide data computing services for the operation terminal 104.
[0027] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a system platform, etc.
[0028] It should be noted that the above-mentioned system platform can also be understood as the system platform where the target client application is located, and the operation terminal can be understood as a terminal that the development engineer or the like is allowed to operate and has the ability to operate.
[0029] In this embodiment, a method for rendering an interactive interface is provided, which is applied to the above-mentioned system platform 102 or operation terminal 104. Figure 2 : is a flowchart of a method for rendering an interactive interface according to an embodiment of the present application, the process comprising the following steps:
[0030] Step S202, when different user-side applications have written renderers respectively, receiving JSON structure data corresponding to the design requirements of the interactive interface through the target client application;
[0031] Step S204, instructing a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0032] In an embodiment of the present application, when renderers have been written separately for different user-side applications, JSON structure data corresponding to the design requirements of the interactive interface are received through the target client application; the renderer corresponding to the target user-side application is instructed to render an interactive interface that is allowed to be displayed in the target user-side application according to the JSON structure data, wherein the different user-side applications include: the target user-side application. That is, the JSON data of the interactive interface is first determined, and then the page can be rendered according to the JSON data based on the renderers created for different user-side applications in advance or after the JSON data is determined. The above technical solution is adopted to solve the problem in the related art that the multi-terminal framework forms an interactive interface for multi-terminal applications, which has a high learning cost, and if there is a need for modification later, the modification cost is also high, thereby achieving a set of pages that only needs to write a set of JSON structure data and can be rendered on multiple terminals, thereby reducing costs.
[0033] In an optional embodiment, instructing the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application according to the JSON structure data, including: instructing the renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application; rendering an interactive interface allowed to be displayed in the target user-side application according to the tag language.
[0034] In an optional embodiment, instructing a renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application, including: obtaining language rules of the tag language corresponding to the target user-side application; calling a data model of the JSON structure data to parse the JSON structure data according to the language rules to obtain the tag language corresponding to the JSON structure data.
[0035] In an optional embodiment, rendering an interactive interface that is allowed to be displayed in the target user-side application according to the tag language includes: parsing the structure and syntax of the tag language, and mapping the structure and syntax of the tag language to the HTML structure; constructing a document structure that is allowed to be parsed by the target user-side application according to the HTML structure; and rendering an interactive interface that is allowed to be displayed in the target user-side application according to the document structure.
[0036] In an optional embodiment, instructing the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application based on the JSON structure data, including: confirming whether the JSON structure data passes the data security verification; if it passes the data security verification, instructing the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application based on the JSON structure data.
[0037] In an optional embodiment, after instructing the renderer corresponding to the target user-side application to render an interactive interface allowed to be displayed in the target user-side application according to the JSON structure data, the method further includes: displaying the interactive interface on the target user-side application; receiving a modification operation of the target object; and modifying the interactive interface according to the modification operation if the modification operation passes the permission verification.
[0038] In an optional embodiment, after receiving the modification operation of the target object, the method further includes: parsing the identity authentication information of the target object from the modification operation; and determining that the modification authority passes the authority verification if the identity authentication information passes the verification. Optionally, the identity authentication information can be a password, fingerprint, face recognition, or other information that can be used for identity authentication, which is not limited.
[0039] In order to better understand the process of the rendering method of the above-mentioned interactive interface, the rendering implementation method process of the above-mentioned interactive interface is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0040] It should be noted that in software systems or platforms, such as Android, iOS, browsers, etc., a set of tags are provided to describe the user interface. When subsequent development engineers develop corresponding software, they must use the tags provided by the software system or platform for development, otherwise the subsequent interactive interface cannot be displayed successfully. In other words, the same set of user interfaces (also called interactive interfaces) requires the development of multiple sets of codes on different operating systems or platforms, which is inefficient.
[0041] In order to solve the above technical problems, an optional embodiment of the present invention introduces JSON structure data that can be successfully parsed in each software system / platform, and the JSON structure data can be used to describe the user interface. After receiving the JSON structure data, each software system / platform (referred to as each end) translates the JSON structure data into its own tag language, and the goal of cross-end rendering can be achieved.
[0042] In an optional embodiment, a picture is described using JSON structure data {tag:'picture',source:'https: / / www.pic.com / logo.png',width:'100',height:'100'}. In this way, it can be recognized that this is a picture component being described, with a width and height of 100 units, and the picture resource address is 'https: / / www.pic.com / logo.png'. Each end writes a corresponding renderer, which can be easily translated into the system's own tags and implement rendering.
[0043] In the embodiment of the present invention, after the correspondence between JSON data and UI elements is determined, JSON structure data is used to describe the interactive interface, wherein the basic data structure attributes of JSON include:
[0044] tag: describes the component type, required. For example, pic represents a picture, button represents a button, list represents a scrollable list, and so on;
[0045] width: describes the width size, required.
[0046] height: describes the height size, optional.
[0047] bgColor: describes the background color, optional.
[0048] bdColor: describes the border color, optional.
[0049] font: describes the text font information, optional. The font attribute can set sub-attributes such as color and size to describe the font information;
[0050] Source: Describes the resource address, optional. For example, pictures or videos need to have a URL address, and so on;
[0051] routeTo: describes the target page to jump to after clicking. This is optional. If you click a button to jump to a certain page, you need to fill in the path of the target page, and so on.
[0052] data: describes the data, optional. For example, a list component requires a set of data drivers.
[0053] Based on the basic data structure properties of JSON, a simple interactive interface can be described and can support a certain degree of interactive capabilities. After a targeted renderer has been written for each terminal in advance, the renderer can translate the JSON structure data into tags that describe the UI supported by its own system to achieve rendering of the interactive interface. Based on the above embodiment, for the same page, only JSON structure data needs to be written once and sent to each terminal, and the user can experience the interactive interface, and there is no need to write page code once for each terminal.
[0054] The rendering method of the above interactive interface is further explained below in conjunction with an optional embodiment, but is not intended to limit the above embodiment.
[0055] Figure 3 is a flowchart of a method for rendering an interactive interface according to an optional embodiment of the present invention, such as Figure 3 As shown in the figure, the UI designer and the development engineer agree on the correspondence between the elements of the UI design draft and the JSON structure data, and work with the business party to design the JSON structure data that meets the business requirements at the core abstraction layer. At the multi-end rendering layer, renderers are written on Android, iOS, browsers and other terminals to translate the JSON structure data into the label language of the corresponding terminal system, and then display different types of interfaces at the multi-end display layer.
[0056] It should be noted that a UI Design Draft refers to a sketch, prototype or visual design made by a designer when designing a user interface (UI). A UI Design Draft is mainly used to display the layout, color, font, graphic elements and other visual elements of the interface, as well as the way users interact with the interface. These design drafts can help the design team and project stakeholders better understand and evaluate the effects of the interface design.
[0057] In an optional embodiment, new requirements for the interactive interface will also be received. Then, after the new requirements are issued, the UI designer will make a design draft according to the agreement and deliver it to the development engineer. After the development engineer receives the design draft, he will translate the design draft into JSON data according to the agreement and send it to each user-end application. Each end application translates the JSON data into the label language of the corresponding end system through the renderer written in the above solution, and finally renders the interactive interface to present it to the user.
[0058] It can be seen that through the above technical solution, a set of pages only needs to write a set of JSON structure data, which can be rendered on multiple terminals, reducing development and testing costs. The renderer only needs to be written once and can be used for a long time, reducing development and testing costs. In addition, JSON structure data can easily add and remove attributes, and is highly scalable.
[0059] It should be noted that the JSON structured data in the optional embodiment of the present application is a lightweight data exchange format, which is generally used to transfer data between different systems. In UI design, the JSON format can be used to describe the structure, style and behavior of the interface, so as to present a consistent user experience on different platforms and devices. This way of describing a simple UI can make it easier for developers to build and manage user interfaces, and is also conducive to cross-platform and cross-device compatibility. A renderer is a software tool for converting graphics or animation data into visual images or videos. Its main function is to convert computer-generated graphics data into images or videos that can be recognized by humans, and process them through technologies such as lighting, shadows, and textures to achieve more realistic visual effects. Renderers are commonly used in filmmaking, video game development, architectural visualization, engineering design and other fields. Through the renderer, users can show the appearance, color, lighting and other aspects of the designed graphics or animations, making them more realistic and artistic.
[0060] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an operating terminal, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0061] Figure 4 is a structural block diagram of a rendering device for an interactive interface according to an embodiment of the present application; Figure 4 As shown, including:
[0062] The receiving module 40 is used to receive JSON structure data corresponding to the design requirements of the interactive interface through the target client application when different user-side applications have written renderers respectively;
[0063] The instruction module 42 is used to instruct the renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0064] In an embodiment of the present application, when renderers have been written separately for different user-side applications, JSON structure data corresponding to the design requirements of the interactive interface are received through the target client application; the renderer corresponding to the target user-side application is instructed to render an interactive interface that is allowed to be displayed in the target user-side application according to the JSON structure data, wherein the different user-side applications include: the target user-side application. That is, the JSON data of the interactive interface is first determined, and then the page can be rendered according to the JSON data based on the renderers created for different user-side applications in advance or after the JSON data is determined. The above technical solution is adopted to solve the problem in the related art that the multi-terminal framework forms an interactive interface for multi-terminal applications, which has a high learning cost, and if there is a need for modification later, the modification cost is also high, thereby achieving a set of pages that only needs to write a set of JSON structure data and can be rendered on multiple terminals, thereby reducing costs.
[0065] In an optional embodiment, the instruction module 42 is further used to instruct the renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application; and render an interactive interface allowed to be displayed in the target user-side application according to the tag language.
[0066] In an optional embodiment, the indication module 42 is further used to obtain the language rules of the tag language corresponding to the target user-side application; call the data model of the JSON structure data to parse the JSON structure data according to the language rules to obtain the tag language corresponding to the JSON structure data.
[0067] In an optional embodiment, the indication module 42 is further used to parse the structure and syntax of the tag language, and map the structure and syntax of the tag language to the HTML structure; construct a document structure that is allowed to be parsed by the target user-side application according to the HTML structure; and render an interactive interface that is allowed to be displayed in the target user-side application according to the document structure.
[0068] In an optional embodiment, the indication module 42 is also used to confirm whether the JSON structure data has passed the data security verification; if it has passed the data security verification, it instructs the renderer corresponding to the target user-side application to render an interactive interface that is allowed to be displayed in the target user-side application according to the JSON structure data.
[0069] In an optional embodiment, the indication module 42 is further used to display the interactive interface on the target user-side application; receive a modification operation of the target object; and modify the interactive interface according to the modification operation if the modification operation passes the authority verification.
[0070] In an optional embodiment, the indication module 42 is further used to: parse the identity authentication information of the target object from the modification operation; and determine that the modification authority passes the authority verification if the identity authentication information passes the verification. Optionally, the identity authentication information can be a password, fingerprint, face recognition, or other information that can be used for identity authentication, which is not limited.
[0071] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0072] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0073] S1, when different user-side applications have written renderers respectively, receiving JSON structure data corresponding to the design requirements of the interactive interface through the target client application;
[0074] S2, instructing a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0075] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0076] Optionally, 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.
[0077] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0078] S1, when different user-side applications have written renderers respectively, receiving JSON structure data corresponding to the design requirements of the interactive interface through the target client application;
[0079] S2, instructing a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
[0080] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0081] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0082] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0083] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0084] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0085] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0086] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A rendering method for an interactive interface, It is characterized in that include: In the case where renderers have been written separately for different user-side applications, JSON structure data corresponding to the design requirements of the interactive interface is received through the target client application; Instruct a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
2. The method for rendering an interactive interface according to claim 1, It is characterized in that Instructing a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, including: Instructing a renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application; An interactive interface that allows display in the target user-side application is rendered according to the tag language.
3. The method for rendering an interactive interface according to claim 1, It is characterized in that Instructing a renderer corresponding to the target user-side application to translate the JSON structure data into a tag language corresponding to the target user-side application includes: Acquire the language rules of the label language corresponding to the target user-side application; The data model of the JSON structure data is called to parse the JSON structure data according to the language rule to obtain a tag language corresponding to the JSON structure data.
4. The method for rendering an interactive interface according to claim 1, It is characterized in that Rendering an interactive interface that is allowed to be displayed in the target user terminal application according to the tag language includes: Parsing the structure and grammar of the tag language, and mapping the structure and grammar of the tag language to the HTML structure; Constructing a document structure that the target user-side application allows to parse according to the HTML structure; An interactive interface that is allowed to be displayed in the target user-side application is rendered according to the document structure.
5. The method for rendering an interactive interface according to claim 1, It is characterized in that Instructing a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, including: Confirm whether the JSON structure data passes the data security verification; In the case of passing the data security verification, instructing the renderer corresponding to the target user-side application to render an interactive interface that is allowed to be displayed in the target user-side application according to the JSON structure data.
6. The method for rendering an interactive interface according to claim 1, It is characterized in that After instructing the renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, the method further includes: Displaying the interactive interface on the target user-side application; Receive modification operations on the target object; In a case where the modification operation passes the authority verification, the interactive interface is modified according to the modification operation.
7. The method for rendering an interactive interface according to claim 6, It is characterized in that After receiving the modification operation of the target object, the method further includes: Parsing the identity authentication information of the target object from the modification operation; In a case where the identity authentication information passes verification, it is determined that the modification authority passes authority verification.
8. A rendering device for an interactive interface, It is characterized in that include: A receiving module, used for receiving JSON structure data corresponding to the design requirements of the interactive interface through the target client application when different user-side applications have written renderers respectively; An instruction module is used to instruct a renderer corresponding to the target user-side application to render an interactive interface according to the JSON structure data, wherein the interactive interface is allowed to be displayed in the target user-side application, and the different user-side applications include: the target user-side application.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
