CN112416334A - Page configuration method, device, equipment and storage medium - Google Patents

Page configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN112416334A
CN112416334A CN201910783827.7A CN201910783827A CN112416334A CN 112416334 A CN112416334 A CN 112416334A CN 201910783827 A CN201910783827 A CN 201910783827A CN 112416334 A CN112416334 A CN 112416334A
Authority
CN
China
Prior art keywords
page
style
information
node
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910783827.7A
Other languages
Chinese (zh)
Other versions
CN112416334B (en
Inventor
李大双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910783827.7A priority Critical patent/CN112416334B/en
Publication of CN112416334A publication Critical patent/CN112416334A/en
Application granted granted Critical
Publication of CN112416334B publication Critical patent/CN112416334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a page configuration method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring page data of a target page; the node module is used for configuring a tree structure of a target page based on page index information and attribute information of the page index information and generating the target page based on at least one node of the tree structure and description information of the at least one node; determining a page style type corresponding to a node module of a target page; displaying a style template corresponding to the page style type in a style template library on a preset page; receiving a style template selection instruction triggered in the preset page; and configuring the node module of the target page into the target page based on the style template corresponding to the style template selection instruction. By the technical scheme, page data can be clearly displayed, style template multiplexing is achieved, page configuration efficiency is improved, updating is more flexible, and display diversification is achieved.

Description

Page configuration method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page configuration method and apparatus, a computer device, and a storage medium.
Background
In recent years, with the rapid development of information technology, people have become more and more accustomed to obtaining information from the internet to facilitate their lives. The internet products are endlessly developed, which affect people's clothes and eating habits, for example, people can obtain information such as food news, dish making methods and food purchasing modes from food pages or APP (application program); acquiring information such as learning methods, courses and education news of different subjects from education pages; obtaining information of travel strategies, route planning, entrance tickets, hotels and the like of different scenic spots from a travel page; and obtaining information such as symptom diagnosis, medical prevention and treatment and current research of diseases from the medical page. These pages often provide people with some information in the form of words, pictures and videos to select references from which users can extract information needed by themselves to facilitate their lives. The main function of the page development configuration is to better present the page of the website or APP (application program) to the user, so that the user can conveniently obtain useful information and attract the user.
In the prior art, data is designed mainly according to specific page configuration information, developers develop complete pages according to related information and present the complete pages to users, if data needs to be updated or display styles need to be changed, new versions need to be released, the layering of page data is not strong, different application program versions cannot flexibly realize style template sharing, diversified setting of pages is not facilitated, meanwhile, great burden is brought to developers, page configuration efficiency is low, and data updating is not flexible enough. Therefore, there is a need to provide a more reliable and efficient solution.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a page configuration method, a page configuration device, computer equipment and a storage medium. The technical scheme is as follows:
in one aspect, a page configuration method is provided, and the method includes:
acquiring page data of a target page, wherein the page data comprises page index information and attribute information of the page index information;
further, configuring a tree structure of the target page based on the page index information and the attribute information of the page index information;
specifically, the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
further, a node module for generating the target page based on at least one node of the tree structure and the description information of the at least one node;
further, determining a page style type corresponding to a node module of the target page;
further, displaying a style template corresponding to the page style type in a style template library on a preset page;
further, receiving a style template selection instruction triggered in the preset page;
further, configuring the node module of the target page into the target page based on the style template corresponding to the style template selecting instruction.
Another aspect provides a page configuring apparatus, including:
the page data acquisition module is used for acquiring page data of a target page, and the page data comprises page index information and attribute information of the page index information;
a tree structure configuration module, configured to configure a tree structure of the target page based on the page index information and attribute information of the page index information, where the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
the node module generating module is used for generating a node module of the target page based on at least one node of the tree structure and the description information of the at least one node;
the page style type determining module is used for determining the page style type corresponding to the node module of the target page;
the style template display module is used for displaying a style template corresponding to the page style type in the style template library on a preset page;
the style template selection instruction receiving module is used for receiving a style template selection instruction triggered in the preset page;
and the target page configuration module is used for configuring the node module of the target page into the target page based on the style template.
Another aspect provides a page configuring device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the page configuring method as described above.
Another aspect provides a computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions that is loaded and executed by a processor to implement a page configuration method as described above.
The page configuration method, the device, the equipment and the storage medium have the following technical effects:
according to the method and the device, the node module is generated by acquiring the page data of the target page, configuring the tree structure of the target page, selecting the sampling type template from the style template library, and then configuring the node module of the target page into the target page based on the style template, so that the target page data is well-arranged, the user can quickly search the needed information, convenience is provided, meanwhile, the data of the page of each version has a similar structure, the multiplexing of the style templates is conveniently carried out, different style templates can be selected by each node module, the page configuration efficiency is improved, the updating is more flexible, and the diversified display of the page is realized.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a page configuration method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a tree structure of target page data according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a tree structure of a page data of a food information recommendation product according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a page data tree structure of a medical information recommendation product according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a medical information recommendation product page data node module according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for constructing a style template library according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an operation interface for selecting a style template for a node module according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a configured page of a food information recommendation product according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a configured page of a medical information recommendation product according to an embodiment of the present application;
FIG. 11 is a schematic view of a page of different versions of a medical information recommendation product according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a page of a style template for replacing a part of a medical information recommendation product according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a page configuring apparatus according to an embodiment of the present application;
fig. 14 is a hardware block diagram of a server of a page configuration method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment according to an embodiment of the present application, and as shown in fig. 1, the application environment at least includes a server 01 and at least one client 02.
Specifically, the server 01 may include a server operating independently, or a distributed server, or a server cluster composed of a plurality of servers. The server 01 may comprise a network communication unit, a processor, a memory, etc. Specifically, the server 01 may be configured to construct a style template library and generate a style template, thereby configuring the target page.
Specifically, the client 02 may include a physical device of a type such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, a smart wearable device, and the like, and may also include software running in the physical device, such as an application program and the like. The operating system running on the client 02 in the embodiment of the present invention may include, but is not limited to, an android system, an IOS system, linux, windows, and the like. The client 02 may be configured to obtain page data, configure a tree structure of the target page, select a style template, and the like.
A page configuration method according to the present invention is described below, and fig. 2 is a schematic flow chart of a page configuration method according to an embodiment of the present invention. It is noted that the present specification provides the method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be possible according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201, acquiring page data of the target page.
In this embodiment of the present specification, the target page may include a web page to be configured, a page of an application program to be configured, or a page of an applet to be configured; the page data of the target page may include any type of data of text, still images, moving images, hyperlinks, video, audio, etc. constituting the content of the target page, but does not include style-related information of the target page.
In practical applications, a user often needs to combine text, pictures, audio/video, content jump links, and the like to acquire required information when browsing a page. Taking information recommendation products such as information as an example, the page data may include titles, text descriptions, matching pictures, hyperlinks of articles related to topics, or jump links of recommended contents and related audios and videos.
In an embodiment of the present specification, the page data of the target page may include page index information and attribute information of the page index information. Specifically, one page data may include at least one page index information.
Specifically, the page index information may include information identifying a certain page object in the target page, and the page index information may include, but is not limited to, information in the form of text information, picture information, or hyperlinks. Specifically, for example, the title of a certain page object in the page may be used.
Specifically, the attribute information of the page index information may include information for interpreting or extending a certain page index information in the target page, and the attribute information of the page index information may include, but is not limited to, information in the form of text information, picture information, audio/video information, hyperlinks, and the like. Specifically, for example, a map of a title in a page may be provided.
In practical application, taking a food information recommendation product as an example, when a user clicks a tomato in a dish, the page can provide information such as a tomato nutritive value text description, a tomato variety matching picture, a cooking method skip link, a cooking teaching video and the like, and the user can conveniently select the food information recommendation product by providing information in various forms.
Taking the food information recommendation product as an example, the "tomato", "variety classification" and "cooking method" in the page are page index information of the target page data; the nutritive value description words of the tomatoes in the page are attribute information of page index information tomatoes, the matching graph of the variety classification is attribute information of the page index information varieties classification, and the video and hyperlink of the cooking method are attribute information of the page index information cooking method.
S203, configuring the tree structure of the target page based on the page index information and the attribute information of the page index information.
Specifically, the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
in this embodiment of the present specification, configuring a tree structure of the target page based on the page index information and the attribute information of the page index information may include:
1) and determining the association relationship among the page index information.
2) Setting the page index information as a node of a tree structure of the target page based on the incidence relation among the page index information;
3) and setting the attribute information of the page index information as the description information of the node.
Specifically, the association relationship between the page index information may include a hierarchical progressive relationship, and specifically, for example, may be a hierarchical relationship between a parent title and a child title, and a grandchild title.
In this embodiment, please refer to fig. 3, where fig. 3 is a schematic diagram of a tree structure of target page data provided in the embodiment of the present invention, based on the page index information and the attribute information of the page index information, the target page data may be configured as data of a multi-branch tree structure, the page index information is set as a node of the tree, and the attribute information of the page index information is set as description information of the node. Specifically, each node has only one parent node, and there may be multiple nodes under each node.
Referring to fig. 4, fig. 4 is a schematic diagram of a tree structure of a page data of a food information recommendation product according to an embodiment of the present invention, where "tomatoes", "variety classifications", and "cooking methods" in the page are set as nodes of a tree; the nutritional value description words of the tomatoes, the matching graph of the variety classification and the video and hyperlink of the cooking method in the page are set as description information of the corresponding nodes.
In practical application, please refer to fig. 5, fig. 5 is a schematic diagram of a data tree structure of a page of a medical information recommendation product according to an embodiment of the present invention, and specifically, "symptom and medical attention" in the diagram is a father node, "are lung cancer" in these cases? "and" seek medical attention "is the child node under the father node," cough, hemoptysis, chest pain, etc "," pulmonary nodule on CT film "and" tumor marker found by drawing blood "are the three grandchild nodes under the child node" are these cases.
Specifically, if the text under the parent node "symptom and hospitalization" describes "cough, hemoptysis, chest pain, etc., or" shadow "or" nodule "is found in the lung during physical examination, you go to the chest surgery or respiratory medicine of the regular hospital as soon as possible. "is the description information of the father node; the matching graph information above the "cough, hemoptysis, chest pain and the like" of the grandchild node is description information of the grandchild node, the matching graph information above the "pulmonary nodule on the CT film" of the grandchild node is description information of the grandchild node, the matching graph information above the "tumor marker by drawing blood" of the grandchild node is description information of the grandchild node, and the hyperlink of the related article under the "doctor attack and conquer" of the child node is description information of the child node.
Therefore, the data of the plurality of target pages have similar structures, the page structure is clear in hierarchy, a user can conveniently and quickly obtain required information, and development and reuse of the style template are facilitated.
S205, generating a node module of the target page based on at least one node of the tree structure and the description information of the at least one node.
Specifically, the node module may include description information of at least one node and its corresponding node.
In practical applications, specifically, for example, the medical information recommendation product is used, as shown in fig. 6, the node module a in the figure includes "symptom and medical visit" of a parent node and description information "if there are symptoms such as cough, hemoptysis, chest pain, etc. or" shadow "or" nodule "in the lung is found during physical examination, and you are asked to go to the chest surgery or respiratory medicine visit of a regular hospital as soon as possible. "; the node module b comprises a grandchild node 'cough, hemoptysis, chest pain and the like' and map matching information above the grandchild node, a grandchild node 'pulmonary nodule on a CT (computed tomography) film' and map matching information above the grandchild node, a grandchild node 'tumor marker found by drawing blood' and map matching information above the grandchild node; the node module c comprises a child node of 'hospitalizing strategy' and a hyperlink of an associated article under the child node.
By generating the node module, calling of the style template is facilitated, page configuration efficiency is improved, updating is more flexible, and diversification of display is facilitated.
S207, determining the page style type corresponding to the node module of the target page.
Specifically, the determining the page style type corresponding to the node module of the target page may include:
1) determining the data type of the node and the data type of the description information of the node;
in particular, the data type may include information for identifying the data representation, and in particular, the data type may include, but is not limited to, text, pictures, audio, video, hyperlinks, and the like.
In practical applications, for example, the data type of the node and the data type of the description information of the node may include "text + picture", "text + text", "text + hyperlink", and "picture + hyperlink", etc.
2) And determining the page style type corresponding to the node module of the target page based on the data type of the node and the data type of the description information of the node.
Correspondingly, the page style types corresponding to the node module of the target page may include "text + picture", "text + text", "text + hyperlink", and "picture + hyperlink", etc.
S209, displaying the style template corresponding to the page style type in the style template library on a preset page.
In this embodiment of the specification, the style template library may include a style template having the mapping relationship and a page style type corresponding to the style template. Specifically, as shown in fig. 7, the style template library may be constructed in the following manner:
s701, acquiring a plurality of page style information.
Wherein the page style information may include:
page layout information, page color matching information, graphic information of page components and page animation effect information.
Specifically, the page layout information may include an arrangement manner of pictures, a position layout manner of nodes and description information thereof, and the like, for example, the picture layout of the page a may be in a form of n rows and n columns, and the picture layout of the page B may be in a form of n rectangular frames diverging outward from a center;
the page color matching information may include text color information, background color information, and the like;
the graph color information of the page component can comprise graph and color information of a page decoration component, graph and color information of a page navigation component and the like; in particular, in practical applications, a page often needs some components to guide a user or perform a decoration function to enrich the display content of the page, for example, decoration graphics, navigation bars, bullets, borders, table styles, guidance icons, and the like, and the page style information may include shape and color related information of these page components;
the page animation effect information may include a page dynamic effect, an interaction type animation effect, and the like, and in an actual application, specifically, for example, a change effect of a color and a shape of a component related to a page when a user moves a mouse to a certain position, a color change of the component when the user clicks a certain component, a layout of a picture played in a page in a loop, and the like may be included.
S703, generating a style template corresponding to the page style information based on each page style information;
s705, determining the page style type corresponding to each style template.
In this embodiment of the present specification, after the style template is generated, the page style type of the style template may be determined based on the style types respectively corresponding to the description information of the node and the node in the style template, corresponding to the style type of the node module.
Specifically, the page style types of the style template may include "text + picture", "text + text", "text + hyperlink", and "picture + hyperlink", and the like, corresponding to the data type of the node and the data type of the description information of the node.
Specifically, for example, in the style template, text style information corresponds to the target page node, picture style information corresponds to the description information of the target page node, and accordingly, the page style type of the style template is "text + picture"; the style template is a text style corresponding to the target page node, and is a hyperlink style corresponding to the description information of the target page node, and correspondingly, the page style type of the style template is 'text + hyperlink'.
S707, establishing a mapping relation between each style template and the corresponding page style type;
s709, constructing a style template base based on the style template with the mapping relation and the page style type corresponding to the style template.
By constructing the style template library, the style template is generated for calling, so that the reuse of the style template is facilitated, the page configuration efficiency is improved, the updating is more flexible, and the diversification of the display is realized.
S211, receiving a style template selection instruction triggered in the preset page.
S213, configuring the node module of the target page into the target page based on the style template corresponding to the style template selecting instruction.
In an embodiment of this specification, in the process of constructing the style template library, in order to distinguish the style templates in the style template library, unique identification information may be generated for each style template, so that the style templates can be distinguished from each other. In practical applications, for example, the pattern templates may be encoded in sequence, in particular, for example, in the numbers 1, 2, 3 … … in sequence.
Specifically, as shown in fig. 8, when selecting a style template for a node module, all style templates corresponding to the page style type in the style template library may be displayed on a preset page for selection based on the page style type corresponding to the node module of the target page, and one specific style template is further selected, that is, a style template selection instruction is triggered in the preset page, and a style template corresponding to the identification information may be obtained from the style template library based on the identification information of the style template in the style template selection instruction. In practical application, for example, if the page style type of the node module is "text + picture", all the style templates with the page style type of "text + picture" may be selected from the style template library and displayed on a preset interface, for example, if the identification information of the style template with the page style type of "text + picture" is 1, 3, and 5, and then the style template 3 is further selected, the generated page style selection instruction includes the identification information 3 of the style template, and the style template corresponding to the identification information 3 may be obtained from the style template library.
In this embodiment, each node module may select a different style template.
In practical applications, for example, referring to fig. 9, the configured food information recommendation product is shown in fig. 9, where fig. 9 is a schematic page diagram of the configured food information recommendation product, and a parent node "tomato" and text description below the parent node in the diagram form a node module; the child node 'variety classification' and three grandchild nodes 'common tomato', 'cherry tomato', 'plum tomato' below the child node 'variety classification' and three corresponding distribution graphs form another node module; the child node "cooking method" and its underlying associated article "these cooking minds of tomatoes, do you know? The tomato egg soup and the tomato scrambled eggs and the two corresponding related videos of the two grandchild nodes form another node module. The three node modules respectively select different style templates to complete the target page configuration.
In practical applications, for example, referring to fig. 10, the medical information recommendation product is shown, where fig. 10 is a schematic page diagram of a configured medical information recommendation product, and the style template identification information selected by the node module a is 1; the style template identification information selected by the node module b is 2; the style template identification information selected by the node module c is 3; the target page configuration is completed. The three node modules in the same page can achieve different display effects by selecting different style templates, flexibly configure the page, enrich page composition and facilitate diversified display of the page.
In this embodiment of the present specification, as shown in fig. 10, after the target page is configured, specific data of a node module a may be displayed based on a style template 1, specific data of a node module b may be displayed based on a style template 2, and specific data of a node module c may be displayed based on a style template 3, so as to display a complete configured target page.
In other embodiments, please refer to fig. 11, where fig. 11 is a schematic diagram of pages of different versions of a medical information recommendation product provided in an embodiment of the present application, and when a version is updated, the pages of different versions can select an existing style template configuration page from a style template library, and it is not necessary to write a whole page according to a page style again, so that the page configuration efficiency is improved, and the update is more flexible.
By the page configuration method provided by the specification, page data display layers can be distinct, page configuration efficiency is improved, reuse of style templates is achieved, updating is more flexible, and display diversification is achieved.
In practical application, in order to better meet the user requirements and enrich page composition, a style template library needs to be updated, and the updating method of the style template library may include:
1) and receiving a template library updating instruction.
Specifically, the template library update instruction may include updating page style information.
Specifically, the updated page style information may include updated page layout information, page color matching information, graphic information of page components, and page animation effect information.
2) And generating an updating style template corresponding to the updating page style information based on the updating page style information.
3) And determining the page style type corresponding to the updating style template.
4) And establishing a mapping relation between the updating style template and the corresponding page style type.
5) And updating the style template base based on the updating style template with the mapping relation and the page style type corresponding to the updating style template.
In the embodiment of the specification, the method enables the style template library to be updated flexibly, meets new design requirements, meanwhile, the original style template can be selected and called, page display diversification is achieved, the whole page does not need to be written again according to the page style, page configuration efficiency is improved, and updating is more flexible.
In practical application, in order to meet user requirements and update page data in time, the page configuration method when the page data needs to be updated may include:
1) and receiving a page data updating instruction of the target page.
Specifically, the page update instruction may include page update data;
specifically, the page update data may include index update information and/or attribute update information of the index information;
in this embodiment of the present specification, the index update information may include update information of part or all of page index information, and specifically, the index update information may include text modification, addition, or deletion information;
in this embodiment of the present specification, the attribute update information of the index information may include update information of part or all of the attribute information, specifically, the attribute update information of the index information may include any type of data update such as text description information, static images, dynamic images, hyperlinks, videos, and audios corresponding to the page index information, specifically, for example, an original matching diagram may be replaced by another matching diagram or text description information of a certain page index information may be changed.
2) And updating the nodes and/or the description information of the nodes in the target page based on the index updating information and/or the attribute updating information of the index information to obtain the updated node module of the target page.
In an embodiment of this specification, the node and/or the description information of the node in the target page is updated based on the index update information and/or the attribute update information of the index information, so as to obtain the updated node and the description information of the node of the target page, and further obtain an updated node module.
In this specification embodiment, updating the nodes and/or the description information of the nodes in the target page based on the index update information and/or the attribute update information of the index information may include:
(1) determining the position of a node and/or the description information of the node corresponding to the index updating information and/or the attribute updating information of the index information in a target page;
(2) and replacing the original node and/or the description information of the node with the index updating information and/or the attribute updating information of the index information.
In some embodiments, the page update data may only include index update information, for example, as shown in fig. 9 for a food information recommendation product, the position of the node corresponding to the page index information "cooking method" in the page in the target page may be determined, and the node is replaced with "tomato cookbook", and other information is maintained unchanged, that is, the updated node is obtained, so as to obtain the updated node module.
In other embodiments, the page update data may only include attribute update information of the index information, for example, as shown in fig. 9, the gourmet information recommendation product may determine the position of the matching image of the "cherry tomato" in the target page and replace it with another image, that is, the description information of the node "tomato variety" is updated; or a related article under "cooking methods" these tomatoes cook in a wonderful day, do you know? The description information of the node 'cooking method' is updated, so that the updated node module is obtained.
In other embodiments, the page update data may include both the index update information and the attribute update information of the index information, for example, as shown in fig. 9, the food information recommendation product may modify "tomato" in the target page to "spinach", and modify the related node and the corresponding description information below to related information of spinach, at this time, the original page is updated to a brand new page related to the topic "spinach".
3) And configuring the node module after the target page is updated into an updated target page based on the style template corresponding to the style template selection instruction.
Specifically, after the updated node module is obtained by obtaining the updated node and the description information of the node of the target page, the updated node module of the target page may be configured to be the updated target page based on the style template selected by the original node module. By the method, the problem of target page data can be modified in time, the latest information can be flexibly updated, and a better display effect can be obtained.
In practical application, in order to meet user requirements and update a page display style, a page configuration method when a page style needs to be updated may include:
1) receiving a page style updating instruction of the target page;
2) acquiring a style template corresponding to the page style updating instruction from a style template library;
3) and configuring the node module of the target page as the target page based on the style template corresponding to the page style updating instruction.
In this embodiment of the present specification, when updating the style template for the node module, all the style templates corresponding to the page style type in the style template library may be displayed on a preset page for selection based on the page style type corresponding to the node module of the target page, one style template different from the original style template is further selected, that is, a page style update instruction is triggered in the preset page, and the style template corresponding to the identification information may be acquired from the style template library based on the identification information of the style template in the page style update instruction, so as to complete style update.
In practical applications, taking the medical information recommendation product shown in fig. 10 as an example, the pattern template 2 selected by the node module b has a form of one row and three columns, as shown in fig. 12, the pattern template 1 is replaced by the pattern template 4, and the pattern arrangement format of the node module b is changed into a form diverging from the center. By the method, the display style of the node module in the page can be flexibly changed, flexible updating is realized, and a better display effect is obtained.
Besides, besides the medical and food related pages mentioned in the present specification, the page layout method can also be used for information recommendation products such as education, photography, travel, shopping, beauty, games, and sports, and will not be described in detail in this embodiment by way of example.
Corresponding to the page configuration methods provided in the foregoing embodiments, embodiments of the present invention further provide a page configuration apparatus, and since the page configuration apparatus provided in the embodiments of the present invention corresponds to the page configuration methods provided in the foregoing embodiments, the embodiments of the page configuration method are also applicable to the page configuration apparatus provided in the embodiments, and detailed description is not given in this embodiment.
Referring to fig. 13, which is a schematic structural diagram of a page allocating apparatus according to an embodiment of the present invention, as shown in fig. 13, the apparatus may include:
a page data obtaining module 1310, configured to obtain page data of a target page, where the page data includes page index information and attribute information of the page index information;
a tree structure configuration module 1320, configured to configure a tree structure of the target page based on the page index information and attribute information of the page index information, where the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
a node module generating module 1330, configured to generate a node module of the target page based on at least one node of the tree structure and description information of the at least one node;
a page style type determining module 1340, configured to determine a page style type corresponding to a node module of the target page;
a style template display module 1350, configured to display a style template corresponding to the page style type in the style template library on a preset page;
the style template selection instruction receiving module 1360 is configured to receive a style template selection instruction triggered in the preset page;
a target page configuration module 1370, configured to configure the node module of the target page as the target page based on the style template.
In an embodiment of the present invention, another page configuration apparatus is further provided, and the apparatus may further include:
the incidence relation determining module is used for determining the incidence relation among the page index information;
the node setting module is used for setting the page index information as a node of a tree structure of the target page based on the incidence relation among the page index information;
and the description information setting module is used for setting the attribute information of the page index information as the description information of the node.
In an embodiment of the present invention, another page configuration apparatus is further provided, and the apparatus may further include:
the data type determining module is used for determining the data type of the node and the data type of the description information of the node;
in an embodiment of the present invention, a device for constructing and updating a style template library is further provided, where the device may include:
the page style information acquisition module is used for acquiring a plurality of page style information, and the page style information comprises page layout information, page color matching information, graphic information of page components and page animation effect information;
the style template generating module is used for generating a style template corresponding to the page style information based on each page style information;
the first page style type determining module is used for determining the page style type corresponding to each style template;
the first mapping relation establishing module is used for establishing the mapping relation between each style template and the corresponding page style type;
the style template base building module is used for building a style template base based on the style template with the mapping relation and the page style type corresponding to the style template;
the template library updating instruction receiving module is used for receiving a style template library updating instruction, and the style template library updating instruction comprises updating page style information;
the updating style template generating module is used for generating an updating style template corresponding to the updating page style information based on the updating page style information;
the second page style type determining module is used for determining the page style type corresponding to the updating style template;
the second mapping relation establishing module is used for establishing the mapping relation between the updating style template and the corresponding page style type;
and the style template base updating module is used for updating the style template base based on the updating style template with the mapping relation and the page style type corresponding to the updating style template.
In some embodiments, when the page data needs to be updated, the page configuration apparatus may further include:
a page data update instruction receiving module, configured to receive a page data update instruction of the target page, where the page update instruction includes page update data, and the page update data includes index update information and/or attribute update information of the index information;
the page data updating module is used for updating the nodes and/or the description information of the nodes in the target page based on the index updating information and/or the attribute updating information of the index information to obtain a node module after the target page is updated;
and the page data updating and configuring module is used for configuring the node module after the target page is updated into an updated target page based on the style template corresponding to the style template selecting instruction.
In some embodiments, when a page style update is required, the page configuration apparatus may further include:
the page style updating instruction receiving module is used for receiving a page style updating instruction of the target page;
the updating style template acquisition module is used for acquiring a style template corresponding to the page style updating instruction from a style template library;
and the page style updating configuration module is used for configuring the node module of the target page into the target page based on the style template corresponding to the page style updating instruction.
The page configuration device of the embodiment of the invention generates the node module by acquiring the page data of the target page and configuring the tree structure of the target page, selects the sampling template from the pattern template library, and configures the node module of the target page into the target page based on the pattern template, so that the display level of the target page data is distinct, the user can quickly search the required information, and simultaneously the data of the pages of various versions have similar structures, thereby conveniently multiplexing the pattern template, without rewriting the whole page, improving the page configuration efficiency, and being more flexible to update.
An embodiment of the present invention provides a computer device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the page configuration method provided in the above method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and page configurations by executing the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The method embodiments provided by the embodiments of the present invention may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device, that is, the computer device may include a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the example of running on a server, fig. 14 is a hardware structure block diagram of the server of the page configuration method provided in the embodiment of the present invention. As shown in fig. 14, the server 1400 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1410 (the processor 1410 may include but is not limited to a Processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1430 for storing data, and one or more storage media 1420 (e.g., one or more mass storage devices) for storing application programs 1423 or data 1422. Memory 1430 and storage medium 1420 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1420 may include one or more modules, each of which may include a series of instruction operations on a server. Still further, a central processor 1410 may be provided in communication with the storage medium 1420 to execute a series of instruction operations in the storage medium 1420 on the server 1400. The server 1400 may also include one or more power supplies 1460, one or more wired or wireless network interfaces 1450, one or more input-output interfaces 1440, and/or one or more operating systems 1421, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The input/output interface 1440 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 1400. In one example, the i/o Interface 1440 includes a Network Interface Controller (NIC) that can be connected to other Network devices via a base station to communicate with the internet. In one example, the i/o interface 1440 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration and is not intended to limit the structure of the electronic device. For example, server 1400 may also include more or fewer components than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
Embodiments of the present invention also provide a computer-readable storage medium, which may be disposed in a server to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a page configuration method in the method embodiments, where the at least one instruction, the at least one program, the code set, or the set of instructions are loaded and executed by the processor to implement the page configuration method provided in the method embodiments.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It can be seen from the above-mentioned embodiments of the page configuration method, apparatus, computer device or storage medium provided by the present invention that, by obtaining page data of a target page, configuring a tree structure of the target page, generating a node module, selecting a sampling template from a pattern template library, and configuring the node module of the target page into the target page based on the pattern template, the target page data is clearly displayed, which provides convenience for a user to quickly search for information required by the user, and simultaneously, the data of pages of various versions have similar structures, so that the pattern templates are conveniently multiplexed, the entire page does not need to be rewritten, the page configuration efficiency is improved, the updating is more flexible, and in addition, different node modules in the same page can select different pattern templates, thereby realizing the diversified display of the page.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, device and storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
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 above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1. A page configuration method, characterized in that the method comprises:
acquiring page data of a target page, wherein the page data comprises page index information and attribute information of the page index information;
configuring a tree structure of the target page based on the page index information and attribute information of the page index information, wherein the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
a node module for generating the target page based on at least one node of the tree structure and the description information of the at least one node;
determining a page style type corresponding to a node module of the target page;
displaying a style template corresponding to the page style type in a style template library on a preset page;
receiving a style template selection instruction triggered in the preset page;
and configuring the node module of the target page into the target page based on the style template corresponding to the style template selection instruction.
2. The method of claim 1, wherein the configuring the tree structure of the target page based on the page index information and the attribute information of the page index information comprises:
determining the incidence relation among the page index information;
setting the page index information as a node of a tree structure of the target page based on the incidence relation among the page index information;
and setting the attribute information of the page index information as the description information of the node.
3. The method of claim 1, wherein determining the page style type corresponding to the node module of the target page comprises:
determining the data type of the node and the data type of the description information of the node;
and determining the page style type corresponding to the node module of the target page based on the data type of the node and the data type of the description information of the node.
4. The method of claim 1, wherein the library of style templates comprises the following constructs:
acquiring a plurality of page style information;
generating a style template corresponding to the page style information based on each page style information;
determining a page style type corresponding to each style template;
establishing a mapping relation between each style template and the corresponding page style type;
and constructing a style template library based on the style template with the mapping relation and the page style type corresponding to the style template.
5. The method of claim 1, further comprising:
receiving a page data updating instruction of the target page, wherein the page updating instruction comprises page updating data, and the page updating data comprises index updating information and/or attribute updating information of the index information;
updating the nodes and/or the description information of the nodes in the target page based on the index updating information and/or the attribute updating information of the index information to obtain a node module after the target page is updated;
and configuring the node module after the target page is updated into an updated target page based on the style template corresponding to the style template selection instruction.
6. The method of claim 1, further comprising:
receiving a page style updating instruction of the target page;
acquiring a style template corresponding to the page style updating instruction from a style template library;
and configuring the node module of the target page as the target page based on the style template corresponding to the page style updating instruction.
7. The method of claim 4, wherein the style template library comprises updates in the following manner:
receiving a style template library updating instruction, wherein the style template library updating instruction comprises updating page style information;
generating an update style template corresponding to the update page style information based on the update page style information;
determining a page style type corresponding to the updating style template;
establishing a mapping relation between the updating style template and the corresponding page style type;
and updating the style template base based on the updating style template with the mapping relation and the page style type corresponding to the updating style template.
8. The method according to claim 1, wherein the attribute information of the page index information includes at least one of:
text information, picture information, audio and video information and hyperlinks.
9. A page configuring apparatus, the apparatus comprising:
the page data acquisition module is used for acquiring page data of a target page, and the page data comprises page index information and attribute information of the page index information;
a tree structure configuration module, configured to configure a tree structure of the target page based on the page index information and attribute information of the page index information, where the page index information is a node of the tree structure, and the attribute information of the page index information is description information of the node;
the node module generating module is used for generating a node module of the target page based on at least one node of the tree structure and the description information of the at least one node;
the page style type determining module is used for determining the page style type corresponding to the node module of the target page;
the style template display module is used for displaying a style template corresponding to the page style type in the style template library on a preset page;
the style template selection instruction receiving module is used for receiving a style template selection instruction triggered in the preset page;
and the target page configuration module is used for configuring the node module of the target page into the target page based on the style template.
10. A page configuration device, characterized in that it comprises a processor and a memory in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the page configuration method according to any one of claims 1 to 8.
11. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the page configuration method according to any one of claims 1 to 8.
CN201910783827.7A 2019-08-23 2019-08-23 Page configuration method, device, equipment and storage medium Active CN112416334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910783827.7A CN112416334B (en) 2019-08-23 2019-08-23 Page configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910783827.7A CN112416334B (en) 2019-08-23 2019-08-23 Page configuration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112416334A true CN112416334A (en) 2021-02-26
CN112416334B CN112416334B (en) 2024-06-11

Family

ID=74780086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910783827.7A Active CN112416334B (en) 2019-08-23 2019-08-23 Page configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112416334B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925550A (en) * 2021-03-12 2021-06-08 中国平安财产保险股份有限公司 App interface updating method, system, device and storage medium
CN113190316A (en) * 2021-04-29 2021-07-30 北京有竹居网络技术有限公司 Interactive content generation method and device, storage medium and electronic equipment
CN114416106A (en) * 2022-03-31 2022-04-29 云账户技术(天津)有限公司 Method, system, electronic device and storage medium for updating compiling count value
CN114610307A (en) * 2022-03-22 2022-06-10 腾讯科技(深圳)有限公司 Method, device and system for generating dynamic page
CN117075992A (en) * 2023-08-09 2023-11-17 北京网聘信息技术有限公司 AppList component library design method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143654A1 (en) * 2012-11-22 2014-05-22 Institute For Information Industry Systems and methods for generating mobile app page template, and storage medium thereof
US20150169642A1 (en) * 2013-12-18 2015-06-18 Naver Corporation Method and system for making index page using content authoring tool
WO2016033639A1 (en) * 2014-09-05 2016-03-10 Jonathan Robert Burnett System, method, and graphical user interface for facilitating a search
WO2016177250A1 (en) * 2015-05-05 2016-11-10 阿里巴巴集团控股有限公司 Client page rendering method and apparatus
US9519664B1 (en) * 2013-09-20 2016-12-13 Amazon Technologies, Inc. Index structure navigation using page versions for read-only nodes
CN107958016A (en) * 2017-10-16 2018-04-24 平安科技(深圳)有限公司 Function pages method for customizing and application server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143654A1 (en) * 2012-11-22 2014-05-22 Institute For Information Industry Systems and methods for generating mobile app page template, and storage medium thereof
US9519664B1 (en) * 2013-09-20 2016-12-13 Amazon Technologies, Inc. Index structure navigation using page versions for read-only nodes
US20150169642A1 (en) * 2013-12-18 2015-06-18 Naver Corporation Method and system for making index page using content authoring tool
WO2016033639A1 (en) * 2014-09-05 2016-03-10 Jonathan Robert Burnett System, method, and graphical user interface for facilitating a search
WO2016177250A1 (en) * 2015-05-05 2016-11-10 阿里巴巴集团控股有限公司 Client page rendering method and apparatus
CN107958016A (en) * 2017-10-16 2018-04-24 平安科技(深圳)有限公司 Function pages method for customizing and application server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925550A (en) * 2021-03-12 2021-06-08 中国平安财产保险股份有限公司 App interface updating method, system, device and storage medium
CN113190316A (en) * 2021-04-29 2021-07-30 北京有竹居网络技术有限公司 Interactive content generation method and device, storage medium and electronic equipment
CN114610307A (en) * 2022-03-22 2022-06-10 腾讯科技(深圳)有限公司 Method, device and system for generating dynamic page
CN114416106A (en) * 2022-03-31 2022-04-29 云账户技术(天津)有限公司 Method, system, electronic device and storage medium for updating compiling count value
CN117075992A (en) * 2023-08-09 2023-11-17 北京网聘信息技术有限公司 AppList component library design method and device

Also Published As

Publication number Publication date
CN112416334B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
CN112416334B (en) Page configuration method, device, equipment and storage medium
Zhou et al. OmicsNet: a web-based tool for creation and visual analysis of biological networks in 3D space
Weisberg et al. Cognitive maps: Some people make them, some people struggle
Jackson et al. Agent-based modeling: A guide for social psychologists
Howes The skinscape: Reflections on the dermalogical turn
US9536445B2 (en) System and method for visually tracking a learned process
CN108694180A (en) The method, apparatus and computer system of content of pages are provided
US20140123075A1 (en) System and method for generating and accessing trails
US20140122404A1 (en) System and method for displaying a trail
CN109976632A (en) Text animation control methods and device, storage medium and processor
Nguyen-Thu Hectic slowness: digital temporalities of precarious care from a Global South perspective
Rodrigues et al. Garfield: a recommender system to personalize gamified learning
Sternberg Mountain climbing in the dark: Introduction to the special symposium on the future direction of psychological science
Elshafie Ultimate dinosaurs: Giants of gondwana. Royal ontario museum traveling exhibit
de la Rosa et al. SylvaDB: A polyglot and multi-backend graph database management system
Subali et al. Development of Banten E-heritage using virtual reality technology on mobile device
Alrehiely et al. A taxonomy for visualisations of personal physical activity data on self-tracking devices and their applications
Engler Feijoada as a concept of cultural/religious mixture
Gambs Experimental Research Methods After Critique: On the Example, Affirmative Methods, and Making Connections
Surdzial When I Remember I See Red: American Indian Art and Activism in California.
Onuki et al. Do the lung segments exist continuously from the early stage of the embryonic period as units?
Venturini et al. How to Tell Stories with Networks: Exploring the Narrative Affordances of Graphs with the Iliad
Buzea et al. Targeted Romanian Online News in a Mobile Application Using AI.
Kakurai et al. A dose-finding method based on multiple dosing in two-agent combination phase I trials
Lee Ira D. Gruber. Books and the British Army in the Age of the American Revolution. Chapel Hill: University of North Carolina Press, 2010. Pp. 344. $55.00 (cloth).

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant