Page generation method and device, computer equipment and storage medium

By introducing a mechanism for creating new pages and block editing pages in the development of WeChat applets, dynamically configuring page block placement, the problem of inefficient development in the existing technology is solved, and flexible page development and efficient blocks are realized. manage.

CN119002910APending Publication Date: 2024-11-22CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411026087.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the development of WeChat mini-program pages of insurance companies, the existing technology cannot realize the dynamic configuration of the page block display position, resulting in inefficient development.

Method used

By judging the user's page configuration request, displaying the new page and block editing page, receiving the block configuration data entered by the user, and introducing corresponding global components into the new page, generating the configured target page, and realizing dynamic configuration of page blocks The location of the display.

Benefits of technology

It improves the efficiency and flexibility of page development, allows users to dynamically adjust the location of page blocks, and reduces the need for developers to re-modify code and publish versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002910A_ABST
    Figure CN119002910A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of big data and the field of financial science and technology, and relates to a page generation method which comprises the following steps: judging whether a page configuration request for an applet triggered by a user is received or not; if yes, displaying a preset new page; when it is detected that the user inputs page necessary filling information in the new page, whether a block adding instruction triggered by the user is received or not is judged; if yes, displaying a preset block editing page; receiving block configuration data corresponding to the newly added block and input by the user in the block editing page; and introducing a target global component corresponding to the block configuration data into the new page to obtain a configured target page. The invention further provides a page generation device, computer equipment and a storage medium. In addition, the invention also relates to a block chain technology, and the target page can be stored in a block chain. The method can be applied to a page development scene in the financial field, and the development efficiency and the development flexibility of page development are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of big data technology and financial technology, and in particular to page generation methods, devices, computer equipment and storage media. Background Art

[0002] As a fast-spreading and lightweight platform, WeChat Mini Programs have greatly reduced the operating costs of users in their daily insurance purchases. Users can quickly purchase insurance products by scanning QR codes without having to download apps and go through complicated login processes. Therefore, WeChat Mini Programs, as a key promotion channel, is a very important development scenario for insurance companies.

[0003] Currently, in most business development processes of insurance companies, the development of WeChat mini-program pages is carried out at the page level, with fixed styles and tags written according to the UI design draft. This means that the corresponding content can only be configured in fixed blocks, and it is impossible to dynamically configure the display position of page blocks. If the developed blocks need to be replaced or removed from the shelves, developers need to modify the code and re-release the version, resulting in low efficiency in page development. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a page generation method, device, computer equipment and storage medium to solve the technical problem that in most of the existing business development processes of insurance companies, the development of WeChat mini-program pages is carried out at the page level, and fixed styles and tags are written according to UI design drafts to develop pages, and the dynamic configuration of the display position of page blocks cannot be achieved, resulting in low efficiency of page development.

[0005] In order to solve the above technical problems, the present application embodiment provides a page generation method, which adopts the following technical solution:

[0006] Determine whether a page configuration request for the mini program triggered by a user is received;

[0007] If yes, display the default new page;

[0008] After detecting that the user enters required information in the newly created page, determining whether a new block instruction triggered by the user is received;

[0009] If the new block instruction is received, a preset block editing page is displayed;

[0010] Receiving block configuration data corresponding to a newly added block input by the user in the block editing page;

[0011] The target global component corresponding to the block configuration data is introduced into the newly created page to obtain a configured target page.

[0012] Furthermore, the page configuration request carries the user information of the user; and the step of displaying the preset new page specifically includes:

[0013] Call the preset user blacklist;

[0014] Determining whether the user information is stored in the user blacklist;

[0015] If the user information is not stored in the user blacklist, determining whether the user has page configuration authority based on the user information;

[0016] If the user has page configuration authority, the new page window is displayed.

[0017] Furthermore, the step of determining whether the user has page configuration authority based on the user information specifically includes:

[0018] Acquire a target authority level corresponding to the user information based on a preset user authority level table;

[0019] Get the permission level range corresponding to the page configuration business operation;

[0020] Determining whether the target permission level is within the permission level range;

[0021] If so, it is determined that the user has the page configuration authority; otherwise, it is determined that the user does not have the page configuration authority.

[0022] Furthermore, the step of introducing the target global component corresponding to the block configuration data in the newly created page specifically includes:

