Disclosure of Invention
The applicant found that: the design styles of the pages in the related technology are consistent, and the functions of the pages cannot be directionally designed according to the use habits of users.
In view of the above technical problems, the present invention provides a page construction method and system, a user terminal, a server and a readable storage medium.
According to an aspect of the present invention, there is provided a page building method, including:
under the condition that a terminal service is started, a structural component of a page is constructed according to requirements;
and after the structural components of the page are constructed, operating the terminal service function.
In some embodiments of the invention, the structuring component of the build-on-demand page comprises:
building a page, and building at least one of a channel, a floor, and a group of elements.
In some embodiments of the invention, the channels comprise at least one level of channels, the channels being used to control the presentation of the pages; the page comprises at least one floor, and the page is used for displaying information and completing man-machine interaction; the floor comprises at least one element group, and the floor is used for organizing the element groups and completing interactive logic; the element group is a customizable functional component and is used for customizing styles according to different requirements.
In some embodiments of the invention, the set of construction elements comprises:
selecting a template type according to requirements;
selecting a corresponding data source according to the selected template type;
element groups are built and data is populated.
In some embodiments of the invention, the structuring component of the build-on-demand page comprises:
judging whether a page cache exists or not under the condition of loading the page;
in the absence of a page cache, data is requested and a page is constructed.
In some embodiments of the invention, the structuring component of the build-on-demand page further comprises:
under the condition that the page cache exists, loading the page cache and simultaneously requesting interface data;
after the page cache is loaded, executing the step of constructing the page;
after the interface data is requested, the page cache is updated.
In some embodiments of the invention, the structuring component of the build-on-demand page further comprises:
after the interface data is requested, judging whether the page layout is upgraded or not;
executing the step of constructing the page under the condition that the page layout is upgraded;
under the condition that the page layout is upgraded, circularly traversing the constructed components, and judging whether each component is a synchronous data source component;
under the condition that the component is a synchronous data source component, updating a component data source and executing a page building step;
in the event that the component is not the synchronous data source component, the component is notified to flush the interface data, followed by the step of building a page.
In some embodiments of the present invention, the page construction method further includes:
acquiring user type information;
and displaying page display information corresponding to the user type information to the user according to the user type information.
According to another aspect of the present invention, there is provided a page building method, including:
receiving a page construction request of a user terminal;
acquiring corresponding page construction data according to the page construction request;
and returning the page construction data to the user terminal so that the user terminal can construct the page.
In some embodiments of the present invention, the page construction request includes a channel identifier of a channel to be constructed;
the obtaining of the corresponding page construction data according to the page construction request includes:
and acquiring all sub-channels of the channel to be constructed and page information bound with the sub-channels, and all configuration information and filling data of the current page to be displayed according to the channel identifier of the channel to be constructed.
In some embodiments of the present invention, the page construction request includes a page identifier of a page to be constructed;
the obtaining of the corresponding page construction data according to the page construction request includes:
and acquiring all configuration information and filling data of the sub-channel binding page to be switched under the conditions of multi-level channels and sub-channel switching according to the page identification of the page to be constructed.
According to another aspect of the present invention, there is provided a user terminal comprising:
the component construction module is used for constructing a structural component of the page according to requirements under the condition that the terminal service is started;
and the service function operation module is used for operating the terminal service function after the structural component of the page is constructed.
In some embodiments of the present invention, the user terminal is configured to perform an operation for implementing the page building method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a user terminal comprising:
a user terminal memory for storing instructions;
and the user terminal processor is used for executing the instruction so that the user terminal executes the operation of realizing the page construction method according to any embodiment.
According to another aspect of the present invention, there is provided a server comprising:
the request receiving module is used for receiving a page construction request of the user terminal;
the data acquisition module is used for acquiring corresponding page construction data according to the page construction request;
and the data return module is used for returning the page construction data to the user terminal so that the user terminal can construct the page.
In some embodiments of the present invention, the server is configured to perform operations for implementing the page building method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a server comprising:
a server memory to store instructions;
a server processor, configured to execute the instructions, so that the server performs operations to implement the page building method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a page construction system, comprising the user terminal according to any of the above embodiments, and the server according to any of the above embodiments.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the page construction method according to any one of the above embodiments.
According to the invention, through the arrow benefiting system with the front end and the rear end matched, the operation layout scheme is provided by the rear end system, the template is provided by the front end, and the page function can be directionally designed according to the use habit of the user through the matching of the front end and the rear end.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The applicant found that: the client development design of the related technology adopts a CS framework, and even if a product manager and a designer provide high-quality information which can greatly meet the requirements of the public on an application page as far as possible, the requirement of a high-end user on accurate information cannot be met.
The page design styles of the related technologies are consistent, and the page functions cannot be designed directionally according to the use habits of users.
The related art cannot directionally push page display information according to the preference and the requirement of a user.
The related art cannot flexibly control the online and offline of the service function.
In order to solve at least one of the above technical problems in the related art, the present invention provides a page construction method and system, which are described in detail below by way of embodiments.
FIG. 1 is a schematic diagram of some embodiments of a page construction method of the present invention. Preferably, this embodiment can be performed by the page building system of the present invention. The page construction system comprises a server and a user terminal, and the method comprises the following steps:
and 11, constructing a structural component of the page according to requirements under the condition that the terminal service is started.
And step 12, after the structural components of the page are constructed, operating the terminal service function.
In some embodiments of the present invention, in step 11 of the embodiment of fig. 1, the step of building a structured component of a page according to requirements may include: building a page, and building at least one of a channel, a floor, and a group of elements.
In some embodiments of the present invention, in order to display different page information according to different user identity information and different APP (user terminal application) versions, after the server side structures the data according to the configuration information and data of the page and the rule agreed with the client side, the operator may manage and configure the page in the background. The server may abstract the page into at least one of the following components: channels, pages, floors, groups of elements, templates, data sources.
FIG. 2 is a diagram of page structuring components in some embodiments of the inventions. As shown in fig. 2, three floors are included in one page, each floor including three element groups, each element group including at least one element.
In some embodiments of the invention, the channels include at least one level of channels, and the channels are used to control the presentation of pages.
In some embodiments of the invention, the channel primary function is for navigation, and may be in multiple levels of channels. For example: up to three levels may be supported. Binding a page for displaying the content by the leaf channel; support to set ordering, control version number, etc.
Fig. 3 is a diagram illustrating a channel background management page according to some embodiments of the invention. As shown in fig. 3, the channel configuration data may include information of a channel Identification (ID), a channel name, a channel status (whether to be turned on), a channel inclusion page, a modification time, a modifier, and a modification operation.
In some embodiments of the invention, the page may include at least one floor, the page being used to present information and to complete human-machine interaction.
In some embodiments of the present invention, the page is mainly used for displaying specific function information, and the page includes a plurality of floors, and supports setting floor background colors, titles, more skip configurations, control version numbers, and the like. And when the page is changed, the page version number is actively upgraded, the client determines whether the configuration information of the page needs to be acquired again according to the comparison of the version numbers, and the page configuration information locally cached by the client is updated.
FIG. 4 is a diagram of a background management page for a page in some embodiments of the invention. As shown in fig. 4, the page configuration data may include a page Identification (ID), a belonging channel (the channel to which the page belongs, which may be changed), a page type (which may include a native page and an H5 page, for example), a page name, whether the page is online, a title (usually used for an H5 page, a top name, and a native page does not need to be filled out), a jump address (an overall jump address of the page), a page background (the page background may be a pure color value or a picture, and an initial state is set as a default value), a floating advertisement setting (content needs to be configured in an active system), a visible version range of a setting platform (for example, platforms such as Android and IOS), a channel containing page, a modification time, a modifier, and a modification operation.
The figure 4 embodiment also shows the configuration data for all floors contained under a certain page. The configuration data of each floor comprises configuration information such as a floor Identification (ID), a serial number, a floor name, a priority, a crowd type, a crowd label, a contained element group type, a visible version range of a platform, a timing online and offline time, a modification time, a modifier, a modification operation and the like.
In some embodiments of the present invention, a floor plays a role of starting and stopping between a page and an element group, one floor may include a plurality of element groups, and the floor may support sorting, configure floor height, interval, title, color, background diagram, user visible range, whether to log in for display, time on and off, version control, and other configuration data.
Fig. 5 is a diagram of a background management page for a floor in some embodiments of the invention. As shown in fig. 5, the floor configuration data may include configuration information such as a floor Identification (ID), a floor name, a floor title, a floor interval, a supported white list, a floor background (the floor background may be a pure color value or a picture, and an initial state is set as a default), a visible version range of a platform, and a custom up-and-down time of a floor.
The fig. 5 embodiment also shows configuration data for all element groups contained below a floor. The configuration data for each element group may include configuration information such as an element group Identification (ID), a serial number, a template type, a visible version range of the platform, a timed up-down time, a modification time, a modifier, and a modification operation.
In some embodiments of the invention, groups of elements are used for style customization according to different needs.
In some embodiments of the present invention, the element group is used to define a specific functional component, a template type is selected when the element group is newly created, a corresponding data source is selected according to the selected template type, the client draws the functional component and fills data according to the configuration information, and functions of template customization attribute, buried point data issuing, data source routing and the like are supported.
FIG. 6 is a diagram of a background management page for an element group in some embodiments of the invention. As shown in FIG. 6, the element group configuration data may include configuration information such as element group Identification (ID), type of template used by the element group, type of data source, priority, crowd type, crowd tag, element group spacing, visible version range of the platform, current usage location, etc.
In some embodiments of the invention, templates define a class of components, and templates and element groups are abstract versus concrete implementations.
FIG. 7 is a diagram illustrating a template background management page in accordance with some embodiments of the invention. As shown in fig. 7, the template configuration data may include configuration information such as a template Identification (ID), a template name, a template status (whether to turn on or not), an attribute of the template itself (an attribute of the template itself that can be controlled by a developer), a description of the template, and the like.
In some embodiments of the invention, the order in which templates are displayed at the client may be dragged and adjusted.
In some embodiments of the invention, the data source is business data populated within the element group.
In some embodiments of the present invention, the data sources may be divided into synchronous data sources and asynchronous data sources, where the synchronous data sources are loaded synchronously with the page configuration information when the page is requested, and the asynchronous data sources asynchronously request data to fill the component after the page structure information is loaded and the page is constructed.
In some embodiments of the invention, common data sources may include stock listing data, active resources, a consult list, a cattle list, and the like.
FIG. 8 is a diagram of a data source background management page in some embodiments of the inventions. As shown in FIG. 8, the data source configuration data may include configuration information such as template type, data source encoding, data source name, data source type, number of configuration pieces, jump type (jump to individual H5, jump to native or specify H5 pages), and so on.
In some embodiments of the present invention, the page building method in the embodiment of fig. 1 may further include: acquiring user type information; and displaying page display information corresponding to the user type information to the user according to the user type information.
Based on the page construction method provided by the embodiment of the invention, an arrow benefiting system with the front end and the rear end matched is provided. The back-end system provides an operation layout scheme, the front-end provides a template for realization, and the front-end and the back-end are matched, so that flexible online and offline of the front-end page assembly are achieved, and directional recommendation based on operation strategies and data analysis can be realized.
The above embodiment of the invention can also directionally design the page function according to the use habit of the user.
FIG. 9 is a schematic diagram of other embodiments of a page construction method of the present invention. Preferably, this embodiment can be executed by the page construction system or the user terminal of the present invention.
In some embodiments of the present invention, the client performs the following role division on the page for function implementation, including channel, page, floor, and element group.
Channels are service function modules that make up the client structure and control the presentation of pages.
The page is a combination of specific functions, displays information and completes human-computer interaction.
The floor is a constituent unit of a page for organizing groups of elements and completing some interactive logic.
The element group is a customized functional component, is the core of a system architecture, and supports style customization according to different requirements, and is high in multiplexing.
The embodiment of fig. 10 is a schematic structural diagram of a page in an embodiment of the present invention. As shown in fig. 10, the page includes two floors (floor one and floor two), where floor one includes element group one and element group two and floor two includes element group X.
As shown in fig. 9, the page building method for building the page shown in fig. 10 may include the steps of:
step 91, in the case of terminal service start (APP start), a channel is constructed.
Step 92, construct the page.
Step 93, building a floor.
At step 94, element groups are constructed.
In some embodiments of the present invention, step 94 may comprise: selecting a template type according to requirements; selecting a corresponding data source according to the selected template type; element groups are built and data is populated.
Step 95, after the channel, page, floor and element group are established, the terminal service function is operated (i.e. the APP is operated).
Compared with the application of the related technology, the embodiment of the invention can control which service modules the client (user terminal) is composed of according to the configuration of the rocket background system, and adjust the position of the application tab where the channel is located according to the operation requirement.
The above embodiment of the present invention can design the channel into multi-page control according to the service requirement, for example, can simultaneously display the quotation channel and the information channel of multiple tabs, and also can display only the stock selecting center channel of a single page. Meanwhile, the operation position of the page can be adjusted at any time based on the weight displayed by the page and the operation requirement recommended by the real-time hot spot.
FIG. 11 is a schematic diagram of a page construction method according to further embodiments of the present invention. Preferably, this embodiment can be executed by the page construction system or the user terminal of the present invention. As shown in fig. 11, the page building method may include:
step 1, under the condition of loading the page, judging whether a page cache exists. Under the condition that the page cache does not exist, executing the step 2; otherwise, in case there is a page cache, step 4 or 5 is performed.
And step 2, requesting data.
And step 3, constructing a page.
Step 4, loading a page cache; step 3 is then performed.
Step 5, requesting interface data; steps 6 and 7 are then performed.
And 6, updating the page cache.
And 7, judging whether the page layout is upgraded or not. Executing step 3, namely executing the step of constructing the page under the condition that the page layout is upgraded; otherwise, in case the page layout has been upgraded, step 8 is performed.
And 8, circularly traversing the constructed components.
Step 9, judging whether each component is a synchronous data source component; in the case that the component is a synchronous data source component, performing step 10; otherwise, in the case that the component is not the isochronous data source component, step 11 is performed.
Step 10, updating a component data source; then, executing step 3, namely executing the step of constructing the page;
step 11, informing the component to refresh the interface data; then step 3 is executed, i.e. the step of building a page is executed.
Based on the consideration of the page construction efficiency and the characteristic that the stock information has higher change frequency at the transaction time, the embodiment of the invention divides the data source of the element group into the synchronous data source and the asynchronous data source, thereby meeting the performance requirement and simultaneously meeting the requirement of the user on the data instantaneity.
Meanwhile, in order to reduce frequent updating of page components, the above-mentioned embodiment of the present invention adds cache processing, firstly, when a page is opened, a cache is loaded preferentially, thereby increasing the speed of page creation and display, and simultaneously, interface data is requested, after the request is finished, whether a page is reconstructed can be judged according to the version number of the current page, and if the version numbers are consistent, the above-mentioned embodiment of the present invention only needs to update the built data source, and thus, the page can be updated
FIG. 12 is a schematic diagram of still further embodiments of page construction methods of the present invention. Preferably, this embodiment can be executed by the page construction system or the server (server) of the present invention. As shown in fig. 12, the page building method may include:
step 121, receiving a page construction request of the user terminal.
In some embodiments of the invention, the page construction request comprises at least one of a channel identification of the channel to be constructed and a page identification of the page to be constructed.
And step 122, acquiring corresponding page construction data according to the page construction request.
In some embodiments of the present invention, step 122 may comprise: and acquiring all sub-channels of the channel to be constructed and page information bound with the sub-channels, and all configuration information and filling data of the current page to be displayed according to the channel identifier of the channel to be constructed.
In other embodiments of the present invention, step 122 may comprise: and acquiring all configuration information and filling data of the sub-channel binding page to be switched under the conditions of multi-level channels and sub-channel switching according to the page identification of the page to be constructed.
And step 123, returning the page construction data to the user terminal so that the user terminal can construct the page.
The above embodiment of the invention changes the traditional page development mode of the related technology into the component development mode, and the page can be constructed by any component collocation. The embodiment of the invention designs the synchronous issuing and asynchronous issuing modes for the template component data source, and the page construction efficiency is higher. The embodiment of the invention can flexibly control the on-line and the off-line of the business function.
Fig. 13 is a diagram of some embodiments of a ue of the present invention. As shown in fig. 13, the user terminal includes a component construction module 131 and a service function execution module 132, wherein:
and the component building module 131 is configured to build a structural component of the page according to a requirement when the terminal service is started.
And the service function running module 132 is configured to run the terminal service function after the structured component of the page is constructed.
In some embodiments of the present invention, the user terminal is configured to perform operations for implementing the page building method according to any of the embodiments (for example, any of fig. 1 to 11).
Fig. 14 is a diagram of another embodiment of a user terminal according to the present invention. As shown in fig. 14, the user terminal includes a user terminal memory 141 and a user terminal processor 142, wherein:
a user terminal memory 141 for storing instructions;
a user terminal processor 142, configured to execute the instructions, so that the user terminal performs operations of implementing the page building method according to any of the embodiments described above (for example, any of fig. 1 to 11).
Based on the user terminal provided by the embodiment of the invention, the traditional page development mode of the related technology is converted into the component development mode, and the page can be constructed by any component collocation. The embodiment of the invention designs the synchronous issuing and asynchronous issuing modes for the template component data source, and the page construction efficiency is higher. The embodiment of the invention can flexibly control the on-line and the off-line of the business function.
FIG. 15 is a schematic diagram of a server according to some embodiments of the inventions. As shown in fig. 15, the server may include a request receiving module 151, a data obtaining module 152, and a data returning module 153, wherein:
a request receiving module 151, configured to receive a page construction request of a user terminal.
The data obtaining module 152 is configured to obtain corresponding page construction data according to the page construction request.
A data returning module 153, configured to return the page construction data to the user terminal, so that the user terminal constructs the page.
In some embodiments of the present invention, the server is configured to perform operations for implementing the page building method according to any of the embodiments described above (for example, any of fig. 1 to 12).
Fig. 16 is a schematic diagram of another embodiment of a server of the present invention. As shown in fig. 16, the server may include a server memory 161 and a server processor 162, wherein:
server memory 161 to store instructions.
A server processor 162 configured to execute the instructions, so that the server performs the operations of implementing the page building method according to any of the embodiments described above (for example, any of fig. 1 to 12).
Based on the server provided by the embodiment of the invention, the service modules of the client (user terminal) can be controlled according to the configuration of the rocket-assisted background system, and the position of the application tab where the channel is located can be adjusted according to the operation requirement.
The above embodiment of the present invention can design the channel into multi-page control according to the service requirement, for example, can simultaneously display the quotation channel and the information channel of multiple tabs, and also can display only the stock selecting center channel of a single page. Meanwhile, the operation position of the page can be adjusted at any time based on the weight displayed by the page and the operation requirement recommended by the real-time hot spot.
FIG. 17 is a schematic diagram of some embodiments of a page building system of the present invention. As shown in fig. 17, the page building system may include a user terminal 171 and a server 172, wherein:
the ue 171 may be a ue as described in any of the embodiments above (e.g., the embodiments of fig. 13 or fig. 14).
The server 172 may be a server as described in any of the above embodiments (e.g., the embodiment of fig. 15 or fig. 16).
Based on the page construction system provided by the embodiment of the invention, an arrow benefiting system with the front end and the rear end matched is provided. The back-end system provides an operation layout scheme, the front-end provides a template for realization, and the front-end and the back-end are matched, so that flexible online and offline of the front-end page assembly are achieved, and directional recommendation based on operation strategies and data analysis can be realized.
The above embodiment of the invention can also directionally design the page function according to the use habit of the user.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the page construction method according to any one of the above embodiments.
Based on the computer-readable storage medium provided by the above embodiment of the invention, an arrow benefiting system with front and rear ends matched is provided. The back-end system provides an operation layout scheme, the front-end provides a template for realization, and the front-end and the back-end are matched, so that flexible online and offline of the front-end page assembly are achieved, and directional recommendation based on operation strategies and data analysis can be realized.
The servers and user terminals described above may be implemented as a general purpose processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.