CN113268233A - Page generation method and device, computer equipment and storage medium - Google Patents

Page generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113268233A
CN113268233A CN202110451864.5A CN202110451864A CN113268233A CN 113268233 A CN113268233 A CN 113268233A CN 202110451864 A CN202110451864 A CN 202110451864A CN 113268233 A CN113268233 A CN 113268233A
Authority
CN
China
Prior art keywords
page
template
target
generating
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
CN202110451864.5A
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.)
Zhongan Information Technology Service Co Ltd
Original Assignee
Zhongan Information Technology 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 Zhongan Information Technology Service Co Ltd filed Critical Zhongan Information Technology Service Co Ltd
Priority to CN202110451864.5A priority Critical patent/CN113268233A/en
Publication of CN113268233A publication Critical patent/CN113268233A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Abstract

The invention discloses a page generation method, a page generation device, computer equipment and a storage medium, wherein the method comprises the following steps: matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component, generating instantiated page data according to the at least one page template and the target data of the target object, and configuring the instantiated page data according to a preset rule to generate a target page of the target object. According to the method, repeated development is not needed for different target objects, the target page of the target object which is universal in the whole channel can be rapidly configured only by configuring the page template according to the target data, rapid shelf-up of the target object is realized, and the problems that the online period of the target object is long, the target object cannot meet the supervision requirement and the like under the condition of lacking research and development capacity are solved.

Description

Page generation method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page generation method and apparatus, a computer device, and a storage medium.
Background
Under the wave of digital transformation, more and more services are transformed to online operation, including insurance services. By means of online sales, most insurance companies and consumers accept the method because of the advantages of rapidness and high unit efficiency. However, because the insurance products have the characteristics of wide product range, large product difference, high updating speed and the like, the insurance company faces the following problems in the process of generating the page of the corresponding insurance product in the new insurance product:
1. an insurance company needs to supply multiple new products on multiple channels every year, the butt joint of a core system to an external channel is long, the period of putting on the shelf is long, and the cost of development manpower is high;
2. in the digital transformation process of insurance companies, the chimney-type system architecture of the traditional core system cannot respond to the requirements of large flow, high frequency single rhythm and continuous innovative full channel scene;
3. diversified and accurate user experience has higher requirements on the traditional insuring process;
therefore, it is desirable to provide a new page generation method to solve the above problems.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a page generation method, an apparatus, a computer device, and a storage medium, so as to solve the problems in the prior art that an online period of a product is long, a development labor cost is high, and the product cannot meet a supervision requirement.
In order to solve one or more technical problems, the invention adopts the technical scheme that:
in a first aspect, a method for generating a page is provided, where the method includes the following steps:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
Further, the method comprises a generation process of the page template, which comprises the following steps:
generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generation rule;
and performing association processing on the plurality of basic pages to generate a page template.
Further, the generating a plurality of basic pages according to the plurality of preconfigured components and the preset basic page generation rule includes:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
Further, the performing the association processing on the multiple base pages and generating the page template includes:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
Further, the generating instantiated page data according to the at least one page template and the target data of the target object includes:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
Further, before generating instantiated page data according to the at least one page template and the target data of the target object, the method further includes:
and acquiring target data of the target object from a preset platform by using a preset interface.
Further, the target object includes an insurance product, and the matching of at least one page template from a preset template library according to the page generation request of the target object of the page to be generated includes:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
In a second aspect, an apparatus for generating a page is provided, the apparatus comprising:
the template acquisition module is used for matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
the data generation module is used for generating instantiated page data according to the at least one page template and the target data of the target object;
and the page generation module is used for editing the instantiated page data according to a preset rule to generate a target page of the target object.
In a third aspect, a computer device is provided, 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 following steps are implemented:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
In a fourth aspect, there is provided a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the page generation method, the page generation device, the computer equipment and the storage medium provided by the embodiment of the invention match at least one page template from a preset template library according to the page generation request of the target object of the page to be generated, wherein the page template comprises at least one component, generating instantiated page data from the at least one page template and target data of the target object, configuring the instantiated page data according to a preset rule to generate a target page of the target object, and quickly configuring the target page of the target object universally used in all channels by configuring a page template according to the target data without repeatedly developing different target objects, so that the target object is quickly put on shelf, and the problems that the target object is long in line-up period, cannot meet the supervision requirement and the like under the condition of lacking research and development capacity are solved;
according to the page generation method, the page generation device, the computer equipment and the storage medium, the plurality of intermediate modules are generated according to the plurality of pre-configured components and the incidence relation among the components, and the plurality of basic pages are generated according to the plurality of intermediate modules and the preset basic page generation rule, so that the problem that the difficulty of constructing the pages is high due to the fact that the granularity of the components is small is solved, and the generation efficiency of the template pages is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow diagram illustrating a method of page generation in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating page template parsing in accordance with an exemplary embodiment;
FIG. 3 is an interaction diagram illustrating message communication in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a page generation method in accordance with another illustrative embodiment;
FIG. 5 is a diagram illustrating an example structure of a page generation apparatus in accordance with one illustrative embodiment;
FIG. 6 is a schematic diagram illustrating an internal architecture of a computer device, according to an example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As described in the background art, in the prior art, under the condition of lacking in research and development capability, the problems of long online period of the product, high development labor cost, incapability of meeting the supervision requirement of the product and the like can be caused.
In order to solve the above problem, the embodiments of the present application provide a page generation method, which is applicable to different application scenarios. For example, in the scenario of insurance products, the method can be quickly integrated into the core of an insurance company through a lightweight insurance configurable system, and can be used for quickly configuring a full-channel general insurance page. The method does not need to repeatedly develop different insurance products, only needs to acquire insurance data from the core of an insurance company, does not need extra development manpower, only needs to edit the product attribute of the insurance, namely, a new insurance product, provides technical energy for the traditional insurance company lacking the digitization capability, and increases the product iteration capability and the user contact range.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a flowchart illustrating a page generation method according to an exemplary embodiment, and referring to fig. 1, taking a target object insurance product as an example, an insurance page generation process of the insurance product is as follows:
step one, carrying out collocation and combination on pre-configured components to generate a plurality of intermediate modules;
specifically, a component (component) is a basic element constituting a page, and when a target object is an insurance product, a component is a basic element constituting an insurance application page. In the embodiment of the invention, by analyzing and sorting the insurance products and the corresponding pages thereof, a plurality of components are configured in advance, such as: the system comprises components such as a carousel, an input box, a date selector, a region selection, a button, a popup, a prompt, a progress bar, guarantee details, a health notice, a benefit demonstration and the like, and can also set an initial default (default Data) of the components for the components to preview and use to view the representation forms of the components.
Specifically, because the granularity of the components is fine, usually one page contains dozens of hundreds of components, if the page is constructed directly through the components, the difficulty of creating the page for operators is high, and based on the reason, the invention provides the concept of the intermediate module, and the intermediate module is formed by freely matching and combining a plurality of components. The operator can create a page of a target object, such as an insurance application page of an insurance product, by dragging several modules.
Specifically, in the embodiment of the present invention, the attribute of the intermediate module may also be set, for example: module title, module css style, whether insurance product data is associated, which data is associated with the insurance product, and the like. The insurance product data that may be associated includes, but is not limited to, basic information, insurance terms, insurable elements, health advice, and the like.
Step two, carrying out collocation and combination on a plurality of intermediate modules to generate a plurality of basic pages;
specifically, a plurality of intermediate modules can be freely matched and combined to form a basic page. In the embodiment of the invention, the setting of information such as the page title of the basic page, the sequence of the middle modules, the final expression form of the middle modules and the like is supported. The final representation form of the intermediate module includes, but is not limited to, whether the head introduction of the product details is a picture, a video, a picture carousel, or a combination of a picture and a video.
Thirdly, matching and combining a plurality of basic pages to generate a plurality of page templates;
specifically, a plurality of basic pages involved in the insurance product application process are combined together to form an insurance product application page template. Preferably, the template can be created by means of page visual dragging.
As a preferred implementation manner, in the embodiment of the present invention, the page template may be generated by:
the drag layout of the page is realized by the act-dnd combined with a template tool. The visualization of the page can be realized by packaging the written components in the H5 application of the mobile terminal into corresponding bundlers through roll up, injecting the packaged bundlers into a template tool in a JS-SDK mode, adding required modules into the page through a module query list after the template tool receives the bundlers, associating the components with defaultData through the modules, finally aggregating into a page, combining the page with the bundlers received by the template tool, addressing the JSON data of the configured page through the components, and injecting the module dependency relationship and the initial values of the components to present the page.
Here, it should be noted that the fact-dnd is a drag tool library implemented based on fact. RollUp is a JavaScript module packager that can compile small blocks of code into large blocks of complex code, such as library or an application. The JS-SDK is a web-based software development kit written in JavaScript.
Combining the selected one or more page templates with the insurance commodity to generate instantiated insurance page data;
specifically, it should be noted that the insurance product in fig. 1 refers to a data definition of an insurance product, and includes a name of the product, a health notice, a guarantee clause, an insurance element, and the like, where the insurance element is an element to be collected, including but not limited to a name, certificate information, social security, occupation, and the like.
Specifically, the system searches out a module or a component related to insurance commodity data by analyzing the json data of the page template, pulls and analyzes the data corresponding to the insurance commodity, and instantiates and stores the data in the system database after the data is assembled with the json data of the page template. It should be noted that, in the embodiment of the present invention, the same page template may be combined with different commodities, and the same commodity may also be combined with different page templates to generate instantiated insurance page data.
And step five, configuring the data of the application page and generating the application page.
Specifically, in the embodiment of the invention, the instantiated insurance page data can be edited for the second time, and the configuration data synchronous preview of the PC end and the preview of the mobile end are supported. Configuration content includes, but is not limited to, modifying carousel graphics, modifying related documentation information, modifying titles, hiding modules, theme color switching, css style definitions, and the like. The effect of the editing adjustment can be visually displayed in the page in real time. It should be noted here that the page rendering in this step is already substantially consistent with the page delivered to the C-side (consumer side).
In specific implementation, the page templates suitable for different products can be pre-configured in advance according to the method in the first to third steps, when a target page is generated for a certain product, the pre-configured page templates can be directly called, and then the page templates are configured according to product data to generate a final target page.
Therefore, the embodiment of the invention also provides a lightweight page configurable system, which mainly comprises application of insurance configuration and iframe embedding H5. The system can be connected with a preset platform (such as an insurance company core platform) and can acquire target data of a target object from the preset platform, the preset platform is not required to be replaced, the capacity of quick link, quick product shelving and high-concurrency online service support is provided through a shared service enabling foreground, and the realization scheme of a configurable target page is customized.
Specifically, the process of generating the page by the system is as follows:
step one, building a container of a page: the mobile terminal H5 application (including a component and a set of incidence relation resolvers) is integrated into the configuration of the application page through an iframe introduction mode, an application HTTP protocol introduced through the iframe is consistent with a main application protocol, and cross-domain access is achieved when different application domain names are set through nginx. Wherein the content of the first and second substances,
secondly, receiving a template json data assembly page: the instantiated json data of the page template is transmitted to an H5 application, a window. The window-postmessage is a communication method when web applications are integrated through iframe, and the json-template-part is a self-developed tool method for analyzing template data in H5 applications.
And thirdly, realizing communication between the configuration interface and the H5 application and processing of abnormal data: postmessage message is sent by the configuration page and retrieved by the H5 application listening to the sent message by the window.
And fourthly, local synchronization and incremental updating of message data: the number of the templates contains all information of the page of the insurable configuration, the data size is usually large, the page configuration is locally adjusted according to the components each time, the adjustment of each time is expected to change only the corresponding part without affecting the overall situation, because each component has a corresponding ID, the position of the component in the template tree structure is found through the ID, only the corresponding modified position and the data specified by the template object in the heap are transmitted during the editing and modifying each time, and the local synchronization and the incremental updating can be achieved.
And fifthly, generating an application page according to the stored and configured template data: and acquiring the stored template data through the API, processing the template data through json-template-part, and outputting a rendering function presentation page.
Example two
Corresponding to the first embodiment, the present application provides a page generating method, wherein in the present embodiment, the same or similar contents as those in the first embodiment may refer to the above description, and are not repeated herein.
As shown in fig. 4, the method includes the steps of:
s1: and matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component.
Specifically, the target object includes, but is not limited to, an insurance product, and the page to be generated includes, but is not limited to, an insurance page of the insurance product. Components are the basic elements that make up a page, including but not limited to carousel maps, input boxes, date selectors, region selections, buttons, pop-up windows, prompts, progress bars, support details, health advice, benefit demonstrations, and the like.
S2: and generating instantiated page data according to the at least one page template and the target data of the target object.
Specifically, after the page template required by the target object is selected, the selected page template is combined with the target data of the target object to generate instantiated page data. It should be noted that, in the embodiment of the present invention, the same page template may be combined with target data of different target objects to generate instantiated insurance page data, and the target data of the same target object may also be combined with different page templates to generate instantiated insurance page data, which is not limited herein, and a user may set the page data according to actual requirements.
S3: and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
Specifically, the preset rule may be to modify the content related to the page according to the requirements of different channel scenes and new regulations for supervising digital transformation of insurance companies by the insurance policy, or to modify the content related to the page according to the actual requirements of the user. Modifying content includes, but is not limited to, modifying carousel graphics, modifying related document information, modifying titles, hiding modules, theme color switching, css style definitions, and the like.
As a preferred implementation manner, in the embodiment of the present invention, the method includes a process of generating a page template, including:
generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generation rule;
and performing association processing on the plurality of basic pages to generate a page template.
Specifically, the preset basic page generation rule may be a user-defined page generation rule, or a page generation rule formulated according to the page generation requirement of a certain product, which is not limited herein.
As a preferred implementation manner, in an embodiment of the present invention, the generating a plurality of basic pages according to a plurality of preconfigured components and a preset basic page generation rule includes:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
Specifically, because the granularity of the components is fine, usually one page contains dozens of hundreds of components, and if the page is directly constructed through the components, the difficulty of creating the page by an operator is high. In order to solve the problem, in the embodiment of the present invention, a plurality of components are first configured and combined to generate a plurality of intermediate modules, and then the plurality of intermediate modules are configured and combined to generate a plurality of basic pages.
As a preferred implementation manner, in the embodiment of the present invention, the performing association processing on the multiple base pages to generate the page template includes:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
As a preferred implementation, in an embodiment of the present invention, the generating instantiated page data according to the at least one page template and the target data of the target object includes:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
As a preferred implementation manner, in an embodiment of the present invention, before generating instantiated page data according to the at least one page template and the target data of the target object, the method further includes:
and acquiring target data of the target object from a preset platform by using a preset interface.
Specifically, in the embodiment of the present invention, the setting system may directly interface with a preset platform, and directly obtain the target data of the target object from the preset platform through a preset interface, where the preset platform includes, but is not limited to, an insurance company platform. By the arrangement, the preset platform can request the preset platform for the target data only through the preset interface without replacing the core.
As a preferred implementation manner, in an embodiment of the present invention, the target object includes an insurance product, and the matching at least one page template from a preset template library according to the page generation request of the target object of the page to be generated includes:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
EXAMPLE III
Corresponding to the first embodiment and the second embodiment, the present application further provides a page generating device, where in this embodiment, the same or similar contents as those in the first embodiment or the second embodiment may refer to the above description, and are not repeated herein. As shown in fig. 5, the apparatus includes:
the template acquisition module is used for matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
the data generation module is used for generating instantiated page data according to the at least one page template and the target data of the target object;
and the page generation module is used for editing the instantiated page data according to a preset rule to generate a target page of the target object.
As a preferred implementation manner, in an embodiment of the present invention, the apparatus further includes:
the template generating module is used for generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generating rule; and performing association processing on the plurality of basic pages to generate a page template.
As a preferred implementation manner, in an embodiment of the present invention, the template generating module is further configured to:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
As a preferred implementation manner, in an embodiment of the present invention, the template generating module is further configured to:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
As a preferred implementation manner, in an embodiment of the present invention, the data generation module is configured to:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
As a preferred embodiment, in an embodiment of the present invention, the apparatus includes:
and the data acquisition module is used for acquiring the target data of the target object from a preset platform by using a preset interface.
As a preferred implementation manner, in an embodiment of the present invention, the template obtaining module is configured to:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
Example four
Corresponding to the first to third embodiments, the present application further provides a computer device, wherein in the present embodiment, the same or similar contents as those in the first to third embodiments may be referred to the above description, and are not repeated herein. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of optimization of an execution plan.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing devices to which aspects of the present invention may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
As a preferred implementation manner, in an embodiment of the present invention, the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the following steps when executing the computer program:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generation rule;
and performing association processing on the plurality of basic pages to generate a page template.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
and acquiring target data of the target object from a preset platform by using a preset interface.
As a preferred implementation manner, in the embodiment of the present invention, when the processor executes the computer program, the following steps are further implemented:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
EXAMPLE five
Corresponding to the first to fourth embodiments, a computer-readable storage medium is further provided, wherein in this embodiment, the same or similar contents as those in the first to fourth embodiments may be referred to the above description, and details are not repeated. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generation rule;
and performing association processing on the plurality of basic pages to generate a page template.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
and acquiring target data of the target object from a preset platform by using a preset interface.
As a preferred implementation manner, in the embodiment of the present invention, when executed by the processor, the computer program further implements the following steps:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
In summary, the technical solution provided by the embodiment of the present invention has the following beneficial effects:
the page generation method, the page generation device, the computer equipment and the storage medium provided by the embodiment of the invention match at least one page template from a preset template library according to the page generation request of the target object of the page to be generated, wherein the page template comprises at least one component, generating instantiated page data from the at least one page template and target data of the target object, configuring the instantiated page data according to a preset rule to generate a target page of the target object, and quickly configuring the target page of the target object universally used in all channels by configuring a page template according to the target data without repeatedly developing different target objects, so that the target object is quickly put on shelf, and the problems that the target object is long in line-up period, cannot meet the supervision requirement and the like under the condition of lacking research and development capacity are solved;
according to the page generation method, the page generation device, the computer equipment and the storage medium, the plurality of intermediate modules are generated according to the plurality of pre-configured components and the incidence relation among the components, and the plurality of basic pages are generated according to the plurality of intermediate modules and the preset basic page generation rule, so that the problem that the difficulty of constructing the pages is high due to the fact that the granularity of the components is small is solved, and the generation efficiency of the template pages is improved.
It should be noted that: the page generating apparatus provided in the foregoing embodiment is only illustrated by dividing the functional modules when triggering the page generating service, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the page generation apparatus and the page generation method provided in the above embodiments belong to the same concept, that is, the apparatus is based on the page generation method, and the specific implementation process thereof is described in detail in the method embodiments and is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A page generation method is characterized by comprising the following steps:
matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
generating instantiated page data according to the at least one page template and the target data of the target object;
and configuring the instantiated page data according to a preset rule to generate a target page of the target object.
2. The method for generating the page according to claim 1, wherein the method comprises a generation process of a page template, comprising the following steps:
generating a plurality of basic pages according to a plurality of pre-configured components and a preset basic page generation rule;
and performing association processing on the plurality of basic pages to generate a page template.
3. The method for generating pages according to claim 2, wherein said generating a plurality of base pages according to a plurality of pre-configured components and a preset base page generation rule comprises:
generating a plurality of intermediate modules according to a plurality of pre-configured components and the incidence relation among the components;
and generating a plurality of basic pages according to the plurality of intermediate modules and the preset basic page generation rule.
4. The method for generating pages according to claim 2, wherein the associating the plurality of basic pages and generating the page template comprises:
and performing association processing on the plurality of basic pages according to the page jump relationship among the plurality of basic pages to generate a page template.
5. The method for generating pages according to any of claims 1 to 4, wherein said generating instantiated page data from said at least one page template and target data of said target object comprises:
analyzing the at least one page template by using a preset analyzer to obtain at least one target component needing to be associated with target data;
and assembling each target assembly and corresponding target data and then instantiating the target assembly to generate instantiated page data.
6. The method for generating pages according to any of claims 1 to 4, wherein before generating instantiated page data from said at least one page template and target data of said target object, said method further comprises:
and acquiring target data of the target object from a preset platform by using a preset interface.
7. The page generating method according to any one of claims 1 to 4, wherein the target object includes an insurance product, and the matching of at least one page template from a preset template library according to the page generating request of the target object of the page to be generated includes:
receiving a page generation request of an insurance product of a page to be generated, and acquiring type information of the insurance product from the page generation request, wherein the type information is used for representing the type of the insurance product;
and matching at least one page template from a preset template library according to the type information.
8. An apparatus for generating a page, the apparatus comprising:
the template acquisition module is used for matching at least one page template from a preset template library according to a page generation request of a target object of a page to be generated, wherein the page template comprises at least one component;
the data generation module is used for generating instantiated page data according to the at least one page template and the target data of the target object;
and the page generation module is used for editing the instantiated page data according to a preset rule to generate a target page of the target object.
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 steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110451864.5A 2021-04-26 2021-04-26 Page generation method and device, computer equipment and storage medium Pending CN113268233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110451864.5A CN113268233A (en) 2021-04-26 2021-04-26 Page generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110451864.5A CN113268233A (en) 2021-04-26 2021-04-26 Page generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113268233A true CN113268233A (en) 2021-08-17

Family

ID=77229449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110451864.5A Pending CN113268233A (en) 2021-04-26 2021-04-26 Page generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113268233A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114170032A (en) * 2022-02-11 2022-03-11 北京优全智汇信息技术有限公司 Insurance product online method and device, electronic equipment and storage medium
CN114817793A (en) * 2022-06-24 2022-07-29 深圳市信润富联数字科技有限公司 Page generation method, device, equipment and storage medium
CN116225438A (en) * 2023-05-10 2023-06-06 和创(北京)科技股份有限公司 Custom configuration multifunctional workbench system
CN117649305A (en) * 2024-01-12 2024-03-05 广州小锤科技服务有限公司 Personalized claim micro-service management method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180060294A1 (en) * 2016-09-01 2018-03-01 Adobe Systems Incorporated Combining Aspects of a Template into Multiple Web Pages
CN109522016A (en) * 2018-10-31 2019-03-26 泰康保险集团股份有限公司 Service page face generates method, device and equipment
CN109614568A (en) * 2018-12-07 2019-04-12 微梦创科网络科技(中国)有限公司 A kind of page generation method and device
CN110674441A (en) * 2019-09-02 2020-01-10 中国平安财产保险股份有限公司 Page template configuration control method and device, computer equipment and storage medium
CN110825374A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Page generation method and device based on component, electronic equipment and storage medium
CN111199457A (en) * 2019-12-30 2020-05-26 上海移为通信技术股份有限公司 Page generation method and device
CN111984902A (en) * 2020-09-01 2020-11-24 平安养老保险股份有限公司 Visual page configuration method, system, computer equipment and storage medium
CN114594934A (en) * 2022-03-09 2022-06-07 众安信息技术服务有限公司 Visual page generation method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180060294A1 (en) * 2016-09-01 2018-03-01 Adobe Systems Incorporated Combining Aspects of a Template into Multiple Web Pages
CN109522016A (en) * 2018-10-31 2019-03-26 泰康保险集团股份有限公司 Service page face generates method, device and equipment
CN109614568A (en) * 2018-12-07 2019-04-12 微梦创科网络科技(中国)有限公司 A kind of page generation method and device
CN110674441A (en) * 2019-09-02 2020-01-10 中国平安财产保险股份有限公司 Page template configuration control method and device, computer equipment and storage medium
CN110825374A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Page generation method and device based on component, electronic equipment and storage medium
CN111199457A (en) * 2019-12-30 2020-05-26 上海移为通信技术股份有限公司 Page generation method and device
CN111984902A (en) * 2020-09-01 2020-11-24 平安养老保险股份有限公司 Visual page configuration method, system, computer equipment and storage medium
CN114594934A (en) * 2022-03-09 2022-06-07 众安信息技术服务有限公司 Visual page generation method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MÁRIA CSERNOCH等: "Data-structure validator: An application of the HY-DE model", 《2017 8TH IEEE INTERNATIONAL CONFERENCE ON COGNITIVE INFOCOMMUNICATIONS (COGINFOCOM)》, 25 January 2018 (2018-01-25), pages 197 - 202 *
盛旭辉: "组件化电商平台iOS客户端的设计与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》, no. 11, 15 November 2018 (2018-11-15), pages 138 - 186 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114170032A (en) * 2022-02-11 2022-03-11 北京优全智汇信息技术有限公司 Insurance product online method and device, electronic equipment and storage medium
CN114817793A (en) * 2022-06-24 2022-07-29 深圳市信润富联数字科技有限公司 Page generation method, device, equipment and storage medium
CN116225438A (en) * 2023-05-10 2023-06-06 和创(北京)科技股份有限公司 Custom configuration multifunctional workbench system
CN117649305A (en) * 2024-01-12 2024-03-05 广州小锤科技服务有限公司 Personalized claim micro-service management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10984177B2 (en) System and method providing responsive editing and viewing, integrating hierarchical fluid components and dynamic layout
CN113268233A (en) Page generation method and device, computer equipment and storage medium
CN111079047B (en) Web-oriented page construction system
CN108628741A (en) Webpage test method, device, electronic equipment and medium
CN109408764B (en) Page area dividing method, device, computing equipment and medium
CN111401008B (en) Document auditing system, document auditing method and device
CN105446744A (en) Internet based display material system and display material making method
CN105120006A (en) Live commenting control method, live commenting server and live commenting control device for electronic readings
CN113504908A (en) Business code generation method and device, electronic equipment and computer readable medium
US20170169474A1 (en) Internet-based display material system and internet-based display material producing method
KR20170083718A (en) System of Building Responsive Website And Method there-of
CN113268227A (en) Zero-code visualization software development platform and development method
JPWO2019039255A1 (en) Terminal device, UI extension method, and UI extension program
CN108304190A (en) Network shop generation method and device
CN116881353A (en) Financial data display method and device, storage medium and electronic equipment
CN114416056A (en) Page generation method, system, computer equipment and readable storage medium
CN114706584A (en) Data visualization display manufacturing system
WO2024066825A1 (en) Page project development method, apparatus, device, medium and product
CN115130442A (en) Report generation method and device, storage medium and computer equipment
CN107526824A (en) A kind of object displaying method, device and terminal device being applied in electronic reading
CN113190509A (en) Animation processing method and device, electronic equipment and computer readable storage medium
CN114935996B (en) Method, computer device and storage medium for online processing of documents
CN113806596B (en) Operation data management method and related device
CN111596906B (en) MVPVM-based Android application development method, device, equipment and medium
CN108021367A (en) A kind of UI development systems and method based on metadata framework

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