[0023] Introducing a preset template file into the newly created page;

[0024] Determining a designated block type and designated position information corresponding to a first block from the block configuration data; wherein the first block is any one of all the newly added blocks;

[0025] Acquire a specified block code snippet corresponding to the specified block type from the template file;

[0026] Encapsulate the specified block code snippet into a corresponding specified global component;

[0027] Based on the specified location information, the specified global component is introduced into the newly created page.

[0028] Furthermore, before the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the step further includes:

[0029] Get the preset block configuration specification;

[0030] Verifying the block configuration data based on the block configuration specification to determine whether the block configuration data complies with the block configuration specification;

[0031] If the block configuration specification is met, the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page is performed.

[0032] Furthermore, after the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the step further includes:

[0033] Obtaining block data of the target page;

[0034] Call the preset array storage method;

[0035] The block data is stored based on the array storage method.

[0036] Furthermore, after the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the step further includes:

[0037] Determining whether a position change operation of a second block of the target page triggered by the user is received; wherein the second block is any one of all the newly added blocks;

[0038] If so, obtain the target array corresponding to the second block;

[0039] Determining location update information corresponding to the location change operation;

[0040] Based on the position replacement information, the target array is sorted and replaced.

[0041] In order to solve the above technical problems, the embodiment of the present application further provides a page generation device, which adopts the following technical solution:

[0042] A first determination module, used to determine whether a page configuration request for a mini program triggered by a user is received;

[0043] The first display module is used to display a preset new page if yes;

[0044] A second judgment module is used to judge whether a new block instruction triggered by the user is received after detecting that the user enters the required information of the page in the new page;

[0045] A second display module is used to display a preset block editing page if the new block instruction is received;

[0046] A receiving module, configured to receive block configuration data corresponding to a newly added block input by the user in the block editing page;

[0047] The generation module is used to introduce the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page.

[0048] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0049] Determine whether a page configuration request for the mini program triggered by a user is received;

[0050] If yes, display the default new page;

[0051] After detecting that the user enters required information in the newly created page, determining whether a new block instruction triggered by the user is received;

[0052] If the new block instruction is received, a preset block editing page is displayed;

[0053] Receiving block configuration data corresponding to a newly added block input by the user in the block editing page;

[0054] The target global component corresponding to the block configuration data is introduced into the newly created page to obtain a configured target page.

[0055] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0056] Determine whether a page configuration request for the mini program triggered by a user is received;

[0057] If yes, display the default new page;

[0058] After detecting that the user enters required information in the newly created page, determining whether a new block instruction triggered by the user is received;

[0059] If the new block instruction is received, a preset block editing page is displayed;

[0060] Receiving block configuration data corresponding to a newly added block input by the user in the block editing page;

[0061] The target global component corresponding to the block configuration data is introduced into the newly created page to obtain a configured target page.

[0062] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0063] The embodiment of the present application first determines whether a page configuration request for a mini-program triggered by a user is received; if so, a preset new page is displayed; then, after detecting that the user enters the required information of the page in the new page, it determines whether a new block instruction triggered by the user is received; if the new block instruction is received, a preset block editing page is displayed; subsequently, the block configuration data corresponding to the new block entered by the user in the block editing page is received; finally, the target global component corresponding to the block configuration data is introduced into the new page to obtain a configured target page. Through the use of a new page and a block editing page, the present application can automatically and quickly generate a corresponding target page based on the block configuration data corresponding to the new block entered by the user, by introducing a target global component corresponding to the block configuration data into the new page, and the generated target page can realize the dynamic configuration of the display position of the page block, effectively improving the development efficiency and flexibility of page development. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0066] Figure 2 A flow chart of an embodiment of a page generation method according to the present application;

[0067] Figure 3 is a schematic structural diagram of an embodiment of a page generating device according to the present application;

[0068] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0070] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0071] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0072] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0073] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0074] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, and the like.

[0075] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0076] It should be noted that the page generation method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the page generation device is generally set in the server / terminal device.

[0077] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0078] Continue to refer Figure 2 , showing a flow chart of an embodiment of the page generation method according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The page generation method provided in the embodiment of the present application can be applied to any scenario where page development is required, and the page generation method can be applied to products in these scenarios, for example, the page development of financial applets in the financial insurance field. The page generation method comprises the following steps:

