CN117555532A - Display application generation method and device, electronic equipment and storage medium - Google Patents

Display application generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117555532A
CN117555532A CN202311737301.8A CN202311737301A CN117555532A CN 117555532 A CN117555532 A CN 117555532A CN 202311737301 A CN202311737301 A CN 202311737301A CN 117555532 A CN117555532 A CN 117555532A
Authority
CN
China
Prior art keywords
displayed
image
display
display application
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311737301.8A
Other languages
Chinese (zh)
Inventor
李少敏
王凯峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yuantek Technology Co ltd
Original Assignee
Beijing Yuantek Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yuantek Technology Co ltd filed Critical Beijing Yuantek Technology Co ltd
Priority to CN202311737301.8A priority Critical patent/CN117555532A/en
Publication of CN117555532A publication Critical patent/CN117555532A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method, a device, electronic equipment and a storage medium for generating display application, wherein the method comprises the steps of receiving a plurality of images to be displayed, and obtaining a display sequence relation among the images to be displayed and preset requirements corresponding to the images to be displayed; configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed; generating a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and carrying out configuration detection on the configuration file; and in response to determining that the configuration file passes the configuration detection, generating codes based on the configuration file and a pre-written display application to generate the display application so as to display each image to be displayed according to the display sequence by using the display application, thereby solving the technical problem of complicated operation for generating the display application in the prior art and improving the generation efficiency of the display application.

Description

