CN110929199A - Content display method, content display apparatus, computer device, storage medium, and program product - Google Patents

Content display method, content display apparatus, computer device, storage medium, and program product Download PDF

Info

Publication number
CN110929199A
CN110929199A CN201911236127.2A CN201911236127A CN110929199A CN 110929199 A CN110929199 A CN 110929199A CN 201911236127 A CN201911236127 A CN 201911236127A CN 110929199 A CN110929199 A CN 110929199A
Authority
CN
China
Prior art keywords
data
content
current node
logic
data carrier
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
CN201911236127.2A
Other languages
Chinese (zh)
Other versions
CN110929199B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911236127.2A priority Critical patent/CN110929199B/en
Publication of CN110929199A publication Critical patent/CN110929199A/en
Application granted granted Critical
Publication of CN110929199B publication Critical patent/CN110929199B/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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a content display method, a content display device, computer equipment, a storage medium and a program product, and belongs to the technical field of data processing. The method comprises the following steps: acquiring a data carrier corresponding to a current node and content data corresponding to the current node and related to the data carrier, wherein the data carrier comprises a content identifier and a data template; calling a target sub-logic corresponding to the content identifier from an analysis logic of a target page, wherein the target page is a page for displaying the content of the current node; parsing the data template and content data about the data carrier according to the target sub-logic; and rendering and displaying the content of the current node in the target page according to the analysis result. The method and the device can directly acquire the corresponding analysis logic to analyze according to the content identification included by the corresponding data carrier, and each node does not need to be developed independently, so that the labor input is reduced, and the development time is greatly reduced.

Description