[0079] Step S201, determining whether a page configuration request for a mini program triggered by a user is received.

[0080] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can obtain the page configuration request through a wired connection or a wireless connection. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, Wi-Fi connection, Bluetooth connection, Wi MAX connection, Zigbee connection, UWB (Ultra Wi DeBand) connection, and other wireless connection methods currently known or to be developed in the future. Among them, the above-mentioned page configuration request is a request triggered by the user to configure and generate the required page in the mini program. The user can enter the mini program by scanning a code or a card or searching, and then trigger the page configuration request for the mini program. As a fast-spreading and lightweight platform at present, WeChat mini programs have greatly reduced the operating costs of purchasing insurance in daily life. Users can quickly purchase insurance products by scanning QR codes without downloading apps and complicated login processes. Therefore, WeChat mini programs are a key promotion channel and a very important development scenario for insurance companies.

[0081] Step S202: If yes, display the preset new page.

[0082] In this embodiment, the newly created page is a newly created page pre-configured by the operation background. In the newly created page, the name and tracking point information can be defined, and the position of the page can be changed at will. Then, in the newly created page, click the edit command of the new block to perform the operation of adding a new block. Among them, the specific implementation process of the above-mentioned display of the preset new page will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here.

[0083] Step S203, after detecting that the user has input the required information of the page in the newly created page, determining whether a new block instruction triggered by the user has been received.

[0084] In this embodiment, the required information of the page may include at least the page name, and may also include tracking information, such as exposure tracking information, click tracking information, etc. Among them, the above-mentioned new block instruction is the editing instruction of the new block clicked by the user in the new page.

[0085] Step S204: if the new block instruction is received, a preset block editing page is displayed.

[0086] In this embodiment, the block editing page is a pre-built page for assisting the user in processing the newly added blocks of the newly added page.

[0087] Step S205: receiving block configuration data corresponding to the newly added block input by the user in the block editing page.

[0088] In this embodiment, different block types can be selected when adding a new block in the page, and multiple block configuration items are supported. Each block can also be configured with a specific icon or banner list. The block content selection supports operations such as moving up, moving down, and invalidation. The above block configuration data may at least include data such as block type and location information.

[0089] Step S206, introducing the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page.

[0090] In this embodiment, the specific implementation process of introducing the target global component corresponding to the block configuration data in the newly created page will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here. The global component of each newly added block corresponding to the block configuration data can be introduced in sequence in the newly created page, and the configured target page can be obtained after the dynamic component of the newly created page is displayed.

[0091] This application first determines whether a page configuration request for a mini-program triggered by a user is received; if so, a preset new page is displayed; then, after detecting that the user has entered the required information for the page in the new page, it is determined whether a new block instruction triggered by the user is received; if the new block instruction is received, a preset block editing page is displayed; subsequently, the block configuration data corresponding to the new block entered by the user in the block editing page is received; finally, the target global component corresponding to the block configuration data is introduced into the new page to obtain a configured target page. This application uses a new page and a block editing page to automatically and quickly generate a corresponding target page based on the block configuration data corresponding to the new block entered by the user, and introduces a target global component corresponding to the block configuration data into the new page. The generated target page can also dynamically configure the display position of the page block, effectively improving the development efficiency and flexibility of page development.

[0092] In some optional implementations, the page configuration request carries the user information of the user; step S202 includes the following steps:

[0093] Call the preset user blacklist.

[0094] In this embodiment, the user blacklist is a pre-built list data storing user information of illegal users. The user information may include name information.

[0095] Determine whether the user information is stored in the user blacklist.

[0096] In this embodiment, the user information can be matched with the user information of all illegal users stored in the user blacklist. If there is specified user information in the user blacklist that matches the user information of the user, it is determined that the user information is stored in the user blacklist; otherwise, it is determined that the user information is not stored in the user blacklist.

[0097] If the user information is not stored in the user blacklist, whether the user has the page configuration permission is determined based on the user information.

[0098] In this embodiment, the specific implementation process of judging whether the user has the page configuration authority based on the user information will be described in further detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0099] If the user has page configuration authority, the new page window is displayed.

