CN112416350A - View page construction method and device, computer equipment and storage medium - Google Patents

View page construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112416350A
CN112416350A CN202011467407.7A CN202011467407A CN112416350A CN 112416350 A CN112416350 A CN 112416350A CN 202011467407 A CN202011467407 A CN 202011467407A CN 112416350 A CN112416350 A CN 112416350A
Authority
CN
China
Prior art keywords
page
data
view
service function
frame 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
CN202011467407.7A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202011467407.7A priority Critical patent/CN112416350A/en
Publication of CN112416350A publication Critical patent/CN112416350A/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to the technical field of big data, in particular to a view page construction method and device, computer equipment and a storage medium. The method comprises the following steps: receiving a generation request of a view page to be generated, and acquiring a pre-configured page view frame template based on the generation request; generating initial page frame data corresponding to a view page to be generated based on a page view frame template; receiving all service function data sent by a terminal, and replacing corresponding data fields in the initial page frame data through all the service function data to obtain replaced page frame data; and executing the page frame data to generate a view page to be generated. By adopting the method, the construction of the view page and the intelligent generation level can be improved. In addition, the invention also relates to a block chain technology, and the page view frame template, the initial page frame data, each service function data and the page frame data can be stored in the block chain.

Description

View page construction method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method and an apparatus for constructing a view page, a computer device, and a storage medium.
Background
With the development of science and technology, various Applications (APP) are widely used in daily life of people. Each application usually has more service scene components, and usually needs to construct a plurality of view pages.
In a traditional mode, each view page is constructed manually, namely, page data of the view page is compiled manually, the construction process is complicated, a large amount of time is consumed, and the view page is not intelligent enough in construction and generation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a view page construction method, apparatus, computer device and storage medium capable of promoting the construction of view pages and generating an intelligent level.
A method of view page construction, the method comprising:
receiving a generation request of a view page to be generated, and acquiring a pre-configured page view frame template based on the generation request;
generating initial page frame data corresponding to a view page to be generated based on a page view frame template;
receiving all service function data sent by a terminal, and replacing corresponding data fields in the initial page frame data through all the service function data to obtain replaced page frame data;
and executing the page frame data to generate a view page to be generated.
In one embodiment, each service function data includes a service function identifier for characterizing each service function type;
replacing the data field in the initial page frame data through each service function data to obtain the replaced page frame data, wherein the method comprises the following steps:
determining a data field corresponding to the service function identifier in the initial page frame data;
and replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
In one embodiment, executing the page frame data to generate the view page to be generated includes:
receiving a page generation instruction of a view page to be generated;
extracting coordinate position information and size information of each page module from page frame data based on a page generation instruction;
and constructing a view page to be generated according to the coordinate position information and the size information.
In one embodiment, constructing a view page to be generated according to coordinate position information and size information includes:
constructing blank page modules corresponding to the size information, and filling the blank page modules to obtain a plurality of filled page modules;
and splicing the multiple page filling modules according to the coordinate position information to generate a view page to be generated.
In one embodiment, before executing the page frame data and generating the view page, the method further includes:
performing at least one of data type judgment and data integrity judgment on each service function data replaced in the page frame data;
and when the results of the data type judgment and the data integrity judgment meet the preset conditions, executing the page frame data to generate a view page to be generated.
In one embodiment, the method further includes:
and uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to a block chain node for storage.
A view page construction apparatus, the apparatus comprising:
the page view frame template acquisition module is used for receiving a generation request of a view page to be generated and acquiring a pre-configured page view frame template based on the generation request;
the initial page frame data generation module is used for generating initial page frame data corresponding to the view page to be generated based on the page view frame template;
the replacing module is used for receiving all service function data sent by the terminal and replacing corresponding data fields in the initial page frame data through all the service function data to obtain replaced page frame data;
and the view page generation module is used for executing the page frame data to generate a view page to be generated.
In one embodiment, each service function data includes a service function identifier for characterizing each service function type;
a replacement module comprising:
the data field determining submodule is used for determining a data field corresponding to the service function identifier in the initial page frame data;
and the replacing submodule is used for replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any of the above embodiments when the processor executes the computer program.
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 of the above embodiments.
According to the view page construction method, the view page construction device, the computer equipment and the storage medium, the generation request of the view page to be generated is received, the page view frame template configured in advance is obtained based on the generation request, then the initial page frame data corresponding to the view page to be generated is generated based on the page view frame template, each service function data sent by the terminal is received, the corresponding data field in the initial page frame data is replaced through each service function data, the replaced page frame data is obtained, and the page frame data is further executed to generate the view page. Therefore, initial page frame data can be directly generated based on the page view frame template, the generation time of the page frame data is saved, and the generation efficiency is improved. And after the initial page frame data is directly generated through the page frame template, corresponding data fields in the initial page frame data are replaced through the service function data to generate the page frame data, so that the generation of the page frame data is more intelligent, and the intelligent level of the view page generation is improved.
Drawings
FIG. 1 is a diagram of an application scenario of a view page construction method in one embodiment;
FIG. 2 is a flowchart illustrating a method for constructing a view page in one embodiment;
FIG. 3 is a block diagram showing the structure of a view page constructing apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail 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.
The view page construction method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. Among other things, the terminal 102 may send a generation request with a schlieren view page to the server 104. The server 104 may obtain a pre-configured page view frame template based on the generation request when receiving the generation request of the view page to be generated. Then, the server 104 generates initial page frame data corresponding to the view page to be generated based on the page view frame template, further, the server 104 receives each service function data sent by the terminal 102, replaces a corresponding data field in the initial page frame data by each service function data to obtain the replaced page frame data, and executes the page frame data to generate the view page to be generated. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for constructing a view page is provided, which is described by taking the method as an example for being applied to the server in fig. 1, and includes the following steps:
step S202, receiving a generation request of a view page to be generated, and acquiring a page view frame template configured in advance based on the generation request.
The generating request refers to a request for generating a view page to be generated, and the request can carry a page type and a page name of the view page to be generated.
The page view frame template refers to a template file which is constructed in advance, and the page view frame template may include basic frame information of a view page to be generated, for example, general configuration data in each view page is generated.
In this embodiment, the server may obtain the page view frame template by obtaining a large amount of page data of the existing view page and analyzing and summarizing the obtained view page data.
In this embodiment, there may be page view frame templates corresponding to different types of view pages, for example, a page view frame template corresponding to a dynamic view page, a page view frame template corresponding to a static view page, and the like.
In this embodiment, the server may obtain, from the database, a page view frame template corresponding to the page type according to the page type of the page to be generated.
Step S204, based on the page view frame template, generating initial page frame data corresponding to the view page to be generated.
In this embodiment, after obtaining the page frame template, the server may construct initial page frame data of the view page to be generated according to the received page name of the page to be generated.
Specifically, a user inputs a page name of a page to be generated through a terminal, and then generates a page frame data generation instruction by triggering a generation control on the terminal page.
Further, after receiving the page frame data generation instruction, the server may call the obtained page view frame template, and generate initial page frame data including the page name by mapping the page name to the page view frame template. Specifically, a filling area of the page name is reserved in the page view frame template, and then the page name is filled into the corresponding filling area.
In this embodiment, the generated initial page frame data may be composed of a plurality of files, for example, TEST1VC, TEST2VC, TEST3VC, etc., each TESTVC may include a Presenter file and a views file, and the Presenter file may include View controllers of different data formats.
In this embodiment, the View controller includes a content View of a page to be generated, including an OpTag View click operation enumeration; the viewDelegate protocol, namely a view operation callback protocol, informs the iewController that a user interacts with the view and needs to process data based on the interaction; the viewDelegate processes a specific object of the callback protocol, which is generally a ViewController; subViews, child view declaration; operation, operation method of view update, and the like.
In this embodiment, the server may pre-agree on the composition and the hierarchy of the initial page frame data, and generate the initial page frame data according to an agreed architecture when receiving the generation instruction of the terminal.
And step S206, receiving each service function data sent by the terminal, and replacing the corresponding data field in the initial page frame data through each service function data to obtain the replaced page frame data.
The page function data refers to configuration data corresponding to each page function in the page to be generated, such as an image display function, a touch function, and the like.
The page function data may include a specific function name, function implementation processing logic, and an implementation area range of the function on the page, and the like. For example, for the data of the touch function, it may define which areas on the page to be generated can accept touch and generate touch instructions, for the image display function, it may define which areas in the page to be generated can present image data, and it may determine whether it displays a dynamic image or a static image, etc.
In one embodiment, each service function data may further include service data corresponding to the service function, for example, image data, text data, FLASH data, or other data, which is not limited in this application.
In this embodiment, a user may write each service function data through a terminal, and send the data to a server after writing.
In an embodiment, after receiving each page function data, the server may replace a data field corresponding to a service function in the initial page frame data according to the received service function data, and generate the page frame data after the replacement is completed.
In one embodiment, the server may establish a correspondence between data fields in the initial page frame data and the business function data through the association control. After the terminal completes the writing of the corresponding business function data, the data field of the corresponding business function data in the initial page frame data can be directly replaced through the correlation control according to the corresponding relation in the correlation control, so that the efficiency and the accuracy of data field replacement are improved.
Step S208, executing the page frame data to generate a view page to be generated.
In this embodiment, after the server replaces the corresponding data field in the initial page frame data, the generated page frame data may be run to generate the corresponding view page to be generated.
In this embodiment, the generation of the view page to be generated may be that the generation of the page frame data is automatically executed after the replacement is completed, or may also be that the generation is triggered based on a trigger instruction of the terminal.
In the view page construction method, a generation request of a view page to be generated is received, a preset page view frame template is obtained based on the generation request, then initial page frame data corresponding to the view page to be generated is generated based on the page view frame template, each service function data sent by a terminal is received, corresponding data fields in the initial page frame data are replaced through each service function data, replaced page frame data are obtained, and the page frame data are further executed to generate the view page. Therefore, initial page frame data can be directly generated based on the page view frame template, the generation time of the page frame data is saved, and the generation efficiency is improved. And after the initial page frame data is directly generated through the page frame template, corresponding data fields in the initial page frame data are replaced through the service function data to generate the page frame data, so that the generation of the page frame data is more intelligent, and the intelligent level of the view page generation is improved.
In one embodiment, each service function data may include a service function identifier for characterizing each service function type.
The service function identifier is used to represent a service function type of the data, for example, the aforementioned touch function and image display function, or a text input function and a selection function.
In this embodiment, each service function may have a service function identifier uniquely corresponding thereto, and the corresponding service function may be determined by each service function identifier.
In this embodiment, replacing the data field in the initial page frame data by each service function data to obtain the replaced page frame data may include: determining a data field corresponding to the service function identifier in the initial page frame data; and replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
In this embodiment, the server may preset, in the page view frame template, a service function identifier corresponding to each service function, and after the server acquires the service function data, a data field corresponding to the service function identifier may be queried from the initial page frame data generated based on the page view frame template according to the corresponding service function identifier in the service function data.
Further, the server may replace the corresponding data field queried in the initial page frame data according to the service function data corresponding to the service function identifier, so as to generate the replaced page frame data.
In this embodiment, the server may traverse the acquired service function data to replace the initial page frame data, so as to ensure the integrity of the replacement.
In the above embodiment, the initial page frame data is queried according to the service function identifier of each service function data, the data field of the service function identifier corresponding to the initial page frame data is determined, and then the corresponding data field in the initial page frame data is replaced by the service function data, so as to generate the replaced page frame data.
In one embodiment, executing the page frame data to generate the view page to be generated may include: receiving a page generation instruction of a view page to be generated; extracting coordinate position information and size information of each page module from page frame data based on a page generation instruction; and constructing a view page to be generated according to the coordinate position information and the size information.
The page generation instruction is used for indicating the generation of the view page.
In this embodiment, the user may input a page generation instruction through the terminal, for example, the page generation instruction may be an ENTER instruction that is tapped after all service function data is written, or may also be an instruction that is generated when a page control such as "write complete" or "complete" in the writing page is triggered.
The coordinate position information is position information in a view page that needs to be generated and in a view page of each page module, and may refer to coordinate position information of a center point of the page module, or may be coordinate position information of multiple vertices of the page module.
The size information refers to length and width size information of the page module and can be represented as (W, H), wherein W represents the width and H represents the length.
In this embodiment, when receiving a page generation instruction of a view page to be generated, which is fed back by a terminal, a server may construct each page module of the view page to be generated according to coordinate position information and size information of each page module extracted from page frame data, and generate the view page corresponding to the page frame data based on each constructed page module.
In the embodiment, the coordinate position information and the size information of each page module are extracted from the page frame data, and the view page is constructed, so that the page can be constructed according to the size and the position information of each page module, and the accuracy of the generated page is improved.
In one embodiment, constructing the view page to be generated according to the coordinate position information and the size information may include: constructing blank page modules corresponding to the size information, and filling the blank page modules to obtain a plurality of filled page modules; and splicing the multiple page filling modules according to the coordinate position information to generate a view page to be generated.
In this embodiment, after determining the coordinate position information and the size information of each page module, the server may construct corresponding blank page modules according to the size information.
Further, the server may obtain page module data corresponding to each blank page module from the page frame data, and then fill each corresponding blank page module with each page module data. For example, if the page includes a module a, a module B, and a module C, the blank page module corresponding to the module a may be filled with the page module data corresponding to the acquisition module a, the blank page module corresponding to the module B may be filled with the page module data corresponding to the acquisition module B, and the blank page module corresponding to the module C may be filled with the page module data corresponding to the acquisition module C.
In this embodiment, after the server completes the filling of each blank page module, the server may splice a plurality of filled page modules according to the coordinate position information of each page module and according to the coordinate position information, so as to generate a view page. For example, module a is located at the top of the entire page, module B is located at the left side of the lower portion of the entire page, module C is located at the right side of the lower portion of the entire page, and so on, thereby generating a view page by stitching.
In the embodiment, the blank page modules are constructed according to the size information of each page module, the blank page modules are filled to obtain the plurality of filled page modules, and then the plurality of filled page modules are spliced according to the coordinate position information to generate the view page, so that the generation of each page module can be generated one by one according to the requirements of the page frame data, and the accuracy of the generated view page can be improved.
In one embodiment, before executing the page frame data and generating the view page, the method may further include: performing at least one of data type judgment and data integrity judgment on each service function data replaced in the page frame data; and when the results of the data type judgment and the data integrity judgment meet the preset conditions, executing the page frame data to generate a view page to be generated.
The data type refers to a data type of each to-be-replaced data field defined in the initial page frame data, and may include, but is not limited to, name data, FLASH data, picture data, or text data.
In this embodiment, after obtaining the page frame data based on the service function data and the initial page frame data, the server may determine, according to the page frame data obtained after replacement, whether all fields to be replaced in the initial page frame data have been replaced, and/or whether each field to be replaced is replaced by service function data of a corresponding data type. For example, whether "name data" is filled in, and whether the place where the FLASH data needs to be replaced is replaced by the FLASH data.
In this embodiment, when the server determines that the page frame data replacement is not complete enough or the data type does not correspond, an error prompt may be generated and sent to the terminal to prompt the terminal to change or complete the data replacement.
Further, when the server determines that all fields to be replaced in the page frame data are replaced by the service performance data of the corresponding data type, and/or all fields to be replaced are completely replaced, it can be determined that the data type judgment and the data integrity judgment meet the preset conditions, and the server can generate a page generation instruction to control the execution of the page frame data and generate the view page.
In the embodiment, at least one of the data type judgment and the data integrity judgment is performed on each service function data replaced in the page frame data, and when the results of the data type judgment and the data integrity judgment meet the preset conditions, the page frame data is executed to generate the view page to be generated, so that the situations that the page cannot be generated or the page is generated wrongly and the like due to data imperfection or data type miscorrespondence can be avoided, and the accuracy of the generated view page can be improved.
In one embodiment, the method may further include: and uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to a block chain node for storage.
The blockchain refers to a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A Block chain (Block chain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data Block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next Block.
Specifically, the blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In this embodiment, the server may upload and store one or more data of the page view frame template, the initial page frame data, each service function data, and the page frame data in a node of the block chain, so as to ensure privacy and security of the data.
In the above embodiment, at least one of the page view frame template, the initial page frame data, each service function data, and the page frame data is uploaded to the block chain and stored in a node of the block chain, so that privacy of data stored in a node of the block chain can be guaranteed, and security of the data can be improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a view page building apparatus including: the page view frame template acquisition module 100, the initial page frame data generation module 200, the replacement module 300, and the view page generation module 400, wherein:
the page view frame template acquisition module 100 is configured to receive a generation request of a view page to be generated, and acquire a pre-configured page view frame template based on the generation request;
an initial page frame data generating module 200, configured to generate initial page frame data corresponding to a view page to be generated, based on a page view frame template;
the replacing module 300 is configured to receive each service function data sent by the terminal, and replace a corresponding data field in the initial page frame data by each service function data to obtain replaced page frame data;
and the view page generating module 400 is configured to execute the page frame data to generate a view page to be generated.
In one embodiment, each service function data may include a service function identifier for characterizing each service function type.
In this embodiment, the replacing module 300 may include:
and the data field determining submodule is used for determining the data field corresponding to the service function identifier in the initial page frame data.
And the replacing submodule is used for replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
In one embodiment, the view page generation module 400 may include:
and the page generation instruction receiving submodule is used for receiving a page generation instruction of the view page to be generated.
And the coordinate position information and size information acquisition submodule is used for extracting the coordinate position information and size information of each page module from the page frame data based on the page generation instruction.
And the view page construction submodule is used for constructing the view page to be generated according to the coordinate position information and the size information.
In one embodiment, the view page construction sub-module may include:
and the constructing and filling unit is used for constructing blank page modules corresponding to the size information and filling the blank page modules to obtain a plurality of filled page modules.
And the splicing unit is used for splicing the multiple filling page modules according to the coordinate position information to generate a view page to be generated.
In one embodiment, the apparatus may further include:
a determining module, configured to perform at least one of data type determination and data integrity determination on each service function data replaced in the page frame data before the view page generating module 400 executes the page frame data to generate the view page; and when the results of the data type judgment and the data integrity judgment meet the preset conditions, executing the page frame data to generate a view page to be generated.
In one embodiment, the apparatus may further include:
and the storage module is used for uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to the block chain node for storage.
For specific limitations of the view page constructing apparatus, reference may be made to the above limitations of the view page constructing method, which is not described herein again. The various modules in the above-described view page constructing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database 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 database of the computer equipment is used for storing data such as a page view frame template, initial page frame data, various business function data, page frame data and the like. 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 view page construction method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: receiving a generation request of a view page to be generated, and acquiring a pre-configured page view frame template based on the generation request; generating initial page frame data corresponding to a view page to be generated based on a page view frame template; receiving all service function data sent by a terminal, and replacing corresponding data fields in the initial page frame data through all the service function data to obtain replaced page frame data; and executing the page frame data to generate a view page to be generated.
In one embodiment, each service function data may include a service function identifier for characterizing each service function type.
In this embodiment, when the processor executes the computer program, the replacing of the data field in the initial page frame data by each service function data is implemented to obtain the replaced page frame data, and the replacing may include: determining a data field corresponding to the service function identifier in the initial page frame data; and replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
In one embodiment, the executing of the page frame data by the processor to generate the view page to be generated when the computer program is executed may include: receiving a page generation instruction of a view page to be generated; extracting coordinate position information and size information of each page module from page frame data based on a page generation instruction; and constructing a view page to be generated according to the coordinate position information and the size information.
In one embodiment, when the processor executes the computer program, constructing the view page to be generated according to the coordinate position information and the size information may include: constructing blank page modules corresponding to the size information, and filling the blank page modules to obtain a plurality of filled page modules; and splicing the multiple page filling modules according to the coordinate position information to generate a view page to be generated.
In one embodiment, the processor, when executing the computer program, implements the steps of executing the page frame data, and before generating the view page, further implementing the following steps: performing at least one of data type judgment and data integrity judgment on each service function data replaced in the page frame data; and when the results of the data type judgment and the data integrity judgment meet the preset conditions, executing the page frame data to generate a view page to be generated.
In one embodiment, the processor, when executing the computer program, may further implement the following steps: and uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to a block chain node for storage.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a generation request of a view page to be generated, and acquiring a pre-configured page view frame template based on the generation request; generating initial page frame data corresponding to a view page to be generated based on a page view frame template; receiving all service function data sent by a terminal, and replacing corresponding data fields in the initial page frame data through all the service function data to obtain replaced page frame data; and executing the page frame data to generate a view page to be generated.
In one embodiment, each service function data may include a service function identifier for characterizing each service function type.
In this embodiment, when executed by the processor, the implementing of replacing the data field in the initial page frame data by each service function data to obtain the replaced page frame data may include: determining a data field corresponding to the service function identifier in the initial page frame data; and replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
In one embodiment, the computer program, when executed by the processor, implements execution of the page frame data to generate the view page to be generated, may include: receiving a page generation instruction of a view page to be generated; extracting coordinate position information and size information of each page module from page frame data based on a page generation instruction; and constructing a view page to be generated according to the coordinate position information and the size information.
In one embodiment, the computer program, when executed by the processor, implements constructing the view page to be generated according to the coordinate position information and the size information, and may include: constructing blank page modules corresponding to the size information, and filling the blank page modules to obtain a plurality of filled page modules; and splicing the multiple page filling modules according to the coordinate position information to generate a view page to be generated.
In one embodiment, the computer program when executed by the processor implements the following steps before executing the page frame data to generate the view page: performing at least one of data type judgment and data integrity judgment on each service function data replaced in the page frame data; and when the results of the data type judgment and the data integrity judgment meet the preset conditions, executing the page frame data to generate a view page to be generated.
In one embodiment, the computer program when executed by the processor may further implement the steps of: and uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to a block chain node for storage.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as 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 constructing a view page, the method comprising:
receiving a generation request of a view page to be generated, and acquiring a pre-configured page view frame template based on the generation request;
generating initial page frame data corresponding to the view page to be generated based on the page view frame template;
receiving each service function data sent by a terminal, and replacing a corresponding data field in the initial page frame data through each service function data to obtain replaced page frame data;
and executing the page frame data to generate the view page to be generated.
2. The method of claim 1, wherein each of the service function data includes a service function identifier for characterizing each service function type;
replacing the data field in the initial page frame data by each service function data to obtain replaced page frame data, wherein the replacing comprises the following steps:
determining a data field corresponding to the service function identifier in the initial page frame data;
and replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
3. The method of claim 1, wherein the executing the page frame data to generate the view page to be generated comprises:
receiving a page generation instruction of the view page to be generated;
extracting coordinate position information and size information of each page module from the page frame data based on the page generation instruction;
and constructing the view page to be generated according to the coordinate position information and the size information.
4. The method according to claim 3, wherein the constructing the view page to be generated according to the coordinate position information and the size information comprises:
constructing blank page modules corresponding to the size information, and filling the blank page modules to obtain a plurality of filled page modules;
and splicing the plurality of filling page modules according to the coordinate position information to generate the view page to be generated.
5. The method of claim 1, wherein before executing the page frame data to generate a view page, further comprising:
performing at least one of data type judgment and data integrity judgment on each service function data replaced in the page frame data;
and when the results of the data type judgment and the data integrity judgment meet preset conditions, executing the page frame data to generate the view page to be generated.
6. The method of claim 1, further comprising:
uploading at least one of the page view frame template, the initial page frame data, each service function data and the page frame data to a block chain node for storage.
7. A view page construction apparatus, characterized in that the apparatus comprises:
the page view frame template acquisition module is used for receiving a generation request of a view page to be generated and acquiring a pre-configured page view frame template based on the generation request;
the initial page frame data generation module is used for generating initial page frame data corresponding to the view page to be generated based on the page view frame template;
the replacing module is used for receiving each service function data sent by the terminal and replacing the corresponding data field in the initial page frame data through each service function data to obtain the replaced page frame data;
and the view page generating module is used for executing the page frame data to generate the view page to be generated.
8. The apparatus of claim 7, wherein each of the service function data includes a service function identifier for characterizing each service function type;
the replacement module includes:
a data field determining submodule, configured to determine a data field corresponding to the service function identifier in the initial page frame data;
and the replacing submodule is used for replacing the corresponding data field in the initial page frame data by the service function data corresponding to the service function identifier to obtain the replaced page frame data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
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 6.
CN202011467407.7A 2020-12-14 2020-12-14 View page construction method and device, computer equipment and storage medium Pending CN112416350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011467407.7A CN112416350A (en) 2020-12-14 2020-12-14 View page construction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011467407.7A CN112416350A (en) 2020-12-14 2020-12-14 View page construction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112416350A true CN112416350A (en) 2021-02-26

Family

ID=74776156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011467407.7A Pending CN112416350A (en) 2020-12-14 2020-12-14 View page construction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112416350A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095051A (en) * 2021-04-28 2021-07-09 企查查科技有限公司 Method and device for generating commendable enterprise report, computer equipment and storage medium
CN115525847A (en) * 2021-11-26 2022-12-27 北京字跳网络技术有限公司 Page view generation method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095051A (en) * 2021-04-28 2021-07-09 企查查科技有限公司 Method and device for generating commendable enterprise report, computer equipment and storage medium
CN113095051B (en) * 2021-04-28 2024-03-19 企查查科技股份有限公司 Method, device, computer equipment and storage medium for generating response mark enterprise report
CN115525847A (en) * 2021-11-26 2022-12-27 北京字跳网络技术有限公司 Page view generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
WO2020253061A1 (en) Page generating method and apparatus, computer device, and storage medium
CN111459541B (en) Application program packaging method and device, computer equipment and storage medium
CN110135129B (en) Code segment protection method and device, computer equipment and storage medium
CN111399833B (en) Service data processing method and device, computer equipment and storage medium
CN108335199B (en) Loan request processing method, loan request processing device, computer equipment and storage medium
CN112416350A (en) View page construction method and device, computer equipment and storage medium
WO2020258650A1 (en) Page information display method and apparatus, computer device, and storage medium
CN111061475A (en) Software code generation method and device, computer equipment and storage medium
CN114119300A (en) Electronic protocol matching method and device, computer equipment and storage medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN111159598A (en) Image browsing method and device, computer equipment and storage medium
CN110543450A (en) Electronic document generation method and device, computer equipment and storage medium
CN112148351B (en) Cross-version compatibility method and system for application software
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
CN110827959B (en) Medical image processing method, device and storage medium
CN112035113A (en) Navigation bar loading method, device, equipment and medium of H5 page
CN110647350A (en) Interface document generation method and device, computer equipment and storage medium
CN109766084B (en) Customized development method and device for payment application, computer equipment and storage medium
CN110865943A (en) Interface testing method and device, computer equipment and storage medium
CN114840190A (en) Code generation method and device, computer 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