Page creation method, device, electronic device and storage medium
By using the interface detection and instruction copy functions in front-end page development, the problem of rewriting the backend code every time a new page is created in front-end page development is solved, and an efficient page creation process is realized.
Patent Information
- Application Number
- CN202210472999.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In front-end page development, developers need to rewrite the backend code every time they create a new page, resulting in inefficiency, especially when components are highly similar and duplication of work increases.
Provides a page creation method that displays the first creation interface and the second creation interface, detects function addition and instruction copy operations, realizes copying of business function blocks and instruction information, reduces repeated writing, and improves efficiency.
When creating the target page, you only need to add the required business function blocks in the first creation interface, and automatically copy the instruction information to the second creation interface to realize the business functions without rewriting the instruction information, which significantly improves the efficiency of page creation.
Smart Images

Figure CN114911478B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a page creation method, device, electronic device and storage medium. Background Art
[0002] Front-end development is the process of creating the front-end page of a website or application to present to users. The development process of the front-end page is generally as follows: the designer first designs the front-end page and provides the design drawing to the developer, who analyzes the design drawing and writes the corresponding back-end code, which presents the front-end page.
[0003] In the related art, every time a new front-end page is created, the developer will rewrite the back-end code to achieve development from scratch. Even if some components are highly similar, they need to be redeveloped each time, resulting in low efficiency in creating front-end pages. Summary of the invention
[0004] The present disclosure provides a page creation method, device, electronic device and storage medium, which can improve the efficiency of page creation. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a page creation method, comprising:
[0006] Displaying a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page, wherein the instruction information is used to implement the business function of the target page;
[0007] Based on the function adding operation detected in the first creation interface, displaying a plurality of blocks in the first creation interface, wherein the blocks are used to display business functions;
[0008] Based on the instruction copy operation detected in the first creation interface, displaying instruction information of the target block indicated by the instruction copy operation in the second creation interface, wherein the instruction information of the target block is used to implement the business function of the target block;
[0009] Based on the page generation operation detected in the second creation interface, the target page is displayed, and the target page is used to implement multiple business functions.
[0010] According to another aspect of an embodiment of the present disclosure, there is provided a page creation device, including:
[0011] A first display unit is configured to execute and display a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page;
[0012] A second display unit is configured to perform a function adding operation detected in the first creation interface, and display a plurality of blocks in the first creation interface, wherein the blocks are used to display business functions;
[0013] A third display unit is configured to perform an instruction copy operation based on the instruction copy operation detected in the first creation interface, and display instruction information of a target block indicated by the instruction copy operation in the second creation interface, wherein the instruction information of the target block is used to implement a business function of the target block;
[0014] The fourth display unit is configured to execute a page generation operation based on the page generation operation detected in the second creation interface, and display the target page, where the target page is used to implement multiple business functions.
[0015] In some embodiments, the second display unit includes:
[0016] A first display subunit is configured to execute a trigger operation on a block control in the first creation interface, and display a block page in a content display area of the first creation interface, wherein the block page displays a plurality of blocks to be added;
[0017] The second display sub-unit is configured to display a preview page in the content display area of the first creation interface in response to an adding operation on at least one block, wherein the preview page displays the multiple added blocks.
[0018] In some embodiments, the apparatus further comprises:
[0019] a fifth display unit, configured to execute, for any block displayed in the first creation interface, when the block is selected, in response to a triggering operation on a component control in the first creation interface, displaying a component page in the content display area of the first creation interface, wherein the component page displays a plurality of components to be added, and the components are used to implement sub-functions in the business function;
[0020] The sixth display unit is configured to execute, in response to an adding operation on at least one component, display the at least one component in the block, and add instruction information of the at least one component to the instruction information of the block.
[0021] In some embodiments, the apparatus further comprises:
[0022] A first updating unit is configured to execute, for any block, in response to a move operation on any component in the block, updating a position of the component displayed in the block, and updating a position of the instruction information of the component in the instruction information of the block; or
[0023] a deleting unit configured to execute, in response to a deletion operation on any component in the block, remove the component from the block and delete instruction information of the component from instruction information of the block; or
[0024] The modification unit is configured to execute a modification operation in response to any component in the block, and to modify the instruction information of the component in the instruction information of the block accordingly according to the modification operation.
[0025] In some embodiments, the third display unit includes:
[0026] A setting subunit configured to execute, in response to a triggering operation on a block mark control in the first creation interface, setting the plurality of blocks to a selectable state;
[0027] A third display subunit is configured to execute, in response to a selection operation on at least one block, display a copy control of the selected target block in the first creation interface;
[0028] The fourth display subunit is configured to execute, in response to a triggering operation on the copy control, display instruction information of the target block in the second creation interface.
[0029] In some embodiments, the fourth display sub-unit is configured to execute in response to a trigger operation on the copy control, obtain instruction information of the target block; display prompt information in the second creation interface, the prompt information being used to prompt whether to copy the instruction information of the target block to the second creation interface; and display the instruction information of the target block in the second creation interface in response to a confirmation operation on the prompt information.
[0030] In some embodiments, the apparatus further comprises:
[0031] A first acquisition unit is configured to execute, in response to a trigger operation on the copy control, to acquire a source file of the target block, wherein the source file includes materials required for implementing a business function displayed by the target block;
[0032] The copying unit is configured to execute a confirmation operation in response to the prompt information, and copy the source file to a target path, where the target path corresponds to the instruction information of the target block.
[0033] In some embodiments, the apparatus further comprises:
[0034] a seventh display unit, configured to execute a block detail control of the target block to be displayed in the first creation interface;
[0035] An eighth display unit is configured to display information of an application program interface of the target block in response to a triggering operation on the block detail control.
[0036] In some embodiments, the apparatus further comprises:
[0037] a ninth display unit, configured to execute in the hierarchical display area of the first creation interface, display a plurality of page hierarchical controls, wherein the page hierarchical controls are used to edit pages of different hierarchies;
[0038] The tenth display unit is configured to execute, in response to a triggering operation on a page-level control of the target page, display a plurality of blocks of the target page in the content display area of the first creation interface.
[0039] In some embodiments, the apparatus further comprises:
[0040] A creation unit, configured to perform an editing operation based on the instruction to create a block;
[0041] A second acquisition unit is configured to perform dependency analysis on the block to acquire a function library that is dependent on to implement a business function corresponding to the block;
[0042] The encapsulation unit is configured to encapsulate the block and the function library, and the encapsulated block is used to add to the first creation interface.
[0043] In some embodiments, the apparatus further comprises:
[0044] A construction unit, configured to construct a source file based on the material corresponding to the block;
[0045] The establishing unit is configured to establish a corresponding relationship between the block and the source file.
[0046] In some embodiments, the apparatus further comprises:
[0047] A second updating unit is configured to perform an instruction-based editing operation to update the block;
[0048] A third updating unit is configured to update the version information of the block based on the updated block;
[0049] The uploading unit is configured to upload the updated block and the updated version information.
[0050] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0051] one or more processors;
[0052] A memory for storing program codes executable by the processor;
[0053] The processor is configured to execute the program code to implement the above page creation method.
[0054] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned page creation method.
[0055] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program / instruction, which implements the above-mentioned page creation method when executed by a processor.
[0056] The disclosed embodiment provides a page creation method. In the process of creating a target page, it is only necessary to add a block corresponding to the required business function in the first creation interface, and the instruction information of the block that implements the business function can be copied to the second creation interface. Therefore, there is no need to rewrite the instruction information that implements the business function in the second creation interface, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of page creation.
[0057] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0059] Figure 1 The figure is a schematic diagram of an implementation environment of a page creation method according to an exemplary embodiment.
[0060] Figure 2 The figure is a flow chart of a page creation method according to an exemplary embodiment.
[0061] Figure 3 The figure is a flowchart of another page creation method according to an exemplary embodiment.
[0062] Figure 4 It is a schematic diagram showing a first creation interface according to an exemplary embodiment.
[0063] Figure 5 The figure is a schematic diagram showing adding a block in the first creation interface according to an exemplary embodiment.
[0064] Figure 6 The figure is a schematic diagram showing adding components on the first creation interface according to an exemplary embodiment.
[0065] Figure 7 is a schematic diagram of another first creation interface according to an exemplary embodiment.
[0066] Figure 8 is a schematic diagram of another first creation interface according to an exemplary embodiment.
[0067] Fig. 9 is a schematic diagram of another first creation interface according to an exemplary embodiment.
[0068] Fig.10 The diagram is a schematic diagram of creating a page according to an exemplary embodiment.
[0069] Fig.11 It is a schematic diagram showing another method of creating a page according to an exemplary embodiment.
[0070] Fig.12 The present invention is a block diagram of a device for creating a page according to an exemplary embodiment.
[0071] Fig.13 The figure is a block diagram of another device for creating a page according to an exemplary embodiment.
[0072] Fig.14 It is a block diagram of a terminal according to an exemplary embodiment.
[0073] Fig.15 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0074] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0076] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the materials required to realize business functions involved in this disclosure are all obtained with full authorization.
[0077] The electronic device can be provided as a terminal or a server. When the electronic device is provided as a terminal, the terminal can implement the operations performed by the page creation method; when it is provided as a server, the server can implement the operations performed by the page creation method; the server and the terminal can also interact to implement the operations performed by the page creation method, and the terminal receives the encapsulated blocks sent by the server and creates a page through the encapsulated blocks.
[0078] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a page creation method according to an exemplary embodiment. Figure 1 , the implementation environment includes: a terminal 101 and a server 102.
[0079] The terminal 101 is at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, an MP3 player, an MP4 player, a laptop computer, etc. An application is installed and running on the terminal 101, and a user can log in to the application through the terminal 101 to obtain the service provided by the application. The terminal 101 can be connected to the server 102 through a wireless network or a wired network, and can then receive the encapsulated blocks sent by the server 102.
[0080] The terminal 101 generally refers to one of a plurality of terminals, and the present embodiment is described by taking the terminal 101 as an example. Those skilled in the art may know that the number of the above terminals may be more or less. For example, the number of the above terminals may be several, or the number of the above terminals may be dozens or hundreds, or a greater number. The present embodiment does not limit the number of terminals and the device type.
[0081] The server 102 is at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server 102 can be connected to the terminal 101 and other terminals through a wireless network or a wired network, and the server 102 can send the encapsulated blocks to the terminal 101 so that the terminal 101 can create a page based on the encapsulated blocks. In some embodiments, the number of the above servers can be more or less, and the embodiments of the present disclosure are not limited to this. Of course, the server 102 also includes other functional servers to provide more comprehensive and diversified services.
[0082] Figure 2 is a flow chart of a page creation method according to an exemplary embodiment. Figure 2 , the page creation method is applied in the terminal, comprising the following steps:
[0083] In step S201, the terminal displays a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit instruction information of the target page, wherein the instruction information is used to implement the business function of the target page.
[0084] In the embodiment of the present disclosure, the terminal is Figure 1 The terminal 101 shown in the figure has at least two development clients installed. The development clients installed in the terminal 101 include a first development client and a second development client. In the process of creating the target page, the first development client includes a first creation interface, and the terminal can set the business function for the target page based on the first creation interface. The second development client includes a second creation interface, and the terminal can generate the target page based on the instruction information in the second creation interface. In other words, the developer can set the business function in the target page in the first creation interface, and then create the target page on the second creation interface based on the instruction information for realizing the above business function, so that the target page can realize multiple business functions. Among them, the instruction information includes at least one of a program code, a function library, and a program parameter. The business function can be a plan setting function in an advertising delivery scenario, a shopping cart function in a shopping scenario, or a comment function in a multimedia scenario, etc., which is not limited in the embodiments of the present disclosure.
[0085] For example, the target page to be created is a page for an advertising scenario, and the terminal sets business functions for the target page based on the first creation interface, and the business functions include functions such as business goals and plan settings. The second creation interface displays part of the instruction information constituting the target page, and the part of the instruction information does not include instruction information for implementing the business functions such as the above-mentioned business goals and plan settings. Alternatively, the target page is a page for a shopping scenario, and the terminal sets business functions for the target page based on the first creation page, and the business functions include functions such as item listing, item information editing, and shopping cart.
[0086] In step S202, the terminal displays a plurality of blocks in the first creation interface based on the function adding operation detected in the first creation interface, where the blocks are used to display the business functions.
[0087] In the disclosed embodiment, different blocks are used to display different business functions. Developers can add blocks corresponding to the required functions in the first creation interface based on the functions required by the target page to be created. In response to the function adding operation, the terminal can add multiple blocks and display the added multiple blocks in the first creation interface.
[0088] In step S203, the terminal displays instruction information of the target block indicated by the instruction copy operation in the second creation interface based on the instruction copy operation detected in the first creation interface, where the instruction information of the target block is used to implement the business function of the target block.
[0089] In an embodiment of the present disclosure, when the terminal detects an instruction copy operation, it can copy the instruction of the target block in the first creation interface to the second creation interface, and display the instruction information of the target block on the second creation interface. Wherein, the target block is one block or multiple blocks. When the target block is multiple blocks, the terminal can simultaneously copy the instruction information of the multiple blocks to the second creation interface, and display the instruction information of the multiple blocks on the second creation interface. The instruction information of the multiple blocks can realize different business functions.
[0090] In step S204, the terminal displays a target page based on the page generation operation detected in the second creation interface, where the target page is used to implement multiple business functions.
[0091] In the embodiment of the present disclosure, a page generation control is displayed in the second creation interface. In response to the triggering operation of the page generation control, the terminal generates the target page based on the instruction information on the second creation interface. The target page can realize multiple business functions. The terminal can display the generated target page to the target user, so that the target user can conduct business through the target page.
[0092] The solution provided by the embodiment of the present disclosure is that, during the process of creating a target page, it is only necessary to add a block corresponding to the required business function in the first creation interface, and the instruction information for implementing the business function can be copied to the second creation interface. Therefore, there is no need to rewrite the instruction information for implementing the business function in the second creation interface, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of creating pages.
[0093] In some embodiments, based on the function adding operation detected in the first creation interface, multiple blocks are displayed in the first creation interface, including:
[0094] In response to a triggering operation on a block control in the first creation interface, displaying a block page in a content display area of the first creation interface, the block page displaying a plurality of blocks to be added;
[0095] In response to the adding operation of at least one block, a preview page is displayed in the content display area of the first creation interface, and the preview page displays the added multiple blocks.
[0096] The solution provided by the embodiment of the present disclosure displays a block page by triggering a block control, and a block can be selected from the block page for addition. By displaying the added blocks in the preview page, the user can preview the added business functions conveniently and quickly, and the human-computer interaction efficiency is high.
[0097] In some embodiments, the method further comprises:
[0098] For any block displayed in the first creation interface, when the block is selected, in response to a triggering operation on a component control in the first creation interface, a component page is displayed in the content display area of the first creation interface, the component page displays a plurality of components to be added, and the components are used to implement sub-functions in the business function;
[0099] In response to an adding operation on at least one component, at least one component is displayed in the block, and instruction information of the at least one component is added to the instruction information of the block.
[0100] The solution provided by the embodiment of the present disclosure can add components for implementing sub-functions in business functions in the block by triggering the component control to display the component page, so that the block can display more sub-functions, and the target page created based on the block can be used to implement multiple sub-functions. The adding operation is simple and convenient, and the human-computer interaction efficiency is high.
[0101] In some embodiments, the method further comprises:
[0102] For any block, in response to a move operation on any component in the block, the position of the component displayed in the block is updated, and the position of the instruction information of the component in the instruction information of the block is updated; or,
[0103] In response to a deletion operation on any component in the block, removing the component from the block, and deleting instruction information of the component from instruction information of the block; or,
[0104] In response to a modification operation on any component in the block, instruction information of the component is correspondingly modified in the instruction information of the block according to the modification operation.
[0105] The solution provided by the embodiment of the present disclosure adjusts the components in the block by moving, deleting or modifying on the preview page, so that the position of the instruction information of the component in the instruction information of the block can be directly adjusted while adjusting the component. The operation is simple and fast, and the human-computer interaction efficiency is high.
[0106] In some embodiments, based on the instruction copy operation detected in the first creation interface, the instruction information of the target block indicated by the instruction copy operation is displayed in the second creation interface, including:
[0107] In response to a triggering operation on a block mark control in the first creation interface, setting a plurality of blocks to a selectable state;
[0108] In response to a selection operation on at least one block, displaying a copy control of the selected target block in the first creation interface;
[0109] In response to the triggering operation on the copy control, the instruction information of the target block is displayed in the second creation interface.
[0110] The solution provided by the embodiment of the present disclosure only requires adding a block corresponding to the required business function in the first creation interface, and then the instruction information for implementing the business function can be copied to the second creation interface. The operation is simple and there is no need to rewrite the instruction information for implementing the business function. The corresponding business function can be implemented in the created target page, thereby improving the efficiency of page creation.
[0111] In some embodiments, in response to the triggering operation on the copy control, the instruction information of the target block is displayed in the second creation interface, including:
[0112] In response to a trigger operation on the copy control, obtaining instruction information of the target block;
[0113] Displaying prompt information in the second creation interface, the prompt information is used to prompt whether to copy the instruction information of the target block to the second creation interface;
[0114] In response to a confirmation operation on the prompt information, instruction information of the target block is displayed on the second creation interface.
[0115] The solution provided by the embodiment of the present disclosure provides prompt information so that the user needs to perform a second confirmation before copying the instruction information of the target block from the first creation interface to the second creation interface, thereby avoiding user misoperation that causes the copying of the instruction information to affect the original instruction information in the second creation interface. This not only improves the accuracy of copying the instruction information, but also improves the efficiency of creating pages.
[0116] In some embodiments, the method further comprises:
[0117] In response to triggering the copy control, obtaining a source file of the target block, the source file including materials required for implementing the business function displayed by the target block;
[0118] In response to a confirmation operation on the prompt information, the source file is copied to a target path, and the target path corresponds to the instruction information of the target block.
[0119] The solution provided by the embodiment of the present disclosure, since the target path corresponds to the instruction information of the target block, by copying the source file to the target path, when the target page is created based on the instruction information of the block, the source file can be obtained, and the target page can be provided with the materials required to implement the business function, which can improve the efficiency of page creation.
[0120] In some embodiments, the method further comprises:
[0121] Displaying a block detail control of the target block in the first creation interface;
[0122] In response to the triggering operation on the block details control, the application program interface information of the target block is displayed.
[0123] The solution provided by the embodiment of the present disclosure enables the user to intuitively understand the application program interface of the target block by displaying the information of the application program interface of the target block on the first creation interface, thereby improving the efficiency of creating a target page based on the target block.
[0124] In some embodiments, the method further comprises:
[0125] In the hierarchical display area of the first creation interface, a plurality of page hierarchical controls are displayed, and the page hierarchical controls are used to edit pages of different hierarchies;
[0126] In response to a triggering operation on the page level control of the target page, a plurality of blocks of the target page are displayed in the content display area of the first creation interface.
[0127] The solution provided by the embodiment of the present disclosure displays multiple page level controls in the first creation interface, so that target pages of different levels can be created through multiple level controls, thereby improving the diversity of target pages and improving human-computer interaction efficiency.
[0128] In some embodiments, the method further comprises:
[0129] Create blocks based on command editing operations;
[0130] Perform dependency analysis on the block to obtain the function library that the business functions corresponding to the block depend on;
[0131] The block and the function library are packaged, and the packaged block is used to add to the first creation interface.
[0132] The solution provided by the embodiment of the present disclosure pre-builds blocks and encapsulates blocks and dependent function libraries, so that when a target page is created based on a first creation interface, the encapsulated blocks can be directly obtained without rewriting instruction information according to the business functions required by the target page, thereby improving the efficiency of creating pages.
[0133] In some embodiments, the method further comprises:
[0134] Build the source file based on the material corresponding to the block;
[0135] A corresponding relationship between the block and the source file is established.
[0136] The solution provided by the embodiment of the present disclosure, since the materials required to realize the business functions are needed in the process of creating a page, the source file is constructed based on the materials corresponding to the blocks before the page is created, and the correspondence between the blocks and the source files is established, so that the source file can be directly obtained in the process of creating the page, thereby improving the efficiency of creating the page.
[0137] In some embodiments, the method further comprises:
[0138] Based on the instruction editing operation, update the block;
[0139] Based on the updated block, update the block version information;
[0140] Upload updated blocks and updated version information.
[0141] The solution provided by the embodiment of the present disclosure enables the terminal to update blocks and corresponding version information, so that the latest version of blocks can be obtained during the page creation process, or the corresponding version of blocks can be obtained according to its own needs, thereby improving the efficiency of page creation.
[0142] Above Figure 2The basic process of the present disclosure is shown below. The solution provided by the present disclosure is further described based on an implementation method. Figure 3 FIG. 1 is a flow chart of another page creation method according to an exemplary embodiment. Figure 3 , the method comprising:
[0143] In step S301, the terminal creates a block, which is used to be added to the first creation interface to display business functions.
[0144] In an embodiment of the present disclosure, before creating a page, the terminal creates a block based on the instruction information for implementing a general business function, and the block is used to be added to the first creation interface to display the general business function. When the terminal creates a page for implementing the business function, the block can be directly added to the first creation interface to realize the creation of the page. Correspondingly, the process of the terminal creating a block is: the terminal creates a block based on the instruction editing operation. Then, the terminal performs dependency analysis on the block to obtain the function library on which the business function corresponding to the block depends. Then, the terminal encapsulates the block and the function library, and the encapsulated block is used to add to the first creation interface to display the business function. The solution provided by the embodiment of the present disclosure is that the terminal pre-creates a block that displays a general business function, so that when the terminal creates a page for implementing the general business function based on the first creation interface, it can directly obtain the encapsulated block, without rewriting the instruction information for implementing the business function, and can realize the corresponding business function in the created target page, thereby improving the efficiency of creating pages.
[0145] It should be noted that the realization of business functions requires not only instruction information but also materials, so each block has corresponding materials. The material is a video, picture or text, etc., which is not limited in the embodiment of the present disclosure. Since the page is created by the instruction information of the block and the material corresponding to the block. The terminal constructs the source file based on the material corresponding to the block; and establishes a correspondence between the block and the source file. Among them, the source file includes the material required to realize the business function displayed by the block. In the solution provided by the embodiment of the present disclosure, the terminal pre-constructs the source file and establishes a correspondence between the block and the source file, so that in the process of creating the page, based on the correspondence between the block and the source file, the corresponding source file can be obtained at the same time when the block is obtained, thereby improving the efficiency of creating the page.
[0146] It should be noted that the created blocks are not static, and with the development of technology or the improvement of functions, the terminal can continuously update the blocks. Accordingly, the process of the terminal updating the blocks is: the terminal updates the blocks based on the instruction editing operation; based on the updated blocks, the version information of the blocks is updated; and the updated blocks and the updated version information are uploaded. The developer who creates the page can obtain the corresponding version of the block according to his own needs. The solution provided by the embodiment of the present disclosure enables the terminal to update the blocks and the corresponding version information, so that the latest version of the blocks can be obtained during the page creation process, or the corresponding version of the blocks can be obtained according to its own needs, which can not only update the created pages, but also meet the needs of the developers who create the pages.
[0147] For example, first, the developer edits the instruction information for implementing the general business function on the terminal. The terminal creates a block based on the instruction editing operation. Then the terminal performs dependency analysis on the block through the abstract syntax tree to obtain the function library on which the business function corresponding to the block depends; the block and the function library are encapsulated, and the encapsulated block is stored in the material library. Among them, the material library is a distributed version control system that can store multiple blocks. Alternatively, the terminal performs dependency analysis on the block through the abstract syntax tree to determine that the block has been updated, thereby updating the version information of the block. The terminal uploads the updated block and the updated version information to the content distribution network. In the process of creating a page, the developer can obtain the encapsulated block from the material library, or obtain the encapsulated block from the content distribution network.
[0148] In some embodiments, the first creation interface is an interface in a marketing user interface platform, which is used to solve the problem of high similarity of instruction information corresponding to common business functions of some business lines, and can save design and front-end labor costs, achieve the purpose of reducing costs and improving efficiency, and meet the demand for rapid iteration of business. The terminal can add the created block to the marketing user interface platform, and create a page for implementing multiple business functions based on the marketing user interface platform.
[0149] Taking the development of target business as an example, the target business can be a business in a shopping scenario, a business in an advertising scenario, a business in an information flow scenario, or a business in a multimedia scenario. The marketing user interface platform has a series of functional templates such as a creative process framework, a directional function framework, a creative production framework, and a report framework. Among them, the creative process framework is used to set the functions involved in the process of developing the target business; the directional function framework is used to set the business channels of the target business; the creative production framework is used to set the business functions involved in the production of business materials in the target business; and the report framework is used to display the various data and functions involved in the target business in the form of reports. Developers can first set multiple business functions involved in the target business through the creative process framework. Among these multiple business functions, there is a function of creating a business. Then developers can set the business functions involved in creating the target business through the creative production framework. Then developers can set the business functions involved in the business channels of the target business based on the directional function framework. In addition, developers can also set business functions involving data display based on the report framework.
[0150] In step S302, the terminal displays a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page, wherein the instruction information is used to implement the business function of the target page.
[0151] In the disclosed embodiment, the terminal displays a first creation interface through the marketing user interface platform, and sets at least one business function for the target page to be created based on the first creation interface. Based on the business function set for the target page, the terminal displays instruction information corresponding to the business function on the second creation interface, and creates the target page based on the instruction information, so that the target page can realize multiple business functions.
[0152] The first creation interface includes a home page control, a preview control, a component control, a block control, and a content display area. The home page control is used to display the home page in the content display area of the first creation interface after being triggered, and the home page is used to create a blank page and set the level of the page. The preview control is used to display a preview page in the content display area of the first creation interface after being triggered, and the preview page displays multiple blocks added to the current page. The component control is used to display a component page in the content display area of the first creation interface after being triggered, and the component page displays multiple components to be added, and the terminal can add components to the block through the component page. The block control is used to display a block page in the content display area of the first creation interface after being triggered, and the block page displays multiple blocks to be added, and the block is used to display business functions. The content display area is used to display the page after the control is triggered. The first creation interface also includes a block mark control, and the block mark control is used to mark the selected target block. The first creation interface also includes multiple page level controls, and the page level controls are used to edit pages of different levels.
[0153] For example, Figure 4 FIG. 1 is a schematic diagram of a first creation interface according to an exemplary embodiment. Figure 4 , the top of the first creation interface displays the home page control, preview control, component control and block control. The area below the above four controls is the content display area. The upper left corner of the first creation interface displays the block mark control. The left side of the first creation interface displays the first level control, the second level control and the third level control. Among them, the page corresponding to the second level control is the subordinate page of the page corresponding to the first level control, and the page corresponding to the third level control is the subordinate page of the page corresponding to the second level control.
[0154] The second creation interface includes a display area for instruction information and a page generation control. The display area for instruction information is used to display the instruction information of the target block copied to the second creation interface. Developers can edit, delete or modify the instruction information of the target block through the display area for instruction information. The page generation control is used to generate a target page based on the instruction information of the target block after being triggered.
[0155] In step S303, in response to a triggering operation on a block control in the first creation interface, the terminal displays a block page in a content display area of the first creation interface, where the block page displays a plurality of blocks to be added.
[0156] In the embodiment of the present disclosure, in response to the triggering operation of the block control, the terminal displays a block page in the content display area of the first creation interface. The block page displays multiple blocks to be added, each block corresponds to a business function, and the developer can select the required block from the multiple blocks on the block page based on the business function of the target page to be created.
[0157] In some embodiments, the multiple blocks to be added are displayed in different areas of the block page according to the application scenarios. The solution provided by the embodiment of the present disclosure divides the multiple blocks to be added according to the application scenarios of the business functions of the blocks, so that in the process of creating a page, the block can be quickly found based on the application scenario of the required block, thereby improving the efficiency of creating pages and the efficiency of human-computer interaction.
[0158] For example, the first block and the second block are applied to the advertising delivery scenario and are displayed in the upper left area of the block page. The third block is applied to the shopping scenario and is displayed in the upper right area of the block page. The fourth block and the fifth block are applied to the multimedia scenario and are displayed in the lower right area of the block page, etc. When creating a page related to advertising delivery, you can directly find the block that implements the relevant business functions in the upper left area of the block page.
[0159] In some embodiments, the multiple blocks to be added are displayed in different areas of the block page according to business functions. The solution provided by the embodiment of the present disclosure divides the multiple blocks to be added according to the business functions of the blocks, so that in the process of creating a page, the block can be quickly found based on the business function of the required block, thereby improving the efficiency of creating pages and the efficiency of human-computer interaction.
[0160] For example, the first block and the second block can both be used to implement the plan setting function, and are displayed in the upper left area of the block page. The third block is used to implement the display function, and is displayed in the upper right area of the block page. The fourth block and the fifth block are used to implement the voice function, and are displayed in the lower right area of the block page, etc. When creating a page with a voice function, the block that implements the voice function can be directly found in the lower right area of the block page.
[0161] In step S304, in response to the adding operation of at least one block, the terminal displays a preview page in the content display area of the first creation interface, and the preview page displays the added multiple blocks.
[0162] In an embodiment of the present disclosure, the block page includes an adding control, and in response to a triggering operation on the adding control, the terminal adds at least one block to the current page.
[0163] In some embodiments, the block page includes an add control. When the terminal detects that at least one block in the block page is selected, in response to a trigger operation on the add control, at least one block is added to the current page. The add control can be displayed at the top, bottom, or left area of the block page, etc., which is not limited in the embodiments of the present disclosure. The solution provided by the embodiments of the present disclosure, by providing an add control, enables developers to add multiple blocks at a time, which is simple and quick to operate. Creating a page based on multiple added blocks can improve the efficiency of creating pages and the efficiency of human-computer interaction.
[0164] In some embodiments, the block page includes multiple add controls, that is, each block corresponds to an add control. For any block, the terminal responds to the triggering operation of the add control of the block and adds the block. The solution provided by the embodiment of the present disclosure does not require the selection of blocks, and the required blocks can be directly added. The operation is simple and accurate. The page is created based on the added blocks, which can improve the efficiency of page creation and human-computer interaction efficiency.
[0165] In an embodiment of the present disclosure, developers can preview the blocks added to the current page through a preview page. In response to a trigger operation on the preview control, the terminal converts the content display area of the first creation interface from a block page to a preview page, displaying multiple added blocks.
[0166] For example, Figure 5 is a schematic diagram showing a method of adding a block in a first creation interface according to an exemplary embodiment. Figure 5 A preview page is displayed in the content display area of the first creation interface, and two added blocks are displayed in the preview page, namely a business goal block and a plan setting block.
[0167] It should be noted that the multiple blocks to be added in the block page can include at least one component in advance or not include a component. If the block includes a component, the terminal adds the component in the block at the same time during the process of adding the block. The terminal displays the added block and the components included in the block on the preview page, and the components included in the block are displayed in the block.
[0168] It should be noted that developers can also adjust blocks on the preview page, which can be divided into the following three situations, including: in the first situation, in response to a move operation on any block, the terminal updates the position of the block displayed on the preview page; in the second situation, in response to a delete operation on any block, the terminal removes the block from the preview page; in the third situation, in response to a modification operation on any block, the terminal modifies the display style of the block on the preview page according to the modification operation. The modification operation can be a modification of the display size of the block, a modification of the display color of the block, or a modification of the name of the block, etc., which is not limited in the embodiments of the present disclosure.
[0169] In step S305, for any block displayed in the first creation interface, when the block is selected, in response to the triggering operation of the component control in the first creation interface, the terminal displays a component page in the content display area of the first creation interface, and the component page displays multiple components to be added, and the components are used to implement sub-functions in the business functions.
[0170] In an embodiment of the present disclosure, the terminal can add components to a block through the component page, that is, in the process of creating a page, the terminal can add sub-functions to the business function corresponding to the block. For any block displayed in the preview page, when the block is selected, in response to the triggering operation of the component control, the terminal displays the component page in the content display area. The multiple components displayed on the component page can be components for implementing all sub-functions in the business function corresponding to the business of the target page, or components for implementing all sub-functions in the business function corresponding to the selected block, which is not limited in the embodiment of the present disclosure.
[0171] In some embodiments, multiple components to be added are displayed in different areas of the component page according to application scenarios. The solution provided by the embodiment of the present disclosure divides multiple components to be added according to the application scenarios of the components, so that in the process of creating a page based on the components, the component can be quickly found based on the application scenario of the required component, thereby improving the efficiency of creating pages and the efficiency of human-computer interaction.
[0172] For example, the first component and the second component are applied to the advertising delivery scenario and are displayed in the upper left area of the component page. The third component is applied to the shopping scenario and is displayed in the upper right area of the component page. The fourth component and the fifth component are applied to the multimedia scenario and are displayed in the lower right area of the component page, etc. When creating a page related to advertising delivery, you can directly find the components that implement the sub-functions of the relevant business functions in the upper left area of the component page.
[0173] In some embodiments, multiple components to be added are displayed in different areas of the component page according to the sub-functions implemented. The solution provided by the embodiment of the present disclosure divides the multiple components to be added according to the sub-functions implemented by the components, so that in the process of creating a page based on the components, the component can be quickly found based on the sub-functions implemented by the required components, thereby improving the efficiency of creating pages and the efficiency of human-computer interaction.
[0174] For example, the first component and the second component can both be used to implement the sub-functions in the plan setting function, which are displayed in the upper left area of the component page. The third component is used to implement the sub-functions in the display function, which are displayed in the upper right area of the component page. The fourth component and the fifth component are used to implement the sub-functions in the voice function, which are displayed in the lower right area of the component page, etc. When creating a page with a voice function, you can directly find the component that implements the sub-function in the voice function in the lower right area of the component page.
[0175] In step S306, in response to the adding operation of at least one component, the terminal displays at least one component in the block, and adds instruction information of at least one component to the instruction information of the block.
[0176] In an embodiment of the present disclosure, the component page includes an add control, and in response to a trigger operation on the add control, the terminal adds at least one component to the component. The terminal displays the at least one added block in the block selected on the preview page, and adds instruction information of the at least one block to the instruction information of the selected block.
[0177] In some embodiments, the component page includes an add control, and the terminal detects that at least one component in the component page is selected, and in response to a trigger operation on the add control, adds at least one component in the selected block. The add control can be displayed at the top, bottom, or left area of the component page, etc., which is not limited in the embodiments of the present disclosure. The solution provided by the embodiments of the present disclosure is simple to operate, can add multiple components at a time, and create a page based on the added multiple components, which can improve the efficiency of creating pages and the efficiency of human-computer interaction.
[0178] In some embodiments, the component page includes multiple add controls, that is, each component corresponds to an add control. For any component, the terminal responds to the triggering operation of the add control of the component to add the component. The solution provided by the embodiment of the present disclosure does not require the selection of components, and the required components can be directly added. The operation is simple and the accuracy is high. The page is created based on the added components, which can improve the efficiency of creating pages and the efficiency of human-computer interaction.
[0179] For example, Figure 6 FIG. 1 is a schematic diagram showing adding a component in the first creation interface according to an exemplary embodiment. Figure 6 , the business goal block and the plan setting block displayed in the first creation interface both display multiple components. The business goal block includes multiple target components such as target A component, target B component, target C component, target D component, target E component, target F component, target G component and target H component. Different target components are used to achieve different goals. The plan setting block includes a plan budget component and a plan name component. The function of the plan budget component is to budget the target business, including three modes: unlimited budget, unified budget and daily budget. Among them, the unified budget refers to the unified budget for all expenses of the target business, and the daily budget refers to the calculation of the expenses of the target business by day. The function of the plan name component is to provide the function of inputting a plan name for the target business.
[0180] It should be noted that developers can also adjust the components in the block on the preview page, and the terminal can adjust the operation according to the components and adjust the instruction information of the components accordingly. The instruction information of the terminal adjusting the components can be divided into the following three situations, including:
[0181] In the first case, for any block, in response to a move operation on any component in the block, the terminal updates the position of the component displayed in the block, and updates the position of the instruction information of the component in the instruction information of the block.
[0182] For example, see Figure 6 If the target A component in the business target block is moved to the last position, then in response to the moving operation, the terminal displays the target A component at the last position in the business target block, and updates the position of the instruction information of the target A component in the instruction information of the business target block, moving the instruction information of the target A component from the front to the back.
[0183] In some embodiments, in response to a move operation on any component in a block, all components in the block become movable. In the movable state, the component is moved, and the positions of other components also change accordingly. The terminal updates the positions of all components in the block, and updates the position of the instruction information of each component in the instruction information of the block.
[0184] In some embodiments, in response to a move operation on any component in a block, the component becomes movable, while other components remain immovable. In the movable state, the component is moved, while the positions of other components remain unchanged. The terminal updates the position of the component in the block, and updates the position of the instruction information of the component in the instruction information of the block.
[0185] In the second case, in response to a deletion operation on any component in the block, the terminal removes the component from the block and deletes the instruction information of the component from the instruction information of the block.
[0186] For example, see Figure 6 If the target A component in the business target block is deleted, in response to the deletion operation, the terminal removes the target A component in the business target block and no longer displays the target A component. And the terminal deletes the instruction information of the target A component from the instruction information of the business target block.
[0187] In some embodiments, before deleting a component, the terminal responds to a pressing operation on the component and changes the component to a deletable state, that is, a delete control is displayed in the upper right corner of the component. In response to a triggering operation on the delete control, the terminal removes the component from the block and deletes the instruction information of the component from the instruction information of the block.
[0188] In the third case, in response to a modification operation on any component in the block, the terminal, according to the modification operation, corresponds to the instruction information of the modification component in the instruction information of the block. The modification operation may be a modification of the display size of the component, a modification of the display color of the component, or a modification of the name of the component, etc., which is not limited in the embodiments of the present disclosure.
[0189] For example, see Figure 6 If the name of the target A component in the business target block is modified, the terminal modifies the instruction information about the target A in the instruction information of the business target block according to the modification operation.
[0190] The solution provided by the embodiment of the present disclosure adjusts the components in the block by moving, deleting or modifying on the preview page, so that the position of the instruction information of the component in the instruction information of the block can be directly adjusted while adjusting the component. The operation is simple and fast, and the human-computer interaction efficiency is high.
[0191] After the terminal sets the business function for the target page in the first creation interface, it can copy the instruction information of the target block that realizes the business function to the second creation interface. Then, the terminal generates the target page based on the instruction information of the target block on the second creation interface. In this process, the terminal can display a copy control for copying the instruction information on the first creation interface, thereby creating a page based on the copy control.
[0192] In step S307, the terminal displays a copy control of the selected target block in the first creation interface.
[0193] In an embodiment of the present disclosure, the copy control is used to copy the instruction information of the target block. The terminal can copy the instruction information of the target block to the second creation interface through the copy control, and generate a target page based on the instruction information of the target block in the second creation interface. In some embodiments, the first creation interface includes a block mark control, and the block mark control is used to mark the selected target block so that the terminal displays the copy control of the target block.
[0194] In some embodiments, in response to a triggering operation on a block marking control in the first creation interface, the terminal sets multiple blocks to a selectable state; in response to a selection operation on at least one block, the terminal displays a copy control of the selected target block in the first creation interface.
[0195] In some embodiments, in response to a selection operation on at least one block, the terminal sets a block mark control in the first creation interface to a triggerable state; in response to a trigger operation on the block mark control, the terminal displays a copy control of the selected target block in the first creation interface.
[0196] It should be noted that, while displaying the copy control of the target block, the terminal also displays the block details control of the target block. The block details control is used to display the information of the application program interface of the target block. The terminal displays the block details control of the target block in the first creation interface; in response to the triggering operation of the block details control, the information of the application program interface of the target block is displayed.
[0197] For example, Figure 7 is a schematic diagram of another first creation interface according to an exemplary embodiment. Figure 7 , a block mark control is displayed in the upper left corner of the first creation interface, and the block mark control has been triggered. The plan setting block is the selected target block, and the terminal displays a copy control and a block detail control above the plan setting block. The terminal can copy the instruction information of the plan setting block through the copy control, and the instruction information includes the instruction information of the plan budget component and the instruction information of the plan name. The terminal can view the application program interface of the plan setting block through the block detail control.
[0198] It should be noted that the first creation interface also displays multiple page level controls, and the terminal can create pages of different levels through these multiple page level controls. The terminal displays multiple page level controls in the level display area of the first creation interface, and the page level controls are used to edit pages of different levels. In response to the triggering operation of the page level control of the target page, the terminal displays multiple blocks of the target page in the content display area of the first creation interface.
[0199] For example, see Figure 7The left area of the first creation interface is the hierarchical display area, which displays three page hierarchical controls, namely the first level, the second level and the third level. The first level corresponds to the first level page, the second level corresponds to the second level page, and the third level corresponds to the third level page. Figure 7 The first level pages are displayed.
[0200] The following is a detailed description of the second-level pages created in the first creation interface. For example, Figure 8 is a schematic diagram of another first creation interface according to an exemplary embodiment. Figure 8 The page at this level involves multiple business functions such as function A, function B, function C, function D, function E, function F and function G. The first creation interface can display multiple target blocks corresponding to the above multiple business functions. Figure 8 All target blocks are displayed in . Figure 8 , blocks of function A and blocks of function B are shown as examples.
[0201] by Figure 8 Taking the two blocks shown in as an example, the components in the blocks are introduced respectively. The block of function A is used to determine the channel of the target business. The block includes a channel selection component, which can select channel a or channel b. The block of function B is used to determine the target application popularized by the target business. The block includes multiple components. Different components have different functions to be implemented. For any component, the target object that implements the function of the component is obtained through the input box. The component can be an application selection component, a direct link component, or an associated object component. Among them, the function of the application selection component is to select the application popularized by the target business. The function of the direct link component is to establish a business link, and the content of the target business can be directly seen by triggering the link. The function of the associated object component is to associate the target business with the selected object.
[0202] The following is a detailed description of the third-level pages created in the first creation interface. For example, Fig. 9 is a schematic diagram of another first creation interface according to an exemplary embodiment. Fig. 9 This level of pages involves multiple business functions such as creative type, creative production, creative source, and business application. The first creation interface can display multiple target blocks corresponding to the above multiple business functions. Due to the limited size of the content display area, it is not possible to Fig. 9 All target blocks are displayed in . Fig. 9 Only the Creative Type Block and Creative Production Block are shown.
[0203] by Fig. 9Taking the two blocks shown in as an example, the components existing in the blocks are introduced respectively. The creative type block includes a custom creative component. The function of the custom creative component is that there is no fixed template when creating business content, and it can be created at will according to one's own needs. The creative production block includes multiple components such as a material content component, a material preview component, and an XX component. The function of the material content component is to select the required material content when creating business content. It can upload material content locally, select existing works, and set the cover of the business content. The material preview component can provide a material preview function when selecting material. The XX component can be any other component, and the corresponding component can be added to the target business according to the functional requirements of the target business. The present disclosed embodiment does not limit the number of components added. After the business content is created, it can be previewed in the creative area in the creative production block. The created business content can be divided into vertical version creativity and horizontal version creativity according to the different ways of presentation on the terminal.
[0204] In step S308, in response to the triggering operation on the copy control, the terminal displays instruction information of the target block in the second creation interface, where the instruction information of the target block is used to implement the business function of the target block.
[0205] In an embodiment of the present disclosure, after the copy control of the target block is triggered, the terminal copies the instruction information of the target block. The instruction information of the target block includes not only the instruction information of the target block itself, but also the instruction information of the components added in the target block. The terminal pastes the copied instruction information to the second creation interface, and can display the instruction information on the second creation interface. Correspondingly, the process of the terminal displaying the instruction information on the second creation interface is: in response to the triggering operation of the copy control, the terminal obtains the instruction information of the target block; in the second creation interface, a prompt information is displayed, and the prompt information is used to prompt whether to copy the instruction information of the target block to the second creation interface; in response to the confirmation operation of the prompt information, the instruction information of the target block is displayed in the second creation interface. The scheme provided by the embodiment of the present disclosure copies the instruction information of the target block from the first creation interface to the second creation interface through the copy control, so that when the target page is generated based on the second creation interface, there is no need to rewrite the instruction information for implementing the business function, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of creating the page.
[0206] In some embodiments, the prompt information is displayed in the second creation interface in the form of an information box, and the information box includes a confirmation button control and a cancel button control. In response to the triggering operation of the confirmation button, the instruction information of the target block is displayed in the second creation interface. If the cancel button control is triggered, the instruction information of the target block is not displayed in the second creation interface.
[0207] It should be noted that, in the process of creating a page, the terminal not only needs to obtain the target block for displaying business functions, but also needs to obtain the materials required to implement the business functions displayed by the target block. In response to the triggering operation of the copy control, the terminal obtains the source file of the target block, which includes the materials required to implement the business functions displayed by the target block; in response to the confirmation operation of the prompt information, the terminal copies the source file to the target path, which corresponds to the instruction information of the target block. In the process of creating the target page in the second creation interface, the terminal can obtain the corresponding source file through the instruction information of the target block based on the correspondence between the instruction information of the target block and the target path.
[0208] In step S309, based on the page generation operation detected in the second creation interface, the terminal displays a target page, where the target page is used to implement multiple business functions.
[0209] In the embodiment of the present disclosure, the terminal detects the page generation operation, generates a target page based on the material in the source file and the instruction information of the target block, and displays the generated target page. Since the target page is created by multiple target blocks, and the multiple target blocks are used to display different business functions, the generated target page can realize multiple business functions.
[0210] It should be noted that in order to more clearly describe the process of page creation, the process of page creation is further introduced below. Fig.10 FIG. 1 is a flow chart showing a process of creating a page according to an exemplary embodiment. Fig.10 , the producer in the figure is the developer who creates the block, and the developer creates the block by editing the instruction information of the block. The producer first edits the instruction information on the terminal, and the terminal creates the block based on the instruction information editing operation. Then the terminal performs dependency analysis on the block through the abstract syntax tree, obtains the function library that the business function corresponding to the block depends on; encapsulates the block and the function library, and stores the encapsulated block in the material library. Alternatively, the terminal obtains the version information of the block based on the dependency analysis results. The terminal uploads the block and the version information of the block to the content distribution network.
[0211] When developers create pages, they can obtain the required blocks from the material library, realize the process of developing the front end locally, and display the created pages on the display site. Alternatively, developers can also obtain the required blocks from the content distribution network. Fig.10In the figure, the consumer is a developer who creates a page. The developer creates a page by creating a completed block. The page is used to implement multiple business functions. In the process of creating a page, the consumer can obtain the required version of the block from the content distribution network. The consumer selects the block he needs, and the plug-in on the terminal can detect the block selected by the consumer. The terminal listens to the copy operation of copying the instruction information of the selected block to the development framework, obtains the version information of the selected block, and obtains the corresponding version of the block from the content distribution network. The terminal creates a page based on the obtained block through the development framework. If the function library that the version of the block depends on exists in the terminal used by the consumer, the dependency will be merged, that is, the function library of the version of the block will no longer be downloaded. If the function library existing in the terminal used by the consumer is different from the function library that the version of the block depends on, the difference dependency will be installed, that is, the function library with difference will be installed. Some terminals can download blocks and function libraries through the command line interface. The consumer creates a page based on the downloaded block. After the created page is published and deployed, it can be displayed on the display site.
[0212] It should be noted that when consumers download blocks, their terminals can obtain their own version information. Based on their own versions and the versions of the blocks, the terminals determine whether they are compatible with the blocks. If they are compatible, the terminals download the blocks; if they are not compatible, the terminals display a prompt message. The prompt message is used to inform consumers that their terminals are not compatible with the blocks and cannot download the blocks.
[0213] It should be noted that the process of creating a page is not just the process of developers creating the page, but also includes the process of page design and the process of testing the created page. Fig.11 FIG. 1 is a schematic diagram of another example of creating a page according to an exemplary embodiment. Fig.11 First, the technical personnel designs the target page and provides the designed interface design draft to the developer. The developer first analyzes the different parts of the interface design draft. For the common business functions existing in the business functions corresponding to the interface design draft, there is no need to rewrite the instruction information corresponding to the business function, and the page can be directly created using the previously constructed blocks. After that, the created page is tested to detect whether the created page is consistent with the interface design draft, that is, the restoration degree of the created page is obtained. In the process of creating the target page, this method can realize the corresponding business function in the created target page without rewriting the instruction information for realizing the business function, thereby reducing repeated development and improving the development efficiency of developers. Since the instruction information corresponding to the common business function has been determined, part of the content in the page created by the instruction information is the same, and it can be considered that the content in the page corresponding to the common business function has been unified in advance, thereby improving the design efficiency of the page.
[0214] The solution provided by the embodiment of the present disclosure is that, during the process of creating a target page, it is only necessary to add a block corresponding to the required business function in the first creation interface, and the instruction information for implementing the business function can be copied to the second creation interface. Therefore, there is no need to rewrite the instruction information for implementing the business function in the second creation interface, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of creating pages.
[0215] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0216] Fig.12 is a block diagram of a page creation device according to an exemplary embodiment. Fig.12 , the device comprises:
[0217] The first display unit 1201 is configured to execute and display a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page, and the instruction information is used to implement the business function of the target page;
[0218] The second display unit 1202 is configured to perform a function adding operation based on the function adding operation detected in the first creation interface, and display a plurality of blocks in the first creation interface, wherein the blocks are used to display the business functions;
[0219] The third display unit 1203 is configured to execute the instruction copy operation detected in the first creation interface, and display the instruction information of the target block indicated by the instruction copy operation in the second creation interface, where the instruction information of the target block is used to implement the business function of the target block;
[0220] The fourth display unit 1204 is configured to execute a page generation operation based on the page generation operation detected in the second creation interface, and display a target page, where the target page is used to implement multiple business functions.
[0221] The device provided by the embodiment of the present disclosure, during the process of creating a target page, only needs to add a block corresponding to the required business function in the first creation interface, and the instruction information for implementing the business function can be copied to the second creation interface. Therefore, there is no need to rewrite the instruction information for implementing the business function in the second creation interface, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of creating pages.
[0222] In some embodiments, Fig.13 FIG. 1 is a block diagram of another apparatus for creating a page according to an exemplary embodiment. Fig.13 , the second display unit 1202 includes:
[0223] The first display subunit 1301 is configured to execute a trigger operation on a block control in the first creation interface, and display a block page in a content display area of the first creation interface, wherein the block page displays a plurality of blocks to be added;
[0224] The second display sub-unit 1302 is configured to display a preview page in the content display area of the first creation interface in response to an adding operation on at least one block, wherein the preview page displays a plurality of added blocks.
[0225] In some embodiments, the apparatus further comprises:
[0226] The fifth display unit 1205 is configured to execute, for any block displayed in the first creation interface, when the block is selected, in response to a triggering operation on a component control in the first creation interface, displaying a component page in the content display area of the first creation interface, the component page displaying a plurality of components to be added, the components being used to implement sub-functions in the business function;
[0227] The sixth display unit 1206 is configured to execute, in response to an adding operation on at least one component, display at least one component in the block, and add instruction information of at least one component to the instruction information of the block.
[0228] In some embodiments, the apparatus further comprises:
[0229] The first updating unit 1207 is configured to execute, for any block, in response to a move operation on any component in the block, updating the position of the component displayed in the block, and updating the position of the instruction information of the component in the instruction information of the block; or
[0230] The deleting unit 1208 is configured to execute, in response to a deletion operation on any component in the block, remove the component from the block and delete the instruction information of the component from the instruction information of the block; or,
[0231] The modification unit 1209 is configured to execute a modification operation in response to any component in the block, and to modify the instruction information of the component in the instruction information of the block accordingly according to the modification operation.
[0232] In some embodiments, the third display unit 1203 includes:
[0233] The setting subunit 1303 is configured to execute, in response to a triggering operation on a block mark control in the first creation interface, setting a plurality of blocks to a selectable state;
[0234] The third display sub-unit 1304 is configured to execute, in response to a selection operation on at least one block, display a copy control of the selected target block in the first creation interface;
[0235] The fourth display subunit 1305 is configured to execute, in response to a triggering operation on the copy control, display instruction information of the target block in the second creation interface.
[0236] In some embodiments, the fourth display subunit 1305 is configured to execute in response to a trigger operation on the copy control, obtain instruction information of the target block; display prompt information in the second creation interface, the prompt information being used to prompt whether to copy the instruction information of the target block to the second creation interface; and display the instruction information of the target block in the second creation interface in response to a confirmation operation on the prompt information.
[0237] In some embodiments, the apparatus further comprises:
[0238] The first acquisition unit 1210 is configured to execute, in response to triggering the copy control, acquiring a source file of a target block, the source file including materials required for implementing a business function displayed by the target block;
[0239] The copy unit 1211 is configured to execute a confirmation operation in response to the prompt information, and copy the source file to a target path corresponding to the instruction information of the target block.
[0240] In some embodiments, the apparatus further comprises:
[0241] A seventh display unit 1212 is configured to execute a block detail control of the target block in the first creation interface;
[0242] The eighth display unit 1213 is configured to display the information of the application program interface of the target block in response to the triggering operation on the block detail control.
[0243] In some embodiments, the apparatus further comprises:
[0244] A ninth display unit 1214 is configured to execute a hierarchical display area in the first creation interface to display a plurality of page hierarchical controls, wherein the page hierarchical controls are used to edit pages of different hierarchies;
[0245] The tenth display unit 1215 is configured to execute a trigger operation on the page level control of the target page and display multiple blocks of the target page in the content display area of the first creation interface in response to the trigger operation on the page level control of the target page.
[0246] In some embodiments, the apparatus further comprises:
[0247] A creating unit 1216, configured to perform an editing operation based on the instruction to create a block;
[0248] The second acquisition unit 1217 is configured to perform dependency analysis on the block to acquire the function library that the business function corresponding to the block depends on;
[0249] The encapsulation unit 1218 is configured to encapsulate the block and the function library, and the encapsulated block is used to add to the first creation interface.
[0250] In some embodiments, the apparatus further comprises:
[0251] A construction unit 1219 is configured to execute construction of a source file based on the material corresponding to the block;
[0252] The establishing unit 1220 is configured to execute establishing a corresponding relationship between the block and the source file.
[0253] In some embodiments, the apparatus further comprises:
[0254] The second updating unit 1221 is configured to perform an instruction-based editing operation to update the block;
[0255] The third updating unit 1222 is configured to update the version information of the block based on the updated block;
[0256] The uploading unit 1223 is configured to upload the updated block and the updated version information.
[0257] The device provided by the embodiment of the present disclosure, during the process of creating a target page, only needs to add a block corresponding to the required business function in the first creation interface, and the instruction information for implementing the business function can be copied to the second creation interface. Therefore, there is no need to rewrite the instruction information for implementing the business function in the second creation interface, and the corresponding business function can be implemented in the created target page, thereby improving the efficiency of creating pages.
[0258] It should be noted that the device provided in the above embodiment uses the division of the above functional units as an example when creating a page. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device is divided into different functional units to complete all or part of the functions described above. In addition, the page creation device provided in the above embodiment and the page creation method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0259] Regarding the device in the above embodiment, the manner in which each unit performs operations has been described in the embodiment related to the method and will not be elaborated here.
[0260] When an electronic device is provided as a terminal, Fig.14 is a block diagram of a terminal 1400 according to an exemplary embodiment. Fig.14 The structure block diagram of a terminal 1400 provided by an exemplary embodiment of the present disclosure is shown. The terminal 1400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1400 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0261] Typically, the terminal 1400 includes a processor 1401 and a memory 1402 .
[0262] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0263] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one program code, which is used to be executed by the processor 1401 to implement the page creation method provided in the method embodiment of the present disclosure.
[0264] In some embodiments, the terminal 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. The peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, a positioning assembly 1408 and a power supply 1409.
[0265] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0266] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0267] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 can be one, and the front panel of the terminal 1400 is set; in other embodiments, the display screen 1405 can be at least two, which are respectively set on different surfaces of the terminal 1400 or are folded; in some other embodiments, the display screen 1405 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1400. Even, the display screen 1405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0268] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0269] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0270] The positioning component 1408 is used to locate the current geographical location of the terminal 1400 to implement navigation or LBS (Location Based Service). The positioning component 1408 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0271] The power supply 1409 is used to power various components in the terminal 1400. The power supply 1409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0272] In some embodiments, the terminal 1400 further includes one or more sensors 1140 , including but not limited to: an acceleration sensor 1411 , a gyroscope sensor 1412 , a pressure sensor 1413 , a fingerprint sensor 1414 , an optical sensor 1415 , and a proximity sensor 1416 .
[0273] The acceleration sensor 1411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1400. For example, the acceleration sensor 1411 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 can also be used for collecting game or user motion data.
[0274] The gyro sensor 1412 can detect the body direction and rotation angle of the terminal 1400, and the gyro sensor 1412 can cooperate with the acceleration sensor 1411 to collect the user's 3D actions on the terminal 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0275] The pressure sensor 1413 may be provided at the side frame of the terminal 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is provided at the side frame of the terminal 1400, it may detect the user's holding signal of the terminal 1400, and the processor 1401 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is provided at the lower layer of the display screen 1405, the processor 1401 may control the operability control on the UI interface according to the user's pressure operation on the display screen 1405. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0276] The fingerprint sensor 1414 is used to collect the user's fingerprint, and the processor 1401 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1401 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1414 can be set on the front, back, or side of the terminal 1400. When a physical button or a manufacturer logo is set on the terminal 1400, the fingerprint sensor 1414 can be integrated with the physical button or the manufacturer logo.
[0277] The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1415. When the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera component 1406 according to the ambient light intensity collected by the optical sensor 1415.
[0278] The proximity sensor 1416, also called a distance sensor, is usually disposed on the front panel of the terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the screen-off state to the screen-on state.
[0279] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the terminal 1400, and the terminal 1400 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0280] When the electronic device is provided as a server, Fig.15 This is a block diagram of a server 1500 according to an exemplary embodiment. The server 1500 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein the memory 802 stores at least one program code, and the at least one program code is loaded and executed by the processor 1501 to implement the page creation method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1500 may also include other components for implementing device functions, which will not be described in detail here.
[0281] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1402 or a memory 1502 including instructions, and the instructions can be executed by the processor 1401 of the terminal 1400 or the processor 1501 of the server 1500 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0282] A computer program product includes a computer program / instruction, which implements the above page creation method when executed by a processor.
[0283] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be regarded as exemplary, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0284] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is defined by the appended claims.
Claims
1. A page creation method, characterized in that: The method comprises: Displaying a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page, wherein the instruction information is used to implement the business function of the target page; In response to a triggering operation on a block control in the first creation interface, displaying a block page in a content display area of the first creation interface, the block page displaying a plurality of blocks to be added; In response to an operation of adding at least one block, displaying a preview page in a content display area of the first creation interface, the preview page displaying the plurality of blocks that have been added; For any block displayed in the first creation interface, when the block is selected, in response to a triggering operation on a component control in the first creation interface, a component page is displayed in a content display area of the first creation interface, the component page displays a plurality of components to be added, and the components are used to implement sub-functions in a business function; In response to an adding operation on at least one component, displaying the at least one component in the block, and adding instruction information of the at least one component to instruction information in the block; Based on the instruction copy operation detected in the first creation interface, displaying instruction information of the target block indicated by the instruction copy operation in the second creation interface, wherein the instruction information of the target block is used to implement the business function of the target block; Based on the page generation operation detected in the second creation interface, the target page is displayed, and the target page is used to implement multiple business functions.
2. The page creation method according to claim 1, characterized in that: The method further comprises: For any block, in response to a move operation on any component in the block, updating the position of the component displayed in the block, and updating the position of the instruction information of the component in the instruction information of the block; or, In response to a deletion operation on any component in the block, removing the component from the block, and deleting instruction information of the component from instruction information of the block; or, In response to a modification operation on any component in the block, the instruction information of the component is correspondingly modified in the instruction information of the block according to the modification operation.
3. The page creation method according to any one of claims 1 to 2, characterized in that: The step of displaying instruction information of a target block indicated by the instruction copy operation in the second creation interface based on the instruction copy operation detected in the first creation interface includes: In response to a triggering operation on a block marking control in the first creation interface, setting the plurality of blocks to a selectable state; In response to a selection operation on at least one block, displaying a copy control of the selected target block in the first creation interface; In response to the triggering operation on the copy control, the instruction information of the target block is displayed in the second creation interface.
4. The page creation method according to claim 3, characterized in that: The step of displaying the instruction information of the target block in the second creation interface in response to the triggering operation on the copy control includes: In response to a trigger operation on the copy control, obtaining instruction information of the target block; Displaying prompt information in the second creation interface, the prompt information is used to prompt whether to copy the instruction information of the target block to the second creation interface; In response to a confirmation operation on the prompt information, instruction information of the target block is displayed on the second creation interface.
5. The page creation method according to claim 4, characterized in that: The method further comprises: In response to triggering an operation on the copy control, acquiring a source file of the target block, the source file including materials required for implementing a business function displayed by the target block; In response to a confirmation operation on the prompt information, the source file is copied to a target path, and the target path corresponds to the instruction information of the target block.
6. The page creation method according to claim 3, characterized in that: The method further comprises: Displaying a block detail control of the target block in the first creation interface; In response to the triggering operation on the block details control, information of the application program interface of the target block is displayed.
7. The page creation method according to claim 1, characterized in that: The method further comprises: In the hierarchical display area of the first creation interface, a plurality of page hierarchical controls are displayed, and the page hierarchical controls are used to edit pages of different hierarchies; In response to a triggering operation on a page-level control of the target page, a plurality of blocks of the target page are displayed in a content display area of the first creation interface.
8. The page creation method according to claim 1, characterized in that: The method further comprises: Create blocks based on command editing operations; Perform dependency analysis on the block to obtain the function library that the business function corresponding to the block depends on; The block and the function library are packaged, and the packaged block is used to add to the first creation interface.
9. The page creation method according to claim 8, characterized in that: The method further comprises: Constructing a source file based on the material corresponding to the block; A corresponding relationship between the block and the source file is established.
10. The page creation method according to claim 9, characterized in that: The method further comprises: Based on the instruction editing operation, updating the block; Based on the updated block, updating the version information of the block; The updated block and the updated version information are uploaded.
11. A page creation device, characterized in that: The device comprises: A first display unit is configured to execute and display a first creation interface and a second creation interface, wherein the first creation interface is used to set the business function of the target page to be created, and the second creation interface is used to edit the instruction information of the target page, and the instruction information is used to implement the business function of the target page; A second display unit is configured to execute a trigger operation on a block control in the first creation interface, and display a block page in a content display area of the first creation interface, wherein the block page displays a plurality of blocks to be added; In response to an operation of adding at least one block, displaying a preview page in a content display area of the first creation interface, the preview page displaying the plurality of blocks that have been added; a fifth display unit, configured to execute, for any block displayed in the first creation interface, when the block is selected, in response to a triggering operation on a component control in the first creation interface, displaying a component page in the content display area of the first creation interface, wherein the component page displays a plurality of components to be added, and the components are used to implement sub-functions in the business function; a sixth display unit, configured to execute, in response to an adding operation on at least one component, display the at least one component in the block, and add instruction information of the at least one component to the instruction information of the block; A third display unit is configured to execute the instruction copy operation detected in the first creation interface, and display instruction information of the target block indicated by the instruction copy operation in the second creation interface, wherein the instruction information of the target block is used to implement the business function of the target block; The fourth display unit is configured to execute a page generation operation based on the page generation operation detected in the second creation interface, and display the target page, where the target page is used to implement multiple business functions.
12. The page creation device according to claim 11, characterized in that: The device also includes: A first updating unit is configured to execute, for any block, in response to a move operation on any component in the block, updating a position of the component displayed in the block, and updating a position of the instruction information of the component in the instruction information of the block; or a deleting unit configured to execute, in response to a deletion operation on any component in the block, remove the component from the block and delete instruction information of the component from instruction information of the block; or The modification unit is configured to execute a modification operation in response to any component in the block, and to modify the instruction information of the component in the instruction information of the block accordingly according to the modification operation.
13. The page creation device according to any one of claims 11 to 12, characterized in that: The third display unit comprises: A setting subunit configured to execute, in response to a triggering operation on a block mark control in the first creation interface, setting the plurality of blocks to a selectable state; A third display subunit is configured to execute, in response to a selection operation on at least one block, display a copy control of the selected target block in the first creation interface; The fourth display subunit is configured to execute, in response to a triggering operation on the copy control, display instruction information of the target block in the second creation interface.
14. The page creation device according to claim 13, characterized in that: The fourth display sub-unit is configured to execute, in response to a trigger operation on the copy control, to obtain instruction information of the target block; Displaying prompt information in the second creation interface, the prompt information is used to prompt whether to copy the instruction information of the target block to the second creation interface; In response to a confirmation operation on the prompt information, instruction information of the target block is displayed on the second creation interface.
15. The page creation device according to claim 14, characterized in that: The device also includes: A first acquisition unit is configured to execute, in response to a trigger operation on the copy control, to acquire a source file of the target block, wherein the source file includes materials required for implementing a business function displayed by the target block; The copying unit is configured to execute a confirmation operation in response to the prompt information, and copy the source file to a target path, where the target path corresponds to the instruction information of the target block.
16. The page creation device according to claim 13, characterized in that: The device also includes: a seventh display unit, configured to execute a block detail control of the target block to be displayed in the first creation interface; An eighth display unit is configured to display information of an application program interface of the target block in response to a triggering operation on the block detail control.
17. The page creation device according to claim 11, characterized in that: The device also includes: a ninth display unit, configured to execute in the hierarchical display area of the first creation interface, display a plurality of page hierarchical controls, wherein the page hierarchical controls are used to edit pages of different hierarchies; The tenth display unit is configured to execute, in response to a triggering operation on a page-level control of the target page, display a plurality of blocks of the target page in the content display area of the first creation interface.
18. The page creation device according to claim 11, characterized in that: The device also includes: A creation unit, configured to perform an editing operation based on the instruction to create a block; A second acquisition unit is configured to perform dependency analysis on the block to acquire a function library that is dependent on to implement a business function corresponding to the block; The encapsulation unit is configured to encapsulate the block and the function library, and the encapsulated block is used to add to the first creation interface.
19. The page creation device according to claim 18, characterized in that: The device also includes: A construction unit, configured to construct a source file based on the material corresponding to the block; The establishing unit is configured to establish a corresponding relationship between the block and the source file.
20. The page creation device according to claim 19, characterized in that: The device also includes: A second updating unit is configured to perform an instruction-based editing operation to update the block; A third updating unit is configured to update the version information of the block based on the updated block; The uploading unit is configured to upload the updated block and the updated version information.
21. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the page creation method according to any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the page creation method as described in any one of claims 1 to 10.