[0100] This application calls a preset user blacklist; then determines whether the user information is stored in the user blacklist; if the user information is not stored in the user blacklist, then determines whether the user has page configuration permissions based on the user information; if the user has page configuration permissions, displays the new page window. After receiving a page configuration request for a mini-program triggered by a user, this application will also intelligently call a preset user blacklist to authenticate the user, and after determining that the user information is not stored in the user blacklist, it will further verify whether the user has page configuration permissions based on the user information. Only when the user passes the identity authentication and permission verification, will the above-mentioned response processing for the mini-program's page configuration request be performed to display the new page window, effectively improving the processing standardization and security of the page configuration request for the mini-program.

[0101] In some optional implementations of this embodiment, the determining, based on the user information, whether the user has page configuration authority comprises the following steps:

[0102] A target authority level corresponding to the user information is obtained based on a preset user authority level table.

[0103] In this embodiment, the user authority level table is a pre-constructed data table storing authority level information of multiple users.

[0104] Get the permission level range corresponding to the page configuration business operation.

[0105] In this embodiment, the preset business operation permission level table can be queried by using the operation information corresponding to the page configuration business operation to query the permission level interval corresponding to the operation information. The business operation permission level table is a pre-constructed data table storing permission level intervals of multiple business operations.

[0106] Determine whether the target permission level is within the permission level range.

[0107] If so, it is determined that the user has the page configuration authority; otherwise, it is determined that the user does not have the page configuration authority.

[0108] In this embodiment, if the target permission level is within the permission level interval, it indicates that the user has page configuration permission, and if the target permission level is within the permission level interval, it indicates that the user does not have page configuration permission.

[0109] This application obtains the target permission level corresponding to the user information based on a preset user permission level table; then obtains the permission level interval corresponding to the page configuration business operation; subsequently determines whether the target permission level is within the permission level interval; if so, determines that the user has page configuration permission, otherwise determines that the user does not have page configuration permission. This application uses the user permission level table to perform data analysis on the obtained target permission level corresponding to the user information and the permission level interval corresponding to the page configuration business operation, so that permission verification processing can be quickly and accurately performed to identify whether the user has page configuration permission, ensuring the accuracy of the generated user permission verification result, and then matching processing can be performed on the page configuration request for the mini program based on the obtained permission verification result, effectively improving the processing standardization and processing security of the page configuration request for the mini program.

[0110] In some optional implementations, step S206 includes the following steps:

[0111] The preset template file is introduced into the newly created page.

[0112] In this embodiment, the template file can be introduced by using the import method. Unlike H5, in order to solve the problem of dynamic components on the page, the applet provides a way to insert code snippets into the template through wxml syntax, and creates a new template file, namely, templ ate.wxml file, in which all block code snippets of different block types are defined. For example, a template tag is as follows, which is encapsulated;

[0113] <temp l ate name=“banne r”>

[0114] / / Component import code

[0115] < / temp l ate>

[0116] Among them, in order to solve the problem of introducing template files in different pages and requiring repeated requests and processing of related data and logical operations, a general request process for obtaining pages is encapsulated. You only need to introduce the file in the corresponding page js file and then call it in the corresponding life cycle.

[0117] A designated block type and designated position information corresponding to a first block are determined from the block configuration data; wherein the first block is any one of all the newly added blocks.

[0118] In this embodiment, for each newly added block required by the user for page construction, the block type and position information corresponding to the newly added block can be queried from the block configuration data input by the user.

[0119] A designated block code snippet corresponding to the designated block type is obtained from the template file.

[0120] In this embodiment, the template file stores block code snippets corresponding to various block types. The template file can be queried using the specified block type to obtain the specified block code snippet corresponding to the specified block type.

[0121] Encapsulate the specified block code snippet into a corresponding specified global component.

[0122] In this embodiment, since the logics of different blocks are different, in order to avoid code confusion, the corresponding block code snippets can be encapsulated into global components for introduction.

[0123] Based on the specified location information, the specified global component is introduced into the newly created page.

[0124] In this embodiment, the introduction position corresponding to the specified global component can be determined in the newly created page according to the specified position information, and then the specified global component can be introduced into the introduction position of the specified global component.

