Summary of the invention
The object of the embodiment of the present invention is to provide the front-end interface of merchandise news on a kind of e-commerce platform to generate method and system, be intended to solve because prior art cannot provide a kind of effective front-end interface automatic creation system, cause being difficult to realize the quick generation of otherness front-end interface and the problem of output for different attribute user.
The embodiment of the present invention is achieved in that the front-end interface generation method of merchandise news on a kind of e-commerce platform, and described method comprises the steps:
Receive user's log-on message, according to described log-on message, obtain described user's attribute information;
According to described attribute information, obtain associated merchandise news, according to described merchandise news, determine the commodity of showing to described user, and obtain the front end exhibition information of these commodity;
Commodity and the described commodity front end exhibition information of according to described attribute information, described merchandise news, described true directional user, showing generate commodity front-end interface configuration file;
According to described commodity front-end interface configuration file, inquire about pre-stored associated script file;
When inquiring pre-stored associated script file, according to described commodity front-end interface configuration file and described associated script file generated commodity front-end interface.
Another object of the embodiment of the present invention is to provide the front-end interface generation system of merchandise news on a kind of e-commerce platform, and described system comprises:
Attribute information acquiring unit, for receiving user's log-on message, obtains described user's attribute information according to described log-on message;
Commodity determining unit, for obtaining associated merchandise news according to described attribute information, determines the commodity of showing to described user according to described merchandise news, and obtains the front end exhibition information of these commodity;
Configuration file generation unit, generates commodity front-end interface configuration file for commodity and the described commodity front end exhibition information of showing according to described attribute information, described merchandise news, described true directional user;
Script file query unit, for inquiring about pre-stored associated script file according to described commodity front-end interface configuration file; And
The first interface generation unit, for when inquiring pre-stored associated script file, according to described commodity front-end interface configuration file and described associated script file generated commodity front-end interface.
The embodiment of the present invention is obtained user's attribute information according to the user login information receiving, obtain associated merchandise news, and then the commodity that really directional user shows, and obtain commodity front end exhibition information, according to attribute information, merchandise news, the commodity that really directional user shows and commodity front end exhibition information generate commodity front-end interface configuration file, according to commodity front-end interface configuration file, inquire about pre-stored associated script file, when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface, solved prior art a kind of effective front-end interface automatic generation method cannot be provided, cause being difficult to realize for different attribute user the problem of the quick generation of otherness front-end interface, thereby simplified the generation of otherness front-end interface, having realized the quick generation of commodity front-end interface and the differentiation of commodity shows.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
embodiment mono-:
Fig. 1 shows the realization flow of the front-end interface generation method of merchandise news on the e-commerce platform that the embodiment of the present invention one provides, and details are as follows:
In step S101, receive user's log-on message, according to log-on message, obtain user's attribute information.
In embodiments of the present invention, user's log-on message comprises user ID, user's access entrance identification information or login position etc., or the combination in any of such information.Wherein, user's access entrance sign can be station address sign (for example, IP address, domain name etc.), client identification etc.For example, for single-node login system, user uses same account to login from different system or website, and now user's access entrance sign is the sign of the system that user logins for the first time.After receiving user's log-on message, according to this log-on message, obtain user's attribute information, wherein, user's attribute information can comprise identity grade (for example, domestic consumer, VIP user) information, active degree, total mark of consumption of user etc.
In step S102, according to attribute information, obtain associated merchandise news, the commodity of showing according to the true directional user of merchandise news, and obtain the front end exhibition information of commodity.
In embodiments of the present invention, merchandise news comprises the information such as the commodity place of production, classification, hotel owner location, commodity price, maximum-discount, front end exhibition information be commodity in the display mode of front-end interface, for example, how in front-end interface display of commodity information, advertising message etc.After getting user's attribute information, for example, according to its attribute information (, identity class information etc.), obtaining can be to the associated merchandise news of its displaying.As illustratively, for example, can obtain the merchandise discount information that can provide to user according to its identity class information, according to user's login position, can obtain producer information such as () producer locations, hotel owner of the commodity of showing to user etc.After obtaining merchandise news, in conjunction with merchandise news can be from default commodity storehouse commodity that really directional user shows, and according to merchandise news, obtain the front end exhibition information of commodity.
In step S103, according to the commodity of attribute information, merchandise news, really directional user's displaying and commodity front end exhibition information, generate commodity front-end interface configuration file.
In embodiments of the present invention, after obtaining the commodity and commodity front end exhibition information of attribute information, merchandise news, really directional user's displaying, generate commodity front-end interface configuration file.Particularly, according to the file layout of configuration file, the commodity that attribute information, merchandise news, true directional user are shown and commodity front end exhibition information are as the component of configuration file, the configuration file of generating structured.Preferably, front-end interface configuration file is XML file, thereby improve the interoperability of this configuration file and extensibility etc., for example, can be using attribute information, merchandise news, the commodity of true directional user's displaying and the name of the information of commodity front end exhibition information as masurium, the particular content of information is as the corresponding element value of element in configuration file, to generate XML configuration file.
In step S104, according to commodity front-end interface configuration file, inquire about pre-stored associated script file.
In embodiments of the present invention, according to the commodity front-end interface configuration file generating, inquire about pre-stored associated script file, associated script file has been realized commodity displaying in commodity front-end interface and the function (displaying, interface output effect etc.) of electric commerce client (browser, private client) such as alternately, for example, the output effect of attribute information, merchandise news, commodity that really directional user shows and commodity front end exhibition information and effect when mutual etc., the associated script file of storage is corresponding to be associated with commodity front-end interface configuration file or corresponding.
In step S105, when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface.
In embodiments of the present invention, when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface, for example, according to associated script personalization of documents export merchandise news, simplify the generative process of differentiation commodity front-end interface, thereby commodity front-end interface and customer attribute information have closely been associated together, improved the differentiation of commodity front-end interface.
embodiment bis-:
Fig. 2 shows the realization flow of the front-end interface generation method of merchandise news on the e-commerce platform that the embodiment of the present invention two provides, and details are as follows:
In step S201, receive user's log-on message, according to log-on message, obtain user's attribute information.
In embodiments of the present invention, user's log-on message comprises user ID, user's access entrance identification information or login position etc., or the combination in any of such information.Wherein, user's access entrance sign can be station address sign (for example, IP address, domain name etc.), client identification etc.For example, for single-node login system, user uses same account to login from different system or website, and now user's access entrance sign is the sign of the system that user logins for the first time.After receiving user's log-on message, according to this log-on message, obtain user's attribute information, wherein, user's attribute information can comprise identity grade (for example, domestic consumer, VIP user) information, active degree, total mark of consumption of user etc.
In step S202, according to attribute information, obtain associated merchandise news, the commodity of showing according to the true directional user of merchandise news, and obtain the front end exhibition information of commodity.
In embodiments of the present invention, merchandise news comprises the information such as the commodity place of production, classification, hotel owner location, commodity price, maximum-discount, front end exhibition information be commodity in the display mode of front-end interface, for example, how in front-end interface display of commodity information, advertising message etc.After getting user's attribute information, for example, according to its attribute information (, identity class information etc.), obtaining can be to the associated merchandise news of its displaying.As illustratively, for example, can obtain the merchandise discount information that can provide to user according to its identity class information, according to user's login position, can obtain producer information such as () producer locations, hotel owner of the commodity of showing to user etc.After obtaining merchandise news, in conjunction with merchandise news can be from default commodity storehouse commodity that really directional user shows, and according to merchandise news, obtain the front end exhibition information of commodity.
In step S203, according to the commodity of attribute information, merchandise news, really directional user's displaying and commodity front end exhibition information, generate commodity front-end interface configuration file.
In embodiments of the present invention, after obtaining the commodity and commodity front end exhibition information of attribute information, merchandise news, really directional user's displaying, generate commodity front-end interface configuration file.Preferably, front-end interface configuration file is XML file, thereby improves the interoperability of this configuration file and extensibility etc.
In step S204, according to commodity front-end interface configuration file, inquire about pre-stored associated script file.
In embodiments of the present invention, according to the commodity front-end interface configuration file generating, inquire about pre-stored associated script file, associated script file has been realized commodity displaying in commodity front-end interface and the function of electric commerce client (browser, private client) such as alternately, and the associated script file of storage is corresponding to be associated with commodity front-end interface configuration file or corresponding.
In step S205, judge whether to inquire pre-stored associated script file, be to perform step S206, otherwise execution step S207.
In step S206, when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface.
In step S207, when not inquiring pre-stored associated script file, according to commodity front-end interface configuration file, generate associated script file storage.
In embodiments of the present invention, when not inquiring pre-stored associated script file, according to commodity front-end interface configuration file, generate associated script file, perform step afterwards S206.The generation of associated script file can generate by default generation module, or by manually generating, at this not in order to limit the present invention.In order to facilitate the follow-up of associated script to reuse, realize the automatic generation of commodity front-end interface, the associated script file of generation should be stored.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
embodiment tri-:
Fig. 3 shows the structure of the front-end interface generation system of merchandise news on the e-commerce platform that the embodiment of the present invention three provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention, comprising:
Attribute information acquiring unit 31, for receiving user's log-on message, obtains described user's attribute information according to described log-on message.
Commodity determining unit 32, for obtaining associated merchandise news according to described attribute information, determines the commodity of showing to described user according to described merchandise news, and obtains the front end exhibition information of these commodity.
Configuration file generation unit 33, generates commodity front-end interface configuration file for commodity and the described commodity front end exhibition information of showing according to described attribute information, described merchandise news, described true directional user.
Script file query unit 34, for inquiring about pre-stored associated script file according to described commodity front-end interface configuration file.
The first interface generation unit 35, for when inquiring pre-stored associated script file, according to described commodity front-end interface configuration file and described associated script file generated commodity front-end interface.
In embodiments of the present invention, the embodiment of attribute information acquiring unit 31, commodity determining unit 32, configuration file generation unit 33, script file query unit 34 and the first interface generation unit 35 is identical with step corresponding in enforcement one, does not repeat them here.
embodiment tetra-:
Fig. 4 shows the structure of the front-end interface generation system of merchandise news on the e-commerce platform that the embodiment of the present invention four provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention, comprising:
Attribute information acquiring unit 41 receives user's log-on message, obtains described user's attribute information according to described log-on message.
Commodity determining unit 42 is obtained associated merchandise news according to described attribute information, determines the commodity of showing to described user according to described merchandise news, and obtains the front end exhibition information of these commodity.
Commodity and described commodity front end exhibition information that configuration file generation unit 43 is shown according to described attribute information, described merchandise news, described true directional user generate commodity front-end interface configuration file.
Script file query unit 44 is inquired about pre-stored associated script file according to described commodity front-end interface configuration file.
The first interface generation unit 45 is when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface.
Script file storage unit 46, when not inquiring pre-stored associated script file, generates associated script file storage according to commodity front-end interface configuration file.
Second contact surface generation unit 47 is according to commodity front-end interface configuration file and associated script file generated commodity front-end interface.
In embodiments of the present invention, the embodiment of attribute information acquiring unit 41, commodity determining unit 42, configuration file generation unit 43, script file query unit 44, the first interface generation unit 45, script file storage unit 46 and second contact surface generation unit 47 is identical with step corresponding in enforcement two, does not repeat them here.
The embodiment of the present invention is obtained user's attribute information according to the user login information receiving, obtain associated merchandise news, and then the commodity that really directional user shows, and obtain commodity front end exhibition information, according to attribute information, merchandise news, the commodity that really directional user shows and commodity front end exhibition information generate commodity front-end interface configuration file, according to commodity front-end interface configuration file, inquire about pre-stored associated script file, when inquiring pre-stored associated script file, according to commodity front-end interface configuration file and associated script file generated commodity front-end interface, simplified the generation of otherness front-end interface, having realized the quick generation of commodity front-end interface and the differentiation of commodity shows, simultaneously, when not inquiring pre-stored associated script file, according to commodity front-end interface configuration file, generate associated script file storage, to facilitate reusing of associated script, realize the automatic generation of commodity front-end interface.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.