CN108038169A - A kind of page display method and device - Google Patents
A kind of page display method and device Download PDFInfo
- Publication number
- CN108038169A CN108038169A CN201711283248.3A CN201711283248A CN108038169A CN 108038169 A CN108038169 A CN 108038169A CN 201711283248 A CN201711283248 A CN 201711283248A CN 108038169 A CN108038169 A CN 108038169A
- Authority
- CN
- China
- Prior art keywords
- sku
- information
- target
- page
- target service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of page display method and device.This method includes:When receiving page display request, the keeper unit SKU information that the page display request carries is obtained;At least one for asking corresponding server to obtain target common information and target service information is shown from the page according to the SKU information;Page rendering is carried out according at least one of the target common information and target service information and obtains target details page, and show the target details page, pass through technical scheme, the stand-by period for entering the page every time can be reduced, and the information for ensuring to show each time is all newest information.
Description
Technical field
The present embodiments relate to a kind of page Display Technique, more particularly to a kind of page display method and device.
Background technology
WEEX can perfection take into account performance and dynamic, allow mobile Development person to write out Native by simple and direct front end grammer
The performance experience of rank, and support the multiterminal such as iOS, Android, YunOS and Web to dispose.
Mostly in the prior art is to realize service logic using WEEX technologies, and reduces first screen using storage modules and render
Stand-by period, concrete implementation mode are:During into the more electric business commodity details page of information content, if first entering, need to wait for
Page rendering is carried out after the completion of merchandise request, and carries out the caching of returned data;It is again turned on the commodity details being cached
During page, directly read the information being cached and carry out page rendering;Noncommodity details business scenario does not have cache logic, often
Once it is required for rendering after returning from background request information.
Solution of the prior art causes to first enter details page and letter is locally stored since there is no corresponding SKU
Breath, needs to wait for rendering after the completion of request, and the head screen stand-by period is longer.
The content of the invention
The embodiment of the present invention provides a kind of page display method and device, when can reduce the wait for entering the page every time
Between, and the information for ensuring to show each time is all newest information.
In a first aspect, an embodiment of the present invention provides a kind of page display method, including:
When receiving page display request, the keeper unit SKU information that the page display request carries is obtained;
Corresponding server is asked to obtain target common information and target industry from page display according to the SKU information
At least one of information of being engaged in;
Page rendering is carried out according at least one of the target common information and target service information and obtains target details
The page, and show the target details page.
Further, after the keeper unit SKU information for obtaining the page display request and carrying, the method
Further include:
SKU marks are obtained according to the SKU information;
The SKU buffer queues being pre-stored within according to SKU mark inquiries in caching;
If there are the SKU in the SKU buffer queues to identify corresponding target common information and target service information
At least one of, then the SKU is obtained from the SKU buffer queues and identifies corresponding target common information and target service information
At least one of;
Corresponding target common information and at least one progress page rendering of target service information are identified according to the SKU
The first details page is obtained, and shows first details page;
Page rendering is carried out according at least one of the target common information and target service information and obtains target details
The page, and show the target details page, including:
According at least one progress page of the target common information and target service information obtained from the server
Face, which renders, obtains target details page, and updates first details page using the target details page.
Further, it is described to ask corresponding server to obtain target public affairs from page display according to the SKU information
With after at least one of information and target service information, the method further includes:
Use at least one renewal SKU of the target common information and target service information obtained from the server
SKU described in buffer queue identifies at least one of corresponding target common information and target service information.
Further, if there are the SKU in the SKU buffer queues to identify corresponding target common information and target industry
At least one of information of being engaged in, then the SKU is obtained from the SKU buffer queues and identifies corresponding target common information and target
At least one of business information includes:
If there are the SKU in the SKU buffer queues to identify corresponding target service information, cached from the SKU
The target service information is obtained in queue;
If the target service information is not present, and there are the corresponding target of SKU marks in the SKU buffer queues
Common information, then obtain the target common information from the SKU buffer queues.
Further, after obtaining SKU marks according to the SKU information, further include:
SKU marks are subjected to unified capital and small letter processing.
Further, using the target common information and target service information obtained from the server at least one of more
At least one of the corresponding target common information of SKU marks described in the new SKU buffer queues and target service information include:
Using being replaced from the target service information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target service information;And/or
Using being covered from the target common information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target common information.
Further, the method further includes:
If there is no the SKU in the SKU buffer queues to identify corresponding target common information and target service information,
Then at least one of the target common information obtained from the server and target service information are preserved to the SKU and cache team
Row.
Second aspect, the embodiment of the present invention additionally provide a kind of page display device, which includes:
First acquisition module, for when receiving page display request, obtaining the storehouse that the page display request carries
Storage unit SKU information;
Second acquisition module, for asking corresponding server to obtain mesh from page display according to the SKU information
Mark at least one of common information and target service information;
First display module, for carrying out the page according at least one of the target common information and target service information
Render and obtain target details page, and show the target details page.
Further, described device further includes:
3rd acquisition module, for obtaining SKU marks according to the SKU information;
Enquiry module, for the SKU buffer queues being pre-stored within according to SKU mark inquiries in caching;
4th acquisition module, if for there are the corresponding target common information of SKU marks in the SKU buffer queues
With target service information at least one of, then the SKU is obtained from the SKU buffer queues and identifies the corresponding public letter of target
At least one of breath and target service information;
Second display module, for identifying corresponding target common information and target service information extremely according to the SKU
One item missing carries out page rendering and obtains the first details page, and shows first details page;
First display module is specifically used for:
According at least one progress page of the target common information and target service information obtained from the server
Face, which renders, obtains target details page, and updates first details page using the target details page.
Further, described device further includes:
Update module, for asking corresponding server to obtain from page display according to the SKU information described
Target common information and target service information at least one of after, using the target common information obtained from the server with
SKU identifies corresponding target common information and mesh described at least one described SKU buffer queue of renewal of target service information
Mark at least one of business information.
Further, the 4th acquisition module is specifically used for:
If there are the SKU in the SKU buffer queues to identify corresponding target service information, cached from the SKU
The target service information is obtained in queue;
If the target service information is not present, and there are the corresponding target of SKU marks in the SKU buffer queues
Common information, then obtain the target common information from the SKU buffer queues.
Further, further include:
Processing module, for after SKU marks are obtained according to the SKU information, SKU marks being carried out unified big
Small letter processing.
Further, the update module is specifically used for:
Using being replaced from the target service information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target service information;And/or
Using being covered from the target common information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target common information.
Further, described device further includes:
Preserving module, if for be not present in the SKU buffer queues SKU identify corresponding target common information and
Target service information, then by the target common information obtained from the server and target service information at least one of preserve to
The SKU buffer queues.
The embodiment of the present invention is by when receiving page display request, obtaining the stock that the page display request carries
Measure unit SKU information;According to the SKU information from page display ask corresponding server obtain target common information and
At least one of target service information;Page wash with watercolours is carried out according at least one of the target common information and target service information
Dye obtains target details page, and shows the target details page, by technical scheme, can reduce every time into
Enter the stand-by period of the page, and the information for ensuring to show each time is all newest information.
Brief description of the drawings
Fig. 1 is a kind of flow chart of page display method in the embodiment of the present invention one;
Fig. 2A is a kind of flow chart of page display method in the embodiment of the present invention two;
Fig. 2 B are the schematic diagrames of the buffer queue in the embodiment of the present invention two;
Fig. 2 C are the flow charts of the renewal caching in the embodiment of the present invention two;
Fig. 2 D are the flow charts that the SKU information in the embodiment of the present invention two is read;
Fig. 3 is a kind of structure diagram of page display device in the embodiment of the present invention three.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
It illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
Embodiment one
Fig. 1 is a kind of flow chart for page display method that the embodiment of the present invention one provides, and the present embodiment can fit the page and show
Situation about showing, this method can be performed by page display device provided in an embodiment of the present invention, the device can use software and/
Or the mode of hardware is realized, as shown in Figure 1, this method specifically comprises the following steps:
S110, when receiving page display request, obtains the keeper unit SKU information that page display request carries.
Wherein, wherein the page can be item detail page, or other include the page of commodity detail information
Face.
Wherein, the page display request can be obtained by user in the form of search interface input link, can also
The form for inputting the data of the SKU information of other carryings in search interface by user obtains.
Wherein, SKU (Stock Keeping Unit, the keeper unit) information passes in and out the substantially single of metering for stock
Member, can be for unit with part, box, pallet etc..SKU this be for big chain store DC (home-delivery center) logistics management one
A necessary method.The abbreviation of product Unified number has been extended to now, and every kind of product is corresponding with unique No. SKU.
Dan Pin:For a kind of commodity, when its brand, model, configuration, grade, pattern, bale capacity, unit, the date of manufacture, guarantee the quality
Phase, purposes, price, the place of production when attribute and other commodity there are it is different when, can be described as a single product.
Wherein, the mode for obtaining the keeper unit SKU information that page display request carries can be directly please from the page
Seek middle lookup SKU information, or analysis page request obtains SKU information, and the embodiment of the present invention is not limited this.
Specifically, receiving page display request input by user, obtained wherein from the page input by user display request
The quantity in stock SKU information of carrying, such as can be that user inputs the link of the item detail page of commodity A in search interface, obtains
Link input by user is got, link is analyzed, therefrom obtains SKU information.
S120, asks corresponding server to obtain target common information and target service according to SKU information from page display
At least one of information.
Wherein, ask to obtain target common information, target service in corresponding server from page display according to SKU information
Information or target common information and target service information.
Wherein, the target common information can be restrained good commodity common information field, such as can include
The field of pricing information, description information and the pictorial information of commodity etc..The target common information is shown to client, that is,
Merchandise news is arranged according to pre-set unified masterplate and then forms the page, that is to say, that if commodity are public
Information is presented to user, then what user watched is only the item detail page that merchandise news is filled in uniform template, and
It is not the item detail page for possessing user-defined format.Wherein, unified template can count item detail page according to
The template that general layout is set, such as can be that the title of display of commodity, was illustrated below commodity picture, in business in title before this
Right side display of commodity pricing information of product picture etc..
Wherein, the target service information is the business information of user-defined format, is all preferentially read during read buffer each time.
Such as can be that when target service information is that last user checks same commodity, the commodity that finally be presented to user are detailed
The feelings page, that is, be user when clicking on a certain commodity, the commodity details interface of display, for example, clicking on mobile phone, commodity details
Network, the mobile phone that interface can be supported in the brand of the top display mobile phone, the model of mobile phone, the color of mobile phone, mobile phone can be put
The quantity for the card put, these information present in turn below the price of mobile phone, color choice box (blueness, black and white),
The version selection of mobile phone, model selection, the buying pattern of mobile phone select, are set with selection, guarantee time selection, mode is selected by stages
Select, commodity details (including resolution ratio, pixel, numbering, weight, demonstration picture, commodity figure are shown below above- mentioned information
Piece etc.), it is also possible to including information on commodity comment etc..The form that personalization is added in target service information is set, and can be difference
Commodity the form of different details page is provided.
Specifically, since the form of target service information can more be met the needs of users than the form of target common information,
Strengthen the viewing experience of user.Therefore, target service information is read in advance, when target service information is not present, described in reading
Target common information.
Wherein, the SKU information can be No. SKU, No. SKU by numeral and letter form No. SKU, such as can be with,
1234S, wherein, S represents yardage, 1 represents color, 2 represent grade, 3 represent model, 4 represent brand etc., above-mentioned No. SKU and
No. SKU corresponding information is merely to illustrate that No. SKU possesses correspondence between merchandise news, and non-limiting specific right
It should be related to.
Wherein, the corresponding target common information of SKU information and target service information are stored with the local of the server
At least one of, or the server can according to the SKU information search for network on database so that get SKU letter
Cease at least one of corresponding target common information and target service information.
Specifically, corresponding server priority is asked to obtain target service information from page display according to SKU information, if mesh
Mark business information obtains target common information when being not present.
S130, carries out page rendering according at least one of target common information and target service information and obtains target details
The page, and display target details page.
Wherein, the page rendering is according at least one of target common information and target service information the generation page
Process.
Wherein, the target details page is that the keeper unit SKU of request carrying is shown according to the page input by user
The target common information and the page of at least one generation of target service information that information determines.
If specifically, there are target service information, page rendering is carried out according to target service information and obtains target details
The page, and display target details page;If target service information is not present, target common information is obtained, it is public according to target
Information carries out page rendering and obtains target details page, and display target details page.
The embodiment of the present invention, sends page display request in user, when server receives page display request, obtains and use
The SKU information for the commodity that the page display request of family input carries, target industry is obtained according to the SKU information got from server
Business information, if target service information is not present, obtains target common information, according to target service information and target common information
At least one of carry out page rendering and obtain target details page, and display target details page, can both prevent due to
In caching there is no user ask display item detail page when, it is necessary to wait merchandise request input by user after the completion of carry out
Page rendering, stand-by period longer situation, and can prevent since the information directly read in caching carries out page wash with watercolours
Dye, causes to be presented to the situation that the information in the item detail page of user is not newest information.Can reduce every time into
Enter the stand-by period of the page, and the information for ensuring to show each time is all newest information.
The technical solution of the present embodiment, by when receiving page display request, obtaining the page and showing that request is taken
The keeper unit SKU information of band;Corresponding server is asked to obtain target public affairs from page display according to the SKU information
With at least one of information and target service information;According to the target common information and target service information at least one of into
Row page rendering obtains target details page, and shows the target details page, can reduce the wait for entering the page every time
Time, and the information for ensuring to show each time is all newest information.
Embodiment two
Fig. 2A is a kind of flow chart of page display method in the embodiment of the present invention two, and the present embodiment is with previous embodiment
Optimized based on one, there is provided preferable page display method, is specifically, described to obtain the page display request carrying
Keeper unit SKU information after, the method further includes:SKU marks are obtained according to the SKU information;According to the SKU
Mark inquiry is pre-stored within the SKU buffer queues in caching;To be corresponded to if there are SKU marks in the SKU buffer queues
Target common information and target service information at least one of, then SKU mark pair is obtained from the SKU buffer queues
At least one of the target common information answered and target service information;According to the SKU identify corresponding target common information and
At least one of target service information carries out page rendering and obtains the first details page, and shows first details page;Root
Page rendering is carried out according at least one of the target common information and target service information and obtains target details page, and is shown
The target details page, including:According to the target common information and target service information obtained from the server
At least one carries out page rendering and obtains target details page, and updates the first details page using the target details page
Face.
Correspondingly, the method for the present embodiment specifically comprises the following steps:
S210, when receiving page display request, obtains the keeper unit SKU information that page display request carries.
S220, SKU marks are obtained according to SKU information.
Wherein, the SKU is identified as the unique mark of SKU object, and the SKU marks can be the ground of SKU object storage
Location, the SKU object in SKU buffer queues can be obtained according to SKU marks, wherein, the SKU object includes target common information
With target service information at least one of and unique SKU marks.
Wherein, SKU information includes SKU marks and at least one of target common information and target service information.
Specifically, the SKU obtained according to SKU information in SKU information is identified.Such as can be, if SKU information includes target
Common information A, target service information B and SKU mark C, then obtain SKU marks according to SKU information.
Optionally, after obtaining SKU marks according to the SKU information, further include:
SKU marks are subjected to unified capital and small letter processing.
Wherein, unified capital and small letter processing is carried out to SKU marks and is able to ensure that the uniqueness of SKU marks, such as can be,
SKU is identified as QsEd23, then SKU marks is converted to qsed23 or QSED23.And identify it getting SKU next time
Afterwards, SKU marks are also subjected to identical processing, such as can are that SKU is identified as QsEd23, be then converted to SKU marks
Qsed23, gets SKU and is identified as WeEE2 next time, then SKU marks is converted to weee2.
Specifically, SKU marks are carried out unified capital and small letter processing, it is stored in SKU buffer queues, then next time
Then be not in that inquiry is caused less than SKU marks pair due to case sensitive when identifying inquiry SKU buffer queues according to SKU
The situation for the SKU information answered.If not identifying SKU and carrying out capital and small letter, easily occur causing to inquire about due to case sensitive
Corresponding SKU information is identified less than SKU, and then creates a SKU object, then inquiry SKU cachings are identified according to SKU next time
During queue, if still still establishing new SKU object due to the case sensitive of SKU marks, then causing multiple SKU objects pair
Same SKU information is answered, so that many useless data of SKU buffer queues storage, committed memory.
S230, the SKU buffer queues being pre-stored within according to SKU mark inquiries in caching.
Wherein, SKU buffer queues are the arrays of a regular length, there are multiple SKU objects in SKU buffer queues, often
A SKU object includes at least one of target common information and target service information and uniquely SKU is identified.
Wherein, the target that the SKU buffer queues being pre-stored within caching for history store during page display
Details page, such as can be that the last target details page stored during page display is stored in SKU buffer queues.
Wherein, the SKU is identified as the position for the SKU buffer queues that SKU information is stored in caching.
Specifically, the SKU marks in SKU information determine the position of storage SKU information, and then in SKU buffer queues
The SKU information stored in middle inquiry SKU buffer queues.
Specifically, when page display request input by user is received, first inquiry is pre-stored within caching
SKU buffer queues, can be presented as user using most fast speed and ask relevant details page with the page input by user display,
Since SKU buffer queues are after the request of each user's input page, it can all be updated, therefore, be stored in SKU buffer queues
There is a strong possibility does not update for page detail information, and SKU buffer queues are searched in advance according to SKU mark inquiries, can be with most fast
Speed ask corresponding details page for the page display of user presentation user, reduce the stand-by period of user, lift user
Experience.
S240, if there are SKU in SKU buffer queues to identify corresponding target common information and target service information at least
One, then the corresponding target common information of SKU marks and target service information at least one is obtained from SKU buffer queues.
Specifically, if there are the SKU in SKU information in the SKU buffer queues prestored to identify corresponding SKU object,
Then obtain at least one of the corresponding target common information of SKU object and target service information.Such as can be, if prestoring
SKU buffer queues in there are the SKU in SKU information to identify corresponding target service information, then obtain the target service letter
Breath, if target service information is not present, searches SKU and identifies corresponding target common information, if target common information exists,
Obtain the target common information.
Optionally, if there are the SKU in the SKU buffer queues to identify corresponding target common information and target service
At least one of information, then the SKU is obtained from the SKU buffer queues and identifies corresponding target common information and target industry
At least one of business information includes:
If there are the SKU in the SKU buffer queues to identify corresponding target service information, cached from the SKU
The target service information is obtained in queue;
Specifically, when page display request input by user is received, first inquiry is pre-stored within caching
SKU buffer queues, if there are SKU in SKU buffer queues to identify corresponding target service information, directly acquire SKU cachings team
Target service information in row, page rendering is carried out according to target service information, since target service information is stored in caching,
It then can in the short period of time transfer, carry out page rendering, and be presented to user, period of reservation of number is shorter, and mesh
It is that last user inputs business when carrying the page displays of SKU marks identical with this and asking, finally presented to mark business information
Product details page, target service information can provide the form of different details pages for different commodity, lift the viewing of user
Experience, can be presented the splendid item detail page of viewing experience for user in the short period of time.
Wherein, the SKU buffer queues are the historical information being pre-stored within memory.
Specifically, inquiry SKU buffer queues are identified according to SKU, if existing in SKU buffer queues corresponding with SKU marks
Target service information, then obtain target service information from SKU buffer queues.
If the target service information is not present, and there are the corresponding target of SKU marks in the SKU buffer queues
Common information, then obtain the target common information from the SKU buffer queues.
Specifically, if target service information is not present in SKU buffer queues, searches and whether there is in SKU buffer queues
SKU identifies corresponding target common information, if there are SKU in SKU buffer queues to identify corresponding target common information, from
SKU is obtained in SKU buffer queues and identifies corresponding target common information.
Optionally, the method further includes:
If there is no the SKU in the SKU buffer queues to identify corresponding target common information and target service information,
Then at least one of the target common information obtained from the server and target service information are preserved to the SKU and cache team
Row.
Specifically, if inquiry identifies corresponding target common information and target service letter less than SKU in SKU buffer queues
Breath, then create a SKU object in SKU buffer queues, and SKU is identified corresponding target common information and target service letter
At least one of breath is stored into newly-built SKU object.
If the length of SKU buffer queues is more than preset length, the SKU object of SKU buffer queue tails of the queue is deleted,
SKU buffer queues team head creates a SKU object, and SKU is identified corresponding target common information and target service information
At least one is stored into newly-built SKU object.
Wherein, the preset length is the length of SKU buffer queues set in advance.
Specifically, to prevent the relatively large overhead of memory, SKU buffer queues are set as a regular length, therefore, if SKU
The length of buffer queue is more than regular length set in advance, then the loss of data is easy to cause, by the tail of the queue of SKU buffer queues
SKU object delete as the SKU object that be stored in earliest is deleted, can be that newly-built SKU object provide memory space so that newly
The SKU object built is stored in SKU buffer queues, can be prevented and be preset since the length of SKU buffer queues is more than
Regular length, newly-built SKU object can not be stored into the situation of SKU buffer queues, be also possible to prevent to occur since SKU is cached
The length of queue is more than regular length set in advance, after newly-built SKU object is stored into, other SKU in SKU buffer queues
The situation that object is lost, the data for enabling to store in SKU buffer queues are newer data.
S250, corresponding target common information and at least one progress page wash with watercolours of target service information are identified according to SKU
Dye obtains the first details page, and shows the first details page.
Wherein, the page that the historical data being pre-stored within according to the first details face in SKU buffer queues is shown.
Specifically, when getting page display request input by user, determined according to the SKU information carried in request
SKU is identified, and is generated according to the historical data being pre-stored within SKU buffer queues and is shown the first details page, by above-mentioned
Scheme can show the corresponding details page of request input by user at the first time.
S260, asks corresponding server to obtain target common information and target service according to SKU information from page display
At least one of information.
Optionally, it is described to ask corresponding server acquisition target public from page display according to the SKU information
After at least one of information and target service information, the method further includes:
Use at least one renewal SKU of the target common information and target service information obtained from the server
SKU described in buffer queue identifies at least one of corresponding target common information and target service information.
Wherein, SKU described in the SKU buffer queues identifies corresponding target common information and target service information to go through
History is stored in the data of SKU buffer queues.
Specifically, the SKU information that request input by user is carried obtains target common information and target from server
At least one of business information, which is replaced, is pre-stored within the corresponding historical data of SKU marks in SKU cachings.Such as can be, SKU
The corresponding target common information A and target service information A of SKU marks A in SKU information A are stored in buffer queue, pass through user
The SKU information A that the request of input carries obtains target common information Q and target service information Q from server, then according to target
Common information Q and target service information Q more fresh target common information A and target service information A.
Optionally, using at least one renewal of the target common information and target service information obtained from the server
At least one of the corresponding target common information of the marks of SKU described in the SKU buffer queues and target service information include:
Using being replaced from the target service information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target service information;And/or
Specifically, using being replaced from the target service information that the server obtains in the SKU buffer queues, there are institute
State SKU and identify corresponding target service information, such as can be, if the target service information that server obtains includes commodity picture
Information and commodity price information, then the commodity picture information obtained server and commodity price information replace SKU buffer queues
The middle commodity picture information and commodity price information identified there are the SKU in corresponding target service information, SKU buffer queues
Other information in the middle corresponding target service information there are SKU marks is constant.
Using being covered from the target common information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target common information.
Specifically, using being covered from the target common information that the server obtains in the SKU buffer queues, there are institute
State SKU and identify corresponding target common information, such as can be, if the target common information that server obtains is evaluated including commodity
Information, then by the target common information that server obtains including there are the SKU in information on commodity comment covering SKU buffer queues
Identify corresponding target common information, that is to say, that the SKU buffer queues after the target common information covering obtained by server
The whole for the target common information that the middle full content identified there are the SKU in corresponding target common information is obtained with business device
Content is completely the same.
S270, according at least one progress page wash with watercolours of the target common information and target service information obtained from server
Dye obtains target details page, and updates the first details page using target details page.
Wherein, the target common information and target service information obtained from server according to the target details page
At least one carries out the page obtained after page rendering, the mesh obtained according to the first details page from SKU buffer queues
Mark the page obtained after common information and at least one progress page rendering of target service information.
Specifically, first according to the target common information and target service information obtained in SKU buffer queues at least one of
Carry out obtaining the first details page after page rendering, and show the first details page, user can be allowed to see at the first time
Details page, reduces the stand-by period of user, lifts user experience, and can all update since user opens details page every time
Information in SKU buffer queues, although then the information in SKU buffer queues is not real-time, also comparing for renewal is timely,
Therefore, first show the first details page, may be found after target details page is got with the first details page be as,
Both the stand-by period of user had been reduced, can also show newest page info.After the first details page is shown, according to from clothes
It is engaged in obtaining target details page after the target common information of device acquisition and at least one progress page rendering of target service information
Face, can remedy the problem of the first details page is updated not in time in time, can be that user show newest details page, it is ensured that
The merchandise news for being presented to user is newest merchandise news.
In a specific example, Fig. 2 B are the schematic diagrames of buffer queue, as shown in Figure 2 B, in the embodiment of the present invention
Buffer queue data structure is specially:To prevent the relatively large overhead of memory, buffer queue is the array of a regular length;SKU
There are multiple SKU objects in buffer queue;Each SKU object exists:(1) public caching COMMON:For storing by about
The good commodity common information field of beam, such as price, description, picture information, read when service buffer is not present;(2) business
Cache LOGIC:For storing the service buffer information of user-defined format, all preferentially read during read buffer each time;(3)SKU_
KEY:Using SKU_ID as the unique mark of SKU object, the capital and small letter for being required for carrying out SKU_KEY values is set to turn each time
Change, it is ensured that uniqueness.Fig. 2 C are the flow charts of renewal caching, and as shown in Figure 2 C, business VC is delayed after obtaining SKU information using general
Deposit into concretely comprising the following steps for row storage:User returns to SKU information, to returning after the display request of business VC interfaces input page
SKU information according to the data structure shown in Fig. 2 B carry out common information and business and make the integration of information by oneself packing, this is packed
Content calls general caching component as ginseng is entered;Empty verification is carried out to incoming SKU information, if it is empty then, terminates and preserves;If no
For sky, fault-tolerant processing is done to common information and business information, reads buffer queue list;SKU_KEY is obtained according to SKU information
Whether value, capital and small letter conversion is carried out to SKU_KEY values, judge the SKU object slow according to the transformed SKU_KEY values of capital and small letter
Deposit in queue and exist;If SKU object exists in buffer queue, incoming non-NULL common field is covered to public caching, and directly
Connect and carry out replacing for service buffer SKU information using the target service information for asking corresponding server to obtain from page display
Change, preserve buffer queue;If SKU object is not present in buffer queue, newly open SKU object preserve target common information and
Target service information;Judge whether buffer queue has been maxed out length, if having been maxed out length, delete tail of the queue
SKU object;New SKU object is pushed into buffer queue head, preserves buffer queue.The flow chart that the SKU information that Fig. 2 D are is read,
As shown in Figure 2 D, into concretely comprising the following steps using general caching progress SKU information reading after business VC:Into business VC, obtain
SKU_KEY is taken, first reads buffer queue;Capital and small letter conversion is carried out to SKU_KEY values, judges that the SKU_KEY values are SKU pairs corresponding
As if no exist in buffer queue;If SKU object exists in buffer queue, target service in buffer queue is judged in order
Information and target common information whether there is, as long as have one of them to exist just returns to VC by exporting unified interface;Business
VC carries out SKU information fault-tolerant processing to the cache contents of return, and page rendering is carried out using the information of caching;If SKU object exists
It is not present in buffer queue, after output is uniformly processed, returns to VC;No matter in buffer queue either with or without SKU information, in VC all
The newest SKU information of re-request is needed, and it is fault-tolerant to the content progress of return;For corresponding from page display request
Server obtains at least one of target common information and target service information, carries out the flow of the renewal caching of Fig. 2 C.
By limiting the storage rule of SKU information in the embodiment of the present invention, according to the form of setting into row information
Input and output;Each SKU object includes the structure design of target common information and/or target service information;Setting is fixed
The SKU buffer queues of length;Browsing commodity details VC or class commodity details VC each time is required for real-time update SKU to cache team
Row;General caching has good empty verification and fault-tolerant ability for externally input parameter;There is unification for the parameter of output
Interface output can use the electric business scene of WEEX technologies, can be greatly reduced every time (including first) enter commodity details
The pressure surface of page or class commodity details page shows the time, has larger versatility;, can in the electric business scene using WEEX technologies
Ensureing the information of the commodity details page or class commodity details page shown each time all has effective and accuracy.
The technical solution of the present embodiment, by when receiving page display request, obtaining what page display request carried
Keeper unit SKU information;SKU marks are obtained according to SKU information;The SKU being pre-stored within according to SKU mark inquiries in caching
Buffer queue;If there are at least one that SKU identifies corresponding target common information and target service information in SKU buffer queues
Item, then obtain the corresponding target common information of SKU marks and target service information at least one from SKU buffer queues;Root
At least one progress page rendering that corresponding target common information and target service information are identified according to SKU obtains the first details page
Face, and show the first details page, according to SKU information from page display ask corresponding server obtain target common information and
At least one of target service information;According at least one of the target common information and target service information obtained from server
Carry out page rendering and obtain target details page, and the first details page is updated using target details page, can solve first
Locally store information into item detail page since there is no corresponding SKU information, needs to wait for rendering after the completion of merchandise request,
The head screen stand-by period is longer;The secondary merchandise news being cached into reading, does not possess real-time, if operation have changed activity
Or condition of merchandise, particularly pricing information, in the business field that item detail page cannot get newest feedback and caching uses
Scape is relatively simple at present, does not possess the problem of autgmentability and versatility, can be based on WEEX technologies, realizes that one kind is suitable for client
WEEX is held across the general caching of VC.Reduce every time (including first) single into the displaying such as commodity details page or class commodity details page
The VC of the SKU information first screen stand-by period, and the merchandise news for ensuring to show each time is all newest merchandise news.
Embodiment three
Fig. 3 is a kind of structure diagram of page display device of the embodiment of the present invention three.The present embodiment is applicable to page
The situation that face is shown, the device can be realized by the way of software and/or hardware, as shown in figure 3, the page display device has
Body includes:First acquisition module 310, the second acquisition module 320 and the first display module 330.
Wherein, the first acquisition module 310, for when receiving page display request, obtaining the page display request
The keeper unit SKU information of carrying;
Second acquisition module 320, for asking corresponding server to obtain from page display according to the SKU information
At least one of target common information and target service information;
First display module 330, for being carried out according at least one of the target common information and target service information
Page rendering obtains target details page, and shows the target details page.
Optionally, described device further includes:
3rd acquisition module, for obtaining SKU marks according to the SKU information;
Enquiry module, for the SKU buffer queues being pre-stored within according to SKU mark inquiries in caching;
4th acquisition module, if for there are the corresponding target common information of SKU marks in the SKU buffer queues
With target service information at least one of, then the SKU is obtained from the SKU buffer queues and identifies the corresponding public letter of target
At least one of breath and target service information;
Second display module, for identifying corresponding target common information and target service information extremely according to the SKU
One item missing carries out page rendering and obtains the first details page, and shows first details page;
First display module is specifically used for:
According at least one progress page of the target common information and target service information obtained from the server
Face, which renders, obtains target details page, and updates first details page using the target details page.
Optionally, described device further includes:
Update module, for asking corresponding server to obtain from page display according to the SKU information described
Target common information and target service information at least one of after, using the target common information obtained from the server with
SKU identifies corresponding target common information and mesh described at least one described SKU buffer queue of renewal of target service information
Mark at least one of business information.
Optionally, the 4th acquisition module is specifically used for:
If there are the SKU in the SKU buffer queues to identify corresponding target service information, cached from the SKU
The target service information is obtained in queue;
If the target service information is not present, and there are the corresponding target of SKU marks in the SKU buffer queues
Common information, then obtain the target common information from the SKU buffer queues.
Optionally, further include:
Processing module, for after SKU marks are obtained according to the SKU information, SKU marks being carried out unified big
Small letter processing.
Optionally, the update module is specifically used for:
Using being replaced from the target service information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target service information;And/or
Using being covered from the target common information that the server obtains in the SKU buffer queues, there are SKU marks
Know corresponding target common information.
Optionally, described device further includes:
Preserving module, if for be not present in the SKU buffer queues SKU identify corresponding target common information and
Target service information, then by the target common information obtained from the server and target service information at least one of preserve to
The SKU buffer queues.
The technical solution of the present embodiment, by the access request for obtaining microphone;According to access request foundation and microphone
Connection, and pass through microphone obtain intelligent terminal user audio-frequency information;The corresponding vocal print feature of audio-frequency information is parsed, is obtained
The identification information of intelligent terminal user, identification information include the range of age, gender and the territorial scope of pronunciation;According to
The identification information of intelligent terminal user searches application program recommending data storehouse, and application program recommending data storehouse includes some answer
With the identification information of the history user of program;If the identification information of intelligent terminal user and going through for application program
The recommendation information of corresponding application program, then is included the microphone in intelligent terminal by the identification information matching of history user
Desktop page, can realize the recommendation application of efficient personalization.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding function module of execution method
And beneficial effect.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. page display method, it is characterised in that including:When receiving page display request, the keeper unit SKU information that the page display request carries is obtained;Corresponding server is asked to obtain target common information and target service letter from page display according to the SKU information At least one of breath;Page rendering is carried out according at least one of the target common information and target service information and obtains target details page, And show the target details page.
- 2. the according to the method described in claim 1, it is characterized in that, quantity in stock for obtaining the page display request and carrying After unit SKU information, the method further includes:SKU marks are obtained according to the SKU information;The SKU buffer queues being pre-stored within according to SKU mark inquiries in caching;If there are the SKU in the SKU buffer queues to identify corresponding target common information and target service information at least One, then obtained from the SKU buffer queues SKU identify corresponding target common information and target service information to One item missing;At least one progress page rendering acquisition of corresponding target common information and target service information is identified according to the SKU First details page, and show first details page;Page rendering is carried out according at least one of the target common information and target service information and obtains target details page, And show the target details page, including:According at least one progress page wash with watercolours of the target common information and target service information obtained from the server Dye obtains target details page, and updates first details page using the target details page.
- 3. according to the method described in claim 2, it is characterized in that, described shown according to the SKU information from the page please After seeking at least one of corresponding server acquisition target common information and target service information, the method further includes:Use at least one renewal of the target common information and target service information obtained from the server SKU cachings SKU described in queue identifies at least one of corresponding target common information and target service information.
- 4. if according to the method described in claim 2, it is characterized in that, there are SKU marks pair in the SKU buffer queues At least one of the target common information answered and target service information, then the SKU marks are obtained from the SKU buffer queues At least one of corresponding target common information and target service information include:If there are the SKU in the SKU buffer queues to identify corresponding target service information, from the SKU buffer queues It is middle to obtain the target service information;If the target service information is not present, and there are the corresponding target of SKU marks is public in the SKU buffer queues Information, then obtain the target common information from the SKU buffer queues.
- 5. according to the method described in claim 2, it is characterized in that, after obtaining SKU marks according to the SKU information, also wrap Include:SKU marks are subjected to unified capital and small letter processing.
- 6. according to the method described in claim 3, it is characterized in that, using the target common information that is obtained from the server and SKU identifies corresponding target common information and mesh described at least one described SKU buffer queue of renewal of target service information At least one of mark business information includes:Using being replaced from the target service information that the server obtains in the SKU buffer queues, there are SKU marks pair The target service information answered;And/orUsing being covered from the target common information that the server obtains in the SKU buffer queues, there are SKU marks pair The target common information answered.
- 7. according to the method described in claim 2, it is characterized in that, the method further includes:, will if there is no the SKU in the SKU buffer queues to identify corresponding target common information and target service information The target common information that is obtained from the server and target service information at least one of preserve to the SKU buffer queues.
- A kind of 8. page display device, it is characterised in that including:First acquisition module, for when receiving page display request, obtaining the quantity in stock that the page display request carries Unit SKU information;Second acquisition module, it is public for asking corresponding server to obtain target from page display according to the SKU information With at least one of information and target service information;First display module, for carrying out page rendering according at least one of the target common information and target service information Target details page is obtained, and shows the target details page.
- 9. device according to claim 8, it is characterised in that described device further includes:3rd acquisition module, for obtaining SKU marks according to the SKU information;Enquiry module, for the SKU buffer queues being pre-stored within according to SKU mark inquiries in caching;4th acquisition module, if for there are the corresponding target common information of SKU marks and mesh in the SKU buffer queues Mark business information at least one of, then obtained from the SKU buffer queues SKU identify corresponding target common information and At least one of target service information;Second display module, for identifying at least the one of corresponding target common information and target service information according to the SKU Item carries out page rendering and obtains the first details page, and shows first details page;First display module is specifically used for:According at least one progress page wash with watercolours of the target common information and target service information obtained from the server Dye obtains target details page, and updates first details page using the target details page.
- 10. device according to claim 9, it is characterised in that described device further includes:Update module, for asking corresponding server to obtain target from page display according to the SKU information described After at least one of common information and target service information, the target common information and target obtained from the server is used SKU identifies corresponding target common information and target industry described at least one described SKU buffer queue of renewal of business information At least one of information of being engaged in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283248.3A CN108038169B (en) | 2017-12-07 | 2017-12-07 | Page display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711283248.3A CN108038169B (en) | 2017-12-07 | 2017-12-07 | Page display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108038169A true CN108038169A (en) | 2018-05-15 |
CN108038169B CN108038169B (en) | 2020-10-16 |
Family
ID=62096127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711283248.3A Active CN108038169B (en) | 2017-12-07 | 2017-12-07 | Page display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108038169B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299414A (en) * | 2018-09-26 | 2019-02-01 | 深圳壹账通智能科技有限公司 | A kind of method and terminal of loading page |
WO2020156227A1 (en) * | 2019-01-28 | 2020-08-06 | 阿里巴巴集团控股有限公司 | Commodity object information processing method and apparatus and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009032004A1 (en) * | 2007-08-28 | 2009-03-12 | Shop.Com | Electronic commerce rule-based multi-selection gifting |
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN102855572A (en) * | 2011-07-01 | 2013-01-02 | 北京亚投科技有限责任公司 | Mobile interactive ordering/positioning service system and method |
CN105446996A (en) * | 2014-07-16 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Page display method and page display system |
CN105843814A (en) * | 2015-01-14 | 2016-08-10 | 阿里巴巴集团控股有限公司 | Method, device, and system for generating page |
-
2017
- 2017-12-07 CN CN201711283248.3A patent/CN108038169B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009032004A1 (en) * | 2007-08-28 | 2009-03-12 | Shop.Com | Electronic commerce rule-based multi-selection gifting |
CN102855572A (en) * | 2011-07-01 | 2013-01-02 | 北京亚投科技有限责任公司 | Mobile interactive ordering/positioning service system and method |
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN105446996A (en) * | 2014-07-16 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Page display method and page display system |
CN105843814A (en) * | 2015-01-14 | 2016-08-10 | 阿里巴巴集团控股有限公司 | Method, device, and system for generating page |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299414A (en) * | 2018-09-26 | 2019-02-01 | 深圳壹账通智能科技有限公司 | A kind of method and terminal of loading page |
WO2020156227A1 (en) * | 2019-01-28 | 2020-08-06 | 阿里巴巴集团控股有限公司 | Commodity object information processing method and apparatus and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN108038169B (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200265500A1 (en) | System and Method for Providing Electronic Commerce Data | |
US20140025774A1 (en) | Systems and methods for metadata driven dynamic web services | |
CA2846025C (en) | Recommendations based upon explicit user similarity | |
CN109376322A (en) | A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium | |
US20220207461A1 (en) | On-Demand Coordinated Comestible Item Delivery System | |
CN110910203A (en) | Method and device for displaying content of commodity page | |
CN112800370A (en) | Business document processing method and device, computer equipment and storage medium | |
US20100057775A1 (en) | Method and system for providing object information on the internet | |
CN107844927A (en) | The method and apparatus for improving storage outbound efficiency | |
US10380675B2 (en) | Method, medium, and system for manipulation of dynamically assembled ecommerce web pages | |
CN108038169A (en) | A kind of page display method and device | |
CN113793182A (en) | Commodity object recommendation method and device, equipment, medium and product thereof | |
US20130173428A1 (en) | Augmenting product information on a client device | |
US20170228815A1 (en) | Methods, systems, and media for providing aggregated and uniformly arranged item information | |
EP3859645A1 (en) | Data meta-model based feature vector set generation for training machine learning models | |
CN100538706C (en) | A kind of method and apparatus that shows electrical form | |
EP2887240B1 (en) | Electronic product information display system | |
CN100596143C (en) | Method of sharing data in WEB page flow and client apparatus | |
CN110069499A (en) | Data managing method, device, system and storage medium | |
CN110377896A (en) | For generating method, system, computer system and the medium of electrical form | |
WO2002027601A2 (en) | E-commerce sales support system using a vendor-specific product decision questionnaire | |
CN107977459A (en) | Report form generation method and device | |
US20190019339A1 (en) | Systems and methods for dynamically displaying information about an object using augmented reality | |
CN112070556A (en) | Information distribution system and information distribution method based on two-dimensional code | |
CN112418997B (en) | User interface display method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |