Disclosure of Invention
The embodiment of the application aims to provide a target component generation method, a target component generation device, electronic equipment and a computer readable medium, so as to solve the problem of single application range of components. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for generating a target component, where the method includes:
selecting a module template according to preset requirements;
Selecting target attribute display information matched with the preset commodity attribute from at least one attribute display information corresponding to the component template according to the preset commodity attribute of the commodity;
Adding commodity display information in the component template, and combining the commodity display information and the target attribute display information into comprehensive display information;
And forming the component template and the comprehensive display information into a target component.
Optionally, the method further comprises:
Acquiring a plurality of generated target components;
Arranging the target components to form a display page;
And outputting the display page.
Optionally, the method further comprises:
responding to an account-free login setting instruction, and determining an account-free login mode to be used;
searching a function module corresponding to the account-free login mode in a preset database;
The functional module is added to the target component.
Optionally, the method further comprises:
Acquiring feedback data of a target commodity, wherein the target commodity is a commodity displayed in a display page containing the target component;
Analyzing the feedback data to obtain feedback information of the target commodity;
and outputting feedback information of the target commodity.
Optionally, before the obtaining the feedback data of the target commodity, the method further includes:
Identifying identification information of the target component;
and determining a target commodity according to the identification information, wherein the target commodity is a commodity in a preset display range of the target assembly, and the preset display range is one of a display range of an active page to which the target assembly belongs, a display range of the target assembly and a preset pit position in the target assembly.
Optionally, the method further comprises:
outputting the target assembly, wherein the output mode is output through a plug-in or output through an API.
In a second aspect, an embodiment of the present application provides a target component generating apparatus, including:
The first selection module is used for selecting a module template according to the service requirement;
the second selection module is used for selecting target attribute display information matched with the preset commodity attribute from at least one attribute display information corresponding to the component template according to the preset commodity attribute of the commodity;
The combination module is used for adding commodity display information in the component template and combining the commodity display information and the target attribute display information into comprehensive display information;
And the composing module is used for composing the component template and the comprehensive display information into a target component.
Optionally, the target attribute presentation information includes a plurality of attribute presentation information;
After the component templates and the comprehensive presentation information form a target component, the method further comprises:
selecting attribute display information with highest priority according to the priority arrangement sequence of the attribute display information;
And displaying attribute display information with highest priority of the commodity in the target assembly.
In a third aspect, an embodiment of the present application 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 communication with each other through the communication bus;
A memory for storing a computer program;
and a processor for implementing any of the method steps when executing the program stored on the memory.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements any of the method steps.
The embodiment of the application has the beneficial effects that:
The embodiment of the application provides a target component generating method, a processing device selects a component template according to business requirements, then selects target attribute display information matched with preset commodity attributes in at least one attribute display information corresponding to the component template according to preset commodity attributes of commodities, adds commodity display information in the component template, combines the commodity display information and the target attribute display information into comprehensive display information, and finally forms the target component by the component template and the comprehensive display information. According to the application, the modular components are determined by selecting the component templates and the target attribute display information, so that the application range is wide, different components are not required to be established for different clients, the development time is shortened, and the cost is reduced.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the application provides a target component generation method which can be applied to processing equipment and is used for generating target components with wide application range.
The following will describe a detailed description of a method for generating a target component according to an embodiment of the present application with reference to a specific implementation, as shown in fig. 1, and the specific steps are as follows:
step 101: and selecting a component template according to preset requirements.
In the embodiment of the application, the commodity display page is divided into a plurality of components, and each component comprises a plurality of commodities. Each component is preset with a template, the component template is the template designed by an interface and used for configuring commodities and commodity attributes, the components aiming at marketing are various, a technician determines service requirements first, selects an initial template, and then further selects the component template on the basis of the initial template according to functional requirements. The functional requirements include commodity arrangement, advertisement information configuration and the like. Illustratively, the goods are arranged in two rows and three columns, three rows and two columns, etc., and the advertisement information is configured to configure the advertisement information at a certain position in the page.
The initial templates may include, for example, a general shopping flow template, a coupon back price template, a campus template, a movable template, a point template, and the like.
As shown in fig. 2, fig. 2 is a schematic illustration of a3 component template. The "0-first-pay white strip pay-before-pay" of fig. 2-a belongs to a component display mode, the "household appliance exemption, excessive exemption, make-up exemption, white strip, wine drink exemption" of fig. 2-b also belongs to a component display mode, and the "time-limited stage exemption" of fig. 2-c also belongs to a component display mode.
Step 102: and selecting target attribute display information matched with the preset commodity attribute from at least one attribute display information corresponding to the component template according to the preset commodity attribute of the commodity.
In an embodiment of the application, the commodities comprise physical commodities and virtual commodities. The commodity source can be the commodity inside the platform or other platform commodity. The commodity has a plurality of commodity attributes, each commodity attribute corresponds to one attribute display information, and the commodity can have price attributes, display mode attributes, production place attributes and the like. The attribute display information corresponding to the price attribute is price display information, and may include, for example, no-go information, rebate information, and general information; the attribute display information corresponding to the playing mode attribute is playing display information, and for example, the attribute display information can comprise live broadcast information, short video display information and picture information; the attribute display information corresponding to the origin attribute is origin display information, and may include import information and domestic information, for example.
Each component template comprises at least one attribute display information, and the processing equipment selects target attribute display information matched with preset commodity attributes according to the preset commodity attributes of the commodity. Wherein each commodity may have only one financial attribute, and thus, the target attribute presentation information may include one attribute presentation information; each item may also have a plurality of financial properties, and thus, the target property presentation information may include a plurality of property presentation information.
When the target attribute display information of the commodity can comprise various attribute display information, two display modes are included.
Mode one: the commodity only displays the attribute display information with the highest priority, and the attribute display information with the highest priority is selected according to the priority arrangement sequence of the attribute display information; and displaying attribute display information with highest priority of the commodity in the target assembly.
The priority of the attribute display information is from high to low: and playing the display information, the price display information and the production place display information.
For example, a commodity has both a price attribute and a play mode attribute, so that the commodity only displays play presentation information.
Mode two: the commodity can display all the attribute display information.
For example, a commodity has both a price attribute and a play mode attribute, so that the display information corresponding to the commodity includes price display information and play display information.
In the application, if the commodity is not filtered, both the commodity with the commodity attribute and the commodity without the commodity attribute are displayed under the target component, but the commodity without the commodity attribute does not display the attribute display information matched with the commodity attribute; if the commodity attribute is filtered, only the commodity with the commodity attribute is displayed under the target component, and the commodity without the commodity attribute is hidden.
Table one shows a table of information for a portion of the attributes. In table one, the attribute presentation information includes information of interest, general information, and import information.
The display mode of the exemption information is "N-phase exemption", if the commodities are not filtered, the commodities are displayed, the commodities with the exemption attribute in the target assembly are displayed as "N-phase exemption", and other commodities without the exemption attribute do not display "N-phase exemption". If the commodity is filtered and is an X product after the filtering, only the X product is displayed, and the N-stage exemption is displayed, and other commodities are not displayed.
The display mode of the import information is ZZ area import, if the commodities are not filtered, the commodities are displayed, the commodities with the production place attribute in the target assembly are displayed as ZZ area import, and other commodities without the production place attribute are not displayed as ZZ area import. If the commodities are filtered and become Y products after the filtering, only Y products are displayed and are displayed as 'ZZ area importation', and other commodities are not displayed.
The common information is displayed in a mode that all commodities in the target component are displayed, but the attribute display information is not displayed.
List one
Step 103: and adding commodity display information in the component template, and combining the commodity display information and the target attribute display information into comprehensive display information.
In the embodiment of the application, the processing equipment adds commodity display information in the component template, wherein the commodity display information comprises commodity pictures and commodity description words. The target attribute display information can be a picture, can be a text, and can also comprise the picture and the text. The processing equipment combines the commodity display information and the target attribute display information to form comprehensive display information, specifically, combines the commodity picture and the target attribute display information in the form of a picture, combines the commodity description text and the target attribute display information in the form of a text, and combines the picture and the text together to form comprehensive display information.
It can be seen that fig. 2-c includes 6 products, and that 6 products all have information for the display of no information, but only the first and last products have information for the display of no information in the form of text, and that the other products have information for the display of no information in the form of pictures and text.
Step 104: and constructing the component template and the comprehensive display information into a target component.
After the processing equipment determines the component template and the comprehensive display information, the component template and the comprehensive display information form a target component. In the same target component, each commodity can have the same attribute display information, or can have different attribute display information.
Optionally, the method further comprises: acquiring a plurality of generated target components; arranging a plurality of target components to form a display page; and outputting the display page.
In the embodiment of the application, the processing equipment acquires the generated target components, arranges the target components, particularly can be arranged in the vertical direction, and forms a display page, and outputs the display page so that a user can see the display page.
The display page comprises various target components, so that the advertisement information configuration and the resource information configuration and the release are convenient to carry out.
In the embodiment of the application, each target assembly corresponds to one building scene, and a plurality of target assemblies are arranged in the same display page, so that the mixed building of multiple scenes can be realized, and the comprehensive data analysis is convenient.
Optionally, the processing device supports an account login mode and a no-account login mode, as shown in fig. 3, where the process of setting the no-account login mode is:
Step 301: and responding to the account-free login setting instruction, and determining an account-free login mode to be used.
In the embodiment of the application, a technician sets an account-free login on a processing device, and the processing device responds to an account-free login setting instruction to determine an account-free login mode to be used.
Step 302: and searching a functional module corresponding to the account-free login mode in a preset database.
In the embodiment of the application, the database contains the function modules corresponding to each login mode, and the processing equipment searches the function module corresponding to the account-free login mode in the database after determining the account-free login mode.
Step 303: functional modules are added to the target component.
In the embodiment of the application, after the processing equipment searches the functional module, the functional module is added into the target component, so that the target component has the function of no account login, and the use of a user is facilitated.
Optionally, the method further comprises: acquiring feedback data of a target commodity, wherein the target commodity is a commodity associated with a target component; analyzing the feedback data to obtain feedback information of the target commodity; and outputting feedback information of the target commodity.
In the embodiment of the application, the processing device first determines the target commodity, wherein the target commodity is a commodity associated with the target component, such as a commodity on a page where the target component is located, or a commodity in the target component. And then the processing equipment acquires feedback data of the target commodity and obtains feedback information of the target commodity according to the feedback data so as to determine whether the target commodity is concerned or popular. Specifically, the feedback data includes one or more of a browsing amount, a visitor amount, an order amount, a collection amount, an order amount, and a commission proportion of the target commodity. The processing device outputs feedback information of the target commodity so that a technician can know the feedback information of the target commodity and make proper adjustment, and the feedback information can be the popularity or the attention of the target commodity. For example, the target commodity is of great interest and can be placed in a location that is easily visible to the user. If the target commodity is of less interest, it may be placed in an unobtrusive position, or the target commodity may be shelved.
Optionally, the process of determining the target commodity is: identifying identification information of the target component; and determining a target commodity according to the identification information, wherein the target commodity is a commodity in a preset display range of the target component, and the preset display range is one of a display range of an active page to which the target component belongs, the display range of the target component and a preset pit position in the target component.
In the embodiment of the present application, each target component has corresponding identification information, where the identification information may be a code, and the present application is not limited to the identification information specifically.
After identifying the identification information of the target component, the processing device can determine the commodity in the preset display range. Specifically, the preset display range is one of a display range of an active page to which the target component belongs, a display range of the target component, and a preset pit in the target component. That is, the processing device may determine all of the items in the active page to which the target component belongs, or determine all of the items in the target component, or determine a certain item in the target component, or determine an item in a certain pit in the target component.
The processing device determines all of the items in the active page to which the target component belongs, and may analyze the impact of the target component in the page, including impact on page elements, order conversion, page exposure, page view, page visitor volume.
The processing device determines all of the items in the target component and analyzes the feedback data for all of the items in the target component to determine the focus of the target component. If the target component has high attention, placing important commodities in the target component; if the target component is of low interest, non-important merchandise is placed in the target component.
The processing device determines a commodity in the target component and analyzes feedback data of the commodity to determine a degree of interest of the commodity. If the commodity is high in attention, placing the commodity at a position with high attention; if the commodity is low in attention, the commodity is placed at a position where the commodity is low in attention.
The processing device determines the commodity in a certain pit in the target component, and analyzes the feedback data of the commodity in the pit, so that the attention degree of the pit can be determined. If the commodity in a certain pit is high in attention, placing an important commodity in the pit; if the commodity in the certain pit is low in attention, non-important commodities are placed in the pit.
Optionally, the method further comprises: and outputting the target component, wherein the output form comprises a page form, a component form or a data form.
In the embodiment of the application, after the processing device generates the target component, the target component is output. Specifically, the target component may be output in page form, component form, or data form. The page is output in a page form, namely the page where the target component is positioned is output integrally in a link mode, and clients do not need to change the page again, so that the page is convenient for the clients to use. The target component is output in the form of the component, so that a customer can conveniently place the plug-in of the target component on the page of the customer, selling of commodities in the target component is completed under own flow, commission is obtained, and commercialized flow is realized. The target component is output in the form of data, so that the data can be conveniently changed by a client. The data output mode is API (Application Program Interface) application program interfaces), an API interface is adopted, the output data form is unified and standard, the data conversion cost and time are reduced, and the communication is convenient. Wherein, the internal platform output can adopt JSF (JavaServer Faces) interfaces, and the external platform output can adopt gateway interfaces.
The target component in the embodiment of the application comprises a whole set of flow services, including selection, page display, ordering, logistics feedback, commission and analysis data, and is convenient for customers to use.
Based on the same technical concept, the embodiment of the application further provides a target component generating device, as shown in fig. 4, which includes:
a first selection module 401, configured to select a component template according to a preset requirement;
A second selection module 402, configured to select, according to a preset commodity attribute of a commodity, target attribute display information that matches the preset commodity attribute from at least one attribute display information corresponding to the component template;
a combination module 403, configured to add merchandise display information to the component template, and combine the merchandise display information and the target attribute display information into comprehensive display information;
a constructing module 404, configured to construct the component template and the integrated presentation information into a target component.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring the generated multiple target components;
the arrangement module is used for arranging the target components to form a display page;
And the first output module is used for outputting the display page.
Optionally, the apparatus further comprises:
The first determining module is used for determining an account-free login mode to be used in response to the account-free login setting instruction;
The searching module is used for searching a functional module corresponding to the account-free login mode in a preset database;
and the adding module is used for adding the functional module into the target component.
Optionally, the apparatus further comprises:
The second acquisition module is used for acquiring feedback data of a target commodity, wherein the target commodity is a commodity displayed in a display page containing the target component;
The analysis module is used for analyzing the feedback data to obtain feedback information of the target commodity;
And the second output module is used for outputting the feedback information of the target commodity.
Optionally, the apparatus further comprises:
the identification module is used for identifying the identification information of the target component;
And the second determining module is used for determining a target commodity according to the identification information, wherein the target commodity is a commodity in a preset display range of the target assembly, and the preset display range is one of a display range of an activity page to which the target assembly belongs, a display range of the target assembly and a preset pit in the target assembly.
Optionally, the apparatus further comprises:
and the third output module is used for outputting the target assembly, wherein the output mode is output through a plug-in unit or output through an API.
Optionally, the target attribute presentation information includes a plurality of attribute presentation information;
the apparatus further comprises:
The selecting module is used for selecting attribute display information with highest priority according to the priority arrangement sequence of the attribute display information;
And the display module is used for displaying attribute display information with highest priority of the commodity in the target assembly.
The embodiment of the application provides a target component generating method, a processing device selects a component template according to business requirements, then selects target attribute display information matched with preset commodity attributes in at least one attribute display information corresponding to the component template according to preset commodity attributes of commodities, adds commodity display information in the component template, combines the commodity display information and the target attribute display information into comprehensive display information, and finally forms the target component by the component template and the comprehensive display information. According to the application, the modular components are determined by selecting the component templates and the target attribute display information, so that the application range is wide, different components are not required to be established for different clients, the development time is shortened, and the cost is reduced.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504, where the processor 501, the communication interface 502, and the memory 503 complete communication with each other through the communication bus 504,
A memory 503 for storing a computer program;
the processor 501 is configured to execute the program stored in the memory 503.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the methods described above.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part 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. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. 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 application. Thus, the present application 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.