Display application generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and apparatus for generating a display application, an electronic device, and a storage medium.
Background
With the development of information technology, electronic devices such as computers and smart phones have become an indispensable tool in daily life, learning and work of people. Meanwhile, as demands of people increase, plug-ins, application programs and the like displayed on the desktop of the electronic equipment are more and more, and contents displayed to users in display applications of the application programs, the plug-ins and the like are more and more abundant.
In the prior art, in the process of generating a display application, UI (User Interface) designers and product managers are required to participate in the whole process, and configuration of images to be displayed in the display application is required to be completed manually and gradually in the whole process, so that the operation of generating the display application is relatively complicated, and for a scene of the interactive application which needs to be completed rapidly and with high fidelity, the required development period is longer and the development cost is higher.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, an apparatus, an electronic device and a storage medium for generating a display application, so as to overcome all or part of the defects in the prior art.
Based on the above objects, the present application provides a method for generating a display application, including: receiving a plurality of images to be displayed, and acquiring a display sequence relation among the images to be displayed and a preset requirement corresponding to the images to be displayed; configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed; generating a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and carrying out configuration detection on the configuration file; in response to determining that the configuration file passes the configuration detection, generating a code based on the configuration file and a pre-written display application, generating the display application to display each image to be displayed in the display order with the display application.
Optionally, configuring each image to be displayed based on the display sequence relationship to obtain a link relationship corresponding to each image to be displayed, including: and for each image to be displayed, searching a target image to be displayed, which has the display sequence relation with the image to be displayed, in all the images to be displayed, and configuring the link relation between the image to be displayed and the target image to be displayed.
Optionally, the configuring the link relation between the image to be displayed and the target image to be displayed includes: determining a target area in the image to be displayed according to a preset rule; and acquiring a storage address of the target image to be displayed, and establishing the link relation between the target area and the storage address.
Optionally, after generating the display application to display each image to be displayed with the display application, the method includes: and responding to the received triggering operation of the target area of the image to be displayed in the display application, determining a target image to be displayed corresponding to the image to be displayed according to the link relation, and displaying the target image to be displayed through the display application.
Optionally, the display application generation code includes an initial configuration file; the generating the code based on the configuration file and the pre-written display application, and generating the display application comprises the following steps: and replacing the initial configuration file with the configuration file to obtain a target display application generation code, and running the target display application generation code to generate the display application.
Optionally, the determining that the configuration file passes the configuration detection includes: and determining that the configuration file passes the configuration detection in response to the configuration file having the same format as the predetermined format and all images to be displayed being included in the configuration file.
Optionally, after the configuration file is detected, the method further includes: and in response to determining that the configuration file fails the configuration detection, sending information for prompting the abnormality of the configuration file.
Based on the same inventive concept, the present application further provides a generating device for a display application, including: the receiving module is configured to receive a plurality of images to be displayed, and acquire a display sequence relation among the images to be displayed and a preset requirement corresponding to the images to be displayed; the configuration module is configured to configure each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed; the configuration detection module is configured to generate a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and perform configuration detection on the configuration file; and the generation module is configured to generate codes based on the configuration file and a pre-written display application in response to determining that the configuration file passes the configuration detection, and generate the display application so as to display each image to be displayed according to the display sequence by using the display application.
Based on the same inventive concept, the application also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the method as described above when executing the computer program.
Based on the same inventive concept, the present application also provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method as described above.
From the above, it can be seen that the method, the device, the electronic device and the storage medium for generating the display application provided by the present application, the method includes receiving a plurality of images to be displayed, and obtaining a display sequence relationship between the images to be displayed and a preset requirement corresponding to the images to be displayed. And configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed, so that the display accuracy and the continuity of the images to be displayed in the display application are ensured. Based on the preset requirements, each image to be displayed and the associated link relation, a configuration file is generated, the purpose of comprehensively reflecting the design requirements of the display application is achieved, configuration detection is carried out on the configuration file, and the correctness of the configuration file participating in the generation of the display application is ensured. And in response to determining that the configuration file passes the configuration detection, generating codes based on the configuration file and a pre-written display application to generate the display application so as to display each image to be displayed according to the display sequence by using the display application, thereby solving the technical problem of complex operation for generating the display application in the prior art and improving the generation efficiency of the display application.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
Fig. 1 is a flow chart of a method for generating a display application according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a generating device of a display application according to an embodiment of the present application;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
As described in the background section, with the development of information technology, electronic devices such as computers, smartphones, and the like have become an indispensable tool in people's daily life, learning, and work. Meanwhile, as demands of people increase, plug-ins, application programs and the like displayed on the desktop of the electronic equipment are more and more, and contents displayed to users in display applications of the application programs, the plug-ins and the like are more and more abundant. For example, the display application may be a prototype model, where a prototype model refers to a working prototype of the system that should be built before the development of the actual software is performed, typically with limited functionality, lower reliability and inadequate performance compared to the actual software, typically a coarser version of the actual system. The prototype model is used for verifying the design and function of a product and performing modification and optimization processes by making a preliminary product model, i.e., a prototype model, during the development of the product.
In the prior art, in the process of generating a display application, a User Interface (UI) designer and a product manager are required to participate in the whole process, and the configuration of an image to be displayed in the display application is required to be completed manually and amplitude by amplitude in the whole process. Illustratively, when the display application is configured using a design tool, the design tool provides many interface controls to design the visual interface in the display application, and is capable of setting various parameters, dynamic data, and interactive flows between interfaces. However, the design tool requires the UI designer and the product manager to negotiate configuration in the whole process and participate manually, so that the operation of generating the display application is relatively complicated, and for the scene of the interactive application which needs to complete high fidelity rapidly, the required development period is longer and the development cost is higher.
In view of this, an embodiment of the present application proposes a method for generating a display application, referring to fig. 1, including the following steps:
step 101, receiving a plurality of images to be displayed, and obtaining a display sequence relation among the images to be displayed and a preset requirement corresponding to the images to be displayed.
In this step, a plurality of images to be displayed are received, wherein the images to be displayed are images to be displayed in the display application. It should be noted that, the receiving of the image to be displayed may be completed by moving the image to be displayed to a predetermined display area, where the predetermined display area is an area in a visual interface corresponding to a generating system of the display application, for example, the predetermined display area may be a flow frame, and related personnel may drag the image to be displayed into the flow frame, where the flow frame supports operations of moving, amplifying, shrinking, and automatic layout, so as to adjust a position of the image to be displayed, and facilitate browsing by a user. The images to be displayed have a display sequence in the visual interface, and the images to be displayed are displayed according to the display sequence, so that the display application is fully displayed and brings good look and feel to the user, and therefore, the display sequence relation among the images to be displayed needs to be acquired. The display application in the application only needs the UI designer and the product manager to negotiate together at the beginning of design so as to determine the preset requirement corresponding to the image to be displayed, the UI designer and the product manager do not need to participate in the configuration of the display application manually in the whole process together, and the negotiation result can be accurately embodied. Therefore, the preset requirements corresponding to the image to be displayed are also required to be obtained. The generation basis for display application is laid through the images to be displayed, the sequence relation among the images to be displayed and the preset requirements corresponding to the images to be displayed. After the image to be displayed is imported into the generating system of the display application, displaying a list of the image to be displayed through a visual interface corresponding to the generating system, wherein the image to be displayed in the list can be displayed in the form of an image name, and after the generating system receives a moving instruction of the image to be displayed, moving the image to be displayed to a preset display area. The process can drag the images to be displayed in the list in the visual interface corresponding to the generation system through the related personnel, and drag the images to be displayed in the flow frame in the visual interface. The sequential relation among the images to be displayed and the preset requirements corresponding to the images to be displayed are packaged into a construction manual of the display application, and the construction manual is only required to be imported into the generation system. The display device is easy to operate because no professional is required to manually configure the display device when the display application is operated.
And 102, configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed.
In the step, the images to be displayed have a display sequence relationship in the visual interface, and the display sequence relationship determines the sequence of the images to be displayed in the visual interface. The images to be displayed are displayed according to the display sequence relation, so that the content in the visual interface can be accurately expressed, and the user has good look and feel. Therefore, the images to be displayed need to be configured based on the display sequence relationship, so that the link relationship of the images to be displayed is obtained, and the display accuracy and the continuity of the images to be displayed in the display application are ensured.
And step 103, generating a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and carrying out configuration detection on the configuration file.
In this step, the preset requirements determine the configuration requirements of the image to be displayed, and exemplary, the preset requirements include an animation action corresponding to the image to be displayed, and table 1 is the configuration requirements of the animation action of the image to be displayed, where the animation action may be a progress effect and a delay setting, the progress effect may be a progress bar or a Loading animation picture, etc. used to indicate the waiting effect, and the delay setting automatically calculates the progress of the progress bar or hides the Loading animation picture according to time. The preset requirement also comprises page information corresponding to the image to be displayed, wherein the page information comprises a navigation menu. Exemplary, table 2 is a configuration requirement for a navigation menu, the navigation menu in the preset requirement is a tree control, the navigation menu tree of the page can be set by adding and deleting leaf nodes, and the color matching, the picture and the navigation position of the menu can be set, wherein the navigation position comprises: top navigation menu, left navigation menu, right navigation menu, left list navigation, wherein left list navigation is selectable only when there is only one layer of navigation tree. And generating a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed. The purpose of comprehensively reflecting the design requirements of display application is achieved through the generated configuration file. Configuration errors may occur in the configuration file, so that configuration detection needs to be performed on the configuration file, and correctness of the configuration file participating in generation of the display application is ensured.
TABLE 1 configuration requirements table for animation actions of images to be displayed
TABLE 2 configuration requirement Table of navigation menu for images to be displayed
Configuration item Meaning of
name Menu name
imgAfterClick Image name, image to be displayed after clicking
children The recursively configurable item array can be empty
And 104, generating a display application based on the configuration file and a pre-written display application generating code in response to determining that the configuration file passes the configuration detection, so as to display each image to be displayed according to the display sequence by using the display application.
In this step, in the case that the configuration file passes the configuration detection, it is explained that the configuration of the configuration file has accuracy. Thus, based on the configuration file and the display application generation code written in advance, a display application is generated, which is capable of displaying each image to be displayed in the display order. For example, the display application may be a prototype model, where the prototype model refers to a simple model that can initially reflect the functions of the actual software, and before the development of the actual software is performed, the image to be displayed is an image showing the functions. The display application may be applied to a Web (World Wide Web) program, a Windows (operating system developed based on a graphical user interface) desktop program, a Ubuntu (Linux distribution operating system based on a desktop application) desktop program, an apple phone program, or an android phone program, or the like. According to the method and the device, the UI designer and the product manager do not need to participate in the generation of the display application manually in the whole process, and only related personnel are required to import the image to be displayed into the generation system of the display application, so that the display application can be generated, the UI designer, the product manager, the developer or the tester can generate the display application to carry out product function demonstration as long as the interaction process of the visual interface is clear, the business operation flow and the interface effect required by the demand communication can be completed rapidly, the technical problem that the generation operation of the display application is complex in the prior art is solved, and the generation efficiency of the display application is improved.
Through the scheme, a plurality of images to be displayed are received, and the display sequence relation among the images to be displayed and the preset requirements corresponding to the images to be displayed are acquired. And configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed, so that the display accuracy and the continuity of the images to be displayed in the display application are ensured. Based on the preset requirements, each image to be displayed and the associated link relation, a configuration file is generated, the purpose of comprehensively reflecting the design requirements of the display application is achieved, configuration detection is carried out on the configuration file, and the correctness of the configuration file participating in the generation of the display application is ensured. And in response to determining that the configuration file passes the configuration detection, generating codes based on the configuration file and a pre-written display application to generate the display application so as to display each image to be displayed according to the display sequence by using the display application, thereby solving the technical problem of complex operation for generating the display application in the prior art and improving the generation efficiency of the display application.
In some embodiments, the configuring each image to be displayed based on the display order relationship to obtain a link relationship corresponding to each image to be displayed includes: and for each image to be displayed, searching a target image to be displayed, which has the display sequence relation with the image to be displayed, in all the images to be displayed, and configuring the link relation between the image to be displayed and the target image to be displayed.
In this embodiment, there is a display order relationship between the images to be displayed, so that the images to be displayed in the display application are displayed coherently. The all images to be displayed include a first image to be displayed and a second image to be displayed … nth image to be displayed, wherein the first image to be displayed is an initial image to be displayed of the display application, and after the display application is generated, the first image to be displayed of the display application is the initial image to be displayed. After the first image to be displayed is displayed, a second image to be displayed is required to be displayed, the second image to be displayed is determined to be a target image to be displayed, which has a display sequence relation with the first image to be displayed, and a link relation between the image to be displayed and the target image to be displayed is configured, so that the images to be displayed have sequence.
In some embodiments, the configuring the link relation between the image to be displayed and the target image to be displayed includes: determining a target area in the image to be displayed according to a preset rule; and acquiring a storage address of the target image to be displayed, and establishing the link relation between the target area and the storage address.
In this embodiment, the target area is determined in the image to be displayed according to a preset rule, where the preset rule may be that the image to be displayed is divided into areas based on a center point of the image to be displayed, so as to determine the target area. For example, a coordinate axis is established with the center point as the center of a circle, the coordinate axis divides the image to be displayed into four regions, and the upper left partial region of the four regions can be determined as the target region. And acquiring a storage address of the target image to be displayed, wherein the storage address enables the target image to be displayed to be distinguishable from other images to be displayed, and establishing a link relation between the target area and the storage address, so that the established link relation has accuracy.
In some embodiments, after generating the display application to display each image to be displayed with the display application, the method includes: and responding to the received triggering operation of the target area of the image to be displayed in the display application, determining a target image to be displayed corresponding to the image to be displayed according to the link relation, and displaying the target image to be displayed through the display application.
In this embodiment, a link relationship exists between a target area in an image to be displayed and a target image to be displayed associated with the target area, and the target area can be linked to the target image to be displayed through a trigger operation on the target area. For example, after the display application is generated, the display application first displays the initial image to be displayed, and through the triggering operation on the target area in the initial image to be displayed, the display application displays the image to be displayed which has a link relation with the initial image to be displayed. Therefore, when the trigger operation on the target area of the image to be displayed in the display application is received, the target image to be displayed, which has a link relation with the target area, needs to be determined first, and the display application displays the target image to be displayed, so that the display application can be continuously and accurately displayed through a plurality of images to be displayed, and a user can fully know the display application.
In some embodiments, the display application generation code includes an initial configuration file; the generating the code based on the configuration file and the pre-written display application, and generating the display application comprises the following steps: and replacing the initial configuration file with the configuration file to obtain a target display application generation code, and running the target display application generation code to generate the display application.
In the present embodiment, the display application generation code is used to generate the display application, but the configuration of different display applications is not the same. In order to improve reusability of the display application generating codes, the initial configuration file in the display application generating codes is replaced by the configuration file, so that the generating codes of the display application corresponding to the configuration file, namely the target display application generating codes, are obtained, the target display application generating codes are operated, the display application is generated, workload of a developer is saved, the possibility of bug occurrence is reduced, and further the generating efficiency of the display application is improved.
In some embodiments, the determining that the configuration file passes the configuration detection comprises: and determining that the configuration file passes the configuration detection in response to the configuration file having the same format as the predetermined format and all images to be displayed being included in the configuration file.
In this embodiment, the format of the configuration file needs to be adapted to the platform to which the display application applies, and, for example, in the case that the platform is a web page, the configuration file format may be a Javascript file; in the case where the platform is a desktop or mobile APP, the configuration file format may be xml, json, etc. Therefore, in order to enable the display application to be successfully applied, the format of the configuration file needs to be detected, and whether the format of the configuration file is the same as a preset format or not is detected, wherein the preset format is a format corresponding to a platform to which the display application is applied. The display application needs to display all the images to be displayed, if the images to be displayed are lost, the wrong display application is generated, and the display application cannot be fully understood by a user. Therefore, it is necessary to determine that all the images to be displayed are included in the configuration file. And under the condition that the format of the configuration file is the same as the preset format and the configuration file comprises all images to be displayed, the configuration file is illustrated to ensure the correctness of the configuration file through configuration detection.
In some embodiments, after configuration detection of the configuration file, the method further comprises: and in response to determining that the configuration file fails the configuration detection, sending information for prompting the abnormality of the configuration file.
In this embodiment, in the case that the configuration file does not pass the configuration detection, it is explained that there is an error in the configuration of the configuration file. In order to ensure smooth generation of the display application, information for prompting abnormality of the configuration file is required to be sent out, so that related personnel can modify the configuration file in time, and correctness of the configuration file is ensured.
It should be noted that, the method of the embodiments of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present application, and the devices may interact with each other to complete the methods.
It should be noted that some embodiments of the present application are described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, the application also provides a device for generating the display application, which corresponds to the method of any embodiment.
Referring to fig. 2, the generating device of the display application includes:
the receiving module 10 is configured to receive a plurality of images to be displayed, and acquire a display sequence relationship between the images to be displayed and a preset requirement corresponding to the images to be displayed.
The configuration module 20 is configured to configure each image to be displayed based on the display sequence relationship, so as to obtain a link relationship corresponding to each image to be displayed.
The configuration detection module 30 is configured to generate a configuration file based on the preset requirement, each image to be displayed and the link relation associated with the image to be displayed, and perform configuration detection on the configuration file.
A generating module 40 configured to generate, in response to determining that the configuration file passes the configuration detection, a display application based on the configuration file and a pre-written display application generation code, to display each image to be displayed in the display order using the display application.
Through the device, a plurality of images to be displayed are received, and the display sequence relation among the images to be displayed and the preset requirements corresponding to the images to be displayed are acquired. And configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed, so that the display accuracy and the continuity of the images to be displayed in the display application are ensured. Based on the preset requirements, each image to be displayed and the associated link relation, a configuration file is generated, the purpose of comprehensively reflecting the design requirements of the display application is achieved, configuration detection is carried out on the configuration file, and the correctness of the configuration file participating in the generation of the display application is ensured. And in response to determining that the configuration file passes the configuration detection, generating codes based on the configuration file and a pre-written display application to generate the display application so as to display each image to be displayed according to the display sequence by using the display application, thereby solving the technical problem of complex operation for generating the display application in the prior art and improving the generation efficiency of the display application.
In some embodiments, the configuration module 20 is further configured to, for each image to be displayed, search for a target image to be displayed that has the display sequence relationship with the image to be displayed in all the images to be displayed, and configure a link relationship between the image to be displayed and the target image to be displayed.
In some embodiments, the configuration module 20 is further configured to determine a target area in the image to be displayed according to a preset rule; and acquiring a storage address of the target image to be displayed, and establishing the link relation between the target area and the storage address.
In some embodiments, the display module is further configured to determine a target to-be-displayed image corresponding to the to-be-displayed image according to the link relation in response to receiving a trigger operation on a target area of the to-be-displayed image displayed in the display application after generating the display application to display each to-be-displayed image with the display application, and display the target to-be-displayed image through the display application.
In some embodiments, the generating module 40 is further configured to generate code for the display application including an initial profile; and replacing the initial configuration file with the configuration file to obtain a target display application generation code, and running the target display application generation code to generate the display application.
In some embodiments, the generating module 40 is further configured to determine that the configuration file passes the configuration detection in response to the configuration file having a format identical to a predetermined format and including all images to be displayed in the configuration file.
In some embodiments, the system further comprises a prompting module configured to issue information prompting the profile exception in response to determining that the profile fails the configuration detection after the configuration detection of the profile.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The device of the foregoing embodiment is configured to implement the method for generating the corresponding display application in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for generating the display application according to any embodiment when executing the program.
Fig. 3 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown in the figure) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the method for generating the corresponding display application in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, corresponding to any of the above embodiments of the method, the present application further provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the method for generating a display application according to any of the above embodiments.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiments stores computer instructions for causing the computer to execute the method for generating a display application according to any one of the foregoing embodiments, and has the advantages of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the present application, 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 brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform on which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and/or the like which are within the spirit and principles of the embodiments are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating a display application, comprising:
receiving a plurality of images to be displayed, and acquiring a display sequence relation among the images to be displayed and a preset requirement corresponding to the images to be displayed;
configuring each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed;
generating a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and carrying out configuration detection on the configuration file;
in response to determining that the configuration file passes the configuration detection, generating a code based on the configuration file and a pre-written display application, generating the display application to display each image to be displayed in the display order with the display application.
2. The method according to claim 1, wherein configuring each image to be displayed based on the display order relationship to obtain a corresponding link relationship of each image to be displayed includes:
and for each image to be displayed, searching a target image to be displayed, which has the display sequence relation with the image to be displayed, in all the images to be displayed, and configuring the link relation between the image to be displayed and the target image to be displayed.
3. The method of claim 2, wherein the configuring the linking relationship of the image to be displayed and the target image to be displayed comprises:
determining a target area in the image to be displayed according to a preset rule;
and acquiring a storage address of the target image to be displayed, and establishing the link relation between the target area and the storage address.
4. A method according to claim 3, wherein after generating the display application to display each image to be displayed with the display application, the method comprises:
and responding to the received triggering operation of the target area of the image to be displayed in the display application, determining a target image to be displayed corresponding to the image to be displayed according to the link relation, and displaying the target image to be displayed through the display application.
5. The method of claim 1, wherein the display application generation code comprises an initial configuration file;
the generating the code based on the configuration file and the pre-written display application, and generating the display application comprises the following steps:
and replacing the initial configuration file with the configuration file to obtain a target display application generation code, and running the target display application generation code to generate the display application.
6. The method of claim 1, wherein said determining that the configuration file passes the configuration detection comprises:
and determining that the configuration file passes the configuration detection in response to the configuration file having the same format as the predetermined format and all images to be displayed being included in the configuration file.
7. The method of claim 1, wherein after configuration detection of the configuration file, the method further comprises:
and in response to determining that the configuration file fails the configuration detection, sending information for prompting the abnormality of the configuration file.
8. A display application generating apparatus, comprising:
the receiving module is configured to receive a plurality of images to be displayed, and acquire a display sequence relation among the images to be displayed and a preset requirement corresponding to the images to be displayed;
the configuration module is configured to configure each image to be displayed based on the display sequence relation to obtain a corresponding link relation of each image to be displayed;
the configuration detection module is configured to generate a configuration file based on the preset requirements, each image to be displayed and the link relation associated with the image to be displayed, and perform configuration detection on the configuration file;
and the generation module is configured to generate codes based on the configuration file and a pre-written display application in response to determining that the configuration file passes the configuration detection, and generate the display application so as to display each image to be displayed according to the display sequence by using the display application.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202311737301.8A 2023-12-15 2023-12-15 Display application generation method and device, electronic equipment and storage medium Pending CN117555532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311737301.8A CN117555532A (en) 2023-12-15 2023-12-15 Display application generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311737301.8A CN117555532A (en) 2023-12-15 2023-12-15 Display application generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117555532A true CN117555532A (en) 2024-02-13