Content display method, content display apparatus, computer device, storage medium, and program product
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a content display method, apparatus, computer device, storage medium, and program product.
Background
In some systems, in order to implement a certain function, it is usually necessary to sequentially perform multiple steps, where one step may be referred to as a node, and one page may display the content of one node or may display the content of multiple nodes. For example, in a settlement system, in order to approve a bill, multiple approval links are generally required to be sequentially performed, and at this time, the contents of multiple nodes need to be displayed. However, different nodes may correspond to different contents, and in the related art, in a development stage, the nodes may be developed separately for different contents, and when contents of a node are displayed, data of the node may be directly acquired to render and display the data. However, this will consume more manpower and increase development time.
Disclosure of Invention
The application provides a content display method, a content display device, a computer device, a storage medium and a program product, which can solve the problems that more manpower is consumed and the development time is increased in the related technology. The technical scheme is as follows:
in one aspect, a content display method is provided, and the method includes:
acquiring a data carrier corresponding to a current node and content data corresponding to the current node and related to the data carrier, wherein the data carrier comprises a content identifier and a data template;
calling a target sub-logic corresponding to the content identifier from an analysis logic of a target page, wherein the target page is a page for displaying the content of the current node;
parsing the data template and content data about the data carrier according to the target sub-logic;
and rendering and displaying the content of the current node in the target page according to the analysis result.
Optionally, the acquiring the data carrier corresponding to the current node and the content data corresponding to the current node and related to the data carrier includes:
acquiring a data carrier corresponding to the current node according to the node identifier of the current node;
acquiring a data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier;
according to the data identification, content data corresponding to the current node and relating to the data carrier is obtained.
Optionally, the current node corresponds to a plurality of data carriers;
before parsing the data template and the content data about the data carrier according to the target sub-logic, the method further includes:
obtaining a rendering order of the plurality of data carriers;
the parsing the data template and the content data about the data carrier according to the target sub-logic comprises:
and analyzing the data modules and the content data related to the corresponding data carriers included by each data carrier in turn according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identifications included by the data carriers.
Optionally, the sub-logic included in the parsing logic of the target page is determined according to a node in the target page, where content needs to be displayed.
Optionally, the parsing logic of the target page includes sub-logic corresponding to all content identifiers.
In another aspect, there is provided a content display apparatus, the apparatus including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a data carrier corresponding to a current node and content data which corresponds to the current node and is related to the data carrier, and the data carrier comprises a content identifier and a data template;
the calling module is used for calling a target sub-logic corresponding to the content identifier from the analysis logic of a target page, wherein the target page is a page for displaying the content of the current node;
the analysis module is used for analyzing the data template and the content data related to the data carrier according to the target sub-logic;
and the rendering display module is used for rendering and displaying the content of the current node in the target page according to the analysis result.
Optionally, the first obtaining module is mainly configured to:
acquiring a data carrier corresponding to the current node according to the node identifier of the current node;
acquiring a data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier;
according to the data identification, content data corresponding to the current node and relating to the data carrier is obtained.
Optionally, the current node corresponds to a plurality of data carriers;
the device further comprises:
a second obtaining module for obtaining a rendering order of the plurality of data carriers;
the analysis module is mainly used for:
and analyzing the data modules and the content data related to the corresponding data carriers included by each data carrier in turn according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identifications included by the data carriers.
Optionally, the sub-logic included in the parsing logic of the target page is determined according to a node in the target page, where content needs to be displayed.
Optionally, the parsing logic of the target page includes sub-logic corresponding to all content identifiers.
In another aspect, a computer device is provided, which includes a memory for storing a computer program and a processor for executing the computer program stored in the memory to implement the steps of the content display method described above.
In another aspect, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the content display method described above.
In another aspect, a computer program product comprising instructions is provided, which when run on a computer, causes the computer to perform the steps of the content display method described above.
The technical scheme provided by the application can at least bring the following beneficial effects:
since different nodes may correspond to different contents, however, the parsing logic of the same content is generally the same, in this embodiment of the present application, different data carriers may be set for different nodes. The data carrier can comprise a content identifier and a data template, so that corresponding analysis logic can be obtained through the content identifier included by the data carrier, and then the analysis of the data template and the content data is realized, and the content of the node is displayed in the page. That is, in the embodiment of the present application, a corresponding parsing logic may be developed for each content identifier, so that for any node, the corresponding parsing logic may be obtained to parse according to the content identifier included in the corresponding data carrier directly, and development for each node is not required separately, thereby reducing investment in manpower and greatly reducing development time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a content display method provided in an embodiment of the present application;
FIG. 2 is a flow chart of another content display method provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a content display device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before explaining the content display method provided by the embodiment of the present application in detail, an application scenario and an implementation environment provided by the embodiment of the present application are introduced.
The content display method provided by the embodiment of the application can be applied to a settlement system. In a settlement system, in order to implement approval of a bill, a plurality of approval links are generally required to be sequentially passed, different contents are often required to be displayed in different approval links, and one approval link may be referred to as a node. That is, during the approval process, the content of each node may be displayed according to the method provided in the embodiment of the present application.
The content of the node may be field description, statistical table, attachment, hyperlink, etc. In addition, the content of one node may be displayed in one page, or the content of a plurality of nodes may be displayed. When one page displays the content of one node, after the content of one node is displayed through one page, the next page can be switched to display the content of the next node. When one page displays contents of a plurality of nodes, after displaying the contents of one node in one page, the contents of the next node may continue to be displayed in the page.
Of course, the content display method provided in the embodiment of the present application may also be applied to other systems, which are not listed in the embodiment of the present application.
The content display method provided by the embodiment of the application can be applied to Computer equipment, and the Computer equipment can be any electronic product capable of performing man-machine interaction with a user through one or more modes such as a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment, for example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a palmtop Computer ppc (pocketpc), a tablet Computer, a smart car machine, a smart television, a smart sound box, and the like. In addition, those skilled in the art will appreciate that the foregoing computer apparatus is by way of example only, and that other computer apparatus, present or later developed, that may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
The content display method provided in the embodiments of the present application will be explained in detail below.
Referring to fig. 1, fig. 1 is a flowchart of a content display method according to an embodiment of the present application, in which a current node corresponds to a data carrier. The method is applied to computer equipment and comprises the following steps.
Step 101: a data carrier corresponding to the current node and content data corresponding to and relating to the current node are obtained, the data carrier comprising a content identification and a data template.
In some embodiments, the data carrier corresponding to the current node may be obtained according to the node identifier of the current node. And acquiring the data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier. From the data identification, content data corresponding to the current node and relating to the data carrier are retrieved.
As an example, content identifications of contents to be presented may be defined in advance, and a different data template may be defined for each content identification, and then a combination of the data identification and the data template may be referred to as a data carrier, so that a correspondence between the node identification and the carrier identification is stored in the database. That is, data carriers having an association relationship with each node are stored in the database. In this way, when the content of the current node needs to be displayed, the carrier identifiers corresponding to the node identifiers of the current node can be obtained from the database according to the node identifiers of the current node, and then the data carriers corresponding to the carrier identifiers, that is, the data carriers having an association relationship with the current node, are obtained. And taking the obtained data carrier as the data carrier corresponding to the current node.
When displaying the content of the current node, not only the data template corresponding to the current node needs to be acquired, but also the corresponding content data needs to be acquired. It is thus also possible to store in the database the content data of the data carriers corresponding to and relating to each node. That is, the database may store the corresponding relationship between the node identifier, the bearer identifier, and the data identifier. In this way, after the data carrier corresponding to the current node is obtained, the data identifier corresponding to the current node and related to the content data of the data carrier may be obtained from the database according to the node identifier of the current node and the carrier identifier of the data carrier, and according to the data identifiers, the content data corresponding to the current node and related to the data carrier may be obtained.
It should be noted that the current node may be any node. The node identifier of the current node is used to uniquely identify the current node, and may be, for example, the name of the current node, or the number of the current node, etc.
The content identification may include a field description identification, a statistical table identification, an attachment identification, a hyperlink identification, and the like. For example, the field description identifier may be keyvalue, the statistical table identifier may be table, the attachment identifier may be attribute, and the hyperlink identifier may be url.
The content identifier is used to indicate the category of the content that the current node needs to display, for example, if the content identifier is an attachment identifier, it may be determined that the content that the current node needs to display is an attachment. If the content identifier is a statistical table identifier, the content that the current node needs to display can be determined to be a statistical table.
The data template refers to a template of the content required to be displayed by the current node. For example, if the content that the current node needs to display is an attachment, the data template may be a template of the attachment. If the content that the current node needs to display is a statistical form, the data template may be a template of the statistical form.
The content data refers to specific content which needs to be displayed by the current node. For example, if the content that the current node needs to display is an attachment, the content data refers to the content of the attachment. If the content that the current node needs to display is a statistical table, the content data refers to the content of the statistical table.
The carrier identification is used to indicate a data carrier, and the carrier identification may be, for example, the number of the data carrier, and the like.
The data identifier is used to indicate the content data, which may be, for example, a storage location of the content data. For example, if the content that the current node needs to display is an attachment, the data identifier may be an identifier indicating the content of the attachment, and may be, for example, a storage location of the content of the attachment. If the content that the current node needs to display is a statistical table, the data identifier may be an identifier of the table content, for example, a storage location of the table content.
Step 102: and calling a target sub-logic corresponding to the content identifier included by the data carrier from the parsing logic of the target page, wherein the target page is a page for displaying the content of the current node.
In some embodiments, the sub-logic included in the parsing logic of the target page may be determined according to the nodes in the target page that need to present the content. That is, when the target page is used to display the content of one node, the parsing logic of the target page may include the sub-logic of the one node. When the target page is used to display the contents of multiple nodes, the parsing logic of the target page may include sub-logics of the multiple nodes.
In other embodiments, the parsing logic of the target page may include sub-logic corresponding to all content identifications. That is, the resolution logic for all pages is the same and includes all sub-logic.
No matter how many sub logics are included in the parsing logic of the target page, the target content in the parsing logic of the target page identifies the corresponding sub logic, and the target content identification may be a content identification included in a data carrier corresponding to a node that needs to display the content in the target page. Thus, the target sub-logic corresponding to the content identification comprised by the data carrier can be called from the parsing logic of the target page.
Because the same content identifier may correspond to the same sub-logic, and the content displayed by some nodes in the plurality of nodes may correspond to the same content identifier, according to the method provided by the embodiment of the application, the sub-logic is developed once only for the same content identifier, and development for each node is not required separately, so that development cost can be greatly reduced.
In addition, because the content of the node needs to be displayed in the page, and one page may display the content of one node, or may display the content of multiple nodes, in order to further reduce the development cost, for all pages, the parsing logic of the page may include sub-logic corresponding to all content identifications, so that the parsing logic of all pages may be basically shared.
Furthermore, according to the method provided by the embodiment of the application, when a type of content is newly added, for example, a picture is newly added, the corresponding sub-logic can be directly developed for the content identifier, so that the sub-logic is added to the parsing logic of the page, development for a node which needs to display the picture is not needed, and expansion is facilitated.
It should be noted that the parsing logic of the target page may be parsing logic written in a page frame developed by a web page such as Layui or Vue.
Step 103: the data template comprised by the data carrier and the content data relating to the data carrier are parsed in dependence on the content identification comprised by the data carrier corresponding target sub-logic.
After invoking the target sub-logic corresponding to the content identification, the data template comprised by the data carrier and the content data related to the data carrier may be parsed according to the target sub-logic to identify the content of the data template and the specific content data.
Step 104: and rendering and displaying the content of the current node in the target page according to the analysis result.
Since the target sub-logic can parse the data template and the content data, the data template can be rendered and displayed in the target page according to the parsing result, and the data template is filled with the corresponding content data. That is, the content of the current node may be rendered and displayed in the destination page.
Since different nodes may correspond to different contents, however, the parsing logic of the same content is generally the same, in this embodiment of the present application, different data carriers may be set for different nodes. The data carrier can comprise a content identifier and a data template, so that corresponding analysis logic can be obtained through the content identifier included by the data carrier, and then the analysis of the data template and the content data is realized, and the content of the node is displayed in the page. That is, in the embodiment of the present application, a corresponding parsing logic may be developed for each content identifier, so that for any node, the corresponding parsing logic may be obtained to parse according to the content identifier included in the corresponding data carrier directly, and development for each node is not required separately, thereby reducing investment in manpower and greatly reducing development time.
Referring to fig. 2, fig. 2 is a flowchart of a content display method according to an embodiment of the present application, in which a current node corresponds to a plurality of data carriers. The method is applied to computer equipment and comprises the following steps.
Step 201: a plurality of data carriers corresponding to the current node, content data corresponding to the current node and relating to each data carrier, and a rendering order of the plurality of data carriers are obtained, each data carrier comprising a content identification and a data template.
In some embodiments, the plurality of data carriers corresponding to the current node may be obtained according to the node identifier of the current node. A data identity corresponding to the current node and relating to the content data of each data carrier is obtained from the node identity of the current node and the carrier identity of each data carrier. The content data corresponding to the current node and relating to each data carrier are retrieved on the basis of the data identification of the content data relating to each data carrier.
As an example, content identifications of contents to be presented may be defined in advance, and a different data template may be defined for each content identification, and then a combination of the data identification and the data template may be referred to as a data carrier, so that a correspondence between the node identification and the carrier identification is stored in the database. That is, data carriers having an association relationship with each node are stored in the database. In this way, when the content of the current node needs to be displayed, the carrier identifiers corresponding to the node identifiers of the current node can be obtained from the database according to the node identifiers of the current node, and then the data carriers corresponding to the carrier identifiers, that is, the data carriers having an association relationship with the current node, are obtained. And taking the obtained data carrier as the data carrier corresponding to the current node.
Since the node and the data carrier are independent individuals, and one node can be associated with one or more data carriers, in this embodiment of the present application, a plurality of data carriers having an association relationship with the current node can be acquired from the database according to the node identifier of the current node. That is, one node can display various types of contents, and richer content presentation is provided for the node.
When displaying the content of the current node, not only the data template corresponding to the current node needs to be acquired, but also the corresponding content data needs to be acquired. It is thus also possible to store in the database the content data of the data carriers corresponding to and relating to each node. That is, the database may store the corresponding relationship between the node identifier, the bearer identifier, and the data identifier. Furthermore, when a plurality of data carriers are associated with a node, the rendering order of the plurality of data carriers may also be stored in a database. In this way, after the plurality of data carriers corresponding to the current node are acquired, the data identifiers corresponding to the current node and related to the content data of each data carrier can be acquired from the database according to the node identifier of the current node and the carrier identifiers of the plurality of data carriers, and according to the data identifiers, the content data corresponding to the current node and related to each data carrier can be acquired. And obtaining a rendering order of the plurality of data carriers.
It should be noted that, for the explanation of the terms such as the current node, the node identifier of the current node, the content identifier, the data template, the content data, the carrier identifier, and the data identifier, reference may be made to the content in step 201, which is not described in detail herein.
Step 202: and sequentially calling target sub-logics corresponding to the content identifications included by the data carriers from the analytic logic of the target page according to the rendering sequence of the data carriers, wherein the target page is a page for displaying the content of the current node.
In some embodiments, the sub-logic included in the parsing logic of the target page may be determined according to the nodes in the target page that need to present the content. That is, when the target page is used to display the content of one node, the parsing logic of the target page may include the sub-logic of the one node. When the target page is used to display the contents of multiple nodes, the parsing logic of the target page may include sub-logics of the multiple nodes. However, when the current node corresponds to a plurality of data carriers and the plurality of data carriers include different content identifiers, the parsing logic of the target page may include sub-logic corresponding to the content identifiers included in the plurality of data carriers corresponding to the current node.
In other embodiments, the parsing logic of the target page may include sub-logic corresponding to all content identifications. That is, the resolution logic for all pages is the same and includes all sub-logic. In this case, whether the current node corresponds to one data carrier or to a plurality of data carriers, the sub-logic corresponding to the content identification included in these data carriers is included in the resolution logic of the target page.
Therefore, in the embodiment of the present application, the target sub-logics corresponding to the content identifiers included in the plurality of data carriers one to one may be sequentially called from the parsing logic of the target page according to the rendering order of the plurality of data carriers.
It should be noted that, for other relevant explanations in step 202, reference may be made to the content in step 102, and details of this embodiment are not described herein again.
Step 203: and sequentially analyzing the data template included by each data carrier and the content data related to the corresponding data carrier according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identification included by the data carriers.
Since there is a corresponding rendering order for the plurality of data carriers, after the content identifier included in each data carrier is called in the rendering order to correspond to the target sub-logic, the data template included in each data carrier and the content data related to the corresponding data carrier may also be parsed in the rendering order to identify the content of the data template and the specific content data.
Step 204: and according to the analysis result, rendering and displaying the content of the current node in the target page according to the rendering sequence of the plurality of data carriers.
Since the target sub-logic can parse the data template and the content data, the data template can be rendered and displayed in the target page according to the parsing result and the rendering sequence of the plurality of data carriers, and the data template is filled with the corresponding content data. That is, the content of the current node can be rendered and displayed in the target page in the rendering order of the plurality of data carriers.
It should be noted that the above-mentioned contents are analyzed, rendered, and the like according to the rendering order of the plurality of data carriers, and of course, when the data carriers do not affect each other, the above-mentioned rendering order may not be implemented, for example, the analysis, rendering, and the like may be performed in a random manner.
Since different nodes may correspond to different contents, however, the parsing logic of the same content is generally the same, in this embodiment of the present application, different data carriers may be set for different nodes. The data carrier can comprise a content identifier and a data template, so that corresponding analysis logic can be obtained through the content identifier included by the data carrier, and then the analysis of the data template and the content data is realized, and the content of the node is displayed in the page. That is, in the embodiment of the present application, a corresponding parsing logic may be developed for each content identifier, so that for any node, the corresponding parsing logic may be obtained to parse according to the content identifier included in the corresponding data carrier directly, and development for each node is not required separately, thereby reducing investment in manpower and greatly reducing development time.
Fig. 3 is a schematic structural diagram of a content display apparatus provided in an embodiment of the present application, where the content display apparatus may be implemented as part or all of a computer device by software, hardware, or a combination of the two. Referring to fig. 3, the apparatus includes: a first obtaining module 301, a calling module 302, a parsing module 303 and a rendering and displaying module 304.
A first obtaining module 301, configured to obtain a data carrier corresponding to a current node and content data corresponding to the current node and related to the data carrier, where the data carrier includes a content identifier and a data template;
a calling module 302, configured to call a target sub-logic corresponding to a content identifier included in the data carrier from an analysis logic of a target page, where the target page is a page that displays content of a current node;
the parsing module 303 is configured to parse the data template and the content data related to the data carrier according to a target sub-logic corresponding to the content identifier included in the data carrier;
and the rendering display module 304 is configured to render and display the content of the current node in the target page according to the parsing result.
Optionally, the first obtaining module 301 is mainly configured to:
acquiring a data carrier corresponding to the current node according to the node identifier of the current node;
acquiring a data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier;
from the data identification, content data corresponding to the current node and relating to the data carrier are retrieved.
Optionally, the current node corresponds to a plurality of data carriers;
the device also includes:
a second obtaining module for obtaining a rendering order of the plurality of data carriers;
the parsing module 303 is mainly used for:
and analyzing the data module included by each data carrier and the content data related to the corresponding data carrier in turn according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identification included by the data carriers.
Optionally, the parsing logic of the target page includes sub-logic determined according to the node in the target page that needs to display the content.
Optionally, the parsing logic of the target page includes sub-logic corresponding to all content identifications.
Since different nodes may correspond to different contents, however, the parsing logic of the same content is generally the same, in this embodiment of the present application, different data carriers may be set for different nodes. The data carrier can comprise a content identifier and a data template, so that corresponding analysis logic can be obtained through the content identifier included by the data carrier, and then the analysis of the data template and the content data is realized, and the content of the node is displayed in the page. That is, in the embodiment of the present application, a corresponding parsing logic may be developed for each content identifier, so that for any node, the corresponding parsing logic may be obtained to parse according to the content identifier included in the corresponding data carrier directly, and development for each node is not required separately, thereby reducing investment in manpower and greatly reducing development time.
It should be noted that: in the content display device provided in the above embodiment, only the division of the functional modules is illustrated when displaying content, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the content display apparatus and the content display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 4 is a block diagram of a computer device 400 according to an embodiment of the present disclosure. The computer device 400 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture experts Group Audio Layer III, motion video experts compression standard Audio Layer 3), an MP4 player (Moving Picture experts Group Audio Layer IV, motion video experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Computer device 400 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
Generally, the computer device 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement the content display method provided by the method embodiments herein.
In some embodiments, the computer device 400 may also optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other computer devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the computer device 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the computer device 400 or in a folded design; in still other embodiments, the display screen 405 may be a flexible display screen disposed on a curved surface or on a folded surface of the computer device 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-emitting diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of a computer apparatus, and a rear camera is disposed on a rear surface of the computer apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and located at different locations on the computer device 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The Location component 408 is used to locate the current geographic Location of the computer device 400 for navigation or LBS (Location Based Service). The positioning component 408 can be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 409 is used to supply power to the various components in the computer device 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When the power source 409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the computer device 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the computer apparatus 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the computer device 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the user on the computer device 400. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 413 may be disposed on the side bezel of the computer device 400 and/or on the lower layer of the touch screen display 405. When the pressure sensor 413 is arranged on the side frame of the computer device 400, the holding signal of the user to the computer device 400 can be detected, and the processor 401 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be disposed on the front, back, or side of the computer device 400. When a physical key or vendor Logo is provided on the computer device 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
Proximity sensors 416, also known as distance sensors, are typically provided on the front panel of the computer device 400. The proximity sensor 416 is used to capture the distance between the user and the front of the computer device 400. In one embodiment, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the rest screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the computer device 400 is gradually decreased; the touch display screen 405 is controlled by the processor 401 to switch from a breath-screen state to a bright-screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the computer device 400 is gradually increasing.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of the computer device 400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In some embodiments, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, implements the steps of the content display method in the above embodiments. For example, the computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is noted that the computer-readable storage medium referred to herein may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
That is, in some embodiments, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the content display method described above.
It is to be understood that reference herein to "at least one" means one or more and "a plurality" means two or more. In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to facilitate clear description of technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
The above-mentioned embodiments are provided not to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A method for displaying content, the method comprising:
acquiring a data carrier corresponding to a current node and content data corresponding to the current node and related to the data carrier, wherein the data carrier comprises a content identifier and a data template;
calling a target sub-logic corresponding to the content identifier from an analysis logic of a target page, wherein the target page is a page for displaying the content of the current node;
parsing the data template and content data about the data carrier according to the target sub-logic;
and rendering and displaying the content of the current node in the target page according to the analysis result.
2. The method according to claim 1, wherein said obtaining the data carrier corresponding to the current node and the content data corresponding to the current node and relating to the data carrier comprises:
acquiring a data carrier corresponding to the current node according to the node identifier of the current node;
acquiring a data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier;
according to the data identification, content data corresponding to the current node and relating to the data carrier is obtained.
3. A method according to claim 1 or 2, wherein the current node corresponds to a plurality of data carriers;
before parsing the data template and the content data about the data carrier according to the target sub-logic, the method further includes:
obtaining a rendering order of the plurality of data carriers;
the parsing the data template and the content data about the data carrier according to the target sub-logic comprises:
and analyzing the data modules and the content data related to the corresponding data carriers included by each data carrier in turn according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identifications included by the data carriers.
4. The method of claim 1, wherein the parsing logic of the target page comprises sub-logic determined according to nodes in the target page that need to present content.
5. The method of claim 1, wherein the parsing logic of the target page includes sub-logic corresponding to all content identifications.
6. A content display apparatus, characterized in that the apparatus comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a data carrier corresponding to a current node and content data which corresponds to the current node and is related to the data carrier, and the data carrier comprises a content identifier and a data template;
the calling module is used for calling a target sub-logic corresponding to the content identifier from the analysis logic of a target page, wherein the target page is a page for displaying the content of the current node;
the analysis module is used for analyzing the data template and the content data related to the data carrier according to the target sub-logic;
and the rendering display module is used for rendering and displaying the content of the current node in the target page according to the analysis result.
7. The apparatus of claim 6, wherein the first obtaining module is primarily to:
acquiring a data carrier corresponding to the current node according to the node identifier of the current node;
acquiring a data identifier corresponding to the current node and related to the content data of the data carrier according to the node identifier of the current node and the carrier identifier of the data carrier;
according to the data identification, content data corresponding to the current node and relating to the data carrier is obtained.
8. The apparatus according to claim 6 or 7, wherein the current node corresponds to a plurality of data carriers;
the device further comprises:
a second obtaining module for obtaining a rendering order of the plurality of data carriers;
the analysis module is mainly used for:
and analyzing the data modules and the content data related to the corresponding data carriers included by each data carrier in turn according to the rendering sequence of the data carriers according to the target sub-logic corresponding to the content identifications included by the data carriers.
9. The apparatus of claim 6, wherein the parsing logic of the target page comprises sub-logic determined according to nodes in the target page that need to present content; or the parsing logic of the target page comprises sub-logic corresponding to all content identifications.
10. Computer device, characterized in that it comprises a memory for storing a computer program and a processor for executing the computer program stored in the memory for implementing the steps of the method according to any of the claims 1 to 5.
11. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
12. A computer program product comprising instructions for causing a computer to perform the steps of the method according to any one of claims 1 to 5 when said program product is run on the computer.
CN201911236127.2A 2019-12-05 2019-12-05 Content display method, content display device, computer apparatus, storage medium, and program product Active CN110929199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911236127.2A CN110929199B (en) 2019-12-05 2019-12-05 Content display method, content display device, computer apparatus, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911236127.2A CN110929199B (en) 2019-12-05 2019-12-05 Content display method, content display device, computer apparatus, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN110929199A true CN110929199A (en) 2020-03-27
CN110929199B CN110929199B (en) 2024-03-01

Family

ID=69857238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911236127.2A Active CN110929199B (en) 2019-12-05 2019-12-05 Content display method, content display device, computer apparatus, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN110929199B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776642A (en) * 2015-11-24 2017-05-31 阿里巴巴集团控股有限公司 A kind of method for information display and device
CN109842593A (en) * 2017-11-28 2019-06-04 中国石油天然气股份有限公司 Information acquisition method, device and computer readable storage medium
US20190197068A1 (en) * 2016-11-25 2019-06-27 Tencent Technology (Shenzhen) Company Limited Page rendering method, device, and data storage medium
CN110321177A (en) * 2019-06-18 2019-10-11 北京奇艺世纪科技有限公司 A kind of mobile application localization loading method, device and electronic equipment
CN110442822A (en) * 2019-08-02 2019-11-12 腾讯科技(深圳)有限公司 A kind of small routine content displaying method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776642A (en) * 2015-11-24 2017-05-31 阿里巴巴集团控股有限公司 A kind of method for information display and device
US20190197068A1 (en) * 2016-11-25 2019-06-27 Tencent Technology (Shenzhen) Company Limited Page rendering method, device, and data storage medium
CN109842593A (en) * 2017-11-28 2019-06-04 中国石油天然气股份有限公司 Information acquisition method, device and computer readable storage medium
CN110321177A (en) * 2019-06-18 2019-10-11 北京奇艺世纪科技有限公司 A kind of mobile application localization loading method, device and electronic equipment
CN110442822A (en) * 2019-08-02 2019-11-12 腾讯科技(深圳)有限公司 A kind of small routine content displaying method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110929199B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN108449641B (en) Method, device, computer equipment and storage medium for playing media stream
CN110308956B (en) Application interface display method and device and mobile terminal
CN111880712B (en) Page display method and device, electronic equipment and storage medium
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN109862412B (en) Method and device for video co-shooting and storage medium
CN108920606B (en) Map data processing method, map data processing device, terminal equipment and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN111104402A (en) Method, device, electronic equipment and medium for searching data
CN108734662B (en) Method and device for displaying icons
CN110705614A (en) Model training method and device, electronic equipment and storage medium
CN112749362A (en) Control creating method, device, equipment and storage medium
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN110677713A (en) Video image processing method and device and storage medium
CN107943484B (en) Method and device for executing business function
CN111666076A (en) Layer adding method, device, terminal and storage medium
CN111370096A (en) Interactive interface display method, device, equipment and storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN112612405B (en) Window display method, device, equipment and computer readable storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN112231619A (en) Conversion method, conversion device, electronic equipment and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN110929199B (en) Content display method, content display device, computer apparatus, storage medium, and program product
CN110992954A (en) Method, device, equipment and storage medium for voice recognition
CN111010732A (en) Network registration method, device, electronic equipment and medium

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