Display interface generation method and device, equipment, medium and product

By receiving the display parameters and initial code input by the user, generating code files and reconstructing the initial code, the problem of low development efficiency of display interfaces in the existing technology is solved, and the target display interface is automatically generated is realized, which improves development efficiency and reduces costs. .

CN119127195APending Publication Date: 2024-12-13CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411265270.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The prior art relies on manual development when updating the layout of the display interface or adding display controls, resulting in low development efficiency and high labor costs.

Method used

By receiving the display parameters and initial code input by the user, a code file is generated based on the template file, and the initial code is refactored to generate the target code file to generate the target display interface, reducing manual development steps and improving development efficiency.

Benefits of technology

It reduces the difficulty and cost of the development of the display interface, improves the generation efficiency, and can automatically generate the target display interface, reducing manual cumbersome steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127195A_ABST
    Figure CN119127195A_ABST
Patent Text Reader

Abstract

The invention discloses a display interface generation method and device, equipment, a medium and a product, and belongs to the technical field of data processing.The method comprises the steps that first input of a user for a display interface is received, the first input comprises a display parameter and an initial code, the display parameter is a layout parameter of a display control, and the initial code is an initial code; the initial code is a code used for generating a display interface; generating a code file based on the template file of the display parameter and the code; reconstructing the initial code based on the code in the code file to generate a target code file; according to the method, the target code file is operated, the target display interface is generated, the code file is generated through the template file and the display parameters, and the initial code is reconstructed based on the code file, so that the generation efficiency of the code for generating the display interface is improved, and the generation efficiency of the display interface is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, device, equipment, medium and product for generating a display interface. Background Art

[0002] Currently, in the development process of the display interface, it is often necessary to add different display controls to the display interface to implement different business functions based on the display interface. However, the existing technology relies on manual development when the display interface needs to update the layout or add display controls, resulting in low development efficiency of the display interface. Summary of the invention

[0003] The embodiments of the present application provide a method, device, equipment, medium and product for generating a display interface, which can improve the development efficiency of the display interface.

[0004] In a first aspect, an embodiment of the present application provides a method for generating a display interface, comprising:

[0005] Receive a first input from a user for a display interface, the first input including a display parameter and an initial code, the display parameter is a layout parameter of a display control, and the initial code is a code for generating a display interface;

[0006] Generate code files based on template files showing parameters and codes;

[0007] Reconstruct the initial code based on the code in the code file to generate a target code file;

[0008] The target code file is run to generate a target display interface, wherein the target display interface includes a display control.

[0009] In a second aspect, an embodiment of the present application provides a device for generating a display interface, including:

[0010] A receiving module, used to receive a first input from a user for a display interface, the first input including a display parameter and an initial code, the display parameter being a layout parameter of a display control, and the initial code being a code for generating a display interface;

[0011] A generation module, used for generating a code file based on a template file showing parameters and codes;

[0012] The generation module is also used to reconstruct the initial code based on the code in the code file to generate a target code file;

[0013] The running module is used to run the target code file to generate a target display interface, wherein the target display interface includes a display control.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0015] a processor and a memory storing computer program instructions;

[0016] When the processor executes the computer program instructions, it is used to execute the method for generating the display interface of the first aspect mentioned above.

[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for generating a display interface according to the first aspect described above is implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when processed by a processor, implements the method for generating a display interface of the first aspect described above.

[0019] The display interface generation method, apparatus, device, medium and product provided in the embodiments of the present application, when receiving a first input based on the display interface from a user, generate a code file based on the display parameters included in the first input and a preset template file, and reconstruct the initial code including the generation of the display interface through the code in the code file to obtain a target code file, thereby reducing the development difficulty of the display interface, and then generating the target display interface by running the target code file, thereby improving the generation efficiency of the display interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A flowchart of a method for generating a display interface provided in some embodiments of the present application.

[0022] Figure 2 A schematic diagram of an exemplary display interface provided for some embodiments of the present application.

[0023] Figure 3 A flowchart of another method for generating a display interface provided in some embodiments of the present application.

[0024] Figure 4 A flowchart of another method for generating a display interface provided in some embodiments of the present application.

[0025] Figure 5 A flowchart of another method for generating a display interface provided in some embodiments of the present application.

[0026] Figure 6 A schematic diagram of a device for generating a display interface provided in some embodiments of the present application.

[0027] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0030] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0031] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0032] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:

