CN112486459B - Method, device, computer equipment and readable storage medium for generating active page - Google Patents

Method, device, computer equipment and readable storage medium for generating active page Download PDF

Info

Publication number
CN112486459B
CN112486459B CN202011358507.6A CN202011358507A CN112486459B CN 112486459 B CN112486459 B CN 112486459B CN 202011358507 A CN202011358507 A CN 202011358507A CN 112486459 B CN112486459 B CN 112486459B
Authority
CN
China
Prior art keywords
active page
template
page
active
editing
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.)
Active
Application number
CN202011358507.6A
Other languages
Chinese (zh)
Other versions
CN112486459A (en
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.)
Hangzhou Dasouche Auto Service Co ltd
Original Assignee
Hangzhou Dasouche Auto Service 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 Hangzhou Dasouche Auto Service Co ltd filed Critical Hangzhou Dasouche Auto Service Co ltd
Priority to CN202011358507.6A priority Critical patent/CN112486459B/en
Publication of CN112486459A publication Critical patent/CN112486459A/en
Application granted granted Critical
Publication of CN112486459B publication Critical patent/CN112486459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an active page generation method, an active page generation device, computer equipment and a readable storage medium, wherein the active page generation method comprises the following steps: responding to a selection instruction of an active page template to acquire template information of the active page template and a corresponding access address; acquiring template resources corresponding to the template information from a remote server according to the access address; loading and rendering the template resources to generate an editing page of the active page template; responding to the editing operation performed on the editing page to generate active page configuration data; and loading the active page configuration data in the active page template to generate an active page. The invention can solve the problems of low development efficiency and high development cost in the prior art.

Description

Method, device, computer equipment and readable storage medium for generating active page
Technical Field
The present application relates to the field of computers, and in particular, to a method and apparatus for generating an active page, a computer device, and a readable storage medium.
Background
With the continuous development of business, the demands of marketing activities, throwing landing pages, page reform and the like are increased, the cost of issuing codes is too high simply through manual modification of programmers, and the increasing speed of demands cannot be followed, so that a visual building system is generated.
In the prior art, the visual building system is mainly realized by extracting unit assemblies, and the unit assemblies are combined to generate the active page. If the business scene is simpler, the daily requirement can be met. However, the method is not applicable to the case of complex service scenes. For example, when the requirements of strong coupling with business are faced, or the requirements of separate development are required to be met, since the implementation of each unit component is fixed, such as a button component, there are requirements that clicking needs to call up the sharing of apps, and clicking needs to be able to dial someone's phone, and various requirements are faced, if the requirements are all coupled in a component to be implemented, there are problems of low development efficiency and high development cost.
Disclosure of Invention
The embodiment of the application provides an active page generation method, an active page generation device, computer equipment and a readable storage medium, which are used for at least solving the problems of low development efficiency and high development cost in the prior art.
In a first aspect, an embodiment of the present application provides a method for generating an active page, including:
Responding to a selection instruction of an active page template to acquire template information of the active page template and a corresponding access address;
acquiring template resources corresponding to the template information from a remote server according to the access address;
loading and rendering the template resources to generate an editing page of the active page template;
Responding to the editing operation performed on the editing page to generate active page configuration data;
And loading the active page configuration data in the active page template to generate an active page.
In some of these embodiments, prior to the step of responding to the selection instruction of the active page template, the method further comprises:
Acquiring a compiling file;
packaging the compiled file to generate the active page template;
And deploying the active page template to the remote server to generate the template resource.
In some embodiments, the compiled file includes active page access logic data for access by a user, active page editing logic data for page editing, application platform local debug logic data for local debugging.
In some embodiments, after the step of obtaining the template resource corresponding to the template information in the remote server according to the access address, the method further includes:
loading and rendering the template resources;
Judging whether activity update data of the template resource exists in the remote server or not;
If yes, updating the template resources according to the activity updating data.
In some embodiments, the editing page includes a menu area, a form area, and a preview area, the preview area is embedded by means of an iframe, and page communication is implemented between the menu area and the preview area, and between the form area and the preview area through an api provided by the iframe.
In some of these embodiments, after the step of loading the active page configuration data in the active page template to generate an active page, the method further comprises:
Responding to an issuing instruction of the active page, and checking the data of the active page to judge whether the checking is passed or not;
and if the verification is passed, publishing and storing the active page.
In some of these embodiments, the active page is json structured data.
In a second aspect, an embodiment of the present application provides an active page generating apparatus, including:
The response acquisition module is used for responding to the selection instruction of the active page template to acquire template information of the active page template and a corresponding access address;
the searching and acquiring module is used for acquiring template resources corresponding to the template information in a remote server according to the access address;
The loading rendering module is used for loading and rendering the template resources to generate an editing page of the active page template;
the response generation module is used for responding to the editing operation executed on the editing page to generate active page configuration data;
and the loading generation module loads the active page configuration data in the active page template to generate an active page.
In some of these embodiments, the apparatus further comprises:
The file acquisition module is used for acquiring the compiled file;
the packaging generation module is used for packaging the compiled file to generate the movable page template;
And the remote deployment module is used for deploying the active page template to the remote server so as to generate the template resource.
In some embodiments, the compiled file includes active page access logic data for access by a user, active page editing logic data for page editing, application platform local debug logic data for local debugging.
In some of these embodiments, the apparatus further comprises:
The judging module is used for judging whether the activity update data of the template resource exists in the remote server or not;
And the updating module is used for updating the template resource according to the activity updating data if the activity updating data of the template resource exists in the remote server.
In some embodiments, the editing page includes a menu area, a form area, and a preview area, the preview area is embedded by means of an iframe, and page communication is implemented between the menu area and the preview area, and between the form area and the preview area through an api provided by the iframe.
In some of these embodiments, the apparatus further comprises:
The response verification module is used for responding to the issuing instruction of the active page and verifying the data of the active page so as to judge whether the verification is passed or not;
And the release storage module is used for releasing and storing the active page if the verification is passed.
In some of these embodiments, the active page is json structured data.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the active page generating method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the active page generation method as described in the first aspect above.
Compared with the prior art, the method, the device, the computer equipment and the readable storage medium for generating the active page provided by the embodiment of the application have the advantages that firstly, the template information and the corresponding access address of the active page template are acquired, then, the template resource corresponding to the template information is acquired in the remote server according to the access address, and then, the template resource is loaded and rendered to generate the editing page of the active page template.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method of active page generation according to an embodiment of the present invention;
FIG. 2 is a flow chart for generating template resources;
FIG. 3 is a flow chart of an active page generation method according to another embodiment of the present invention;
FIG. 4 is a flow chart of an active page generation method according to yet another embodiment of the present invention;
FIG. 5 is a block diagram of an active page generating apparatus according to an embodiment of the present invention;
Fig. 6 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
Referring to fig. 1, the method for generating an active page according to an embodiment of the present invention includes steps S101 to S105:
s101, responding to a selection instruction of an active page template to acquire template information of the active page template and a corresponding access address.
In implementation, a display interface can be provided, and different active page templates are provided in the display interface for users to select.
It should be noted that, before responding to the selection instruction of the active page template, a template resource needs to be generated in advance, the source of the template resource is mainly a service requirement, and the specific template resource is developed and then accessed to the application platform. The template resources accessed to the application platform need to meet a certain specification to be used, referring to fig. 2, and the process of generating the template resources specifically includes steps S201 to S203:
S201, acquiring a compiling file. The compiling file comprises an active page access logic data source, an active page editing logic data operator and an application platform local debugging logic data sample, wherein the active page access logic data source is used for being accessed by a user, the implementation of an active page is written below the source, and the logic of finally generating the activity for the user to access; the active page editing logic data operators are used for page editing, page editing logic is written under the operators, such as that elements in a page can be dragged, clicked and edited, and the like are realized in the page, and because the editing state is consistent with the display requirement of an actual landing page, repeated logic exists in codes in the page and the source, namely, two sets of codes need to be maintained, one set of codes is used for generating the landing page activity under the source, and the other set of codes is used for generating the page in the editable state under the operators by a supply platform; the application platform local debugging logic data example is used for local debugging, and the implementation of the local debugging is written below the example, because the active page template is a single item separated from the application platform, and editing logic of the application platform is packaged under the example for aspect debugging.
S202, packaging the compiled file to generate an active page template. The fixed file, namely the active page template, is generated by independently packaging code compiling, and the active page template has all business logic.
S203, deploying the active page template to a remote server to generate a template resource. The active page template needs to be deployed on a remote server, so that a template resource is generated, the template resource also has all corresponding business logic, and meanwhile, the basic information of the template resource (namely the active page template) and the access address are added into an application platform database, wherein the basic information of the template resource is, for example, the ID of the template.
S102, obtaining template resources corresponding to the template information from a remote server according to the access address.
After a user selects a certain active page template, the template resource corresponding to the template information is searched and acquired in the remote server according to the acquired access address, so that the corresponding template resource is called. For example, the corresponding template resource and access address are obtained through the ID of the template.
S103, loading and rendering the template resources to generate an editing page of the active page template.
The editing page may include a menu area, a form area and a preview area, where the preview area is, for example, disposed in the middle of the page, the menu area is disposed on the left side of the preview area, the form area is disposed on the right side of the preview area, and in the preview area, a user may see the preview effect of editing, or may perform clicking and dragging operations on the page editable element. Editing of different interfaces or different states may be controlled in the menu area. For example, clicking the popup option can evoke the popup of the page, so as to edit the title and description of the popup; clicking on the "about" option, the middle area jumps to the edit of the "about" page. In the form area, the configuration of the activity data is mainly responsible.
In the implementation, in order to avoid the disorder of page layout caused by the pollution and conflict problems of css, the preview area is embedded in an iframe mode, and page communication is realized between the menu area and the preview area and between the form area and the preview area through an api provided by the iframe. Specifically, the iframe hierarchy listens for events by window. AddEventListener ('message') and postMessage triggers events. The page level can use the event subscription of the Vue to facilitate the communication of multiple places.
S104, responding to the editing operation executed on the editing page to generate active page configuration data.
The user can perform various editing operations on the editing page according to specific business requirements, so that corresponding active page configuration data are generated.
S105, loading the active page configuration data in the active page template to generate an active page.
The active page configuration data is loaded in the active page template, so that the generated active page meeting specific business requirements can be generated.
The active page is specifically json structured data. In step S103, the page level can use the event subscription of Vue to facilitate local communication, and the feature of data-driven view change can easily realize the capability of changing page style by modifying data, so that the same data can be uniformly managed inside and outside the iframe, and the data can be mutually notified after being modified.
Referring to fig. 3, the method for generating an active page according to another embodiment of the present invention includes steps S301 to S303 after the step of obtaining a template resource corresponding to the template information in a remote server according to the access address:
s301, loading and rendering the template resources.
S302, judging whether activity update data of the template resource exists in the remote server.
And S303, if yes, updating the template resources according to the activity updating data. By determining whether there is activity update data for the template resource in the remote server, it can be ensured that the template resource is always up-to-date.
Referring to fig. 4, the active page generating method according to another embodiment of the present invention includes steps S401 to S402 after loading the active page configuration data in the active page template to generate an active page:
S401, responding to an instruction for issuing the active page, and checking the data of the active page to judge whether the check is passed. When a user clicks the release activity, the data of the active page is checked necessarily, the active page can be generated at the server after the data passes the check, and then the active page is stored at the server.
And S402, if the verification is passed, issuing and storing the active page. Specifically, in the release process of the active page, the relevant data can be registered, and the flow is counted and used for data analysis.
In summary, according to the active page generating method of the embodiment, firstly, the template information and the corresponding access address of the active page template are obtained, then the template resource corresponding to the template information is obtained in the remote server according to the access address, and then the template resource is loaded and rendered to generate the editing page of the active page template, when different business demands are met, corresponding active page configuration data can be generated in response to the editing operation of the user on the editing page, and finally the active page configuration data is loaded in the active page template, so that the active page is generated.
An embodiment of the present invention provides an active page generating device, which is used for implementing the active page generating method in the above embodiment, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Referring to fig. 5, the active page generating apparatus 10 includes:
A response obtaining module 11, configured to respond to a selection instruction of an active page template, so as to obtain template information of the active page template and a corresponding access address;
a searching and acquiring module 12, configured to acquire a template resource corresponding to the template information in a remote server according to the access address;
The loading rendering module 13 is used for loading and rendering the template resources to generate an editing page of the active page template;
A response generation module 14 for responding to the editing operation performed on the editing page to generate active page configuration data;
The loading generation module 15 loads the active page configuration data in the active page template to generate an active page.
In this embodiment, the apparatus further includes:
A file acquisition module 16 for acquiring a compiled file;
A package generating module 17, configured to package the compiled file to generate the active page template;
a remote deployment module 18, configured to deploy the active page template to the remote server, so as to generate the template resource.
In this embodiment, the compiled file includes active page access logic data, active page editing logic data, and application platform local debug logic data, where the active page access logic data is used for access by a user, the active page editing logic data is used for page editing, and the application platform local debug logic data is used for local debug.
In this embodiment, the apparatus further includes:
a judging module 19 for judging whether the activity update data of the template resource exists in the remote server;
And the updating module 20 is configured to update the template resource according to the activity update data if the activity update data of the template resource exists in the remote server.
In this embodiment, the editing page includes a menu area, a form area, and a preview area, where the preview area is embedded by an iframe, and page communication is implemented between the menu area and the preview area, and between the form area and the preview area by an api provided by the iframe.
In this embodiment, the apparatus further includes:
The response verification module is used for responding to the issuing instruction of the active page and verifying the data of the active page so as to judge whether the verification is passed or not;
And the release storage module is used for releasing and storing the active page if the verification is passed.
In this embodiment, the active page is json structure data.
According to the active page generating device 10 of the embodiment, firstly, the template information and the corresponding access address of the active page template are acquired, then the template resource corresponding to the template information is acquired in the remote server according to the access address, and then the template resource is loaded and rendered to generate the editing page of the active page template.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
In addition, the active page generation method of the embodiment of the application can be realized by computer equipment. Fig. 6 is a schematic hardware structure of a computer device according to an embodiment of the application.
The computer device may include a processor 81 and a memory 82 storing computer program instructions.
In particular, the processor 81 may include a Central Processing Unit (CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present application.
Memory 82 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 82 may comprise a hard disk drive (HARD DISK DRIVE, abbreviated HDD), floppy disk drive, solid state drive (Solid STATE DRIVE, abbreviated SSD), flash memory, optical disk, magneto-optical disk, magnetic tape, or universal serial bus (Universal Serial Bus, abbreviated USB) drive, or a combination of two or more of these. The memory 82 may include removable or non-removable (or fixed) media, where appropriate. The memory 82 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 82 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 82 includes Read-Only Memory (ROM) and random access Memory (Random Access Memory, RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (ELECTRICALLY ALTERABLE READ-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be a Static Random-Access Memory (SRAM) or a dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory, FPMDRAM), an extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory, EDODRAM), a synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory, SDRAM), or the like, as appropriate.
The memory 82 may be used to store or cache various data files that need to be processed and/or communicated, as well as possible computer program instructions for execution by the processor 82.
The processor 81 implements the active page generation method of the above-described embodiment by reading and executing computer program instructions stored in the memory 82.
In some of these embodiments, the computer device may also include a communication interface 83 and a bus 80. As shown in fig. 6, the processor 81, the memory 82, and the communication interface 83 are connected to each other through the bus 80 and perform communication with each other.
The communication interface 83 is used to enable communication between modules, devices, units and/or units in embodiments of the application. The communication interface 83 may also enable communication with other components such as: and the external equipment, the image/data acquisition equipment, the database, the external storage, the image/data processing workstation and the like are used for data communication.
Bus 80 includes hardware, software, or both, coupling components of the computer device to each other. Bus 80 includes, but is not limited to, at least one of: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), local Bus (Local Bus). By way of example, and not limitation, bus 80 may include a graphics acceleration interface (ACCELERATED GRAPHICS Port, abbreviated as AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) Bus, a Front Side Bus (Front Side Bus, abbreviated as FSB), a HyperTransport (abbreviated as HT) interconnect, an industry standard architecture (Industry Standard Architecture, abbreviated as ISA) Bus, a wireless bandwidth (InfiniBand) interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (Micro Channel Architecture, abbreviated as MCA) Bus, a peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, abbreviated as PCI) Bus, a PCI-Express (PCI-X) Bus, a serial advanced technology attachment (SERIAL ADVANCED Technology Attachment, abbreviated as SATA) Bus, a video electronics standards Association local (Video Electronics Standards Association Local Bus, abbreviated as VLB) Bus, or other suitable Bus, or a combination of two or more of these. Bus 80 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
The computer device may execute the active page generation method according to the embodiment of the present application based on the acquired computer program, and specifically execute the following steps:
Responding to a selection instruction of an active page template to acquire template information of the active page template and a corresponding access address;
acquiring template resources corresponding to the template information from a remote server according to the access address;
loading and rendering the template resources to generate an editing page of the active page template;
Responding to the editing operation performed on the editing page to generate active page configuration data;
And loading the active page configuration data in the active page template to generate an active page.
In one embodiment, before the step of responding to the selection instruction of the active page template, the method further comprises:
Acquiring a compiling file;
packaging the compiled file to generate the active page template;
And deploying the active page template to the remote server to generate the template resource.
In one embodiment, the compiled file includes active page access logic data for access by a user, active page editing logic data for page editing, application platform local debug logic data for local debugging.
In one embodiment, after the step of obtaining the template resource corresponding to the template information in the remote server according to the access address, the method further includes:
loading and rendering the template resources;
Judging whether activity update data of the template resource exists in the remote server or not;
If yes, updating the template resources according to the activity updating data.
In one embodiment, the editing page includes a menu area, a form area and a preview area, the preview area is embedded by an iframe, and page communication is realized between the menu area and the preview area, and between the form area and the preview area through an api provided by the iframe.
In one embodiment, after the step of loading the active page configuration data in the active page template to generate an active page, the method further comprises:
Responding to an issuing instruction of the active page, and checking the data of the active page to judge whether the checking is passed or not;
and if the verification is passed, publishing and storing the active page.
In one embodiment, the active page is json structured data.
In addition, in combination with the active page generation method of the above embodiment, the embodiment of the present application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement the active page generation method of the above embodiment, and specifically perform the following steps:
Responding to a selection instruction of an active page template to acquire template information of the active page template and a corresponding access address;
acquiring template resources corresponding to the template information from a remote server according to the access address;
loading and rendering the template resources to generate an editing page of the active page template;
Responding to the editing operation performed on the editing page to generate active page configuration data;
And loading the active page configuration data in the active page template to generate an active page.
In one embodiment, before the step of responding to the selection instruction of the active page template, the method further comprises:
Acquiring a compiling file;
packaging the compiled file to generate the active page template;
And deploying the active page template to the remote server to generate the template resource.
In one embodiment, the compiled file includes active page access logic data for access by a user, active page editing logic data for page editing, application platform local debug logic data for local debugging.
In one embodiment, after the step of obtaining the template resource corresponding to the template information in the remote server according to the access address, the method further includes:
loading and rendering the template resources;
Judging whether activity update data of the template resource exists in the remote server or not;
If yes, updating the template resources according to the activity updating data.
In one embodiment, the editing page includes a menu area, a form area and a preview area, the preview area is embedded by an iframe, and page communication is realized between the menu area and the preview area, and between the form area and the preview area through an api provided by the iframe.
In one embodiment, after the step of loading the active page configuration data in the active page template to generate an active page, the method further comprises:
Responding to an issuing instruction of the active page, and checking the data of the active page to judge whether the checking is passed or not;
and if the verification is passed, publishing and storing the active page.
In one embodiment, the active page is json structured data.
In one embodiment, the digest algorithm employs an MD5 algorithm or an SHA-1 algorithm.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. An active page generation method, comprising:
Acquiring a compiling file; the compiling file comprises active page access logic data, active page editing logic data and application platform local debugging logic data; the activity page access logic data is written with logic for generating activity for user access; the page editing logic comprises elements which can be dragged and clicked in the page; the application platform debugging logic data is written with the realization of local debugging;
packaging the compiled file to generate an active page template;
Deploying the active page template to a remote server to generate a template resource;
Responding to a selection instruction of the movable page template to acquire template information of the movable page template and a corresponding access address;
Acquiring the template resources corresponding to the template information from the remote server according to the access address;
loading and rendering the template resources to generate an editing page of the active page template;
Responding to the editing operation performed on the editing page to generate active page configuration data;
And loading the active page configuration data in the active page template to generate an active page.
2. The active page generation method of claim 1, wherein the compiled file includes active page access logic data for access by a user, active page editing logic data for page editing, application platform local debug logic data for local debugging.
3. The active page generating method according to claim 1, wherein after the step of acquiring the template resource corresponding to the template information in the remote server according to the access address, the method further comprises:
loading and rendering the template resources;
Judging whether activity update data of the template resource exists in the remote server or not;
If yes, updating the template resources according to the activity updating data.
4. The method for generating an active page according to claim 1, wherein the editing page comprises a menu area, a form area and a preview area, the preview area is embedded by an iframe, and page communication is realized between the menu area and the preview area, and between the form area and the preview area through an api provided by the iframe.
5. The active page generation method of claim 1, wherein after the step of loading the active page configuration data in the active page template to generate an active page, the method further comprises:
Responding to an issuing instruction of the active page, and checking the data of the active page to judge whether the checking is passed or not;
and if the verification is passed, publishing and storing the active page.
6. The method for generating an active page according to claim 1, wherein the active page is json structured data.
7. An active page generating apparatus, comprising:
The response acquisition module is used for responding to the selection instruction of the active page template to acquire template information of the active page template and a corresponding access address;
the searching and acquiring module is used for acquiring template resources corresponding to the template information in a remote server according to the access address;
The loading rendering module is used for loading and rendering the template resources to generate an editing page of the active page template;
the response generation module is used for responding to the editing operation executed on the editing page to generate active page configuration data;
The loading generation module loads the active page configuration data in the active page template to generate an active page;
The active page generating device further includes:
The file acquisition module is used for acquiring the compiled file; the compiling file comprises active page access logic data, active page editing logic data and application platform local debugging logic data; the activity page access logic data is written with logic for generating activity for user access; the page editing logic comprises elements which can be dragged and clicked in the page; the application platform debugging logic data is written with the realization of local debugging;
the packaging generation module is used for packaging the compiled file to generate the movable page template;
And the remote deployment module is used for deploying the active page template to the remote server so as to generate the template resource.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the active page generation method of any of claims 1 to 6 when the computer program is executed by the processor.
9. A readable storage medium having stored thereon a computer program, which when executed by a processor implements the active page generation method of any of claims 1 to 6.
CN202011358507.6A 2020-11-27 2020-11-27 Method, device, computer equipment and readable storage medium for generating active page Active CN112486459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011358507.6A CN112486459B (en) 2020-11-27 2020-11-27 Method, device, computer equipment and readable storage medium for generating active page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011358507.6A CN112486459B (en) 2020-11-27 2020-11-27 Method, device, computer equipment and readable storage medium for generating active page

Publications (2)

Publication Number Publication Date
CN112486459A CN112486459A (en) 2021-03-12
CN112486459B true CN112486459B (en) 2024-06-04

Family

ID=74936385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011358507.6A Active CN112486459B (en) 2020-11-27 2020-11-27 Method, device, computer equipment and readable storage medium for generating active page

Country Status (1)

Country Link
CN (1) CN112486459B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282863B (en) * 2021-06-11 2023-04-21 上海哔哩哔哩科技有限公司 Service page generation method and device
CN113741896A (en) * 2021-09-01 2021-12-03 南京星基数字科技有限公司 System and method for realizing configuration editing software based on componentization
CN114895901A (en) * 2022-03-28 2022-08-12 北京金堤科技有限公司 Page processing method and device, storage medium and electronic equipment
CN115167848A (en) * 2022-07-04 2022-10-11 北京金和网络股份有限公司 Form management method and platform for mobile application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013144358A2 (en) * 2012-03-30 2013-10-03 Sdl Tridion Development Lab B.V. Systems, methods, and media for managing editable previews of webpages
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN109388396A (en) * 2018-09-18 2019-02-26 深圳壹账通智能科技有限公司 Page generation method, device, computer equipment and storage medium
CN110007917A (en) * 2019-03-08 2019-07-12 国电南瑞科技股份有限公司 A kind of visual page generation and browsing method based on browser
CN110597506A (en) * 2019-11-14 2019-12-20 南京百敖软件有限公司 Front-end application visualization development tool and use method
CN110674441A (en) * 2019-09-02 2020-01-10 中国平安财产保险股份有限公司 Page template configuration control method and device, computer equipment and storage medium
CN110990731A (en) * 2019-10-12 2020-04-10 平安国际智慧城市科技股份有限公司 Rendering method, device and equipment of static webpage and computer storage medium
CN111241454A (en) * 2020-01-21 2020-06-05 优信拍(北京)信息科技有限公司 Method, system and device for generating webpage code

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013144358A2 (en) * 2012-03-30 2013-10-03 Sdl Tridion Development Lab B.V. Systems, methods, and media for managing editable previews of webpages
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN109388396A (en) * 2018-09-18 2019-02-26 深圳壹账通智能科技有限公司 Page generation method, device, computer equipment and storage medium
CN110007917A (en) * 2019-03-08 2019-07-12 国电南瑞科技股份有限公司 A kind of visual page generation and browsing method based on browser
CN110674441A (en) * 2019-09-02 2020-01-10 中国平安财产保险股份有限公司 Page template configuration control method and device, computer equipment and storage medium
CN110990731A (en) * 2019-10-12 2020-04-10 平安国际智慧城市科技股份有限公司 Rendering method, device and equipment of static webpage and computer storage medium
CN110597506A (en) * 2019-11-14 2019-12-20 南京百敖软件有限公司 Front-end application visualization development tool and use method
CN111241454A (en) * 2020-01-21 2020-06-05 优信拍(北京)信息科技有限公司 Method, system and device for generating webpage code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Web page template design using interactive genetic algorithm;Davy Sorn等;《2013 International Computer Science and Engineering Conference (ICSEC)》;20140102;第201 - 206页 *
基于自制模板动态生成HTML页面的财务报账***设计与实现;马衍明;《cnki优秀硕士学位论文全文库 信息科技辑》;20170815(第08期);第I138-128页 *