[0125] The present application introduces a preset template file into the newly created page; then determines the specified block type and the specified position information corresponding to the first block from the block configuration data; then obtains the specified block code snippet corresponding to the specified block type from the template file; subsequently encapsulates the specified block code snippet into the corresponding specified global component; and finally, based on the specified position information, introduces the specified global component into the newly created page. The present application introduces a preset template file into the newly created page, and then obtains the specified block code snippet corresponding to the specified block type of the first block in the block configuration data from the template file and encapsulates it into a specified global component, and then introduces the specified global component into the newly created page based on the specified position information of the first block in the block configuration data, thereby enabling the target global component corresponding to the block configuration data to be introduced from the newly created page quickly and accurately, which is beneficial for the subsequent completion of the construction of the target page based on the introduced target global component.

[0126] In some optional implementations, before step S206, the electronic device may further perform the following steps:

[0127] Get the default block configuration specification.

[0128] In this embodiment, the above block configuration specification is a configuration specification pre-created according to actual business usage requirements and used to standardize the data content and data format of the block configuration data input by the user.

[0129] The block configuration data is verified based on the block configuration specification to determine whether the block configuration data complies with the block configuration specification.

[0130] In this embodiment, when the electronic device obtains block configuration data that does not comply with the block configuration specification, a processing exception will occur, and even cause the program to crash. Therefore, it is necessary to verify the block configuration data input by the user. Specifically, after obtaining the block configuration data input by the user, the block configuration data will be checked and verified based on the block configuration specification, such as whether the data in the input block configuration data complies with the format requirements and whether it complies with the value range.

[0131] If the block configuration specification is met, the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page is performed.

[0132] In this embodiment, if it is found through verification that the block configuration data input by the user does not comply with the block configuration specification, prompts and warnings will be given to the user in a timely manner so that the user can correct the block configuration data to avoid errors.

[0133] The present application obtains a preset block configuration specification; subsequently verifies the block configuration data based on the block configuration specification to determine whether the block configuration data complies with the block configuration specification; if it complies with the block configuration specification, executes the step of introducing the target global component corresponding to the block configuration data in the newly created page to obtain a configured target page. This can effectively avoid abnormal processing requests when processing page configuration requests, improve the processing intelligence of the mini program's page configuration, and improve the user experience.

[0134] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:

[0135] Obtain block data of the target page.

[0136] In this embodiment, the block data is the block data of all blocks included in the constructed target page.

[0137] Call the preset array storage method.

[0138] In this embodiment, the array storage method refers to storing the block data of the page in groups.

[0139] The block data is stored based on the array storage method.

[0140] In this embodiment, the block data is stored in an array storage manner, so that when the position of the block in the subsequent page is changed, only the array sorting needs to be changed, so that the function of configuring the content of the block to support operations such as moving up, moving down and invalidating the block can be realized. These operations can be completed with simple operations by a simple business team, and are completely independent of the development and versioning process, which greatly improves development efficiency and business flexibility.

[0141] The present application obtains the block data of the target page; then calls a preset array storage method; and subsequently stores the block data based on the array storage method. After obtaining the configured target page, the present application stores the block data of the target page using an array storage method, so that after the position of the block in the subsequent page is changed, only the array sorting needs to be changed, which is conducive to improving the development efficiency and business flexibility of page development.

[0142] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:

[0143] It is determined whether a position change operation of the second block of the target page triggered by the user is received.

[0144] In this embodiment, the second block is any one of all the newly added blocks.

[0145] If so, obtain the target array corresponding to the second block.

[0146] In this embodiment, the block data of the target page is stored in advance in an array storage manner.

[0147] Location update information corresponding to the location change operation is determined.

[0148] In this embodiment, the above-mentioned location update information can be input by the user according to the actual location change demand, such as the location change intention demand corresponding to the operations of moving up, moving down, and invalidation.

[0149] Based on the position replacement information, the target array is sorted and replaced.

[0150] The present application determines whether a position change operation for the second block of the target page triggered by the user is received; if so, obtains the target array corresponding to the second block; then determines the position update information corresponding to the position change operation; and subsequently sorts and replaces the target array based on the position change information. When the present application receives a position change operation for the second block of the target page triggered by the user, it will intelligently determine the position update information corresponding to the position change operation, and then sort and replace the target array corresponding to the second block based on the position change information, thereby quickly completing the position change operation for the second block of the target page, which is beneficial to improving the development efficiency and business flexibility of page development.

[0151] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0152] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target page, the above-mentioned target page can also be stored in a node of a blockchain.