[0033] At present, more and more companies have the need to develop display interfaces. For example, because companies need to keep pace with internationalization, they need to develop display interfaces in different languages, or because companies have added new services, they need to add new display controls based on the original display interface. Both of the above situations require manual redevelopment based on the original display interface, which may result in problems such as high development difficulty, low development efficiency and high labor costs.

[0034] Based on this, the embodiments of the present application provide a method, device, equipment, medium and product for generating a display interface, which can solve the above problems.

[0035] In some embodiments, Figure 1 As shown, the embodiment of the present application provides a method for generating a display interface, which may include steps S110-S140:

[0036] S110: receiving a first input from a user for a display interface, the first input including display parameters and an initial code, the display parameters are layout parameters of a display control, and the initial code is a code for generating a display interface.

[0037] A first input from a user for a display interface may be received, and the first input may include display parameters, where the display parameters are layout parameters of a display control, such as a display position, display size, display type, and display mode of the display control in the display interface to be generated. The display type may be any one of a form page display type, a list page display type, or a list-form mixed page display type. The display mode may be a graphic column display or a non-graphic column display. Here, the display parameters may also include identification information of the display control when it is displayed on the display interface, such as a name or icon of the display control displayed on the display interface, and may further include the language type of the name.

[0038] The first input also includes an initial code for generating a display interface, and the initial code can obtain relevant code from an installation package of the display interface.

[0039] S120: Generate a code file based on the display parameters and the code template file.

[0040] The code file can be generated based on the display parameters and the preset code template file. Here, the code template file is a file generated in response to the user's target operation. The code file can be generated by detecting the fields of the display parameters and filling them into the preset positions in the template file.

[0041] S130: Reconstruct the initial code based on the code in the code file to generate a target code file.

[0042] The initial code may be reconstructed through the code in the code file to generate a target code file. For example, the initial code may be modified through the code in the code file to obtain the target code file.

[0043] S140: Run the target code file to generate a target display interface, wherein the target display interface includes a display control.

[0044] The target code file may be run to generate a target display interface. Here, the target display interface is an interface different from the display interface, and the target display interface may include a display control.

[0045] The embodiment of the present application generates a code file based on the display parameters included in the first input and a preset template file when receiving a first input based on the display interface from the user, and reconstructs the initial code including the generation of the display interface through the code in the code file to obtain a target code file, thereby reducing the difficulty of developing the display interface. Thereafter, the target display interface is generated by running the target code file, without the need for tedious steps of manual re-development, thereby improving the generation efficiency of the display interface.

[0046] In order to further reduce the development difficulty, a selection control may be displayed on the display interface, and the user may input display parameters for the selection control on the display interface.

[0047] In some embodiments, Figure 2 As shown, Figure 2 is a schematic diagram of an exemplary display interface, the display interface includes a first selection control for displaying parameters,

[0048] Receiving a first input from a user on a display interface includes:

[0049] Receive a first input from a user for a first selection control in the display interface.

[0050] It can be understood that a first input of a user for a first selection control of a display interface is received, such as Figure 2 , the first selection control may include multiple sub-first selection controls, such as Figure 2 The first selection control may include an initial code input control and multiple input display parameter controls.

[0051] The embodiment of the present application sets a first selection control on the display interface and receives a first input from the user based on the first selection control, so as to visually display to the user the specific content required for input to reconstruct the display interface, thereby saving the user time in analyzing the input content required to generate the display interface and improving the efficiency of generating the display interface.

[0052] Here, to meet the flexible needs of users, the template files may include multiple ones, each template file may correspond to a display mode, and the correspondence between the identification information of the display control to be displayed and the template file may be preset to determine the target template file required by the user.

[0053] In some embodiments, Figure 3 As shown, the display parameters include the target identification information of the display control, and the template file includes multiple sub-template files.

[0054] Step S120: Generate a code file based on the display parameters and the code template file, which may include the following steps S310-S320:

[0055] S310: Determine a target sub-template file corresponding to the target identification information based on a preset correspondence between the identification information and the template file.

[0056] Here, the display parameter may be the target identification information of the medical insurance card display control, and the target sub-template file corresponding to the target identification information may be determined based on the correspondence between the preset identification information and the template file. For example, when the identification information is "query", the target sub-template file corresponding to the "query" identification may be determined.

[0057] S320: Generate a code file based on the display parameters and the target sub-template file.

[0058] The above code file can be generated based on the display parameters and the target sub-template file. Taking the target sub-template file corresponding to the "query" identifier as an example, after the code file generated based on the above display parameters including "query" and the corresponding target sub-template file is run, a display control with a query identifier can be displayed on the target display interface. When the user subsequently clicks on the display control with the query identifier, multiple prompt boxes can be displayed in which the user can enter query information.

[0059] Here, it can be imagined that multiple sub-template files can be generated in response to the user's target operation, and the display content of the display space in the target display interface generated based on each different sub-template file is different. For example, in the display interface generated based on the target sub-template file corresponding to the "storage" identifier, when the user clicks on the display control with the storage identifier, multiple sub-display interfaces can be displayed for the user to input different storage information.

[0060] The embodiment of the present application pre-sets multiple sub-template files and the correspondence between the identification information of the display control and the template file, and generates a code file by determining the target sub-template file corresponding to the target identification information. This allows users to flexibly set the display content of different display controls and improve the flexibility of the generated display interface.

[0061] It is conceivable that the user can input display parameters of multiple different display controls. When the display parameters include multiple ones, the template file corresponding to each display parameter can be determined, and the initial code can be constructed by the codes in the generated multiple code files to obtain the target code file. When the target code file is run, the generated display interface can include multiple display controls.

[0062] In some embodiments, Figure 4 As shown, the display parameter includes sub-display parameters of multiple sub-display controls, the target identification information includes multiple sub-target identification information, one sub-display parameter includes one sub-target identification information, and the code file includes multiple sub-code files.

[0063] Step S310: determining the target sub-template file corresponding to the target identification information based on the preset correspondence between the identification information and the template file may include:

[0064] S410: Determine the target sub-template file corresponding to each sub-target identification information based on the preset correspondence between the identification information and the template file.

[0065] When the display parameters include sub-display parameters of multiple sub-display controls, the target sub-template file corresponding to each sub-target identification information can be determined based on the correspondence between the preset identification information and the template file. It is conceivable that each target sub-template file can set the display content of a sub-display control.

[0066] Step S320: Generate a code file based on the display parameters and the target sub-template file, which may include:

[0067] S420: Based on each sub-display parameter and each target sub-template file, generate a sub-code file corresponding to each sub-display parameter.

[0068] A sub-code file may be generated based on each sub-display parameter and the corresponding target sub-template file.

[0069] Step S130: reconstructing the initial code based on the code in the code file to generate a target code file, including:

[0070] S430: Reconstruct the initial code based on the codes in the multiple sub-code files to generate a target code file.

[0071] At the same time, the initial code is reconstructed based on the codes in the multiple sub-code files to generate a target code file. It is conceivable that when the target code file is subsequently run, the generated display interface may include multiple sub-display controls.

[0072] In the embodiment of the present application, when the display parameters include sub-display parameters of multiple sub-display controls, based on the above-mentioned pre-setting of multiple sub-template files and the correspondence between the identification information of the display controls and the template file, a target sub-template file corresponding to each sub-target identification information is determined, a sub-code file is generated, and an initial code is reconstructed through the multiple sub-code files to obtain a target code file. The display parameters of multiple sub-display controls can be set at the same time, and a target display interface including multiple sub-display controls can be generated afterwards, thereby further improving the efficiency of generating the display interface.

[0073] It is conceivable that after generating the target display interface, the user can further adjust the layout of the display controls in the display interface.

[0074] In some embodiments, Figure 5 As shown, the target display interface also includes a second selection control;

[0075] Step S140: After running the target code file and generating the target display interface, the method may further include steps S510-S520:

[0076] S510: Receive a second input from a user for a second selection control on a target display interface, where the second input includes an adjustment parameter, and the adjustment parameter is a parameter for adjusting a layout of the display control on the target display interface.

[0077] The target display interface may include a second selection control, which can receive a second input from the user for the second selection control of the target display interface. The second input may include multiple adjustment parameters, and the adjustment parameters include parameters for adjusting the display of the display control. Specifically, the display position, display size, and display type of the above-mentioned display control can be adjusted, which will not be repeated here.

[0078] S520: Adjusting the display layout of the display control on the target display interface based on the adjustment parameters.

[0079] Based on the above adjustment parameters, the layout of the display controls in the program of the display interface can be modified, for example, the icon or name of the display control can be modified.

