Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Fig. 1 is a flowchart of a page generation method according to an embodiment of the present invention. The page generation method specifically includes the following steps, and according to different requirements, the sequence of the steps in the flowchart may be changed, and some of the steps may be omitted.
S11, creating a template database according to the component information provided by a plurality of external providers, wherein the template database comprises a plurality of reference templates.
In this embodiment, the template database stores a plurality of reference templates, and the plurality of reference templates are used for being referenced by tenants, so as to create pages in a personalized manner.
Each reference template is a page structure tree, and the page structure tree comprises a plurality of components, and parameter information and jump addresses corresponding to each component.
Wherein, the parameter information may include a name of the component, etc.
In an alternative embodiment, the creating a template database from component information provided by a plurality of external providers includes:
accessing interfaces provided by the plurality of external providers;
acquiring each type of component corresponding to an external provider and parameter information and a jump address corresponding to each type of component through each interface;
generating a page structure tree according to each type of component of each external provider and parameter information and a jump address corresponding to each type of component;
and taking each page structure tree as a reference template and storing the reference template in the template database.
In this alternative embodiment, the computer device serves as an interface open platform, and can communicate with a plurality of external providers, thereby obtaining services provided by the plurality of external providers.
The computer equipment and a plurality of external providers have agreed the docking specifications in advance, and the docking specifications comprise interface access addresses, interface request modes, interface request parameters and the like. The computer equipment also provides a subscription interface for the external provider, so that the bidirectional interaction of data with the external provider is better realized. Through unified management and maintenance of external providers, such as interface grouping management and parameter configuration management, the problems of complexity in the process of interfacing with the external providers, non-unified specification and the like can be greatly solved.
And S12, receiving a reference template selection command triggered by the tenant, and displaying the first page structure tree and the components of the multiple types corresponding to the selected reference template.
Each tenant needs to register an account and a password on a page frame building platform provided by the computer equipment in advance, after the account and the password are successfully registered, the connection between the tenant and the page frame building platform is built, the tenant can log in the page frame building platform through the account and the password afterwards to build a page frame in a personalized mode, and therefore dynamic deployment of the page is achieved.
And after the tenant successfully logs in the page frame building platform, the page frame building platform displays a plurality of reference templates for the user to select. Wherein, the lower layer of the template is the component. The computer equipment is internally provided with a plurality of components of different types at the front end aiming at different service scenes, the component design considers a single multiplexing principle, and the components and the rear end define good types and configuration parameters, so that the component expansion is facilitated.
In an alternative embodiment, the receiving a tenant-triggered reference template selection instruction, displaying a first page structure tree corresponding to the selected reference template and a plurality of types of components includes:
receiving an item description input by the tenant;
hit a plurality of reference templates related to the item description from the template database;
generating a selected instruction when a signal that one of the plurality of reference templates is selected is detected;
displaying a first page structure tree corresponding to the selected reference template;
and displaying a plurality of types of components corresponding to the unselected reference template.
In this alternative embodiment, the computer device may provide an item description box for the tenant to input an item description when it is unclear what kind of template to obtain, and the computer device recommends a reference template according to the item description input by the tenant.
The page structure tree corresponding to the reference template comprises a plurality of levels, and each level comprises a plurality of components of different types, such as a picture component, a button component, a list component, a container component and the like.
The computer equipment can carry out semantic analysis on the item description through a semantic analysis algorithm, calculate the similarity between a semantic analysis result and the description corresponding to each reference template in the template database, and recommend the reference template corresponding to the highest similarity to the tenant as a recommendation template. Through the item description, the process that the tenant selects from a plurality of reference templates is omitted, the reference template which best meets the actual requirements of the tenant can be accurately matched, the time of the tenant is saved, and the use experience of the tenant is improved.
In addition, the components of multiple types corresponding to the unselected reference templates are displayed to the tenant, so that the tenant can modify, add or delete the components in the recommended reference model conveniently, the template meeting the requirements of the tenant is further obtained, and a page meeting the requirements of the tenant is generated.
S13, when detecting that the update instruction of the target component is received on the first page structure tree, acquiring the target address corresponding to the target component.
The tenant can select a needed target component from the multiple types of components, add the target component to any layer of the first page structure tree in a dragging or moving mode, and the like, and can remove the component on any layer of the first page structure tree in a clicking or moving mode.
S14, updating the target assembly and the target address to the first page structure tree to obtain a second page structure tree.
When the computer device detects a target component selected by a tenant, a target address corresponding to the target component is obtained through a template database, and the target component are associated to a first page structure tree, so that a new page structure tree is obtained.
And S15, generating a page according to the second page structure tree and displaying the page.
Referring to fig. 2, a page displayed on a display screen of the computer device may be divided into three parts, wherein the first part is used for displaying the first page structure tree, the second part is used for displaying the plurality of types of components, and the third part is used for displaying a page generated according to the first page structure tree in a what-you-see-is-what-you-get manner. When the first page structure tree displayed by the first part is changed, the page displayed by the third part is correspondingly changed. Illustratively, assuming that a tenant selects one reference template from a plurality of reference templates in the template database, a first portion on the display screen immediately displays a page structure tree a corresponding to the reference template selected by the tenant, a second portion on the display screen displays a plurality of types of components corresponding to the page structure tree a, and a third portion on the display screen displays a page a generated according to the page structure tree a.
When a tenant updates any one of the components of the multiple types corresponding to the page structure tree a (for example, a component is newly added to the page structure tree a in a dragging manner), the page structure tree B is obtained again according to the updated components, the first part immediately displays the page structure tree B, the second part displays the components of the multiple types corresponding to the page structure tree B, and the third part displays a page generated according to the page structure tree B.
In an optional embodiment, the second portion of the page displayed on the display screen may be further divided into an upper portion and a lower portion, where one portion (e.g., the upper half portion) is used to display a plurality of components corresponding to the page structure tree in the first portion, and the other portion (e.g., the lower half portion) is used to display a plurality of components corresponding to the page structure tree that is not selected by the user, so as to facilitate the tenant to dynamically update the page structure tree in the first portion.
In an optional embodiment, the method further comprises:
receiving a first login instruction input by a first user, and analyzing a first tenant identification and a user role in the first login instruction;
responding to successful verification of the first tenant identification, and acquiring a first target template corresponding to the user role and a first target page structure tree corresponding to the first target template;
and generating a first target page according to the first target page structure tree and displaying the first target page.
In this optional embodiment, each tenant includes multiple users, and when configuring a frame of a page, the tenant may further customize a user role, and configure different pages for users with different roles.
And the computer equipment associates the template set by the tenant with the user role. And each user also needs to input a tenant identification when logging in the page frame building platform. And the computer equipment verifies the tenant identification, and displays a corresponding page according to the user role of the user after the verification is successful.
In an optional embodiment, the method further comprises:
receiving a second login instruction input by a second user, and analyzing a second tenant identification and login time in the second login instruction;
responding to successful verification of the second tenant identification, and acquiring a second target template corresponding to the login time and a second target page structure tree corresponding to the second target template;
and generating a second target page according to the second target page structure tree and displaying the second target page.
When configuring the frame of the page, the tenant can also customize the use time period, and configure different pages in different use time periods.
The computer device associates the template set by the tenant with a usage time period. When each user logs in the page frame building platform, the computer equipment records the login time of the user, verifies the tenant identification, matches a corresponding use time period according to the login time of the user after the verification is successful, and displays a page corresponding to the use time period.
In an optional embodiment, after the generating the page according to the second page structure tree, the method further includes:
taking the second page structure tree as a candidate template and storing the candidate template in the template database;
calculating the times of the candidate templates in the template database selected by the tenants;
and removing the candidate template corresponding to the selected times smaller than the first time threshold from the template database.
In this optional embodiment, after each tenant configures the page structure tree, each tenant may add the page structure tree as a candidate template into the template database for reference of other tenants. The selected times are less than the first time threshold value, which indicates that the corresponding candidate template is selected by the tenant less frequently, and the selected times are greater than or equal to the first time threshold value, which indicates that the corresponding candidate template is selected by the tenant more frequently.
In order to avoid the excessively large number of the reference templates in the template database, the candidate templates in the template database can be cleaned regularly or irregularly, and the candidate templates which are less selected by the tenant are removed.
By continuously adding new candidate templates into the template database and continuously removing less selected candidate templates from the template database, the number of the reference templates in the template database can be updated in real time, so that the storage space in the database can be saved, and the resources of the computer equipment can be saved; and excessive reference templates can be avoided, so that the computer equipment is excessively large in calculation amount when the recommendation template related to the item description input by the tenant is hit.
In an optional embodiment, the method further comprises:
constructing a multi-tenant block chain and deploying a candidate template reward intelligent contract in the multi-tenant block chain;
and calling the candidate template reward intelligent contract to determine incentive points according to the times of the candidate template selected by the tenants, and transferring the incentive points into accounts of the tenants corresponding to the candidate template.
In the optional embodiment, through the application of the block chain technology, the intelligent contract can be rewarded for incentive based on the candidate template, so that the tenant can participate in the establishment of the page frame widely and actively, the use experience of the tenant can be further improved, and better service is provided for other tenants through the page frame with better incentive tenant establishment effect.
In summary, the template database is created through the component information provided by a plurality of external providers, so that the generation process of the reference template can be accelerated, and the page can be configured more quickly by the tenant; after the tenant selects the reference templates from the displayed multiple reference templates, the corresponding first page structure tree and multiple types of components are displayed, the tenant is allowed to update any layer of components on the first page structure tree, the first page structure tree is updated according to the updated components and addresses corresponding to the updated components, a second page structure tree is obtained, pages are generated according to the second page structure tree and displayed, the pages can be displayed in real time, the page framework can be conveniently adjusted by the tenant, multiplexing of the components can be better achieved, and personalized requirements of the tenant on the pages are met.
In addition, personalized templates can be further customized for users with different roles in tenants and different time periods, so that various operation experiences of different users are adapted, and the flexibility of software is greatly improved.
It is emphasized that the template database may be stored in a node of the blockchain in order to further ensure privacy and security of the template database.
Fig. 3 is a structural diagram of a page generation apparatus according to a second embodiment of the present invention.
In some embodiments, the page generating apparatus 30 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments in the page generation apparatus 30 may be stored in a memory of a computer device and executed by at least one processor to perform the functions of page generation (described in detail in fig. 1).
In this embodiment, the page generating apparatus 30 may be divided into a plurality of functional modules according to the functions executed by the page generating apparatus. The functional module may include: the system comprises a template creating module 301, a template displaying module 302, an address obtaining module 303, a component updating module 304, a page generating module 305, a role verification module 306, a time verification module 307, a template removing module 308, a contract deploying module 309 and a score storing module 310. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The template creating module 301 is configured to create a template database according to component information provided by a plurality of external providers, where the template database includes a plurality of reference templates.
In this embodiment, the template database stores a plurality of reference templates, and the plurality of reference templates are used for being referenced by tenants, so as to create pages in a personalized manner.
Each reference template is a page structure tree, and the page structure tree comprises a plurality of components, and parameter information and jump addresses corresponding to each component.
Wherein, the parameter information may include a name of the component, etc.
In an alternative embodiment, the creating the template database by the template creating module 301 according to the component information provided by a plurality of external providers includes:
accessing interfaces provided by the plurality of external providers;
acquiring each type of component corresponding to an external provider and parameter information and a jump address corresponding to each type of component through each interface;
generating a page structure tree according to each type of component of each external provider and parameter information and a jump address corresponding to each type of component;
and taking each page structure tree as a reference template and storing the reference template in the template database.
In this alternative embodiment, the computer device serves as an interface open platform, and can communicate with a plurality of external providers, thereby obtaining services provided by the plurality of external providers.
The computer equipment and a plurality of external providers have agreed the docking specifications in advance, and the docking specifications comprise interface access addresses, interface request modes, interface request parameters and the like. The computer equipment also provides a subscription interface for the external provider, so that the bidirectional interaction of data with the external provider is better realized. Through unified management and maintenance of external providers, such as interface grouping management and parameter configuration management, the problems of complexity in the process of interfacing with the external providers, non-unified specification and the like can be greatly solved.
The template display module 302 is configured to receive a reference template selection instruction triggered by a tenant, and display a first page structure tree and multiple types of components corresponding to the selected reference template.
Each tenant needs to register an account and a password on a page frame building platform provided by the computer equipment in advance, after the account and the password are successfully registered, the connection between the tenant and the page frame building platform is built, the tenant can log in the page frame building platform through the account and the password afterwards to build a page frame in a personalized mode, and therefore dynamic deployment of the page is achieved.
And after the tenant successfully logs in the page frame building platform, the page frame building platform displays a plurality of reference templates for the user to select. Wherein, the lower layer of the template is the component. The computer equipment is internally provided with a plurality of components of different types at the front end aiming at different service scenes, the component design considers a single multiplexing principle, and the components and the rear end define good types and configuration parameters, so that the component expansion is facilitated.
In an alternative embodiment, the template display module 302 receives a reference template selection command triggered by a tenant, and displaying the first page structure tree and the plurality of types of components corresponding to the selected reference template includes:
receiving an item description input by the tenant;
hit a plurality of reference templates related to the item description from the template database;
generating a selected instruction when a signal that one of the plurality of reference templates is selected is detected;
displaying a first page structure tree corresponding to the selected reference template;
and displaying a plurality of types of components corresponding to the unselected reference template.
In this alternative embodiment, the computer device may provide an item description box for the tenant to input an item description when it is unclear what kind of template to obtain, and the computer device recommends a reference template according to the item description input by the tenant.
The page structure tree corresponding to the reference template comprises a plurality of levels, and each level comprises a plurality of components of different types, such as a picture component, a button component, a list component, a container component and the like.
The computer equipment can carry out semantic analysis on the item description through a semantic analysis algorithm, calculate the similarity between a semantic analysis result and the description corresponding to each reference template in the template database, and recommend the reference template corresponding to the highest similarity to the tenant as a recommendation template. Through the item description, the process that the tenant selects from a plurality of reference templates is omitted, the reference template which best meets the actual requirements of the tenant can be accurately matched, the time of the tenant is saved, and the use experience of the tenant is improved.
In addition, the components of multiple types corresponding to the unselected reference templates are displayed to the tenant, so that the tenant can modify, add or delete the components in the recommended reference model conveniently, the template meeting the requirements of the tenant is further obtained, and a page meeting the requirements of the tenant is generated.
The address obtaining module 303 is configured to obtain a target address corresponding to a target component when detecting that an update instruction of the target component is received on the first page structure tree.
The tenant can select a needed target component from the multiple types of components, add the target component to any layer of the first page structure tree in a dragging or moving mode, and the like, and can remove the component on any layer of the first page structure tree in a clicking or moving mode.
The component updating module 304 is configured to update the target component and the target address into the first page structure tree to obtain a second page structure tree.
When the computer device detects a target component selected by a tenant, a target address corresponding to the target component is obtained through a template database, and the target component are associated to a first page structure tree, so that a new page structure tree is obtained.
The page generating module 305 is configured to generate a page according to the second page structure tree and display the page.
Referring to fig. 2, a page displayed on a display screen of the computer device may be divided into three parts, wherein the first part is used for displaying the first page structure tree, the second part is used for displaying the plurality of types of components, and the third part is used for displaying a page generated according to the first page structure tree in a what-you-see-is-what-you-get manner. When the first page structure tree displayed by the first part is changed, the page displayed by the third part is correspondingly changed.
Illustratively, assuming that a tenant selects one reference template from a plurality of reference templates in the template database, a first portion on the display screen immediately displays a page structure tree a corresponding to the reference template selected by the tenant, a second portion on the display screen displays a plurality of types of components corresponding to the page structure tree a, and a third portion on the display screen displays a page a generated according to the page structure tree a.
When a tenant updates any one of the components of the multiple types corresponding to the page structure tree a (for example, a component is newly added to the page structure tree a in a dragging manner), the page structure tree B is obtained again according to the updated components, the first part immediately displays the page structure tree B, the second part displays the components of the multiple types corresponding to the page structure tree B, and the third part displays a page generated according to the page structure tree B.
In an optional embodiment, the second portion of the page displayed on the display screen may be further divided into an upper portion and a lower portion, where one portion (e.g., the upper half portion) is used to display a plurality of components corresponding to the page structure tree in the first portion, and the other portion (e.g., the lower half portion) is used to display a plurality of components corresponding to the page structure tree that is not selected by the user, so as to facilitate the tenant to dynamically update the page structure tree in the first portion.
The role verification module 306 is configured to receive a first login instruction input by a first user, and analyze a first tenant identifier and a user role in the first login instruction; responding to successful verification of the first tenant identification, and acquiring a first target template corresponding to the user role and a first target page structure tree corresponding to the first target template; and generating a first target page according to the first target page structure tree and displaying the first target page.
In this optional embodiment, each tenant includes multiple users, and when configuring a frame of a page, the tenant may further customize a user role, and configure different pages for users with different roles.
And the computer equipment associates the template set by the tenant with the user role. And each user also needs to input a tenant identification when logging in the page frame building platform. And the computer equipment verifies the tenant identification, and displays a corresponding page according to the user role of the user after the verification is successful.
The time verification module 307 is configured to receive a second login instruction input by a second user, and analyze a second tenant identifier and login time in the second login instruction; responding to successful verification of the second tenant identification, and acquiring a second target template corresponding to the login time and a second target page structure tree corresponding to the second target template; and generating a second target page according to the second target page structure tree and displaying the second target page.
When configuring the frame of the page, the tenant can also customize the use time period, and configure different pages in different use time periods.
The computer device associates the template set by the tenant with a usage time period. When each user logs in the page frame building platform, the computer equipment records the login time of the user, verifies the tenant identification, matches a corresponding use time period according to the login time of the user after the verification is successful, and displays a page corresponding to the use time period.
The template removing module 308 is configured to, after the page is generated according to the second page structure tree, use the second page structure tree as a candidate template and store the candidate template in the template database; calculating the times of the candidate templates in the template database selected by the tenants; and removing the candidate template corresponding to the selected times smaller than the first time threshold from the template database.
In this optional embodiment, after each tenant configures the page structure tree, each tenant may add the page structure tree as a candidate template into the template database for reference of other tenants. The selected times are less than the first time threshold value, which indicates that the corresponding candidate template is selected by the tenant less frequently, and the selected times are greater than or equal to the first time threshold value, which indicates that the corresponding candidate template is selected by the tenant more frequently.
In order to avoid the excessively large number of the reference templates in the template database, the candidate templates in the template database can be cleaned regularly or irregularly, and the candidate templates which are less selected by the tenant are removed.
By continuously adding new candidate templates into the template database and continuously removing less selected candidate templates from the template database, the number of the reference templates in the template database can be updated in real time, so that the storage space in the database can be saved, and the resources of the computer equipment can be saved; and excessive reference templates can be avoided, so that the computer equipment is excessively large in calculation amount when the recommendation template related to the item description input by the tenant is hit.
The contract deployment module 309 is configured to construct a multi-tenant blockchain and deploy a candidate template reward intelligent contract in the multi-tenant blockchain.
The credit storage module 310 is configured to invoke the candidate template reward smart contract to determine incentive credits according to the number of times that the candidate template is selected by the tenant, and transfer the incentive credits into an account of the tenant corresponding to the candidate template.
In the optional embodiment, through the application of the block chain technology, the intelligent contract can be rewarded for incentive based on the candidate template, so that the tenant can participate in the establishment of the page frame widely and actively, the use experience of the tenant can be further improved, and better service is provided for other tenants through the page frame with better incentive tenant establishment effect.
In summary, the template database is created through the component information provided by a plurality of external providers, so that the generation process of the reference template can be accelerated, and the page can be configured more quickly by the tenant; after the tenant selects the reference templates from the displayed multiple reference templates, the corresponding first page structure tree and multiple types of components are displayed, the tenant is allowed to update any layer of components on the first page structure tree, the first page structure tree is updated according to the updated components and addresses corresponding to the updated components, a second page structure tree is obtained, pages are generated according to the second page structure tree and displayed, the pages can be displayed in real time, the page framework can be conveniently adjusted by the tenant, multiplexing of the components can be better achieved, and personalized requirements of the tenant on the pages are met.
In addition, personalized templates can be further customized for users with different roles in tenants and different time periods, so that various operation experiences of different users are adapted, and the flexibility of software is greatly improved.
It is emphasized that the template database may be stored in a node of the blockchain in order to further ensure privacy and security of the template database.
Fig. 4 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the computer device 4 includes a memory 41, at least one processor 42, at least one communication bus 43, and a transceiver 44.
It will be appreciated by those skilled in the art that the configuration of the computer device shown in fig. 4 is not limiting to the embodiments of the present invention, and may be a bus-type configuration or a star-type configuration, and that the computer device 4 may include more or less hardware or software than those shown, or a different arrangement of components.
In some embodiments, the computer device 4 is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The computer device 4 may also include a client device, which includes, but is not limited to, any electronic product capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, etc.
It should be noted that the computer device 4 is only an example, and other electronic products that are currently available or may come into existence in the future, such as electronic products that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, the memory 41 has stored therein a computer program which, when executed by the at least one processor 42, implements all or part of the steps of the page generation method as described. The Memory 41 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In some embodiments, the at least one processor 42 is a Control Unit (Control Unit) of the computer device 4, connects various components of the entire computer device 4 by using various interfaces and lines, and executes various functions and processes data of the computer device 4 by running or executing programs or modules stored in the memory 41 and calling data stored in the memory 41. For example, the at least one processor 42, when executing the computer program stored in the memory, implements all or part of the steps of the page generation method described in the embodiments of the present invention; or implement all or part of the functionality of the page generation means. The at least one processor 42 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips.
The present embodiment provides a storage medium, which stores thereon a computer program, which when executed by a processor implements the steps in the above-mentioned embodiment of the human-computer interaction dialog processing method, such as S11-S15 shown in fig. 1:
s11, creating a template database according to the component information provided by a plurality of external providers, wherein the template database comprises a plurality of reference templates;
s12, receiving a reference template selection instruction triggered by a tenant, and displaying a first page structure tree and a plurality of types of components corresponding to the selected reference template;
s13, when detecting that the update instruction of the target component is received on the first page structure tree, acquiring a target address corresponding to the target component;
s14, updating the target assembly and the target address into the first page structure tree to obtain a second page structure tree;
and S15, generating a page according to the second page structure tree and displaying the page.
Alternatively, the computer program, when executed by the processor, implements the functions of the modules in the above device embodiments, such as the module 301 and 310 in fig. 3:
the template creating module 301 is configured to create a template database according to component information provided by a plurality of external providers, where the template database includes a plurality of reference templates;
the template display module 302 is configured to receive a reference template selection instruction triggered by a tenant, and display a first page structure tree and multiple types of components corresponding to the selected reference template;
the address obtaining module 303 is configured to obtain a target address corresponding to a target component when detecting that an update instruction of the target component is received on the first page structure tree;
the component updating module 304 is configured to update the target component and the target address into the first page structure tree to obtain a second page structure tree;
the page generating module 305 is configured to generate a page according to the second page structure tree and display the page;
the role verification module 306 is configured to receive a first login instruction input by a first user, and analyze a first tenant identifier and a user role in the first login instruction; responding to successful verification of the first tenant identification, and acquiring a first target template corresponding to the user role and a first target page structure tree corresponding to the first target template; generating a first target page according to the first target page structure tree and displaying the first target page;
the time verification module 307 is configured to receive a second login instruction input by a second user, and analyze a second tenant identifier and login time in the second login instruction; responding to successful verification of the second tenant identification, and acquiring a second target template corresponding to the login time and a second target page structure tree corresponding to the second target template; generating a second target page according to the second target page structure tree and displaying the second target page;
the template removing module 308 is configured to, after the page is generated according to the second page structure tree, use the second page structure tree as a candidate template and store the candidate template in the template database; calculating the times of the candidate templates in the template database selected by the tenants; removing the candidate template corresponding to the selected times smaller than the first time threshold from the template database;
the contract deployment module 309 is configured to construct a multi-tenant blockchain and deploy a candidate template reward intelligent contract in the multi-tenant blockchain.
The credit storage module 310 is configured to invoke the candidate template reward smart contract to determine incentive credits according to the number of times that the candidate template is selected by the tenant, and transfer the incentive credits into an account of the tenant corresponding to the candidate template.
In some embodiments, the at least one communication bus 43 is arranged to enable connection communication between the memory 41 and the at least one processor 42, etc.
Although not shown, the computer device 4 may further include a power source (such as a battery) for supplying power to the various components, and preferably, the power source may be logically connected to the at least one processor 42 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The computer device 4 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.