[0153] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0154] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0155] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0156] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0157] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0158] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a page generation device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0159] like Figure 3As shown, the page generation device 300 described in this embodiment includes: a first judgment module 301, a first display module 302, a second judgment module 303, a second display module 304, a receiving module 305 and a generating module 306. Among them:

[0160] The first determination module 301 is used to determine whether a page configuration request for a mini program triggered by a user is received;

[0161] The first display module 302 is used to display a preset new page if yes;

[0162] The second judgment module 303 is used to judge whether a new block instruction triggered by the user is received after detecting that the user enters the required information of the page in the new page;

[0163] The second display module 304 is used to display a preset block editing page if the new block instruction is received;

[0164] The receiving module 305 is used to receive the block configuration data corresponding to the newly added block input by the user in the block editing page;

[0165] The generating module 306 is used to introduce the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page.

[0166] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0167] In some optional implementations of this embodiment, the page configuration request carries the user information of the user; the first display module 302 includes:

[0168] Call submodule, used to call the preset user blacklist;

[0169] A first judgment submodule, used to judge whether the user information is stored in the user blacklist;

[0170] A second judgment submodule is used to judge whether the user has page configuration authority based on the user information if the user information is not stored in the user blacklist;

[0171] The display submodule is used to display the new page window if the user has the page configuration authority.

[0172] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0173] In some optional implementations of this embodiment, the second judgment submodule includes:

[0174] A first acquisition unit, configured to acquire a target authority level corresponding to the user information based on a preset user authority level table;

[0175] A second acquisition unit is used to acquire the permission level interval corresponding to the page configuration business operation;

[0176] A judging unit, used to judge whether the target permission level is within the permission level range;

[0177] The determination unit is used to determine that the user has the page configuration authority if yes, and otherwise determine that the user does not have the page configuration authority.

[0178] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0179] In some optional implementations of this embodiment, the generating module 306 includes:

[0180] A first import submodule is used to import a preset template file into the newly created page;

[0181] A determination submodule, configured to determine, from the block configuration data, a designated block type and designated position information corresponding to a first block; wherein the first block is any one of all the newly added blocks;

[0182] An acquisition submodule, used for acquiring a specified block code snippet corresponding to the specified block type from the template file;

[0183] The encapsulation submodule is used to encapsulate the specified block code snippet into a corresponding specified global component;

[0184] The second introduction submodule is used to introduce the specified global component into the newly created page based on the specified location information.

[0185] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0186] In some optional implementations of this embodiment, the page generating device further includes:

[0187] A first acquisition module, used to acquire a preset block configuration specification;

[0188] A verification module, configured to verify the block configuration data based on the block configuration specification to determine whether the block configuration data complies with the block configuration specification;

[0189] The execution module is used for executing the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page if the block configuration specification is met.

[0190] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0191] In some optional implementations of this embodiment, the page generating device further includes:

[0192] A second acquisition module, used to acquire block data of the target page;

[0193] A calling module is used to call the preset array storage method;

[0194] A storage module is used to store the block data based on the array storage method.

[0195] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0196] In some optional implementations of this embodiment, the page generating device further includes:

[0197] A third judgment module is used to judge whether a position change operation of a second block of the target page triggered by the user is received; wherein the second block is any one of all the newly added blocks;

[0198] A third acquisition module, configured to, if yes, acquire a target array corresponding to the second block;

[0199] A determination module, used to determine location update information corresponding to the location change operation;

[0200] A processing module is used to perform sorting and replacement processing on the target array based on the position replacement information.

[0201] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the page generation method in the above-mentioned implementation mode, and will not be described in detail here.

[0202] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4This is a basic structural block diagram of the computer device in this embodiment.

[0203] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.

[0204] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0205] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the page generation method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0206] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as the computer-readable instructions for running the page generation method.

[0207] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0208] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0209] In the embodiment of the present application, firstly, it is determined whether a page configuration request for a mini program triggered by a user is received; if so, a preset new page is displayed; then, after detecting that the user has entered the required information of the page in the new page, it is determined whether a new block instruction triggered by the user is received; if the new block instruction is received, a preset block editing page is displayed; subsequently, the block configuration data corresponding to the new block entered by the user in the block editing page is received; finally, the target global component corresponding to the block configuration data is introduced into the new page to obtain a configured target page. Through the use of a new page and a block editing page, the present application can automatically and quickly generate a corresponding target page based on the block configuration data corresponding to the new block entered by the user, by introducing a target global component corresponding to the block configuration data into the new page, and the generated target page can realize the dynamic configuration of the display position of the page block, effectively improving the development efficiency and flexibility of page development.