Family

ID=89820565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311737301.8A Pending CN117555532A (en) 2023-12-15 2023-12-15 Display application generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117555532A (en)

Similar Documents

Publication Publication Date Title
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
Wargo PhoneGap essentials: Building cross-platform mobile apps
US9342237B2 (en) Automated testing of gesture-based applications
US9507480B1 (en) Interface optimization application
US10970052B2 (en) System and method for enhancing component based development models with auto-wiring
KR20130086138A (en) Cross-platform application framework
CN112214210A (en) Logistics business rule engine and configuration method, device, equipment and storage medium thereof
CN112506525A (en) Continuous integration and continuous delivery method, device, electronic equipment and storage medium
US11714625B2 (en) Generating applications for versatile platform deployment
CN111708528A (en) Method, device and equipment for generating small program and storage medium
US10303331B2 (en) Live mobile application visual editor demo
CN110781425A (en) Display method, device and equipment of mobile terminal H5 page and storage medium
US10846061B2 (en) Development environment for real-time application development
CN117555532A (en) Display application generation method and device, electronic equipment and storage medium
US10579373B2 (en) Seamless extension porting
US20140304690A1 (en) Systems and Methods for Outputting an Application to Another Environment
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN114968225A (en) Micro-service unified construction method, environment generation method and related equipment
CN114780134A (en) Configuration management method of micro application and related equipment
CN112286785B (en) Abnormality detection method and device for user interface
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN112559311B (en) Interface adaptation method and device for mobile terminal automatic test
CN113254008B (en) Data processing method, device and equipment
CN114153539B (en) Front-end application interface generation method and device, electronic equipment and storage medium
KR102382703B1 (en) Multi-Channel Integration Platform Authoring Device and Method Thereby

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination