The front-end interface generation method and system of merchandise news on a kind of e-commerce platform
Technical field
The invention belongs to a kind of front-end interfaces of merchandise news in field of computer technology more particularly to e-commerce platform
Generation method and system.
Background technique
In existing e-commerce system or platform, items can be released in certain period of time or festivals or holidays most of businessmans
Preferential activity, some preferential activities are only limitted to the certain customers with certain permission, or are only limitted to the user of given area, but open up
Front-end interface now in front of the user is unified, and otherness is not strong.Therefore, it is necessary to respectively be directed to different users design it is different before
End shows interface, for example, sales promotion information, discount degree, merchandise display interface etc..However, commodity front end is shown in the prior art
Otherness it is not strong, specific aim is poor, and otherness front-end interface is realized excessively complicated, it is difficult to realize difference for different attribute user
Property front-end interface quickly generating and exporting.
Summary of the invention
The front-end interface generation side for being designed to provide merchandise news on a kind of e-commerce platform of the embodiment of the present invention
Method and system, it is intended to solve that a kind of effective front-end interface automatic creation system can not be provided due to the prior art, cause to be difficult to
Aiming at the problem that quickly generating and export of otherness front-end interface is realized different attribute user.
The embodiments of the present invention are implemented as follows, the front-end interface generation side of merchandise news on a kind of e-commerce platform
Method, the method includes the following steps:
The log-on message for receiving user, the attribute information of the user is obtained according to the log-on message;
Associated merchandise news is obtained according to the attribute information, is determined according to the merchandise news to the user and is shown
Commodity, and obtain the commodity front end show information;
Before the commodity and the commodity that are shown according to the attribute information, the merchandise news, the true directional user
End shows that information generates commodity front-end interface configuration file;
Pre-stored associated script file is inquired according to the commodity front-end interface configuration file;
When inquiring pre-stored associated script file, according to the commodity front-end interface configuration file and described
Associated script file generated commodity front-end interface.
The front-end interface that the another object of the embodiment of the present invention is to provide merchandise news on a kind of e-commerce platform is raw
At system, the system comprises:
Attribute information acquiring unit obtains the user according to the log-on message for receiving the log-on message of user
Attribute information;
Commodity determination unit, for obtaining associated merchandise news according to the attribute information, according to the merchandise news
Determine the commodity shown to the user, and the front end for obtaining the commodity shows information;
Configuration file generation unit, for being shown according to the attribute information, the merchandise news, the true directional user
Commodity and the commodity front end show information generate commodity front-end interface configuration file;
Script file query unit, for inquiring pre-stored association foot according to the commodity front-end interface configuration file
This document;And
First interface generation unit, for when inquiring pre-stored associated script file, before the commodity
Hold interface configuration file and the associated script file generated commodity front-end interface.
User login information obtains the attribute information of user to the embodiment of the present invention based on the received, obtains associated commodity letter
Breath, and then the commodity that really directional user shows, and obtain commodity front end and show information, according to attribute information, merchandise news, determination
The commodity shown to user and commodity front end show that information generates commodity front-end interface configuration file, according to commodity front-end interface
Configuration file inquires 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, solving the prior art and can not providing one kind has
The front-end interface automatic generation method of effect causes to be difficult to realize quickly generating for otherness front-end interface for different attribute user
The problem of, to simplify the generation of otherness front-end interface, realize commodity front-end interface quickly generate and commodity
Differentiation is shown.
Detailed description of the invention
Fig. 1 is the reality of the front-end interface generation method of merchandise news on the e-commerce platform of the offer of the embodiment of the present invention one
Existing flow chart;
Fig. 2 is the reality of the front-end interface generation method of merchandise news on e-commerce platform provided by Embodiment 2 of the present invention
Existing flow chart;
Fig. 3 is that the front-end interface of merchandise news on the e-commerce platform of the offer of the embodiment of the present invention three generates the knot of system
Composition;And
Fig. 4 is that the front-end interface of merchandise news on the e-commerce platform of the offer of the embodiment of the present invention four generates the knot of system
Composition.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Specific implementation of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows the front-end interface generation method of merchandise news on the e-commerce platform of the offer of the embodiment of the present invention one
Implementation process, details are as follows:
In step s101, the log-on message for receiving user obtains the attribute information of user according to log-on message.
In embodiments of the present invention, the log-on message of user includes user identifier, user's access entrance identification information or steps on
Record position etc., or any combination of information in this way.Wherein, user's access entrance mark can be station address mark (for example, IP
Address, domain name etc.), client identification etc..For example, for single-node login system, user can never homology using same account
System or website are logged in, and user's access entrance mark is the mark for the system that user logs in for the first time at this time.When receiving
After the log-on message of user, the attribute information of user is obtained according to the log-on message, wherein the attribute information of user may include
Identity grade (for example, ordinary user, VIP user) information, active degree, total mark of consumption of user etc..
In step s 102, associated merchandise news is obtained according to attribute information, according to the true directional user's exhibition of merchandise news
The commodity shown, and the front end for obtaining commodity shows information.
In embodiments of the present invention, merchandise news includes the commodity place of production, classification, hotel owner location, commodity price, maximum folding
The information such as button, front end shows that information is display mode of the commodity in front-end interface, for example, how to believe in front-end interface display of commodity
Breath, advertising information etc..After getting the attribute information of user, according to its attribute information (for example, identity class information etc.), obtain
Take the associated merchandise news that can be shown to it.As illustratively, for example, can be obtained according to its identity class information can be with
The merchandise discount information provided a user the, according to (factory, producer of the available commodity shown to user in the login position of user
Family's information such as location), hotel owner etc..After obtaining merchandise news, it can be determined from preset commodity library in conjunction with merchandise news
The commodity shown to user, and information is shown according to the front end that merchandise news obtains commodity.
In step s 103, according to attribute information, merchandise news, the commodity of true directional user displaying and the exhibition of commodity front end
Show that information generates commodity front-end interface configuration file.
In embodiments of the present invention, obtain attribute information, merchandise news, true directional user show commodity and commodity
After front end shows information, commodity front-end interface configuration file is generated.Specifically, according to the file format of configuration file, by attribute
The commodity and commodity front end that information, merchandise news, true directional user show show component of the information as configuration file,
Generate the configuration file of structuring.Preferably, front-end interface configuration file is XML file, to improve the mutual of the configuration file
Operability and scalability etc., for example, the commodity that attribute information, merchandise news, true directional user can be shown and quotient
Product front end shows the name of the information of information as masurium, corresponding element of the particular content of information as element in configuration file
Value, to generate XML configuration file.
In step S104, pre-stored associated script file is inquired according to commodity front-end interface configuration file.
In embodiments of the present invention, pre-stored associated script is inquired according to the commodity front-end interface configuration file of generation
File, associated script file realize the electric commerce clients such as merchandise display and interaction in commodity front-end interface (browser, specially
With client) function (displaying, interface output effect etc.), for example, attribute information, merchandise news, true directional user show
Effect etc. when commodity and commodity front end show output effect and the interaction of information, the associated script file of storage accordingly with
Commodity front-end interface configuration file is associated or corresponding.
In step s105, when inquiring pre-stored associated script file, text is configured according to commodity front-end interface
Part and associated script file generated commodity front-end interface.
In embodiments of the present invention, when inquiring pre-stored associated script file, matched according to commodity front-end interface
File and associated script file generated commodity front-end interface are set, for example, exporting commodity according to associated script personalization of documents
Information simplifies the generating process of differentiation commodity front-end interface, so that commodity front-end interface and customer attribute information is close
Ground is associated together, and improves the differentiation of commodity front-end interface.
Embodiment two:
Fig. 2 shows the front-end interface generation methods of merchandise news on e-commerce platform provided by Embodiment 2 of the present invention
Implementation process, details are as follows:
In step s 201, the log-on message for receiving user obtains the attribute information of user according to log-on message.
In embodiments of the present invention, the log-on message of user includes user identifier, user's access entrance identification information or steps on
Record position etc., or any combination of information in this way.Wherein, user's access entrance mark can be station address mark (for example, IP
Address, domain name etc.), client identification etc..For example, for single-node login system, user can never homology using same account
System or website are logged in, and user's access entrance mark is the mark for the system that user logs in for the first time at this time.When receiving
After the log-on message of user, the attribute information of user is obtained according to the log-on message, wherein the attribute information of user may include
Identity grade (for example, ordinary user, VIP user) information, active degree, total mark of consumption of user etc..
In step S202, associated merchandise news is obtained according to attribute information, according to the true directional user's exhibition of merchandise news
The commodity shown, and the front end for obtaining commodity shows information.
In embodiments of the present invention, merchandise news includes the commodity place of production, classification, hotel owner location, commodity price, maximum folding
The information such as button, front end shows that information is display mode of the commodity in front-end interface, for example, how to believe in front-end interface display of commodity
Breath, advertising information etc..After getting the attribute information of user, according to its attribute information (for example, identity class information etc.), obtain
Take the associated merchandise news that can be shown to it.As illustratively, for example, can be obtained according to its identity class information can be with
The merchandise discount information provided a user the, according to (factory, producer of the available commodity shown to user in the login position of user
Family's information such as location), hotel owner etc..After obtaining merchandise news, it can be determined from preset commodity library in conjunction with merchandise news
The commodity shown to user, and information is shown according to the front end that merchandise news obtains commodity.
The commodity shown in step S203 according to attribute information, merchandise news, true directional user and the exhibition of commodity front end
Show that information generates commodity front-end interface configuration file.
In embodiments of the present invention, obtain attribute information, merchandise news, true directional user show commodity and commodity
After front end shows information, commodity front-end interface configuration file is generated.Preferably, front-end interface configuration file is XML file, thus
Improve interoperability and the scalability etc. of the configuration file.
In step S204, pre-stored associated script file is inquired according to commodity front-end interface configuration file.
In embodiments of the present invention, pre-stored associated script is inquired according to the commodity front-end interface configuration file of generation
File, associated script file realize the electric commerce clients such as merchandise display and interaction in commodity front-end interface (browser, specially
With client) function, the associated script file of storage is accordingly associated or corresponding with commodity front-end interface configuration file.
In step S205, judges whether to inquire pre-stored associated script file, be to then follow the steps S206, it is no
Then follow the steps S207.
In step S206, when inquiring pre-stored associated script file, text is configured according to commodity front-end interface
Part and associated script file generated commodity front-end interface.
In step S207, when not inquiring pre-stored associated script file, configured according to commodity front-end interface
File generated associated script file simultaneously stores.
In embodiments of the present invention, when not inquiring pre-stored associated script file, according to commodity front-end interface
Configuration file generates associated script file, executes step S206 later.The generation of associated script file can be generated by default
Module is generated, or by manually being generated, herein not to limit the present invention.In order to facilitate the subsequent heavy of associated script
It is multiple to use, it realizes automatically generating for commodity front-end interface, the associated script file of generation should be stored.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a computer readable storage medium,
The storage medium, such as ROM/RAM, disk, CD.
Embodiment three:
The front-end interface that Fig. 3 shows merchandise news on the e-commerce platform of the offer of the embodiment of the present invention three generates system
Structure, for ease of description, only parts related to embodiments of the present invention are shown, including:
Attribute information acquiring unit 31 obtains the use according to the log-on message for receiving the log-on message of user
The attribute information at family.
Commodity determination unit 32 is believed for obtaining associated merchandise news according to the attribute information according to the commodity
Breath determines the commodity shown to the user, and the front end for obtaining the commodity shows information.
Configuration file generation unit 33, for according to the attribute information, the merchandise news, true directional user's exhibition
The commodity shown and the commodity front end show that information generates commodity front-end interface configuration file.
Script file query unit 34, for inquiring pre-stored association according to the commodity front-end interface configuration file
Script file.
First interface generation unit 35, for when inquiring pre-stored associated script file, according to the commodity
Front-end interface configuration file and the associated script file generated commodity front-end interface.
In embodiments of the present invention, attribute information acquiring unit 31, commodity determination unit 32, configuration file generation unit
33, the embodiment of script file query unit 34 and the first interface generation unit 35 step phase corresponding with implementation one
Together, details are not described herein.
Example IV:
The front-end interface that Fig. 4 shows merchandise news on the e-commerce platform of the offer of the embodiment of the present invention four generates system
Structure, for ease of description, only parts related to embodiments of the present invention are shown, including:
Attribute information acquiring unit 41 receives the log-on message of user, and the category of the user is obtained according to the log-on message
Property information.
Commodity determination unit 42 obtains associated merchandise news according to the attribute information, is determined according to the merchandise news
The commodity shown to the user, and the front end for obtaining the commodity shows information.
Configuration file generation unit 43 is shown according to the attribute information, the merchandise news, the true directional user
Commodity and the commodity front end show that information generates commodity front-end interface configuration file.
Script file query unit 44 inquires pre-stored associated script according to the commodity front-end interface configuration file
File.
First interface generation unit 45 is matched when inquiring pre-stored associated script file according to commodity front-end interface
Set file and associated script file generated commodity front-end interface.
Script file storage unit 46 is not when inquiring pre-stored associated script file, according to commodity front-end interface
Configuration file generates associated script file and stores.
Before second contact surface generation unit 47 is according to commodity front-end interface configuration file and associated script file generated commodity
Hold interface.
In embodiments of the present invention, attribute information acquiring unit 41, commodity determination 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 generate single
The embodiment of member 47 is identical as step corresponding in two is implemented, and details are not described herein.
User login information obtains the attribute information of user to the embodiment of the present invention based on the received, obtains associated commodity letter
Breath, and then the commodity that really directional user shows, and obtain commodity front end and show information, according to attribute information, merchandise news, determination
The commodity shown to user and commodity front end show that information generates commodity front-end interface configuration file, according to commodity front-end interface
Configuration file inquires 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, simplify the generation of otherness front-end interface,
Realize commodity front-end interface quickly generate and the differentiation of commodity is shown, meanwhile, when not inquiring pre-stored pass
When joining script file, associated script file is generated according to commodity front-end interface configuration file and is stored, to facilitate associated script
It reuses, realizes automatically generating for commodity front-end interface.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.