Also Published As

Publication number Publication date
CN112486459A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112486459B (en) Method, device, computer equipment and readable storage medium for generating active page
US8769553B2 (en) Deploy anywhere framework for heterogeneous mobile application development
CN107729246B (en) Auxiliary test method, device and equipment for target application and storage medium
US20220318945A1 (en) Optimizing compilation of shaders
CN106776338B (en) Test method, test device and server
CN109669688A (en) Based on visual software development methodology, device, terminal device and storage medium
CN106775744B (en) Method and device for generating static library
CN110231994B (en) Memory analysis method, memory analysis device and computer readable storage medium
US9733930B2 (en) Logical level difference detection between software revisions
CN105378658A (en) Automatic source code generation
CN109933381A (en) A kind of loading method and device of kernel
CN107526623B (en) Data processing method and device
CN110990274A (en) Data processing method, device and system for generating test case
CN111694733A (en) API (application programming interface) testing method and device for software development kit SDK (software development kit)
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN114154474A (en) Data export method, system, computer device and readable storage medium
CN112579454B (en) Task data processing method, device and equipment
CN113742224A (en) Test system, method, device, computer equipment and storage medium
CN111562952A (en) Dynamic loading method and dynamic loading device for double-core intelligent ammeter management unit
CN110874322A (en) Test method and test server for application program
CN113741878B (en) GraphQL-based interface construction method, system, electronic equipment and storage medium
CN115993971A (en) Active page generation method, computing device and computer storage medium
CN111459774A (en) Method, device and equipment for acquiring flow of application program and storage medium
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN109408063B (en) Instruction pile inserting method and device based on virtual machine

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
GR01 Patent grant
GR01 Patent grant