CN104915845B - For the merchandise news display methods and device of window - Google Patents

For the merchandise news display methods and device of window Download PDF

Info

Publication number
CN104915845B
CN104915845B CN201510341237.0A CN201510341237A CN104915845B CN 104915845 B CN104915845 B CN 104915845B CN 201510341237 A CN201510341237 A CN 201510341237A CN 104915845 B CN104915845 B CN 104915845B
Authority
CN
China
Prior art keywords
commodity
window
current window
identification data
information display
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.)
Active
Application number
CN201510341237.0A
Other languages
Chinese (zh)
Other versions
CN104915845A (en
Inventor
吴凯
王海旭
李双义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510341237.0A priority Critical patent/CN104915845B/en
Publication of CN104915845A publication Critical patent/CN104915845A/en
Application granted granted Critical
Publication of CN104915845B publication Critical patent/CN104915845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of merchandise news display methods and device for window.Whether the merchandise news display methods is the following steps are included: open item detail page in detection current window;If opening item detail page in current window, merchandise news corresponding with the item identification data is obtained from network service end according to item identification data stored in the sessionStorage of current window;The merchandise news is shown in current window.The commodity information display apparatus includes: detection module, commodity information acquisition module and display module.Merchandise news display methods and device provided by the present invention for window can carry out personalized recommendation for same browser different windows, the dependence to cookie can be reduced, scalability is promoted, communication traffic consumption of the user in access process can also be reduced.

Description

Commodity information display method and device for window
Technical Field
The invention relates to a commodity information display technology of the e-commerce industry, in particular to a method and a device for displaying commodity information aiming at a window.
Background
In the conventional real-time goods information display, a cookie is generally used to store real-time access data of a user, and then goods are recommended to the user in real time according to an access record stored in the cookie. When cookie storage is relied on, cookie data under the same domain name cannot be differentially stored aiming at different open windows, so real-time recommendation can only be controlled to browser granularity generally, and cannot be controlled to different window granularities of the same browser downwards, and when a user opens multiple windows under the same domain name to respectively browse, real-time personalized recommendation cannot be carried out aiming at respective browsing habits.
In addition, due to the limitation of the browser, the size and the number of cookies in the same domain name are limited, and abnormal situations such as slowing down of pages due to too many cookies and the like often occur, so that poor expandability is caused. Meanwhile, too large cookie loading in the using process can increase communication flow consumption, cause waste of network resources and increase of user access cost.
Therefore, it is necessary to design a method for displaying commodity information on a window, so as to overcome the above drawbacks and solve a series of problems caused by too many cookies.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for displaying commodity information on a window, aiming to overcome the defects of the prior art.
The commodity information display method for the window comprises the following steps.
And step S100, detecting whether a commodity detail page is opened in the current window.
Step S200, if a commodity detail page is opened in the current window, commodity information corresponding to the commodity identification data is obtained from the network server according to the commodity identification data stored in the sessionStorage of the current window.
And step S300, displaying the commodity information in the current window.
Preferably, the commodity information display method further includes: step S400, commodity identification data corresponding to the commodity detail page opened by the current page is stored in sessionStorage of the current window.
Preferably, the commodity information display method further includes: step S500, after the current window is closed, deleting the commodity identification data in the sessionStorage of the current window.
Preferably, in step S200, the product identification data is a number list corresponding to a product displayed in the current window.
Preferably, in step S200, the commodity information includes any one or more of: the picture of the commodity, the name of the commodity, the historical evaluation of the commodity, the website link of the commodity and the price of the commodity.
The commodity information display device for a window provided by the present invention includes: the detection module is used for detecting whether a commodity detail page is opened in a current window or not; the system comprises a commodity information acquisition module, a commodity information acquisition module and a commodity information processing module, wherein the commodity information acquisition module acquires commodity information corresponding to commodity identification data from a network server according to the commodity identification data stored in sessionStorage of a current window when the commodity detail page is opened in the current window; and the display module is used for displaying the commodity information in the current window.
Preferably, the commodity information display device further includes: and the storage module is used for storing the commodity identification data corresponding to the commodity detail page opened by the current page in the sessionStorage of the current window.
Preferably, the commodity information display device further includes: and the data deleting module is used for deleting the commodity identification data in the sessionStorage of the current window after the current window is closed.
Preferably, the commodity identification data is a number list corresponding to the commodity displayed in the current window.
Preferably, the commodity information acquired by the commodity information acquiring module includes any one or more of the following: the picture of the commodity, the name of the commodity, the historical evaluation of the commodity, the website link of the commodity and the price of the commodity.
The commodity information display method and device for the window have the following beneficial technical effects: 1) personalized recommendations can be made for different windows of the same browser. Specifically, the commodity identification data can be stored differently for different open windows, the window granularity of the same browser can be controlled, and the user can perform real-time personalized recommendation for respective browsing habits when opening multiple windows under the same domain name and browsing respectively. 2) The dependency on the cookie can be reduced, and the expandability is improved. 3) The communication flow consumption of the user in the access process can be reduced.
Drawings
The objects and advantages of the present invention will be understood by the following detailed description of the preferred embodiments of the invention, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a preferred embodiment of a commodity information display method for a window of the present invention.
Fig. 2 is a specific implementation process of the commodity information display method for windows according to the present invention.
Fig. 3 is a preferred embodiment of the commodity information display apparatus for windows of the present invention.
Detailed Description
The present invention will be described in detail with reference to examples. In which like parts are designated by like reference numerals.
Fig. 1 is a flowchart of a preferred embodiment of a commodity information display method for a window of the present invention. As shown in fig. 1, the method for displaying commodity information on a window according to the present invention includes the following steps.
And step S100, detecting whether a commodity detail page is opened in the current window. In step S100, it may be determined whether the current window opens an item detail page by detecting whether information about an item is being displayed in the current window. For example: if the url address of the current window is detected to be the address of a certain e-commerce website, it can be determined that the current window has opened a commodity detail page, and this way can be completed by recognizing text information in the url address. The determination may also be made by identifying specific information displayed in the current window, for example: identifying whether the displayed image is related to a commodity, identifying whether the displayed text information is related to a commodity transaction or a commodity introduction, and the like. In step S100, the item detail page may be any item, or may be set as a specific item detail page as needed, and only when the specific item detail page is opened, it is determined as yes.
Step S200, if a commodity detail page is opened in the current window, commodity information corresponding to the commodity identification data is obtained from the network server according to the commodity identification data stored in the sessionStorage of the current window. The commodity identification data may include a commodity number, a commodity name, and the like. If the detection result in step S100 is: when the item detail page is opened in the current window, that is, the determination result of step S100 is yes, step S200 may be preferably implemented by the following method.
1) And acquiring the commodity identification data stored in the sessionStorage of the current window. The commodity identification data can be number data corresponding to commodities displayed in the current window at one time, namely historical browsing data; the commodity identification data can also be a commodity or corresponding number data which is in the same category as or has higher similarity with the historical browsing data in the current window. For example: the two commodities marked as 'coat' and 'trousers' can be set as commodities with similarity, and the two commodities marked as 'brand A notebook computer' and 'brand B notebook computer' can be set as commodities with similarity, and the setting of the similarity can be adjusted or changed correspondingly according to actual needs. It can be understood that, when a certain commodity is displayed in the window, the number corresponding to the commodity, and/or the commodity similar to the commodity or the corresponding number are stored in the sessionStorage of the window, so as to provide a basis for displaying commodity information.
2) And sending the acquired commodity identification data to a network server. Preferably, the goods identification data may be transmitted in text form to save network resources. For example: for the article identification data of article number "12345", several fields of "12345" may be transmitted to the web server in text form. It is to be understood that the manner of transmission of the article identification data is not limited thereto.
3) And receiving commodity information from the network server. Preferably, the commodity information may be obtained by the network server according to the commodity identification data, for example: after receiving the commodity identification data, the network server can search according to the commodity identification data to obtain commodity information containing the commodity identification data, and the corresponding commodity information is transmitted back to the current window.
After step S200 is completed, step S300 is performed, and the commodity information is displayed in the current window. The commodity information may be displayed in any one or more of the following forms: a photograph of the good, a name of the good, a historical rating of the good, a web site link of the good, a price of the good, and the like. For example: the name and the price of the commodity can be displayed in a popup window mode below the current window, and the website link of the commodity is implanted into the popup window, so that the user can conveniently click and access the commodity.
In a preferred embodiment, the method for displaying commodity information for a window further includes step S400, storing commodity identification data corresponding to a commodity detail page opened by a current page in sessionStorage of the current window. In order to improve the commodity identification data in the sessionStorage of the current window, the serial number data corresponding to the commodity displayed in the current window can be stored in the sessionStorage of the current window, and the commodity identification data in the sessionStorage is expanded, so that the historical browsing record of the window can be better reflected, the commodity identification data is in a real-time updating state, a more accurate basis is provided for the recommendation of the commodity, and the commodity information display effect is improved.
Preferably, the commodity information display method further includes: step S500, after the current window is closed, deleting the commodity identification data in the sessionStorage of the current window. After the current window is closed, the commodity identification data in the sessionStorage of the current window can be automatically deleted, and the design does not need to specially remove extra data, so that slow access caused by too much stored data is avoided, and meanwhile, network flow can be saved.
Fig. 2 is a specific implementation process of the commodity information display method for windows according to the present invention. As shown in fig. 2, assuming that the user accesses the goods page a first and then accesses the goods page b, the specific access process can be divided into the following steps.
a1) When a user opens a commodity page a in the current window, the commodity identification data which is browsed most recently at the visit is obtained, namely the commodity identification data stored in the sessionStorage of the current window is obtained. If no commodity identification data is stored in the sessionStorage, that is, no browsing history exists, the commodity information may not be displayed.
a2) And transmitting the acquired commodity identification data to a network server, and searching the commodity information related to the commodity identification data by the network server according to the commodity identification data.
a3) The web server returns the relevant commodity information to the commodity page a of the current window and displays the commodity information (i.e., displays the commodity information).
a4) And storing the commodity identification data corresponding to the commodity page a in the sessionStorage to provide a basis for displaying the subsequent commodity information.
b1) When the user continues to open the product page b in the current window, the product identification data stored in the sessionStorage of the current window is acquired, and it should be noted that, at this time, the product identification data related to the product a has been added to the product identification data in the sessionStorage of the current window.
b2) Transmitting the commodity identification data in the step a2) and the commodity identification data related to the commodity a which is just stored to a network server to acquire commodity information.
b3) The web server returns the relevant product information to the product page b of the current window and displays the product information (that is, displays the product information), and at this time, the product information display content displayed in the current window may include information related to the product page a.
b4) And storing the commodity identification data corresponding to the commodity page b in the sessionStorage to provide a basis for displaying the subsequent commodity information.
In a preferred embodiment, sessionStorage can be adopted to store commodity identification data in a window session (session) in a client browser, the commodity identification data can be read and written only in a page in the same window of the browser, and the data is automatically destroyed after the window is closed without extra removal.
Correspondingly, the invention also provides a commodity information display device for the window, and fig. 3 is a preferred embodiment of the commodity information display device for the window. As shown in fig. 3, the commodity information display device includes: the system comprises a detection module 10, a commodity information acquisition module 20 and a display module 30. The detection module 10 is configured to detect whether a commodity detail page is opened in a current window; when the commodity information acquiring module 20 opens the commodity detail page in the current window, acquiring commodity information corresponding to the commodity identification data from the network server according to the commodity identification data stored in the sessionStorage of the current window; the display module 30 is configured to display the commodity information in a current window.
In a preferred embodiment, the article information display device further includes a storage module 40, and the storage module 40 is configured to store article identification data corresponding to the article detail page opened by the current page in sessionStorage of the current window.
In another preferred embodiment, the merchandise information display device further comprises a data deleting module 50, and the data deleting module 50 is configured to delete the merchandise identification data in the sessionStorage of the current window after the current window is closed.
Preferably, the commodity identification data is a number list corresponding to the commodity displayed in the current window.
Preferably, the commodity information acquired by the commodity information acquiring module 20 includes any one or more of the following: the picture of the commodity, the name of the commodity, the historical evaluation of the commodity, the website link of the commodity and the price of the commodity.
The commodity information display method and device for the window have the following beneficial technical effects: 1) personalized recommendations can be made for different windows of the same browser. Specifically, the commodity identification data can be stored differently for different open windows, the window granularity of the same browser can be controlled, and the user can perform real-time personalized recommendation for respective browsing habits when opening multiple windows under the same domain name and browsing respectively. 2) The dependency on the cookie can be reduced, and the expandability is improved. 3) The communication flow consumption of the user in the access process can be reduced.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A commodity information display method for a window, characterized by comprising the steps of:
step S100, detecting whether a commodity detail page is opened in a current window;
step S200, if a commodity detail page is opened in the current window, commodity information corresponding to the commodity identification data is obtained from a network server according to the commodity identification data stored in the sessionStorage of the current window; the commodity identification data is number data corresponding to commodities displayed in the current window; or the commodities or the corresponding numbering data with the same category or higher similarity with the historical browsing data in the current window;
and step S300, displaying the commodity information in the current window.
2. The commodity information display method for a window according to claim 1, further comprising: step S400, commodity identification data corresponding to the commodity detail page opened by the current page is stored in sessionStorage of the current window.
3. The commodity information display method for a window according to claim 1 or 2, further comprising: step S500, after the current window is closed, deleting the commodity identification data in the sessionStorage of the current window.
4. The method for displaying commodity information on a window according to claim 1 or 2, wherein in step S200, the commodity identification data is a number list corresponding to a commodity displayed in a current window.
5. The commodity information display method for windows according to claim 1 or 2, wherein in step S200, the commodity information includes any one or more of: the picture of the commodity, the name of the commodity, the historical evaluation of the commodity, the website link of the commodity and the price of the commodity.
6. A commodity information display device for a window, characterized by comprising:
the detection module is used for detecting whether a commodity detail page is opened in a current window or not;
the system comprises a commodity information acquisition module, a commodity information acquisition module and a commodity information processing module, wherein the commodity information acquisition module acquires commodity information corresponding to commodity identification data from a network server according to the commodity identification data stored in sessionStorage of a current window when the commodity detail page is opened in the current window; the commodity identification data is number data corresponding to commodities displayed in the current window; or the commodities or the corresponding numbering data with the same category or higher similarity with the historical browsing data in the current window;
and the display module is used for displaying the commodity information in the current window.
7. The commodity information display device for windows according to claim 6, further comprising: and the storage module is used for storing the commodity identification data corresponding to the commodity detail page opened by the current page in the sessionStorage of the current window.
8. The commodity information display device for windows according to claim 6 or 7, further comprising: and the data deleting module is used for deleting the commodity identification data in the sessionStorage of the current window after the current window is closed.
9. The commodity information display device for a window according to claim 6 or 7, wherein the commodity identification data is a number list corresponding to a commodity displayed in a current window.
10. The merchandise information display device for a window according to claim 6 or 7, wherein the merchandise information acquired by the merchandise information acquisition module includes any one or more of: the picture of the commodity, the name of the commodity, the historical evaluation of the commodity, the website link of the commodity and the price of the commodity.
11. A computer-readable storage medium for storing computer instructions which, when executed by a computer, perform the merchandise information display method for a window according to any one of claims 1 to 5.
12. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the merchandise information display method for a window according to any one of claims 1 to 5.
CN201510341237.0A 2015-06-18 2015-06-18 For the merchandise news display methods and device of window Active CN104915845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510341237.0A CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510341237.0A CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Publications (2)