[0210] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the page generation method as described above.

[0211] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0212] In the embodiment of the present application, firstly, it is determined whether a page configuration request for a mini program triggered by a user is received; if so, a preset new page is displayed; then, after detecting that the user has entered the required information of the page in the new page, it is determined whether a new block instruction triggered by the user is received; if the new block instruction is received, a preset block editing page is displayed; subsequently, the block configuration data corresponding to the new block entered by the user in the block editing page is received; finally, the target global component corresponding to the block configuration data is introduced into the new page to obtain a configured target page. Through the use of a new page and a block editing page, the present application can automatically and quickly generate a corresponding target page based on the block configuration data corresponding to the new block entered by the user, by introducing a target global component corresponding to the block configuration data into the new page, and the generated target page can realize the dynamic configuration of the display position of the page block, effectively improving the development efficiency and flexibility of page development.

[0213] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0214] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A page generation method, characterized in that: The steps include: Determine whether a page configuration request for the mini program triggered by a user is received; If yes, display the default new page; After detecting that the user enters required information in the newly created page, determining whether a new block instruction triggered by the user is received; If the new block instruction is received, a preset block editing page is displayed; Receiving block configuration data corresponding to a newly added block input by the user in the block editing page; The target global component corresponding to the block configuration data is introduced into the newly created page to obtain a configured target page.

2. The page generation method according to claim 1, characterized in that: The page configuration request carries the user information of the user; The step of displaying the preset new page specifically includes: Call the preset user blacklist; Determining whether the user information is stored in the user blacklist; If the user information is not stored in the user blacklist, determining whether the user has page configuration authority based on the user information; If the user has page configuration authority, the new page window is displayed.

3. The page generation method according to claim 2, characterized in that: The step of judging whether the user has page configuration authority based on the user information specifically includes: Acquire a target authority level corresponding to the user information based on a preset user authority level table; Get the permission level range corresponding to the page configuration business operation; Determining whether the target permission level is within the permission level range; If so, it is determined that the user has the page configuration authority; otherwise, it is determined that the user does not have the page configuration authority.

4. The page generation method according to claim 1, characterized in that: The step of introducing the target global component corresponding to the block configuration data into the newly created page specifically includes: Introducing a preset template file into the newly created page; Determining a designated block type and designated position information corresponding to a first block from the block configuration data; wherein the first block is any one of all the newly added blocks; Acquire a specified block code snippet corresponding to the specified block type from the template file; Encapsulate the specified block code snippet into a corresponding specified global component; Based on the specified location information, the specified global component is introduced into the newly created page.

5. The page generation method according to claim 1, characterized in that: Before the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the step further includes: Get the preset block configuration specification; Verifying the block configuration data based on the block configuration specification to determine whether the block configuration data complies with the block configuration specification; If the block configuration specification is met, the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page is performed.

6. The page generation method according to claim 1, characterized in that: After the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the method further includes: Obtaining block data of the target page; Call the preset array storage method; The block data is stored based on the array storage method.

7. The page generation method according to claim 1, characterized in that: After the step of introducing the target global component corresponding to the block configuration data into the newly created page to obtain the configured target page, the method further includes: Determining whether a position change operation of a second block of the target page triggered by the user is received; wherein the second block is any one of all the newly added blocks; If so, obtain the target array corresponding to the second block; Determining location update information corresponding to the location change operation; Based on the position replacement information, the target array is sorted and replaced.

8. A page generating device, characterized in that: include: A first determination module, used to determine whether a page configuration request for a mini program triggered by a user is received; The first display module is used to display a preset new page if yes; A second judgment module is used to judge whether a new block instruction triggered by the user is received after detecting that the user enters the required information of the page in the new page; A second display module is used to display a preset block editing page if the new block instruction is received; A receiving module, configured to receive block configuration data corresponding to a newly added block input by the user in the block editing page; The generation module is used to introduce the target global component corresponding to the block configuration data into the newly created page to obtain a configured target page.

9. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the page generation method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the page generation method according to any one of claims 1 to 7 are implemented.