[0080] The embodiment of the present application can facilitate the user to quickly adjust the target display interface and improve the efficiency of generating the display interface by adjusting the display layout of the display control on the target display interface based on the adjustment parameters included in the second input by the user to the second selection control included in the display interface after generating the target display interface.

[0081] In some embodiments, after step S140: running the target code file and generating the target display interface, the method may further include:

[0082] Receive a third input from the user based on a display control in a target display interface, the third input including data to be processed; determine a target operation instruction corresponding to the target identification information based on a correspondence between identification information of a preset display control and an operation instruction; process the data based on the target operation instruction to obtain a processing result, and display the processing result on the target display interface.

[0083] A third input from a user based on a display control in a target display interface may be received, and the third input may include data to be processed. For example, a user may input data to be stored based on the display control of the storage identifier, and a target operation instruction corresponding to the target identification information may be determined based on the correspondence between the identification information of the display control and the operation instruction, and the data may be processed based on the target operation instruction to obtain a processing result. For example, based on the "storage" identifier, the corresponding storage instruction may be queried to store the data.

[0084] The embodiment of the present application queries the target operation instruction corresponding to the target identifier based on the user's third input to the above-mentioned display control after generating the target display interface, and executes the target operation instruction on the data input by the user. While quickly generating the display interface, the display control of the target display interface can respond to the user's third input to perform the corresponding target operation, thereby improving the user's data processing efficiency.

[0085] It is conceivable that the above display parameters based on user input and template files can quickly generate a display interface including display controls, so that different services can be provided to users based on the newly generated target display interface, thereby improving user experience.

[0086] Based on the same inventive concept, an embodiment of the present application also provides a device for generating a display interface.

[0087] In some embodiments, Figure 6 As shown, an embodiment of the present application provides a device for generating a display interface, which may include:

[0088] A receiving module 601 is used to receive a first input from a user for a display interface, where the first input includes a display parameter and an initial code, where the display parameter is a layout parameter of a display control, and the initial code is a code for generating a display interface;

[0089] A generating module 602, for generating a code file based on display parameters and a code template file;

[0090] The generation module 602 is further used to reconstruct the initial code based on the code in the code file to generate a target code file;

[0091] The running module 603 is used to run the target code file to generate a target display interface, wherein the target display interface includes a display control.

[0092] In some embodiments, the display interface includes a first selection control for displaying a parameter,

[0093] The receiving module is also used to:

[0094] Receive a first input from a user for a first selection control in the display interface.

[0095] In some embodiments, the display parameter includes target identification information of the display control, and the template file includes a plurality of sub-template files.

[0096] Generates modules, also used to:

[0097] Based on the correspondence between the preset identification information and the template file, determining the target sub-template file corresponding to the target identification information;

[0098] Generates code files based on display parameters and target sub-template files.

[0099] In some embodiments, the display parameter includes sub-display parameters of a plurality of sub-display controls, the target identification information includes a plurality of sub-target identification information, one sub-display parameter includes one sub-target identification information, the code file includes a plurality of sub-code files,

[0100] Generates modules, also used to:

[0101] Based on the correspondence between the preset identification information and the template file, determine the target sub-template file corresponding to each sub-target identification information;

[0102] Based on each sub-display parameter and each target sub-template file, a sub-code file corresponding to each sub-display parameter is generated;

[0103] The initial code is reconstructed based on the codes in multiple sub-code files to generate a target code file.

[0104] In some embodiments, the target display interface further includes a second selection control;

[0105] The receiving module is also used to:

[0106] Receiving a second input from a user for a second selection control on the target display interface, where the second input includes an adjustment parameter, where the adjustment parameter is a parameter for adjusting a layout of the display control on the target display interface;

[0107] Based on the adjustment parameters, the display layout of the display control on the target display interface is adjusted.

[0108] In some embodiments, the receiving module is further configured to:

[0109] receiving a third input from a user based on a display control in a target display interface, wherein the third input includes data to be processed;

[0110] Based on the correspondence between the identification information of the preset display control and the operation instruction, determine the target operation instruction corresponding to the target identification information;

[0111] The data is processed based on the target operation instruction to obtain the processing result, and the processing result is displayed on the target display interface.

[0112] The device of the above embodiment is used to implement the corresponding display interface generation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0113] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an application embodiment.

