CN113988009A - Information delivery area generation method, information delivery method, electronic device and storage medium - Google Patents
Information delivery area generation method, information delivery method, electronic device and storage medium Download PDFInfo
- Publication number
- CN113988009A CN113988009A CN202111275230.5A CN202111275230A CN113988009A CN 113988009 A CN113988009 A CN 113988009A CN 202111275230 A CN202111275230 A CN 202111275230A CN 113988009 A CN113988009 A CN 113988009A
- Authority
- CN
- China
- Prior art keywords
- information
- information delivery
- style
- configuration data
- standard
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0277—Online advertisement
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Accounting & Taxation (AREA)
- Entrepreneurship & Innovation (AREA)
- General Business, Economics & Management (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an information delivery area generation method, an information delivery method, electronic equipment and a computer readable storage medium, and relates to the technical field of computers. One embodiment of the present invention comprises: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area. The embodiment of the invention can reduce repeated development work, reduce the complexity of generating the information release area and releasing information, improve the information release display efficiency, obviously shorten the development period, flexibly modify the attribute field of the standard style component, respond to the requirement change in time and facilitate later maintenance.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an information delivery area generation method, an information delivery method, an electronic device, and a storage medium.
Background
With the development of internet technology and diversification of network media, information can be outwardly spread and inwardly acquired in various ways, wherein advertisement is one of the most extensive means for information spreading and publicizing. When information such as advertisements are put in a webpage or social application media, engineers are required to write corresponding codes for each advertisement, the codes define the style, rendering mode and the like of the advertisements, and a large amount of repeated work exists. During the advertisement putting period, the advertisement style needs to be continuously optimized, and a new advertisement style is continuously pushed out, which is helpful for attracting the attention of users. If the advertisement is propagated through the Internet media, the advertisement style is continuously updated, and the click viewing rate of the user on the advertisement can be improved. However, the above method can produce a large amount of repetitive labor, has low working efficiency, and needs to be modified in sequence by manpower during later maintenance and advertisement updating, so that the updating efficiency is low, errors are easy to occur, and the method is not beneficial to later maintenance.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present invention provide an information delivery area generation method, an information delivery method, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides an information delivery area generation method, including: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area.
In an optional embodiment, acquiring the corresponding style configuration data according to the information delivery trigger event includes: analyzing the information release trigger event, and acquiring the page information of the current page where the information release trigger event is located; and acquiring corresponding style configuration data according to the page information of the current page.
In an optional embodiment, the obtaining, according to the page information of the current page, corresponding style configuration data includes: analyzing the page information of the current page, and determining chapter information and/or information delivery position of the current page; and acquiring corresponding style configuration data according to the chapter information and/or the information delivery position of the current page.
In an optional embodiment, the method further comprises: receiving a style updating instruction, wherein the style updating instruction comprises an updating condition and an updating item; screening an information delivery area to be updated meeting the updating condition according to the updating condition; and updating the presentation style of the information delivery area to be updated in batch according to the updating item.
In an alternative embodiment, the standard style component includes an ID attribute field; the update condition includes ID information;
filling the style configuration data into the attribute field corresponding to the standard style component comprises: determining the ID of the information release area to be generated according to the chapter information and/or the information release position of the current page; filling the ID of the information release area to be generated into an ID attribute field of the standard style component;
according to the updating condition, screening the information delivery area to be updated which meets the updating condition comprises the following steps: and screening the information delivery area to be updated meeting the updating condition according to the ID information in the updating condition.
In an alternative embodiment, the standard style component includes multiple types of subcomponents;
in the event that an information placement trigger event is detected, invoking the standard style component comprises: analyzing the information release triggering event, and determining the type of an information release area to be generated; and calling the sub-component corresponding to the type of the information release area to be generated based on the preset mapping relation between the release area type and the sub-component.
In an optional embodiment, the analyzing the information delivery triggering event, and the determining the type of the information delivery area to be generated includes: determining the type of the information delivery area to be generated according to one or more of the following items: the type of the information release triggering event, the chapter information of the current page and the information release position.
In an alternative embodiment, each of the subcomponents includes a fixed attribute field and a variable attribute field;
filling the style configuration data into the attribute field corresponding to the standard style component comprises: determining first configuration data corresponding to the variable attribute field from the style configuration data, and filling the first configuration data into the variable attribute field; and if the style configuration data comprises second configuration data corresponding to the fixed attribute field, discarding the second configuration data.
In a second aspect, an embodiment of the present invention provides an information delivery method, including: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area; acquiring resource data, wherein the resource data comprises information to be released; rendering the resource data, and delivering the information to be delivered in the information delivery area.
In an alternative embodiment, obtaining the resource data comprises: analyzing the information release trigger event, and determining the page information of the current page where the information release trigger event is located; and acquiring resource data corresponding to the page information according to the page information of the current page.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following steps: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area.
In an optional embodiment, acquiring the corresponding style configuration data according to the information delivery trigger event includes: analyzing the information release trigger event, and acquiring the page information of the current page where the information release trigger event is located; and acquiring corresponding style configuration data according to the page information of the current page.
In an optional embodiment, the obtaining, according to the page information of the current page, corresponding style configuration data includes: analyzing the page information of the current page, and determining chapter information and/or information delivery position of the current page; and acquiring corresponding style configuration data according to the chapter information and/or the information delivery position of the current page.
In an alternative embodiment, the processor is further configured to perform the steps of: receiving a style updating instruction, wherein the style updating instruction comprises an updating condition and an updating item; screening an information delivery area to be updated meeting the updating condition according to the updating condition; and updating the presentation style of the information delivery area to be updated in batch according to the updating item.
In an alternative embodiment, the standard style component includes an ID attribute field; the update condition includes ID information;
filling the style configuration data into the attribute field corresponding to the standard style component comprises: determining the ID of the information release area to be generated according to the chapter information and/or the information release position of the current page; filling the ID of the information release area to be generated into an ID attribute field of the standard style component;
according to the updating condition, screening the information delivery area to be updated which meets the updating condition comprises the following steps: and screening the information delivery area to be updated meeting the updating condition according to the ID information in the updating condition.
In an alternative embodiment, the standard style component includes multiple types of subcomponents;
in the event that an information placement trigger event is detected, invoking the standard style component comprises: analyzing the information release triggering event, and determining the type of an information release area to be generated; and calling the sub-component corresponding to the type of the information release area to be generated based on the preset mapping relation between the release area type and the sub-component.
In an optional embodiment, the analyzing the information delivery triggering event, and the determining the type of the information delivery area to be generated includes: determining the type of the information delivery area to be generated according to one or more of the following items: the type of the information release triggering event, the current chapter information and the information release position.
In an alternative embodiment, each of the subcomponents includes a fixed attribute field and a variable attribute field;
filling the style configuration data into the attribute field corresponding to the standard style component comprises: determining first configuration data corresponding to the variable attribute field from the style configuration data, and filling the first configuration data into the variable attribute field; and if the style configuration data comprises second configuration data corresponding to the fixed attribute field, discarding the second configuration data.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following steps: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area; acquiring resource data, wherein the resource data comprises information to be released; rendering the resource data, and delivering the information to be delivered in the information delivery area.
In an alternative embodiment, obtaining the resource data comprises: analyzing the information release trigger event, and determining the page information of the current page where the information release trigger event is located; and acquiring resource data corresponding to the page information according to the page information of the current page.
In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the information delivery area generating method or the information delivery method according to the embodiment of the present invention.
One or more of the above embodiments may have at least some or all of the following advantages:
the technical means that the standard style component is called and the corresponding style configuration data are obtained under the condition that the information release triggering event is detected, and then the style configuration data are filled in the attribute field corresponding to the standard style component to generate the information release area and determine the presentation style of the information release area is adopted, so that the repeated development work of the information release areas aiming at different styles is reduced, and the complexity of generating the information release area is reduced; during later maintenance, the attribute field of the standard style component can be flexibly modified, and the presentation style of the information release area can be updated in time; by acquiring the resource data, rendering and putting the resource data in the information putting area, the complexity of information putting can be reduced, the information display and transmission efficiency is improved, and the development period is obviously shortened; during later maintenance, the attribute field of the standard style component can be flexibly modified, the requirement change can be responded in time, and the presentation style of the information can be quickly updated or modified; different information presentation styles can be configured through different style configuration data, and flexibility and individuation are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the related art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart schematically illustrating main steps of an information delivery area generation method according to an embodiment of the present invention;
fig. 2 is a flow chart schematically illustrating the main steps of an information delivery method according to an embodiment of the present invention;
fig. 3 is a flowchart schematically showing the main steps of an information delivery area generation method according to another embodiment of the present invention;
fig. 4 is a flowchart schematically showing the main steps of an information delivery area generation method according to still another embodiment of the present invention;
fig. 5 schematically shows a structural diagram of an electronic device provided by an embodiment of the invention;
fig. 6 schematically shows a system architecture of an information delivery method applicable to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The embodiment of the invention provides an information delivery area generation method, an information delivery method, electronic equipment and a computer readable storage medium. In the embodiment of the invention, the information delivery area refers to an information and content display area, such as an advertisement space. The information can be put in the webpage through the information putting area, and can also be put in various application software, such as shopping application, reading application and good sharing application. The information displayed in the information delivery area may include, but is not limited to, advertisement information, announcement information, and the like in the form of text, pictures, video, audio, and the like. The information delivery area generation method summarizes and summarizes the commonalities of the presentation styles of the information delivery area, abstracts the commonalities of the information delivery area into a universal standard style component, and takes the commonalities of the presentation styles of the information delivery area as the attributes of the universal standard style component. The universal standard style component is directly called when information needs to be presented, and diversification and individuation of the information delivery area are realized through custom setting of attributes in the standard style component, so that diversification and individuation of information presentation are realized, a large number of codes do not need to be written, repeated development work is reduced, complexity of information delivery is reduced, workload is effectively reduced, and development period is shortened. And moreover, the method is convenient for later maintenance, and when the style presented by the information needs to be updated in batch, the method can be realized by modifying, adding or deleting the attributes corresponding to the standard style components, codes do not need to be modified one by one, the requirement change is responded in time, and the risk of errors is reduced. As a specific example, when the information is advertisement information, summarizing the commonalities of the general advertisement presentation styles, abstracting the style information of the commonalities in advertisement presentation to a general standard advertisement component, and then directly calling the standard advertisement component in various application programs or in any places of the application programs where the advertisements need to be presented to users, so as to realize the advertisement delivery presentation, and when the advertisement styles need to be updated in batches, modifying, deleting or adding the attributes of the standard advertisement component.
An information delivery area generation method and an information delivery method according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram schematically illustrating main steps of an information delivery area generation method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S101: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
step S102: acquiring corresponding style configuration data according to the information delivery trigger event;
step S103: and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area.
The information in the embodiment of the present invention may include, but is not limited to, advertisement information, announcement information, and the like in the form of text, pictures, video, audio, and the like. For step S101, the information delivery trigger event may be, for example, an advertisement delivery trigger event, and the trigger event may be a page turning operation of the user on the application program or the web page, or an operation of starting the application program or opening the web page. The information delivery trigger event may be customized according to an application scenario, and the present invention is not limited herein. In this embodiment, a detection program may be set in a webpage or an application program that needs to deliver information in advance, and the detection program monitors whether a user performs certain specific operations in real time, so as to detect whether an information delivery triggering event occurs. After detecting that the user performs certain specific operations, namely detecting an information release trigger event, the standard style component is called in response to the information release trigger event. The standard style component defines the style of the information release presentation and comprises a plurality of attribute fields, wherein the attribute fields are the style parameters required to be set when the information release presentation is presented. Illustratively, the standard style component may include, but is not limited to, one or more of the following attribute fields: the position (coordinates) of the information release area, the size of the information release area, the color of information display, background color, day and night mode, ID, dynamic effect, rotating chain and information release duration. The information release area daytime night mode is set for enabling users to have better information experience when watching information release area display, and the presentation style of the information release area in the daytime or at night can be made to be suitable for the current environment. The dynamic effect defines the dynamic display effect of the information, and the turn-link defines the page link to which the user jumps when clicking on the displayed information.
For step S102, the style configuration data may be preset. The style configuration data defines the style of the information presentation, and each item in the style configuration data corresponds to a property field in the standard style component, for example, the style configuration data includes but is not limited to: the position of the information delivery area: the page bottom or coordinates (x, y), the information drop zone size 6cm x 4cm, the background color white (or the background color may be defined by RGB values). In this example, dynamic effects and hyperlinks are missing from the style configuration data, both of which may be presented by default when presenting information.
In this embodiment, the information delivery triggering event may occur in each function module or each page of the application program, and the information presented in different function modules or different pages may be different. Therefore, it is necessary to acquire corresponding style configuration data according to the currently detected information delivery trigger event. Furthermore, the embodiment of the invention can acquire the page information of the current page where the information delivery trigger event is located by analyzing the information delivery trigger event, and then acquire the corresponding style configuration data according to the page information. More specifically, the page information of the current page includes chapter information and information delivery position of the current page. Therefore, when the corresponding style configuration data and the resource data are acquired, the style configuration data and the resource data can be acquired according to the chapter information and/or the information delivery position of the current page. For chapter information of the current page, it may be, for example, chapter 2 first part, and may also be 2.1.1. For the information drop position (i.e., information drop zone), it may be, for example, the bottom, top, upper layers, etc. of the current page. In practical applications, for example, in fast application reading, a client requests a server for a file in units of chapters, and generally, a chapter is an HTML (HyperText Markup Language) file, and the web file has some specifications of the size and position of the corresponding advertisement space in the chapter. The client side can rearrange the HTML file according to local reading configuration (font and line spacing) and segment the HTML file into a plurality of reading pages, so that a user can slide and switch different reading pages.
For step S103, each item of data in the style configuration data corresponds to an attribute in the standard style component, and the information delivery area can be obtained by filling the standard style component with the corresponding style configuration data, and the presentation style of the information delivery area can be determined.
The information release area generation method of the embodiment of the invention can directly call the universal standard style component when the information is required to be presented by the technical means of calling the standard style component and acquiring the corresponding style configuration data, filling each item of data in the style configuration data into the attribute field corresponding to the standard style component, generating the information release area and determining the presentation style of the information release area under the condition of detecting the information release trigger event, realize the diversification and individuation of the information release area by the self-defined setting of the attributes in the standard style component, avoid writing a large number of codes, reduce repeated development work, reduce the complexity of generating the information release area and releasing the information, effectively reduce the workload and shorten the development period, directly call the standard style component in various application programs or at any place of the application programs where the specific information is required to be presented to the user, the information can be put in and displayed, the information display efficiency is improved, and the information can be quickly spread. And moreover, the method is convenient for later maintenance, and when the style presented by the information needs to be updated in batch, the method can be realized by modifying, adding or deleting the attributes corresponding to the standard style components, codes do not need to be modified one by one, the requirement change is responded in time, and the risk of errors is reduced.
Fig. 2 is a flowchart illustrating main steps of an information delivery method according to an embodiment of the present invention. As shown in fig. 2, the information delivery method includes:
step S201: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
step S202: acquiring corresponding style configuration data according to the information delivery trigger event;
step S203: filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area;
step S204: acquiring resource data, wherein the resource data comprises information to be released; rendering the resource data, and delivering the information to be delivered in the information delivery area.
After the information release area is generated, resource data including information to be released can be acquired, and the resource data is rendered, so that the information to be released is displayed in the information release area. The resource data may include, but is not limited to, pictures, text, video, audio, and the like. When the resource data is acquired, the resource data corresponding to the information delivery trigger event can be acquired according to the information delivery trigger event. Specifically, the process comprises the following steps: analyzing the information release trigger event, and determining the page information of the current page where the information release trigger event is located; and acquiring resource data corresponding to the page information according to the page information of the current page. When the method of the embodiment of the invention is used for pre-configuring the resource data, the resource data can be configured in a targeted manner according to the information display scene. For example, for a reading application scenario, different information display requirements may be set according to the content of each chapter of a book, different information display requirements may also be set according to different information delivery areas, and the information display requirements may also be set in combination with the chapter content and the information delivery areas, so that different resource data are configured based on the requirements.
The information delivery method of the embodiment of the invention directly calls the standard style component and obtains corresponding style configuration data and resource data under the condition of detecting the information delivery triggering event, fills each item of data in the style configuration data into the attribute field corresponding to the standard style component, determines the presentation style of the information to be delivered, then renders the resource data, displays the information to be delivered by the presentation style, can directly call the universal standard style component when the information needs to be presented, realizes the diversification and individuation of information presentation by the self-defining setting of the attributes in the standard style component, does not need to write a large number of codes any more, reduces the repeated development work, reduces the complexity of information delivery, effectively reduces the workload and shortens the development period, and directly calls the standard style component in various application programs or any place of the application programs where the specific information needs to be displayed to a user The module can realize the information display, improves the information display efficiency and is beneficial to the quick transmission of information. And moreover, the method is convenient for later maintenance, and when the style presented by the information needs to be updated in batch, the method can be realized by modifying, adding or deleting the attributes corresponding to the standard style components, codes do not need to be modified one by one, the requirement change is responded in time, and the risk of errors is reduced.
In an alternative embodiment, the standard style component may also include an ID attribute field for uniquely identifying the information to be delivered. After analyzing the page information of the current page to obtain the chapter information and the information delivery position of the current page, the information delivery method further comprises the following steps: determining the ID of an information delivery area to be generated according to chapter information and/or an information delivery position of a current page; and filling the ID of the information delivery area to be generated into an ID attribute field of a standard style component. As a specific example, assuming that chapter information of a current page is 2.1.1, and an information placement position is a page bottom or coordinates (x, y), an information ID to be placed may be set to 2-1-1 or pb (pb indicates that the information placement position is the page bottom, pt indicates that the information placement position is the page top, and pi indicates that the information placement position is an upper layer of the page), or x-y or 2-1-1-pb.
Fig. 3 is a flowchart schematically illustrating the main steps of an information delivery area generation method according to another embodiment of the present invention. As shown in fig. 3, the method includes:
step S301: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
step S302: acquiring corresponding style configuration data according to the information delivery trigger event;
step S303: filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area;
step S304: receiving a style updating instruction, wherein the style updating instruction comprises an updating condition and an updating item;
step S305: screening an information delivery area to be updated meeting the updating condition according to the updating condition;
step S306: and updating the presentation style of the information delivery area to be updated in batch according to the updating item.
The information delivery area generation method of the embodiment of the invention can also modify the presentation style of the information delivery area in batches after the information delivery area is generated in batches or the information delivery is displayed on a webpage or an application program based on the generated information delivery area. Specifically, the method screens the information delivery areas to be updated which meet the updating conditions according to the updating conditions in the style updating instructions, and updates the presentation styles of the information delivery areas to be updated in batches according to the updating items in the style updating instructions. The update conditions and update items may be described by property fields in the standard style component. For example, the update condition is information that the background color is white, and the update item is information that the background color is changed to blue, or the update condition is information that the background color is R125, G108, and B150, and the update item is information that the background color is changed to R100, G108, and B180. In other alternative embodiments, the update condition may also be that the information delivery area size is 6cm × 4cm, and the update item is to modify the information delivery area size to 6cm × 5 cm.
According to the information release area generation method, the universal standard style component is directly called when information needs to be presented, diversification and individuation of the information release area are achieved through custom setting of attributes in the standard style component, a large number of codes do not need to be written, repeated development work is reduced, workload is effectively reduced, release display of the information can be achieved by directly calling the standard style component in various application programs or any place of the application programs where specific information needs to be displayed to a user, information display efficiency is improved, and rapid information transmission is facilitated. And moreover, the method is convenient for later maintenance, and when the styles presented by the information need to be updated in batch, the method can be realized by modifying, adding or deleting the attributes corresponding to the standard style components, codes do not need to be modified one by one, and the risk of errors is reduced.
Fig. 4 is a flowchart schematically showing the main steps of an information delivery area generation method according to still another embodiment of the present invention. As shown in fig. 4, the method includes:
step S401: under the condition that an information release triggering event is detected, analyzing the information release triggering event, and determining the type of an information release area to be generated;
step S402: calling a subcomponent corresponding to the type of the information release area to be generated based on a preset mapping relation between the release area type and the subcomponent; the sub-component comprises a fixed attribute field and a variable attribute field;
step S403: acquiring corresponding style configuration data according to the information delivery trigger event;
step S404: determining first configuration data corresponding to the variable attribute field from the style configuration data, filling the first configuration data into the variable attribute field, generating an information delivery area and determining a presentation style of the information delivery area;
step S405: and if the style configuration data comprises second configuration data corresponding to the fixed attribute field, discarding the second configuration data.
In the embodiment of the invention, the standard style component comprises a plurality of sub-components of different types, wherein the standard style component can be divided into the sub-components of different granularities according to multiple dimensions, and the sub-components of different types correspond to different types of release display areas. The sub-components can be flexibly set according to application scenarios when being divided, and the invention is not limited herein. For example, the information delivery area may be divided according to the information delivery position, the display dynamic effect of the information delivery area, or the display duration of the information delivery area. For example, the information may be divided into different types according to the presentation position of the information delivery area, for example, the information may be divided into a bottom delivery area, an insert delivery area, and a home delivery area (a bulletin delivery area), and then the standard style component may be divided into a bottom sub-component, an insert sub-component, a home sub-component, and the like. The standard style components can also be divided into different types according to the dynamic effect of the information delivery area, such as a static sub-component for displaying the static delivery area and a dynamic sub-component for displaying the dynamic delivery area.
In an embodiment of the present invention, a subcomponent includes a fixed attribute field and a variable attribute field. The value of the fixed attribute field is fixed, invariant. The value of the variable attribute field is customizable. When data in the style configuration data preset by the user is filled in the standard style component, data corresponding to the variable attribute field in the style configuration data can be filled in the field, and the style configuration data corresponding to the fixed attribute field can be discarded. For example, if the standard style component is divided into a bottom sub-component, an insert sub-component, a top sub-component, the drop location (coordinates) and/or size fields of the bottom sub-component, the insert sub-component, the top sub-component are fixed attribute fields, and the other fields are variable attribute fields. If the standard style component is divided into static and dynamic sub-components, the dynamic effect fields of the static and dynamic sub-components are fixed attribute fields, and the other fields are variable attribute fields.
In the embodiment of the present invention, a mapping relationship between a launch area type and a sub-component may be preset, where the launch area type and the sub-component may be a one-to-one mapping relationship. The embodiment may also preset a mapping relationship between the information delivery trigger event and the type of the information delivery area, where the information delivery trigger events of different types correspond to the information delivery areas of different types. Based on the mapping relationship between the type of the delivery area and the sub-components and the mapping relationship between the type of the delivery area and the information delivery trigger event, the corresponding sub-components can be called when the information delivery trigger event is detected.
In the information delivery area generation method provided by the embodiment of the present invention, when each attribute related to the presentation style of the information delivery area needs to be set individually, the standard style component may be invoked when an information delivery trigger event is detected, and otherwise, the corresponding sub-component may be invoked.
The information delivery area generation method provided by the embodiment of the invention carries out multi-dimensional subdivision on the standard style component, and sets some attribute fields as fixed attribute fields, thereby reducing the pre-configuration work, further reducing the workload and improving the efficiency.
Fig. 5 schematically shows a system architecture of an information delivery method applicable to the embodiment of the present invention.
Referring to fig. 5, a system architecture 500 of an information rendering method applicable to the embodiment of the present invention includes: terminal devices 501, 502, 503, a network 504 and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as: e-book reading-like software/Applications (APP), shopping-like applications, short video applications, web browser applications, search-like applications, news client applications, instant messaging tools, take-away-like applications, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be electronic devices having display screens and supporting at least one of playing text, pictures, videos, and the like, or the terminal devices 501, 502, 503 may also be electronic devices having display screens and supporting web browsing. For example, the electronic devices may include, but are not limited to: smart phones, tablet computers, notebook computers, desktop computers, smart watches, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing service support for application interfaces or web pages browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received request, and feed back a result obtained after the data processing (e.g., target information including information to be recommended generated according to a recommendation request of a user) to the terminal device. It should be noted that the information delivery area generation method and the information delivery method provided by the embodiment of the present invention may be generally executed by the server 505. The information delivery area generation method and the information delivery method provided by the embodiment of the present invention may also be executed by a server or a server cluster that is different from the server 505 and can communicate with the terminal devices 501, 502, 503 and/or the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 6 schematically shows a block diagram of an electronic device provided in an embodiment of the present invention.
Referring to fig. 6, an electronic device 600 according to an embodiment of the present invention includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604; a memory 603 for storing at least one executable instruction; the processor 601 is configured to implement the information delivery area generating method and the information delivery method as described above when executing the executable instructions stored in the memory.
Specifically, when the information delivery area generating method is implemented, the executable instructions cause the processor to perform the following steps: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area. When the information delivery method is implemented, the executable instructions cause the processor to perform the following steps: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area; acquiring resource data, wherein the resource data comprises information to be displayed, rendering the resource data, and releasing the information to be released in the information release area. The detailed implementation process of each step, the information delivery area generation method, and the further steps included in the information delivery method may refer to the description of the first embodiment, and are not described herein again. The electronic device of this embodiment may be: the server providing the data service for the terminal device installed with the application software may also be the terminal device installed with the application software. The application software may be one or more of the following software: e-book reading class software (e.g., e-book reading app or browser), short video software, search software, take-away software, and the like.
The memory 603 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable and programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 603 has a memory space for program code for performing any of the method steps of the above-described method. For example, the memory space for the program code may comprise respective program codes for implementing respective steps in the above method, respectively. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such computer program products are typically portable or fixed storage units. The storage unit may have a storage section or a storage space or the like arranged similarly to the memory 603 in the electronic device described above. The program code may be compressed, for example, in a suitable form. Typically, the memory unit comprises a program for performing the steps of the method according to an embodiment of the invention, i.e. a code readable by a processor, such as 601 for example, which code, when executed by an electronic device, causes the electronic device to perform the steps of the method described above.
The embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, which when executed by a processor implements: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area. In an alternative embodiment, the computer readable storage medium has a computer program stored thereon, which when executed by a processor implements: under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields; acquiring corresponding style configuration data according to the information delivery trigger event; filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area; rendering the resource data, and delivering the information to be delivered in the information delivery area.
The computer-readable storage medium may be contained in the apparatus/device described in the above embodiments; or may be present alone without being assembled into the device/apparatus. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the present invention.
According to embodiments of the present invention, the computer readable storage medium may be a non-volatile computer readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above-described solutions provided by the embodiments of the present invention may be implemented in hardware, in software modules running on one or more processors, or in a combination of them, in whole or in part. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an electronic device according to embodiments of the present invention. Embodiments of the invention may also be implemented as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Programs that implement embodiments of the present invention may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It is noted that, herein, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or step from another entity or step without necessarily requiring or implying any actual such relationship or order between such entities or steps. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. An information delivery area generation method, comprising:
under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
acquiring corresponding style configuration data according to the information delivery trigger event;
and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area.
2. The method of claim 1, wherein obtaining corresponding style configuration data according to the information delivery trigger event comprises:
analyzing the information release trigger event, and acquiring the page information of the current page where the information release trigger event is located;
and acquiring corresponding style configuration data according to the page information of the current page.
3. The method of claim 2, wherein obtaining corresponding style configuration data according to the page information of the current page comprises:
analyzing the page information of the current page, and determining chapter information and/or information delivery position of the current page;
and acquiring corresponding style configuration data according to the chapter information and/or the information delivery position of the current page.
4. The method of claim 3, further comprising:
receiving a style updating instruction, wherein the style updating instruction comprises an updating condition and an updating item;
screening an information delivery area to be updated meeting the updating condition according to the updating condition;
and updating the presentation style of the information delivery area to be updated in batch according to the updating item.
5. The method of claim 4, wherein the standard style component comprises an ID attribute field; the update condition includes ID information;
filling the style configuration data into the attribute field corresponding to the standard style component comprises: determining the ID of the information release area to be generated according to the chapter information and/or the information release position of the current page; filling the ID of the information release area to be generated into an ID attribute field of the standard style component;
according to the updating condition, screening the information delivery area to be updated which meets the updating condition comprises the following steps: and screening the information delivery area to be updated meeting the updating condition according to the ID information in the updating condition.
6. The method of claim 3, wherein the standard style component comprises a plurality of types of subcomponents;
in the event that an information placement trigger event is detected, invoking the standard style component comprises:
analyzing the information release triggering event, and determining the type of an information release area to be generated;
and calling the sub-component corresponding to the type of the information release area to be generated based on the preset mapping relation between the release area type and the sub-component.
7. An information delivery method, comprising:
under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
acquiring corresponding style configuration data according to the information delivery trigger event;
filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area;
acquiring resource data, wherein the resource data comprises information to be released; rendering the resource data, and delivering the information to be delivered in the information delivery area.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following steps:
under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
acquiring corresponding style configuration data according to the information delivery trigger event;
and filling the style configuration data into the attribute field corresponding to the standard style component, generating an information delivery area and determining the presentation style of the information delivery area.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following steps:
under the condition that an information delivery triggering event is detected, calling a standard style component, wherein the standard style component comprises a plurality of attribute fields;
acquiring corresponding style configuration data according to the information delivery trigger event;
filling the style configuration data into an attribute field corresponding to the standard style component, generating an information delivery area and determining a presentation style of the information delivery area;
acquiring resource data, wherein the resource data comprises information to be released; rendering the resource data, and delivering the information to be delivered in the information delivery area.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1-6 or claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111275230.5A CN113988009A (en) | 2021-10-29 | 2021-10-29 | Information delivery area generation method, information delivery method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111275230.5A CN113988009A (en) | 2021-10-29 | 2021-10-29 | Information delivery area generation method, information delivery method, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113988009A true CN113988009A (en) | 2022-01-28 |
Family
ID=79744713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111275230.5A Pending CN113988009A (en) | 2021-10-29 | 2021-10-29 | Information delivery area generation method, information delivery method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113988009A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115098764A (en) * | 2022-05-18 | 2022-09-23 | 北京达佳互联信息技术有限公司 | Multimedia processing method, device, electronic equipment and storage medium |
-
2021
- 2021-10-29 CN CN202111275230.5A patent/CN113988009A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115098764A (en) * | 2022-05-18 | 2022-09-23 | 北京达佳互联信息技术有限公司 | Multimedia processing method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11314568B2 (en) | Message processing method and apparatus, storage medium, and computer device | |
CN110708346B (en) | Information processing system and method | |
AU2020202136A1 (en) | Telecommunications call augmentation system | |
CN110244984B (en) | Application processing method, device, storage medium and computer equipment | |
US20200333930A1 (en) | Information processing method, terminal, server, and computer storage medium | |
TW201820168A (en) | User information obtaining system, method and device | |
CN111782988B (en) | Method, apparatus, computer system and storage medium for determining source of application program | |
CN115065652B (en) | Message reply method and device, storage medium and computer equipment | |
CN112947918A (en) | Data display method and device | |
US20080250001A1 (en) | Method and System for Providing Information in Virtual Space | |
CN112667237A (en) | Page generation method and device, electronic equipment and storage medium | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN108933947B (en) | Bullet screen display method and device | |
CN109753612B (en) | Questionnaire display control method and device, storage medium and electronic equipment | |
CN115130442A (en) | Report generation method and device, storage medium and computer equipment | |
CN113988009A (en) | Information delivery area generation method, information delivery method, electronic device and storage medium | |
CN112148395A (en) | Page display method, device, equipment and storage medium | |
CN103488508A (en) | Browser working method, browser and terminal equipment | |
CN113239299A (en) | Page updating method and device, electronic equipment and storage medium | |
CN106055688B (en) | Search result display method and device and mobile terminal | |
CN114756228A (en) | Page processing method, device, equipment and storage medium | |
CN110674426B (en) | Webpage behavior reporting method and device | |
CN107391132B (en) | Method, device and equipment for target App to execute preset action | |
CN111104196A (en) | Wallpaper display method and terminal equipment | |
CN105279140B (en) | Text display method, server, terminal and system |
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 |