Invention content
To overcome the problems in correlation technique, present description provides page generation method, device and electronic equipments.
According to this specification embodiment in a first aspect, provide a kind of page generation method, the method includes:
Determine the template of the page to be generated, the template includes image-region and official documents and correspondence region;
Obtain the regional information of user;
It searches the official documents and correspondence for matching with the regional information and matching with the official documents and correspondence region in the template and searches
The image for matching and matching with the image-region in the template with the regional information;
The regional information and official documents and correspondence are filled into the official documents and correspondence region, and described image is filled to described image area
The page is generated behind domain.
In an optional realization method, the regional information for obtaining user, including:
Geographical location residing for obtaining equipment, the regional information is determined according to the geographical location;Or,
The regional information of user is obtained by the regional information input options provided in the page.
In an optional realization method, described image data obtain in the following way:
It counts in the setting time period, the network attention degree of the target object in setting area;
The image of the highest one or more target objects of network attention degree is chosen as corresponding with the regional information
Image;Wherein, the target object includes following one or more:Building, landscape, sight spot or food.
It is described to fill the regional information and official documents and correspondence into the official documents and correspondence region in an optional realization method,
And fill described image to described image region, the method further includes:
A mask is added, wherein, the regional information and official documents and correspondence are on the mask, and described image is in the illiteracy
Under layer.
In an optional realization method, the mask includes:The transparent mask of gradual change or color gradient mask.
According to the second aspect of this specification embodiment, a kind of webpage generating device is provided, described device includes:
Template determining module, is used for:Determine the template of the page to be generated, the template includes image-region and official documents and correspondence area
Domain;
Data obtaining module is used for:Obtain the regional information of user;
Searching module is used for:Search what is matched with the regional information and match with the official documents and correspondence region in the template
The image that official documents and correspondence and lookup are matched and matched with the image-region in the template with the regional information;
Module is filled, is used for:The regional information and official documents and correspondence are filled into the official documents and correspondence region, and described image is filled out
The page is generated after being charged to described image region.
In an optional realization method, the regional information for obtaining user, including:
Geographical location residing for obtaining equipment, the regional information is determined according to the geographical location;Or,
The regional information of user is obtained by the regional information input options provided in the page.
In an optional realization method, described image data obtain in the following way:
It counts in the setting time period, the network attention degree of the target object in setting area;
The image of the highest one or more target objects of network attention degree is chosen as corresponding with the regional information
Image.
It is described to fill the regional information and official documents and correspondence into the official documents and correspondence region in an optional realization method,
And fill described image to described image region, the method further includes:
A mask is added, wherein, the regional information and official documents and correspondence are on the mask, and described image is in the illiteracy
Under layer.
In an optional realization method, the mask includes:The transparent mask of gradual change or color gradient mask.
According to the third aspect of this specification embodiment, a kind of electronic equipment is provided, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Determine the template of the page to be generated, the template includes image-region and official documents and correspondence region;
Obtain the regional information of user;
It searches the official documents and correspondence for matching with the regional information and matching with the official documents and correspondence region in the template and searches
The image for matching and matching with the image-region in the template with the regional information;
The regional information and official documents and correspondence are filled into the official documents and correspondence region, and described image is filled to described image area
The page is generated behind domain.
The technical solution that the embodiment of this specification provides can include the following benefits:
In this specification, official documents and correspondence and image are distinguished by regional information, can be with for the page distinguished with region
By filling image associated with regional information and official documents and correspondence in a template, generation meets the page of region characteristic, therefore generate
The page can meet the preference in this area user, realize that the efficiently and accurately of the page is launched, so as to avoid launching the nothing of resource
Effect consumption.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not
This specification can be limited.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only merely for the purpose of description specific embodiment in the term that this specification uses, and is not intended to be limiting this explanation
Book." one kind " of used singulative, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein is
Refer to and any or all may be combined comprising one or more associated list items purposes.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not taking off
In the case of this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determining ".
With the development of network technology and universal, internet becomes the main media that people obtain and exchange information, also into
The important place launched for product information.Page provider can reserve display area that is fixed or floating on the page, by
Product side buys all or part of display area according to their needs, and product information can be shown in the display area, so as to
Product promotion is carried out for product side.
As shown in Figure 1, Fig. 1 is a kind of application of page generation method of this specification according to an exemplary embodiment
Scene graph, Fig. 1 include product side, provide Page Service service side be configured server, product exhibition is provided for product side
The electronic equipment that server, several users and each user that the service side shown is configured are held.
Wherein, product side refers to a side with product introduction demand.In general, product policy is to its required impression information
Product, be provided with corresponding product data to service side, which can include following one or more information:It should
Relevant information, product introduction data, the release time of product information page, the targeted user population of dispensing or the dispensing of product need
Ask etc..
The service side for providing Page Service refers to provide a side of Page Service, the page that service side is provided for product side
Service can usually include:Generation includes the page of product information and is launched, and so that user is in accession page, attracts
User consults.In order to which example is convenient in Fig. 1, the processing procedure of the page of product information is included for generation and launches page
The processing procedure in face all carries out example using same server.In practical application, service side can be configured one or more special
It is exclusively used in launching the server of the page in the server and configuration one or more of the generation page, is optionally realized at other
In mode, service side can also be configured multiple servers and carry out cluster processing etc..Also, service side may relate to other industry
Business, it is also possible to multiple service servers correspondingly be configured.
In practical applications, service side can be specifically intermediary sevices side, shopping platform service side or transaction platform service
Side etc..Server is configured by service side, and service side can be provided several specific by the server to registered user
Service.In Fig. 1, user A can login account on the server in advance, access server using personal device A1 and taken
Business.User B can also register the second account on the server in advance, and accessing server using personal device B1 is serviced.This
Personal device in specification embodiment can include the various terminals with network communicating function and displaying, for example, intelligence
It can mobile phone, tablet computer, notebook computer, desktop computer, television set, the computer being integrated in computer display
Or other electronics.
User accesses server using personal device, and during obtaining the service that is provided of service side, user can be
The page provided by the server is found on personal device, therefore, user that is to say commercial audience, that is, be launched the one of the page
Side.In practical application, service side can also provide APP (Application, application program) and by user installation in personal device
In, therefore, the generation and dispensing of the page can also be service side provided by APP complete.
In practical application, in the similar-type products that product side is provided, different products may be had towards different regions
Information.Based on this, present description provides page generation method, the page generated according to the method can be directed to different regions
User generates the page for meeting user demand.The part flow of this method as shown in Figure 2 A, may include steps of:
In step 202, the template of the page to be generated is determined, the template includes image-region and official documents and correspondence region.
In step 204, the regional information of user is obtained.
In step 206, the text for matching with the regional information and matching with the official documents and correspondence region in the template is searched
The image that case and lookup are matched and matched with the image-region in the template with the regional information.
In a step 208, the regional information and official documents and correspondence are filled into the official documents and correspondence region, and described image is filled
The page is generated after to described image region.
Next it is illustrated further combined with the application scenarios schematic diagram shown in Fig. 2 B, in this specification embodiment
Step 202, the template library for including one or more templates can be built in advance.To the structure of each template in template
Journey can be provided by stencil design personnel, can also utilize history page, template etc. a variety of sides are extracted from history page
Formula.
Template in this specification embodiment can be understood as the frame of displaying product information, which is that can carry out two
The semi-finished product of the page of secondary editor can be assigned with one or more image-regions in template, can fill use in this region
In the image promoted product or user is attracted to consult.One or more official documents and correspondence regions are also assigned in template, it can be in the region
In can fill the word being made of official documents and correspondence and regional information etc..After filling official documents and correspondence, regional information and image in a template, you can
Generate the page for showing product to user.
In some examples, template can be the template of the readable codes such as SVG, and mould is determined by the code for reading template
Image-region and official documents and correspondence region in plate.For example, template can be vector graphics, vector graphics refers to be instructed with series of computation
Come the figure represented.One vector graphics may be made of one or more primary graphic elements (graphic element include picture,
Text, circle, rectangle, ellipse or lines etc.), in document code, each primary graphic element corresponds to different element tags.Cause
This, the element that can be corresponded to by template in code determines image-region and official documents and correspondence region in template.In other examples,
Template can also be the data being made of multiple figure layers, different figure layers represent pictorial element in templates, Writing Element or other
Element etc. by reading each figure layer in template, and then can determine image layer as image-region and determining official documents and correspondence
Figure layer is as official documents and correspondence region.In practical application, can determine the specific implementation of template as needed, the present embodiment to this not
It is construed as limiting.As shown in Figure 2 C, it is a kind of template schematic diagram of this specification according to an exemplary embodiment, passes through in the figure
Dotted line frame has marked out image-region and official documents and correspondence region.
Preconfigured template can be stored by template library, and in some examples, template library can be local number
According to library, in other examples, template library can also be disposed on other servers, when needing that the page is generated for user,
Template is obtained in the template library that server can be configured from other servers.
Optionally, it can be distinguished between each template by one or more marks in template library.Show as one
Example can utilize the product launched required for product side to distinguish, establish correspondence to template and product in advance, work as user
During by electronic equipment accession page, according to the product that page needs are launched, the corresponding template of the product is found.Or
It is distinguished by the page, correspondence is established between template and product, when user is by electronic equipment accession page address,
It is determined to correspond to the page to be generated according to the page address, then finds corresponding template;In other examples or tie
Product and the page is closed to distinguish template etc..For example, certain service sides may show different productions in daily different time sections
The page of product side, therefore, when user accesses server by electronic equipment, server determines corresponding according to current time
The page to be generated then finds corresponding template.
In addition to being pre-configured with template library, image library and official documents and correspondence library can also be provided previously in the present embodiment, shown in Fig. 2 B in fact
Picture library and the official documents and correspondence library applied in example are illustrated by taking local data base as an example, and in practical application, picture library and official documents and correspondence library may be used also
To be disposed on other servers, acquisition figure in picture library that server can be configured from other servers and official documents and correspondence library
Piece and official documents and correspondence.
In the product that product side is provided, it is possible to which different regions are related to different product informations.For example, a certain vehicle
Insurance provider be provided with car insurance, which is provided with corresponding preference scheme according to different regions or city.
Based on this, this specification embodiment is directed to the product with Regional differences, carries out area to image and official documents and correspondence with regional information in advance
Point.
Therefore, for image library, image library can be used for storing image corresponding with different regions information, and the acquisition of image
Mode can be that the image with region characteristic, such as local building figure is provided previously in technical staff in some examples
Picture, landscape image, sight spot image or food image etc..In other examples, can also be by web search, obtaining has ground
The image of domain feature can also further obtain the image for meeting user preference according to user preference.For example, described image
Data can obtain in the following way:
It counts in the setting time period, the network attention degree of the target object in setting area.
The image of the highest one or more target objects of network attention degree is chosen as corresponding with the regional information
Image.Wherein, target object can include following one or more:Building, landscape, sight spot or food etc. have region spy
Point or the object for meeting user preference.
Wherein, the determination process of network attention degree can be able to be collection one as an example there are many realization method
A or multiple social platforms data within the setting time period, and pass through much-talked-about topic detection technique and heat is carried out to collected data
Point topic analysis sets the highest one or more topics of regional temperature, and then determine target object to obtain.In other examples
In son, it can also be and obtain click of the user to webpage by one or more travel platform, portal website or shopping platforms etc.
Rate determines the highest one or more webpages of user's clicking rate by page click ratio, then determines the target object.It is practical
In, flexible configuration the specific implementation of network attention degree and flexible selection target object can be obtained as needed,
The present embodiment is not construed as limiting this.
In some instances, the image of areal can be adapted for the different product that multiple product providers are provided.
In other examples, for the scene of certain displaying product demands, image can also be to be provided previously by product provider, root
According to the needs of product provider, its matched regional information can be marked for product in advance.It is configured with figure through the above way
As behind library, when needing to generate the page, servicing it can automatically obtain and the matched image of regional information.
For official documents and correspondence library, official documents and correspondence library is for storage and the matched official documents and correspondence of regional information;Official documents and correspondence, can be to set by word
Advertising theme or advertising creative etc. carry out specific manifestation.For product promotion purpose, official documents and correspondence can usually include title, text
Or slogan etc..As an example, official documents and correspondence can be " fine work vehicle insurance is preferred ", " revelry of iFashion new products " etc., therefore literary
Case can be pre-configured with according to the product information and demand of product side.As the configuration process of image library, in certain examples
In, official documents and correspondence can be prepared in advance by product provider or service side is further according to the product data of product provider
A variety of realization methods such as configuration.
By the above-mentioned means, server has been pre-configured with template library, official documents and correspondence library and image library, in specific application, the page
Generation scheme can be applied to server, can also be applied to the electronic equipment that user holds.For example, page generation scheme should
In the case of for server, when user accesses server by electronic equipment, electronic equipment can obtain the area of user
Information, and server is supplied to, server generates page after obtaining corresponding template, official documents and correspondence and image according to the regional information of user
Face is simultaneously sent to electronic equipment.In the case that page generation scheme is applied to the electronic equipment of user, set in user by electronics
During standby access server, electronic equipment can ask corresponding template, official documents and correspondence and figure according to the regional information of user to server
The page is generated as after.
Wherein, the process in geographical location residing for equipment is obtained, can be that electronic equipment utilizes built-in positioning chip, be based on
GPS (global positioning system, Global Positioning System) mode obtains geographical location information, can also pass through shifting
The base station distance measuring method of dynamic carrier network obtains geographical location information or is carried out using with reference to base station ranging and GPS modes
A-GPS (Assisted GPS, assistant GPS) mode of alignment by union obtains geographical location information etc..It is optional real at other
In existing mode, regional information input options in the page can also be provided, its phase is selected by regional information input options by user
The regional information of prestige.
By Such analysis it is found that being assigned with official documents and correspondence region and image-region in template, since template may have different size,
Also there are many situations for size occupied by official documents and correspondence region and image-region, will with certain size for official documents and correspondence region and image-region
In the case of asking, image can also specify the size that it is applicable in official documents and correspondence and image library in official documents and correspondence library, in lookup and institute
During the official documents and correspondence stated regional information matching and matched with the official documents and correspondence region in the template, it can compare in official documents and correspondence shared by word
According to the size specified by official documents and correspondence region in size and template, and then find what is matched with the official documents and correspondence region in the template
Official documents and correspondence.And when searching the image for matching with the regional information and matching with the region in the template, it equally can also be right
Than the size specified by image-region in picture size and template, and then find and the image-region phase in the template
The image matched.In other examples, since image can pass through scaling processing adjustment size, word can adjust font size,
Therefore " matched with image-region " and " with official documents and correspondence Region Matching " or image library in all images all with any template
Match, in official documents and correspondence library all official documents and correspondences all with any template matches etc., in practical application can with flexible configuration, the present embodiment to this not
It is construed as limiting.
Official documents and correspondence and image are distinguished by regional information, and for distinguishing the page of demand with region, this specification is real
It applies and is filled after the regional information obtained in official documents and correspondence and step 204 is combined by example to official documents and correspondence region, by image completion to image
Region, generation meet the page of region characteristic, are the one kind of this specification according to an exemplary embodiment as shown in Figure 2 D
Page schematic diagram, in Fig. 2 D by taking vehicle insurance product as an example, the product page of the product page and In Hangzhou Region of Zhe Jiang Province including Dali.From
Can be found in the page schematic diagram, the image of Dali landscape is included in the product page of Dali, by product official documents and correspondence and
The word of Dali information includes the image of Hangzhou building in the product page of In Hangzhou Region of Zhe Jiang Province, by product official documents and correspondence and Hangzhoupro
The word of state regional information.Wherein, " change area " button as regional information input options is also provided in the page, with
Other regional informations are inputted for user.By the schematic diagram it is found that this specification embodiment generate the page can meet in should
The preference of regional user realizes that the efficiently and accurately of the page is launched, and the page more can attract user to consult after launching, so as to avoid launching
The effective consumption of resource.
After filling the word being made of regional information and official documents and correspondence in a template and filling image in a template, having can
There can be lap due to official documents and correspondence region and image-region, cause between word and image to exist in the page and be overlapped mutually
Part, in order to further improve page presentation effect, in this specification embodiment, by the regional information and official documents and correspondence filling
To the official documents and correspondence region, and described image is filled to described image region, a mask can also be added, wherein, describedly
Area's information and official documents and correspondence are on the mask, and described image is under the mask, which is used to distinguish in the page
Image and the word being made of official documents and correspondence and regional information.Optionally, in order to protrude certain crucial literals, such as title etc. in official documents and correspondence
Critical product information, mask can select the transparent mask of gradual change or color gradient mask.As illustrated in fig. 2d, which is color
Both gradual change mask, the color in example are specifically white, by color gradient, can be distinguished word and image, but make
With association.
Corresponding with the embodiment of aforementioned page generation method, this specification additionally provides webpage generating device and its answers
The embodiment of electronic equipment.
The embodiment of this specification webpage generating device can be applied on an electronic device, such as server or terminal are set
It is standby.Device embodiment can be realized by software, can also be realized by way of hardware or software and hardware combining.With software reality
It is by nonvolatile memory by the processor that page where it generates as the device on a logical meaning for existing
In corresponding computer program instructions read in memory what operation was formed.For hardware view, as shown in figure 3, for this theory
A kind of hardware structure diagram of electronic equipment where bright book webpage generating device, in addition to processor 310 shown in Fig. 3, memory 330,
Except network interface 320 and nonvolatile memory 340, server or terminal device in embodiment where device 331,
Generally according to the actual functional capability of the electronic equipment, other hardware can also be included, this is repeated no more.
As shown in figure 4, Fig. 4 is a kind of frame of webpage generating device of this specification according to an exemplary embodiment
Figure, described device include:
Template determining module 41, is used for:Determine the template of the page to be generated, the template includes image-region and official documents and correspondence
Region;
Data obtaining module 42, is used for:Obtain the regional information of user;
Searching module 43, is used for:Lookup is matched with the regional information and is matched with the official documents and correspondence region in the template
Official documents and correspondence and search the image that matches and match with the region in the template with the regional information;
Module 44 is filled, is used for:The regional information and official documents and correspondence are filled into the official documents and correspondence region, and by described image
The page is generated behind filling to described image region.
In an optional realization method, the regional information for obtaining user, including:
Geographical location residing for obtaining equipment, the regional information is determined according to the geographical location;Or,
The regional information of user is obtained by the regional information input options provided in the page.
In an optional realization method, described image data obtain in the following way:
It counts in the setting time period, the network attention degree of the target object in setting area;
The image of the highest one or more target objects of network attention degree is chosen as corresponding with the regional information
Image.
It is described to fill the regional information and official documents and correspondence into the official documents and correspondence region in an optional realization method,
And fill described image to described image region, the method further includes:
A mask is added, wherein, the regional information and official documents and correspondence are on the mask, and described image is in the illiteracy
Under layer.
In an optional realization method, the mask includes:The transparent mask of gradual change or color gradient mask.
Correspondingly, this specification provides a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Determine the template of the page to be generated, the template includes image-region and official documents and correspondence region;
Obtain the regional information of user;
It searches the official documents and correspondence for matching with the regional information and matching with the official documents and correspondence region in the template and searches
The image for matching and matching with the region in the template with the regional information;
The regional information and official documents and correspondence are filled into the official documents and correspondence region, and described image is filled to described image area
The page is generated behind domain.
The function of modules and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The module of explanation may or may not be physically separate, and the component shown as module can be or can also
It is not physical module, you can be located at a place or can also be distributed on multiple network modules.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of this specification scheme.Those of ordinary skill in the art are not
In the case of making the creative labor, you can to understand and implement.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It performs and still can realize desired result.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
Those skilled in the art will readily occur to this specification after specification and the practice invention of specification here is considered
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these changes
Type, purposes or adaptive change follow the general principle of this specification and this technology neck of book are not specified including this specification
Common knowledge or conventional techniques in domain.Description and embodiments are considered only as illustratively, the real model of this specification
It encloses and spirit is pointed out by following claim.
It should be understood that the precision architecture that this specification is not limited to be described above and be shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by appended claim
System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
The spirit of book and any modification, equivalent substitution, improvement and etc. within principle, done, should be included in the model of this specification protection
Within enclosing.