[0114] The electronic device 700 may include a processor 701 and a memory 702 storing computer program instructions.

[0115] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0116] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0117] In certain embodiments, memory 702 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.

[0118] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.

[0119] The processor 701 reads and executes computer program instructions stored in the memory 702 to implement any one of the display interface generation methods in the above embodiments.

[0120] In one example, the electronic device may further include a communication interface 703 and a bus 704. Figure 7 The processor 701, the memory 702, and the communication interface 703 are connected via a bus 704 and communicate with each other.

[0121] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0122] Bus 704 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 704 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0123] The electronic device of the above-mentioned embodiment is used to implement the corresponding display interface generation method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0124] In addition, in combination with the display interface generation method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the display interface generation methods in the above embodiment is implemented.

[0125] In addition, in combination with the display interface generation method in the above embodiment, the present application embodiment can provide a computer program product for implementation. When the computer program product instructions are executed by a processor of an electronic device, any display interface generation method in the above embodiment is implemented.

[0126] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0127] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0128] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or devices based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0129] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (device) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0130] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.

Claims

1. A method for generating a display interface, characterized in that: include: Receive a first input from a user for a display interface, wherein the first input includes a display parameter and an initial code, wherein the display parameter is a layout parameter of a display control, and the initial code is a code for generating a display interface; Generate a code file based on the display parameters and the code template file; Reconstructing the initial code based on the code in the code file to generate a target code file; The target code file is run to generate a target display interface, wherein the target display interface includes the display control.

2. The method for generating a display interface according to claim 1, characterized in that: The display interface includes a first selection control for display parameters, The receiving a first input from a user on a display interface includes: Receive the first input from the user for the first selection control in the display interface.

3. The method for generating a display interface according to claim 1, characterized in that: The display parameters include target identification information of the display control, and the template file includes multiple sub-template files. The generating of the code file based on the display parameter and the code template file comprises: Based on the correspondence between the preset identification information and the template file, determining the target sub-template file corresponding to the target identification information; The code file is generated based on the display parameters and the target sub-template file.

4. The method for generating a display interface according to claim 3, characterized in that: The display parameter includes sub-display parameters of multiple sub-display controls, the target identification information includes multiple sub-target identification information, one sub-display parameter includes one sub-target identification information, and the code file includes multiple sub-code files. The determining, based on the correspondence between the preset identification information and the template file, the target sub-template file corresponding to the target identification information includes: Based on the correspondence between the preset identification information and the template file, determining the target sub-template file corresponding to each sub-target identification information; The generating the code file based on the display parameter and the target sub-template file comprises: Based on each of the sub-display parameters and each of the target sub-template files, generating the sub-code file corresponding to each of the sub-display parameters; The reconstructing the initial code based on the code in the code file to generate a target code file includes: The initial code is reconstructed based on the codes in the plurality of sub-code files to generate the target code file.

5. The method for generating a display interface according to claim 1, characterized in that: The target display interface also includes a second selection control; After running the target code file and generating the target display interface, the method further includes: Receiving a second input from a user for a second selection control on the target display interface, where the second input includes an adjustment parameter, where the adjustment parameter is a parameter for adjusting a layout of a display control on the target display interface; Based on the adjustment parameters, the display layout of the display control on the target display interface is adjusted.

6. The method for generating a display interface according to claim 2, characterized in that: After running the target code file and generating the target display interface, the method further includes: receiving a third input from a user based on the display control in the target display interface, wherein the third input includes data to be processed; Based on the correspondence between the identification information of the preset display control and the operation instruction, determining the target operation instruction corresponding to the target identification information; The data is processed based on the target operation instruction to obtain a processing result, and the processing result is displayed on the target display interface.

7. A device for generating a display interface, characterized in that: include: A receiving module, configured to receive a first input from a user for a display interface, wherein the first input includes a display parameter and an initial code, wherein the display parameter is a layout parameter of a display control, and the initial code is a code for generating a display interface; A generating module, used for generating a code file based on the display parameters and the code template file; A generation module is further used to reconstruct the initial code based on the code in the code file to generate a target code file; A running module is used to run the target code file to generate a target display interface, wherein the target display interface includes the display control.

8. An electronic device, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the method for generating a display interface as described in any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for generating a display interface according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is processed by a processor, the method for generating a display interface as described in any one of claims 1 to 6 is implemented.