Publication Number Publication Date
CN104915845A CN104915845A (en) 2015-09-16
CN104915845B true CN104915845B (en) 2019-07-02

Family

ID=54084891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510341237.0A Active CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Country Status (1)

Country Link
CN (1) CN104915845B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706140A (en) * 2016-01-25 2016-06-22 程强 Dining app platform merchant information display method and system
CN107766231B (en) * 2016-08-22 2021-03-16 阿里巴巴集团控股有限公司 Automatic testing method and device
CN108681932A (en) * 2018-04-04 2018-10-19 刘强 A kind of novel product information processing method and system
CN109325825B (en) * 2018-09-04 2020-06-30 口口相传(北京)网络技术有限公司 Flow data regulation and control method and device
CN109685614A (en) * 2018-12-19 2019-04-26 广州易起行信息技术有限公司 Travelling products recommended method, device, computer equipment and storage medium
CN110175310A (en) * 2019-06-03 2019-08-27 浪潮云信息技术有限公司 A kind of variation of foreground interface data showed slow solution
CN114612188A (en) * 2022-03-17 2022-06-10 上海禹璨信息技术有限公司 Information processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN103530292A (en) * 2012-07-02 2014-01-22 阿里巴巴集团控股有限公司 Webpage displaying method and device
CN103703483A (en) * 2011-06-24 2014-04-02 乐天株式会社 Information providing device, information providing method, information providing program, information display program, and computer-readable recording medium for storing information providing program
CN104615665A (en) * 2015-01-12 2015-05-13 华为技术有限公司 Method and device for display control of information in webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703483A (en) * 2011-06-24 2014-04-02 乐天株式会社 Information providing device, information providing method, information providing program, information display program, and computer-readable recording medium for storing information providing program
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN103530292A (en) * 2012-07-02 2014-01-22 阿里巴巴集团控股有限公司 Webpage displaying method and device
CN104615665A (en) * 2015-01-12 2015-05-13 华为技术有限公司 Method and device for display control of information in webpage

