CN112486459A - Activity page generation method and device, computer equipment and readable storage medium - Google Patents

Activity page generation method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112486459A
CN112486459A CN202011358507.6A CN202011358507A CN112486459A CN 112486459 A CN112486459 A CN 112486459A CN 202011358507 A CN202011358507 A CN 202011358507A CN 112486459 A CN112486459 A CN 112486459A
Authority
CN
China
Prior art keywords
page
template
active page
active
data
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
CN202011358507.6A
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.)
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/CN112486459A/en
Publication of CN112486459A publication Critical patent/CN112486459A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The invention provides a method and a device for generating an active page, computer equipment and a readable storage medium, wherein the method for generating the active page comprises the following steps: responding to a selection instruction of the active page template to acquire template information and a corresponding access address of the active page template; 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 edit page of the active page template; generating active page configuration data in response to an editing operation performed on the editing page; 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

Activity page generation method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for generating a moving page, a computer device, and a readable storage medium.
Background
With the continuous development of business, the demands of marketing activities, landing page delivery, page revising and the like are increasing day by day, and the cost of manually modifying and releasing codes by programmers is too high to keep up with the increasing speed of the demands, so that a visual building system is produced.
In the prior art, a visual building system is mainly realized by extracting unit components, and the unit components are combined to generate an activity page. If the service scene is simpler, the daily requirement can be met. However, this method is not suitable for the case where the service scenario is complicated. For example, in the face of some requirements strongly coupled with services or requirements that need to be developed separately to meet the requirements, since the implementation of each unit component is fixed, for example, a button component, there is a need to call sharing of apps by clicking, there is a need to call a phone of a certain person by clicking, and in the face of various requirements, if all the requirements are coupled in one component to be implemented, there are problems of low development efficiency and high development cost.
Disclosure of Invention
The embodiment of the application provides a method and a device for generating a live page, a computer device and a readable storage medium, so as to at least solve 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 a live page, including:
responding to a selection instruction of the active page template to acquire template information and a corresponding access address of the active page template;
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 edit page of the active page template;
generating active page configuration data in response to an editing operation performed on the editing page;
and loading the active page configuration data in the active page template to generate an active page.
In some embodiments, before the step of responding to the selection instruction of the active page template, the method further comprises:
acquiring a compiled file;
packaging the compiled file to generate the active page template;
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, and application platform local debugging 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 updating data of the template resources exist in the remote server or not;
and if so, updating the template resource 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 in an iframe manner, 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 some 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 the issuing instruction of the active page, and checking the data of the active page to judge whether the check is passed;
and if the verification is passed, issuing and storing the active page.
In some of these embodiments, the active pages are json structured data.
In a second aspect, an embodiment of the present application provides an active page generation apparatus, including:
the response acquisition module is used for responding to a selection instruction of the active page template so as to acquire the template information of the active page template and a corresponding access address;
the searching and obtaining module is used for obtaining 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 so as to generate an editing page of the active page template;
a response generation module for generating active page configuration data in response to an editing operation performed on the editing page;
and the loading generation module loads the activity page configuration data in the activity page template to generate an activity page.
In some of these embodiments, the apparatus further comprises:
the file acquisition module is used for acquiring a compiled file;
the packaging generation module is used for packaging the compiled file to generate the active 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, and application platform local debugging logic data for local debugging.
In some of these embodiments, the apparatus further comprises:
the judging module is used for judging whether the activity updating data of the template resources exist 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 in an iframe manner, 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 some of these embodiments, the apparatus further comprises:
the response checking module is used for responding to the issuing instruction of the active page and checking the data of the active page so as to judge whether the check 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 pages are json structured data.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the activity page generation method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the activity page generation method according to the first aspect.
Compared with the prior art, the method, the device, the computer equipment and the readable storage medium for generating the activity page provided by the embodiment of the application firstly acquire the template information and the corresponding access address of the activity page template, then acquire the template resource corresponding to the template information in the remote server according to the access address, further load and render the template resource to generate the edit page of the activity page template, respond to the edit operation executed by a user on the edit page when facing different business requirements, can generate corresponding activity page configuration data, and finally load the activity page configuration data in the activity page template to generate the activity page. The method can better meet the requirement of complex service scenes.
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 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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow diagram of an activity page generation method according to an embodiment of the invention;
FIG. 2 is a flow diagram of generating a template resource;
FIG. 3 is a flow diagram of an activity page generation method according to another embodiment of the invention;
FIG. 4 is a flow diagram of an activity page generation method according to yet another embodiment of the present invention;
FIG. 5 is a block diagram of the structure of an active page generation apparatus according to an embodiment of the present invention;
fig. 6 is a hardware configuration diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase 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. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Referring to fig. 1, a 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 the active page template to acquire the template information and the corresponding access address of the active page template.
During specific implementation, a display interface can be provided, and different activity page templates are provided in the display interface for a user to select.
It should be noted that, before responding to the selection instruction of the active page template, template resources need to be generated in advance, the source of the template resources is mainly the service requirement, and the specific template resources are developed and then accessed to the application platform. Referring to fig. 2, the process of generating the template resource specifically includes steps S201 to S203:
s201, acquiring a compiled file. The compiled file comprises a movable page access logic data source, a movable page editing logic data operator and an application platform local debugging logic data example, wherein the movable page access logic data source is used for a user to access, the movable page is compiled below the source and is logic for finally generating a movement for the user to access; the activity page editing logic data operator is used for page editing, page editing logic is compiled below the operator, for example, elements in a page can be dragged, clicked and edited and the like, and the editing state is consistent with the display requirement of an actual landing page, so that codes in the page and the logic in the source have repeated logic, namely two sets of codes need to be maintained, one set is used for generating landing page activities below the source, and the other set is used for generating editable state pages by an application platform below the operator to provide operation and operation functions; 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 project separated from the application platform, and the editing logic of the application platform can be packaged under the example for the aspect debugging.
S202, packaging the compiled file to generate a movable page template. The fixed file, namely the active page template, is generated by compiling and independently packaging the codes, and the active page template has all business logics.
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 as to generate a template resource, the template resource also has all corresponding business logics, and meanwhile, the basic information and the access address of the template resource (also called the active page template) are added to the application platform database, and the basic information of the template resource is, for example, the ID of the template.
And S102, obtaining the template resource corresponding to the template information in 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 obtained in the remote server according to the obtained access address, so that the calling of the corresponding template resource is realized. The corresponding template resource and access address are obtained, for example, by 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 set in the middle of the page, the menu area is set on the left side of the preview area, the form area is set on the right side of the preview area, and in the preview area, a user may see a preview effect of the editing, and may also click and drag an editable element of the page. Editing of different interfaces or different states can be controlled in the menu area. For example, clicking the popup option can call up 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, it is mainly responsible for the configuration of the activity data.
In specific implementation, in order to avoid the messy page layout caused by the pollution and conflict problems of the 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 the api provided by the iframe. Specifically, the iframe level listens for events via the window. The page level can then facilitate multi-place communication using event subscriptions at Vue.
And 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 service requirements, so that corresponding activity page configuration data is generated.
S105, loading the active page configuration data in the active page template to generate an active page.
And loading the configuration data of the activity page into the activity page template to generate the generated activity page meeting the specific service requirement.
The activity page is specifically data of a json structure. In step S103, the page level can utilize event subscription of Vue to facilitate multi-place communication, and the property of data-driven view change easily realizes the capability of changing the page style by modifying data, so that the "same copy" of data can be managed uniformly inside and outside the iframe, and the data can be notified each other after being modified.
Referring to fig. 3, a method for generating an active page according to another embodiment of the present invention, after the step of obtaining a template resource corresponding to the template information from a remote server according to the access address, includes steps S301 to S303:
s301, loading and rendering the template resources.
S302, judging whether the activity updating data of the template resources exist in the remote server.
And S303, if yes, updating the template resource according to the activity updating data. By determining whether activity update data for the template resource exists in the remote server, it can be ensured that the template resource is always up-to-date.
Referring to fig. 4, after the step of loading the active page configuration data in the active page template to generate an active page according to another embodiment of the present invention, the method includes steps S401 to S402:
s401, responding to the issue instruction of the active page, and checking the data of the active page to judge whether the check is passed. After the user clicks the publishing activity, necessary verification is carried out on data of the activity page, the activity page can be really generated at the server only after the verification is passed, and then the activity page is stored at the server.
S402, if the verification is passed, issuing and storing the active page. Specifically, during the process of publishing the active page, the relevant data can be registered, and the flow can be counted for data analysis.
In summary, according to the activity page generation method of this embodiment, first, template information and a corresponding access address of an activity page template are obtained, then, a template resource corresponding to the template information is obtained in a remote server according to the access address, and then, the template resource is loaded and rendered to generate an edit page of the activity page template, when different business requirements are met, corresponding activity page configuration data can be generated in response to an edit operation performed on the edit page by a user, and finally, the activity page configuration data is loaded in the activity page template, so as to generate an activity page.
An embodiment of the present invention provides an active page generation apparatus, which is used to implement the active page generation method according to the foregoing embodiment, and the description of the active page generation apparatus is omitted for brevity. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Referring to fig. 5, the activity page generating apparatus 10 includes:
a response obtaining module 11, configured to respond to a selection instruction for an active page template to obtain template information and a corresponding access address of the active page template;
the search acquisition module 12 is configured to acquire, in the remote server, a template resource corresponding to the template information according to the access address;
a loading rendering module 13, configured to load and render the template resource to generate an editing page of the active page template;
a response generation module 14 for generating active page configuration data in response to an editing operation performed on the editing page;
and 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 obtaining module 16, configured to obtain a compiled file;
a packaging generation module 17, configured to package the compiled file to generate the active page template;
a remote deployment module 18 for deploying the active page template to the remote server 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 debugging logic data, where the active page access logic data is used for a user to access, the active page editing logic data is used for page editing, and the application platform local debugging logic data is used for local debugging.
In this embodiment, the apparatus further includes:
a judging module 19, configured to judge whether activity update data of the template resource exists in the remote server;
an updating module 20, 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, the preview area is embedded in the iframe, and page communication is realized between the menu area and the preview area and between the form area and the preview area through api provided by the iframe.
In this embodiment, the apparatus further includes:
the response checking module is used for responding to the issuing instruction of the active page and checking the data of the active page so as to judge whether the check 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 data of a json structure.
According to the active page generation device 10 of the embodiment, the template information and the corresponding access address of the active page template are firstly 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.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In addition, the activity page generation method of the embodiment of the application can be realized by computer equipment. Fig. 6 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application.
The computer device may comprise a processor 81 and a memory 82 in which computer program instructions are stored.
Specifically, the processor 81 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the 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 include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. 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 (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 82 may be used to store or cache various data files for processing and/or communication use, as well as possibly 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 via the bus 80 to complete communication therebetween.
The communication interface 83 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication interface 83 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Bus 80 includes hardware, software, or both to couple the components of the computer device to each other. Bus 80 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 80 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated 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 specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The computer device may execute the activity 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 the active page template to acquire template information and a corresponding access address of the active page template;
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 edit page of the active page template;
generating active page configuration data in response to an editing operation performed on the editing page;
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 compiled file;
packaging the compiled file to generate the active page template;
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, and application platform local debugging 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 updating data of the template resources exist in the remote server or not;
and if so, updating the template resource according to the activity updating data.
In one embodiment, the editing page comprises a menu area, a form area and a preview area, the preview area is embedded in the form of 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 the issuing instruction of the active page, and checking the data of the active page to judge whether the check is passed;
and if the verification is passed, issuing and storing the active page.
In one embodiment, the active page is a json-structured data.
In addition, in combination with the activity page generation method of the foregoing embodiment, the embodiment of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; when executed by a processor, the computer program instructions implement the method for generating an active page of the above embodiment, specifically executing the following steps:
responding to a selection instruction of the active page template to acquire template information and a corresponding access address of the active page template;
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 edit page of the active page template;
generating active page configuration data in response to an editing operation performed on the editing page;
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 compiled file;
packaging the compiled file to generate the active page template;
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, and application platform local debugging 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 updating data of the template resources exist in the remote server or not;
and if so, updating the template resource according to the activity updating data.
In one embodiment, the editing page comprises a menu area, a form area and a preview area, the preview area is embedded in the form of 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 the issuing instruction of the active page, and checking the data of the active page to judge whether the check is passed;
and if the verification is passed, issuing and storing the active page.
In one embodiment, the active page is a json-structured data.
In one embodiment, the summarization algorithm employs the MD5 algorithm or the SHA-1 algorithm.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for generating a moving page, comprising:
responding to a selection instruction of the active page template to acquire template information and a corresponding access address of the active page template;
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 edit page of the active page template;
generating active page configuration data in response to an editing operation performed on the editing page;
and loading the active page configuration data in the active page template to generate an active page.
2. The method for generating an active page according to claim 1, wherein the step of responding to the selection instruction of the active page template is preceded by the method further comprising:
acquiring a compiled file;
packaging the compiled file to generate the active page template;
deploying the active page template to the remote server to generate the template resource.
3. The method for generating an active page according to claim 2, wherein the compiled file includes active page access logic data, active page editing logic data, and application platform local debugging logic data, the active page access logic data is used for user access, the active page editing logic data is used for page editing, and the application platform local debugging logic data is used for local debugging.
4. The method for generating an active page according to claim 1, wherein after the step of obtaining a template resource corresponding to the template information in a remote server according to the access address, the method further comprises:
loading and rendering the template resources;
judging whether activity updating data of the template resources exist in the remote server or not;
and if so, updating the template resource according to the activity updating data.
5. The method for generating an activity page according to claim 1, wherein the edit page includes a menu area, a form area, and a preview area, the preview area is embedded in an iframe manner, 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.
6. The method of generating an active page according to 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 the issuing instruction of the active page, and checking the data of the active page to judge whether the check is passed;
and if the verification is passed, issuing and storing the active page.
7. The method for generating an active page according to claim 1, wherein the active page is json-structured data.
8. An apparatus for generating a moving page, comprising:
the response acquisition module is used for responding to a selection instruction of the active page template so as to acquire the template information of the active page template and a corresponding access address;
the searching and obtaining module is used for obtaining 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 so as to generate an editing page of the active page template;
a response generation module for generating active page configuration data in response to an editing operation performed on the editing page;
and the loading generation module loads the activity page configuration data in the activity page template to generate an activity page.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the activity page generation method according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium on which a computer program is stored, which program, when executed by a processor, implements the activity page generation method according to any one of claims 1 to 7.
CN202011358507.6A 2020-11-27 2020-11-27 Activity page generation method and device, computer equipment and readable storage medium Pending CN112486459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011358507.6A CN112486459A (en) 2020-11-27 2020-11-27 Activity page generation method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011358507.6A CN112486459A (en) 2020-11-27 2020-11-27 Activity page generation method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112486459A true CN112486459A (en) 2021-03-12

Family

ID=74936385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011358507.6A Pending CN112486459A (en) 2020-11-27 2020-11-27 Activity page generation method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112486459A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282863A (en) * 2021-06-11 2021-08-20 上海哔哩哔哩科技有限公司 Service page generation method and device
CN114895901A (en) * 2022-03-28 2022-08-12 北京金堤科技有限公司 Page processing method and device, storage medium and electronic equipment

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
DAVY SORN等: "Web page template design using interactive genetic algorithm", 《2013 INTERNATIONAL COMPUTER SCIENCE AND ENGINEERING CONFERENCE (ICSEC)》, 2 January 2014 (2014-01-02), pages 201 *
马衍明: "基于自制模板动态生成HTML页面的财务报账系统设计与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》, no. 08, 15 August 2017 (2017-08-15), pages 138 - 128 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282863A (en) * 2021-06-11 2021-08-20 上海哔哩哔哩科技有限公司 Service page generation method and device
CN114895901A (en) * 2022-03-28 2022-08-12 北京金堤科技有限公司 Page processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111045655A (en) Page rendering method and device, rendering server and storage medium
CN107729246B (en) Auxiliary test method, device and equipment for target application and storage medium
WO2021027700A1 (en) Application program starting method and apparatus, terminal device and readable storage medium
CN112486459A (en) Activity page generation method and device, computer equipment and readable storage medium
CN109933381A (en) A kind of loading method and device of kernel
CN110750315B (en) Class loading method, device, equipment and storage medium in Android system
CN107526623B (en) Data processing method and device
CN107479868B (en) Interface loading method, device and equipment
CN111694733A (en) API (application programming interface) testing method and device for software development kit SDK (software development kit)
CN110442407B (en) Application program processing method and device
CN112650487B (en) Hybrid application development method, system, computer device and storage medium
CN113742224A (en) Test system, method, device, computer equipment and storage medium
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
CN110045997B (en) Object initialization method, device, equipment and storage medium of basic function module
CN111813385A (en) Web application-based page plug-in method, device and equipment
CN114911541B (en) Processing method and device of configuration information, electronic equipment and storage medium
CN108089895B (en) Activity registration method and device in plug-in, electronic equipment and storage medium
CN112115738A (en) Image identification method and device applied to browser end
CN115993971A (en) Active page generation method, computing device and computer storage medium
CN113849195A (en) Application program loading method and device, storage medium and terminal
CN113885996A (en) User interface generation method and device
CN115712566A (en) Method, device, equipment and storage medium for checking interface field
CN113730917A (en) Game script generation method and device, computer equipment and storage medium
CN113535338A (en) Interaction method, system, storage medium and electronic device for data access
CN112433778A (en) Mobile equipment page display method and device, electronic equipment and storage medium

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