Also Published As

Publication number Publication date
CN104915845A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN104915845B (en) For the merchandise news display methods and device of window
CN109145280B (en) Information pushing method and device
CN107330752B (en) Method and device for identifying brand words
KR101511050B1 (en) Method, apparatus, system and computer program for offering and displaying a product information
WO2020001106A1 (en) Classification model training method and store classification method and device
CN109325179B (en) Content promotion method and device
JP7544791B2 (en) Systems and methods for collecting data relating to fraudulent content in a networked environment - Patents.com
CN109388548B (en) Method and apparatus for generating information
CA2917256C (en) Screenshot-based e-commerce
US20100318422A1 (en) Method for recommending information of goods and system for executing the method
US20150046281A1 (en) Product suggestions for related items
CN112085567B (en) Commodity recommendation method, commodity recommendation device, electronic equipment and readable medium
CN112184290A (en) Information recommendation method and device, electronic equipment and storage medium
CN112508638B (en) Data processing method and device and computer equipment
EP3274919B1 (en) Establishment anchoring with geolocated imagery
CN104239545A (en) Multi-label page preview method and device
CN103020128A (en) Method and device for data interaction with terminal device
KR102575433B1 (en) Advertisement reservation system that includes marketer's re-examination function
EP3564833B1 (en) Method and device for identifying main picture in web page
US12056201B2 (en) Systems and methods for automatic and adaptive browser bookmarks
CN108549722B (en) Multi-platform data publishing method, system and medium
CN108319622B (en) Media content recommendation method and device
US20210081465A1 (en) System and method for efficient multi stage statistical website indexing
CN111026981A (en) Visual display method, device and equipment for hot topics
US20140200971A1 (en) System and method for matching informative content to a multimedia content element based on concept recognition of the multimedia content

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant