WO2018149071A1 - 产品项的显示方法、装置、设备及计算机可读存储介质 - Google Patents

产品项的显示方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2018149071A1
WO2018149071A1 PCT/CN2017/089472 CN2017089472W WO2018149071A1 WO 2018149071 A1 WO2018149071 A1 WO 2018149071A1 CN 2017089472 W CN2017089472 W CN 2017089472W WO 2018149071 A1 WO2018149071 A1 WO 2018149071A1
Authority
WO
WIPO (PCT)
Prior art keywords
product item
data content
display
preset
product
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.)
Ceased
Application number
PCT/CN2017/089472
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2018149071A1 publication Critical patent/WO2018149071A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for displaying a product item.
  • the display of most products is generally in the process of scrolling, dynamically adding and deleting nodes and data in the list, that is, when the product item scrolls out of the display interface, the data of the product item and the node are deleted together, and if it is to be re-created next time Display, then re-add new nodes, and re-acquire the data to be added to the new template, and finally populate the new node for display, due to frequent node and data addition and deletion operations, the terminal system processing pressure is too large, thus This leads to poor fluency of the terminal.
  • the main object of the present invention is to provide a display method, device, device and computer readable storage medium for a product item, which aims to solve the technical problem that the display mode of the existing product item is easy to cause poor fluency of the terminal.
  • the present invention provides a display method of a product list, and the display method of the product list includes:
  • the extracted data content is filled into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the present invention further provides a display device for a product item, the display device of the product item comprising:
  • a judging module configured to determine, when the display instruction of the product item is detected, whether to cache the data content of the first product item to be displayed in the preset storage space, where the data content includes the first product item identifier And having the data content of the preset display mode;
  • An extracting module configured to extract data content of the first product item if the data content of the first product item to be displayed is cached in the preset storage space;
  • a filling module configured to fill the extracted data content into an area where the node of the display interface is free to display the first product item, where the node is cyclically shifted in the display interface.
  • the present invention further provides a display device for a product item, where the display device of the product item includes a processor, a network interface, a user interface, and a memory, where the data content of the product item is stored in the memory;
  • the network interface is configured to connect to a database and perform data communication with the database
  • the user interface is configured to connect to a client, and perform data communication with the client;
  • the processor is configured to execute a display program of the product item to implement the following steps:
  • the extracted data content is filled into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors To achieve the following steps:
  • the extracted data content is filled into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the product item display method, device, device and computer readable storage medium provided by the present invention, when detecting the display instruction of the product item, determine whether the data content of the first product item to be displayed is cached in the preset storage space, if The data content of the first product item to be displayed is cached in the preset storage space, and the data content of the first product item is extracted, and the extracted data content is filled into a region where the node of the display interface is free. To display the first product item. In this solution, when the product item that has been displayed is scrolled to the current display interface, the data content directly extracted and cached is filled into the vacant node for display, and the data is not retrieved from the database and added to the template, and finally added. Display to the newly added nodes to reduce the processing pressure of the terminal system and improve the fluency of the terminal.
  • FIG. 1 is a schematic flow chart of a first embodiment of a display method of a product item according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a display method of a product item according to the present invention.
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for displaying a product item according to the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a display device for a product item of the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a second embodiment of a display device for a product item of the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a third embodiment of a display device for a product item of the present invention.
  • FIG. 7 is a schematic structural diagram of a device in a hardware operating environment according to an embodiment of the present invention.
  • the solution of the embodiment of the present invention is: when detecting the display instruction of the product item, determining whether the data content of the first product item to be displayed is cached in the preset storage space, if the preset storage space is cached Displaying the data content of the first product item, extracting the data content of the first product item, and filling the extracted data content into an area where the node of the display interface is free to display the first product item .
  • the invention provides a method of displaying a product item.
  • FIG. 1 is a schematic flow chart of a first embodiment of a display method of a product item according to the present invention.
  • the display method of the product item includes:
  • the display instruction of the product item When the display instruction of the product item is detected, determining whether the data content of the first product item to be displayed is cached in the preset storage space, wherein the data content includes the first product item identifier and has a preset Displaying the data content of the mode; if the data content of the first product item to be displayed is cached in the preset storage space, extracting the data content of the first product item; filling the extracted data content into the display The area where the remaining nodes of the interface are located to display the first product item, wherein the node is cyclically shifted in the display interface.
  • step S10 when the display instruction of the product item is detected, it is determined whether the data content of the first product item to be displayed is cached in the preset storage space, wherein the data content includes the first product item identifier, and Data content with a preset display mode;
  • the terminal when the user opens the corresponding page in the display interface of the terminal, the terminal displays the product list of the page on the current display interface, and if the product item is detected from the hidden area during the process of scrolling the product list When scrolling to the current display interface, it is equivalent to receiving a display command for the product item.
  • the terminal When detecting the display instruction of the product item, the terminal determines the first product item to be displayed in the current product list, and then determines, in the preset storage space, whether to cache the data content of the first product item to be displayed.
  • the preset storage space is actually a buffer area
  • the data content of the first product item is data content including a first product item identifier and having a preset display mode.
  • Determining whether to cache the data content of the first product item to be displayed in the preset storage space in fact, querying whether the first product identifier is stored in the buffer area, specifically: displaying instructions according to the product item Obtaining an identifier of the first product item to be displayed, and then comparing the obtained identifier with each pre-stored product item identifier in the buffer area to determine whether the first to be displayed is cached in the preset storage space.
  • the identifier of the product item if it is detected that the identifier of the first product item exists, may determine that the data content of the first product item is cached in the preset storage space.
  • Step S20 If the data content of the first product item to be displayed is cached in the preset storage space, extract the data content of the first product item;
  • step S30 the extracted data content is filled into the area where the node of the current display interface is located to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the data content of the first product item is cached in the preset storage space, it indicates that the first product item has been loaded before, and the data content is cached in advance, and no need to be executed at this time. Reloading the data content of the first product item and adding it to the template, adding a new operation to the newly added node, directly extracting the cached data content, and populating the extracted data content to the vacant node of the current display interface
  • the area can be displayed, thereby enabling the first product item to be quickly displayed to the current display interface.
  • the node is preferably a DOM (Document Object) a model
  • a document is a model for displaying product item data content in a current display interface
  • the number of the nodes is related to the number of product items displayed in the display interface, if the display interface is The more product items displayed, the more nodes there are, and the fewer the fewer.
  • the position of the node located in the display interface is scrolled along with the product item.
  • the node is scrolled out of the current display interface to delete.
  • the node when there is a product item to be scrolled to the current display interface for display in the hidden area, regenerate a new node to add the product item to be scrolled to the current display interface to the new node to realize display, so that Can avoid a series of cumbersome operations.
  • the node is not randomly added or deleted, but is consistent with the number of product items displayed in the display interface.
  • the node corresponding to the product item is performed. Shifting, for example, the product item of the first line in the current display interface is to be scrolled out of the display interface. Inevitably, the last line will display a new product item. At this time, the node of the first line of product items is emptied and shifted to In the last line, the data content of the product item of the last line is filled into the shifted node to complete the display of the product item. Similarly, in the current display interface, the last line of product items should be scrolled out of the display interface, and the node of the last line of product items is emptied and shifted to the first line to be filled by the data content of the product item of the first line. Go to the shifted node to complete the display of the product item. In this embodiment, during the scrolling of the product list, each node in the current display interface is shifted one by one, and all nodes are cyclically shifted.
  • the first product item is not limited to a number, and may be a product item or a plurality of product items, and is specifically set according to actual conditions.
  • scrolling one page and scrolling three product items is equivalent to scrolling out three product items for display, and scrolling the other three product items to hide.
  • the padding display is performed by the data content of the three product items to be displayed.
  • the product item display method of the embodiment when detecting the display instruction of the product item, determining whether the data content of the first product item to be displayed is cached in the preset storage space, if the preset storage space is cached Displaying the data content of the first product item, extracting the data content of the first product item, and filling the extracted data content into an area where the node of the display interface is free to display the first product item .
  • the data content directly extracted and cached is filled into the vacant node for display, and the data is not retrieved from the database and added to the template, and finally added. Display to the newly added nodes to reduce the processing pressure of the terminal system and improve the fluency of the terminal.
  • the existing node is reused, the node that scrolls out of the current display interface is padded to the position where the scrolling is to be performed, and the data content is replaced with the new data content, and no new node needs to be regenerated, and the reuse already exists.
  • the nodes make the scrolling of the terminal smoother.
  • the display method of the product item of the present invention further includes:
  • Step S40 If the data content of the first product item to be displayed is not cached in the preset storage space, extract the data content of the first product item in a database;
  • step S50 the extracted data content is added to the preset template, and the data content added to the preset template is added to the area where the node of the display interface is free to display.
  • the terminal determines that the data content of the first product item is not cached in the preset storage space, indicating that the first product item is displayed for the first time, the terminal first Extracting the data content of the first product item in the database, and then adding the extracted data content to the preset template to obtain the data content having the canonical display mode, and finally adding the data content having the canonical display mode to the display The area where the remaining nodes of the interface are located for display.
  • the data content needs to be loaded, and the loaded data content is added to the preset display template to obtain the data content with the canonical display mode, and then added to the display.
  • the display method of the product item further includes:
  • Step S60 adding a first product item identifier to the data content of the first product item when detecting that the first product item scrolls out of the current display interface;
  • Step S70 The data content to which the first product item identifier is added is cached as the data content having the preset display mode to the preset storage space.
  • the data content of the first product item is added.
  • a product item identifier, and then the data content to which the first product item identifier is added is cached as the data content having the preset display mode to the preset storage space. Subsequently, when the first product item is scrolled to the current display interface for display, the data content of the first product item can be directly obtained for display, thereby improving the efficiency of displaying the product item and reducing the processing of the terminal system. pressure.
  • a fourth embodiment of the display method of the product item of the present invention is proposed based on the first to third embodiments.
  • the following steps are performed:
  • the extracted data content is filled in the area where the node of the display interface is free to display the first product item, and the terminal determines that the current product list is located in the hidden area and is away from the current display interface.
  • the second product item and the third product item in the predetermined range of the boundary product item, wherein the specific value of the preset range is set according to actual conditions, and is not limited herein.
  • the second product item and the third product item are product items located in a hidden area and within a preset range of two boundary product items in the current display interface, that is, the second product item and the third product item.
  • the items are located in different hidden areas of the display interface, one is located at the top hidden area of the current display interface, and one is located at the lower hidden area of the current display interface.
  • determining whether the data content corresponding to the second product item and the third product item is cached in the preset storage space if the preset storage space.
  • the data content corresponding to the second product item and the third product item is not cached, and the data content corresponding to the second product item and the third product item are respectively added to the preset template, and respectively Adding a product item identifier to obtain data content having a preset display mode, that is, adding data content of the second product item to the preset template, adding data content of the third product item to the preset template, and then respectively
  • a second product item identifier and a third product item identifier are added to obtain data content having a preset display mode.
  • the obtained data content is cached to the preset storage space, so as to directly extract the data content corresponding to the second product item or the third product item when the second product item or the third product item is subsequently displayed.
  • the specific number of the first product items is not limited, and the number of the second product items and the third product items is not limited. , set according to the actual situation.
  • the product item in the hidden area that is closer to the boundary product item is loaded in advance, and subsequent, even if it is displayed for the first time, the cache may be directly extracted.
  • the display of data content improves the intelligence and efficiency of product item display.
  • a fifth embodiment of the display method of the product item of the present invention is proposed based on the first to fourth embodiments.
  • the display method of the product item further includes:
  • each data content that is cached in the preset storage space and contains the product item identifier is deleted.
  • the data content cached in the preset storage space of the current product list may be directly deleted.
  • a waiting time may be set in advance, and the current product list is deleted in the preset storage space when the current product list page is closed for a preset duration. If the waiting time is not up to the preset duration, the data content cached in the preset storage space of the current product list is continued to be cached until the waiting time reaches the preset duration.
  • the preset duration may be set according to a specific situation, and is not limited herein.
  • the deletion manner of each data content cached by the current product list in the preset storage space is defined in two ways, and the flexibility of deleting data content in the product item is improved.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the invention further provides a display device for a product item.
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a display device 100 for a product item of the present invention.
  • the functional block diagram shown in FIG. 4 is merely an exemplary diagram of a preferred embodiment, and the function of the display device 100 of the product item shown in FIG. 4 by those skilled in the art.
  • the module can be easily supplemented by a new function module; the name of each function module is a custom name, which is only used to assist in understanding the various program function blocks of the display device 100 of the product item, and is not used to limit the technical solution of the present invention.
  • the core of the technical solution of the invention is the function to be achieved by the functional modules of the respective defined names.
  • the display device 100 of the product item includes:
  • the determining module 10 is configured to determine, when the display instruction of the product item is detected, whether the data content of the first product item to be displayed is cached in the preset storage space, where the data content includes the first product item identifier And the data content with the preset display mode;
  • the product list of the page is displayed on the current display interface, and in the process of scrolling the product list, if a product item is detected to be scrolled from the hidden area When the current display interface is reached, it is equivalent to receiving the display command of the product item.
  • the preset storage space is actually a buffer area
  • the data content of the first product item is data content including a first product item identifier and having a preset display mode.
  • the determining module 10 determines, in the preset storage space, whether to cache the data content of the first product item to be displayed, and actually queries whether the first product identifier is stored in the buffer area, specifically: according to The display instruction of the product item acquires an identifier of the first product item to be displayed, and then compares the obtained identifier with each pre-stored product item identifier in the buffer area to determine whether the preset storage space is cached to be displayed. And determining, by the identifier of the first product item, that the identifier of the first product item exists, determining that the data content of the first product item is cached in the preset storage space.
  • the extracting module 20 is configured to: if the data content of the first product item to be displayed is cached in the preset storage space, extract the data content of the first product item;
  • the filling module 30 is configured to fill the extracted data content into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the extraction module 20 directly extracts the cached data content, and the filling module 30 fills the extracted data content to the current display.
  • the area where the vacant node of the interface is located can be displayed, thereby realizing the quick display of the first product item to the current display interface.
  • the node is preferably a DOM (Document Object) a model
  • a document is a model for displaying product item data content in a current display interface
  • the number of the nodes is related to the number of product items displayed in the display interface, if the display interface is The more product items displayed, the more nodes there are, and the fewer the fewer.
  • the position of the node located in the display interface is scrolled along with the product item.
  • the node is scrolled out of the current display interface to delete.
  • the node when there is a product item to be scrolled to the current display interface for display in the hidden area, regenerate a new node to add the product item to be scrolled to the current display interface to the new node to realize display, so that Can avoid a series of cumbersome operations.
  • the node is not randomly added or deleted, but is consistent with the number of product items displayed in the display interface.
  • the node corresponding to the product item is performed. Shifting, for example, the product item of the first line in the current display interface is to be scrolled out of the display interface. Inevitably, the last line will display a new product item. At this time, the node of the first line of product items is emptied and shifted to In the last line, the data content of the product item of the last line is filled into the shifted node to complete the display of the product item. Similarly, in the current display interface, the last line of product items should be scrolled out of the display interface, and the node of the last line of product items is emptied and shifted to the first line to be filled by the data content of the product item of the first line. Go to the shifted node to complete the display of the product item. In this embodiment, during the scrolling of the product list, each node in the current display interface is shifted one by one, and all nodes are cyclically shifted.
  • the first product item is not limited to a number, and may be a product item or a plurality of product items, and is specifically set according to actual conditions.
  • scrolling one page and scrolling three product items is equivalent to scrolling out three product items for display, and scrolling the other three product items to hide.
  • the padding display is performed by the data content of the three product items to be displayed.
  • the product item display device of the embodiment when detecting the display instruction of the product item, determines whether the data content of the first product item to be displayed is cached in the preset storage space, if the preset storage space is cached Displaying the data content of the first product item, extracting the data content of the first product item, and filling the extracted data content into an area where the node of the display interface is free to display the first product item .
  • the data content directly extracted and cached is filled into the vacant node for display, and the data is not retrieved from the database and added to the template, and finally added. Display to the newly added nodes to reduce the processing pressure of the terminal system and improve the fluency of the terminal.
  • the existing node is reused, the node that scrolls out of the current display interface is padded to the position where the scrolling is to be performed, and the data content is replaced with the new data content, and no new node needs to be regenerated, and the reuse already exists.
  • the nodes make the scrolling of the terminal smoother.
  • the display device of the product item further includes a first adding module 40:
  • the extracting module 20 is further configured to: if the data content of the first product item to be displayed is not cached in the preset storage space, extract the data content of the first product item in a database;
  • the first adding module 40 is configured to add the extracted data content to the preset template, and add the data content added to the preset template to an area where the node of the display interface is free to display.
  • the extraction module 20 First extracting the data content of the first product item in the database, and then the first adding module 40 adds the extracted data content to the preset template to obtain data content having a canonical display mode, which will eventually have The data content of the canonical display mode is added to the area where the nodes of the display interface are empty for display.
  • the data content needs to be loaded, and the loaded data content is added to the preset display template to obtain the data content with the canonical display mode, and then added to the display.
  • the display device of the product item further includes a first cache module 50:
  • the first adding module 40 is further configured to: add a first product item identifier to the data content of the first product item when detecting that the first product item scrolls out of the current display interface;
  • the first cache module 50 is configured to cache the data content with the first product item identifier added as the data content with the preset display mode to the preset storage space.
  • the first adding module 40 is the first one, because the first product item is displayed for the first time.
  • the data content of the product item is added with the first product item identifier, and then the first cache module 50 caches the data content to which the first product item identifier is added as the data content with the preset display mode to the preset storage. space.
  • the data content of the first product item can be directly obtained for display, thereby improving the efficiency of displaying the product item and reducing the processing of the terminal system. pressure.
  • a fourth embodiment of the display device of the product item of the present invention is proposed based on the first to third embodiments.
  • the display device of the product item further includes:
  • a determining module configured to determine a second product item and a third product item in the current product list that are located in a hidden area and are within a preset range of the boundary product item of the current display interface
  • the determining module 10 is further configured to determine whether the data content corresponding to the second product item and the third product item is cached in the preset storage space;
  • a second adding module configured to: if the second product item and the third product item corresponding to the data content are not cached in the preset storage space, respectively, the second product item and the third The data content corresponding to the product item is added to the preset template, and the product item identifier is separately added to obtain the data content having the preset display mode;
  • a second cache module configured to cache the obtained data content to the preset storage space, so as to directly extract the second product item or the third product when the second product item or the third product item is subsequently displayed
  • the data content corresponding to the item is filled in the area where the node of the display interface is empty and displayed.
  • the filling module 30 fills the extracted data content into the area where the node of the display interface is free to display the first product item, and the determining module determines that the current product list is located in the hidden area.
  • the second product item and the third product item in the preset range of the boundary product item of the current display interface, wherein the specific value of the preset range is set according to the actual situation, which is not limited herein.
  • the second product item and the third product item are product items located in a hidden area and within a preset range of two boundary product items in the current display interface, that is, the second product item and the third product item.
  • the items are located in different hidden areas of the display interface, one is located at the top hidden area of the current display interface, and one is located at the lower hidden area of the current display interface.
  • the determining module 10 determines whether the data corresponding to the second product item and the third product item is cached in the preset storage space.
  • Content if the second product item and the data item corresponding to the third product item are not cached in the preset storage space, the second adding module respectively uses the second product item and the third product.
  • the data content corresponding to the item is added to the preset template, and the product item identifier is separately added to obtain the data content having the preset display mode, that is, the data content of the second product item is added to the preset template, and the third product item is added.
  • the data content is also added to the preset template, and then the second product item identifier and the third product item identifier are respectively added to obtain the data content having the preset display mode.
  • the second cache module caches the obtained data content to the preset storage space, so as to directly extract the second product item or the third product item when the second product item or the third product item is subsequently displayed.
  • the corresponding data content is filled in the area where the remaining nodes of the display interface are located for display, and the wireless re-execution performs the operations of acquiring the data content, adding the template, and adding to the node.
  • the specific number of the first product items is not limited, and the number of the second product items and the third product items is not limited. , set according to the actual situation.
  • the product item in the hidden area that is closer to the boundary product item is loaded in advance, and subsequent, even if it is displayed for the first time, the cache may be directly extracted.
  • the display of data content improves the intelligence and efficiency of product item display.
  • a fifth embodiment of the display device of the product item of the present invention is proposed based on the first to fourth embodiments.
  • the display device of the product item further includes:
  • a deleting module configured to delete, when the page that detects the current product list is closed, each data content that is cached in the preset storage space and includes a product item identifier
  • each data content that is cached in the preset storage space and contains the product item identifier is deleted.
  • the deleting module may select to directly delete each data content that is cached in the preset storage space by the current product list.
  • a waiting time may be set in advance, and when the time of the current product list is closed for a preset duration, the deleting module deletes the current product list at the preset. Storing each data content cached in the storage space, if the waiting time has not reached the preset duration, continuing to cache each data content cached in the preset storage space by the current product list until the waiting time reaches a preset duration Just delete.
  • the preset duration may be set according to a specific situation, and is not limited herein.
  • the deletion manner of each data content cached by the current product list in the preset storage space is defined in two ways, and the flexibility of deleting data content in the product item is improved.
  • the above determining module 10, the extracting module 20, the filling module 30, the first adding module 40, the first cache module 50, and the like may be embedded in hardware or independent of the display device of the product item.
  • the software may also be stored in the memory of the display device of the product item in software, so that the processor performs the operations corresponding to the above respective modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • FIG. 7 is a schematic structural diagram of a device in a hardware operating environment according to an embodiment of the present invention.
  • the display device of the product item in the embodiment of the present invention may be a PC, or may be a smart phone, a tablet computer, an e-book reader, and an MP3 (Moving). Picture Experts Group Audio Layer III, motion picture expert compresses standard audio layer 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video experts compress standard audio layers 4) Terminal devices with display functions such as players and portable computers.
  • the display device of the product item may include a processor 1001, such as a CPU, a network interface 1002, a user interface 1003, and a memory 1004. Connection communication between these components can be achieved via a communication bus.
  • the network interface 1002 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (such as a WI-FI interface, a Bluetooth interface, an infrared interface, etc. for connecting to a wireless network).
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface (eg, for connecting a wired keyboard, a wired mouse, etc.) and/or a wireless interface (eg, Used to connect a wireless keyboard, wireless mouse).
  • the memory 1004 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1004 can also optionally be a storage device independent of the aforementioned processor 1001.
  • the display device of the product item may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
  • RF Radio
  • RF Radio Frequency
  • the display device structure of the product item shown in FIG. 7 does not constitute a limitation of the display device of the product item, and may include more or less components than those illustrated, or may combine some components. Or different parts arrangement.
  • a memory 1004 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a display program of product items.
  • the operating system is a program for managing and controlling the hardware and software resources of the display device of the product item, and supports the operation of the network communication module, the user interface module, the display program of the product item, and other programs or software;
  • the network communication module is used for management and control Network interface 1002; a user interface module for managing and controlling user interface 1003.
  • the network interface 1002 is mainly used for connecting to a database and performing data communication with the database;
  • the user interface 1003 is mainly used for connecting a client (which can be understood as a client), and performing data with the client.
  • the communication such as displaying the information to the client through the window, or receiving the operation information sent by the client;
  • the processor 1001 may be configured to execute the display program of the product item stored in the memory 1004 to implement the following steps:
  • the extracted data content is filled into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the processor 1001 is further configured to execute a display program of the product item stored in the memory 1004, to implement The following steps:
  • the extracted data content is added to the preset template, and the data content added to the preset template is added to the area where the node of the display interface is free to display.
  • the processor 1001 is further configured to execute a display program of the product items stored in the memory 1004 to implement the following steps:
  • the data content to which the first product item identifier is added is cached as the data content having the preset display mode to the preset storage space.
  • processor 1001 is further configured to perform the storage in the memory 1004 while performing the step of filling the extracted data content into an area where the node of the display interface is free to display the first product item.
  • the display program for the product item to implement the following steps:
  • processor is further configured to execute a display program of the product item to implement the following steps:
  • each data content that is cached in the preset storage space and contains the product item identifier is deleted.
  • the present invention provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the following steps:
  • the extracted data content is filled into an area where the node of the display interface is free to display the first product item, wherein the node is cyclically shifted in the display interface.
  • the one or more programs may be executed by the one or more processors, and further implement the following step:
  • the extracted data content is added to the preset template, and the data content added to the preset template is added to the area where the node of the display interface is free to display.
  • One or more programs may be executed by the one or more processors, and the following steps are also implemented:
  • the data content to which the first product item identifier is added is cached as the data content having the preset display mode to the preset storage space.
  • the one or more programs may be the one or Executed by multiple processors, the following steps are also implemented:
  • the one or more programs may be executed by the one or more processors, and the following steps are also implemented:
  • each data content that is cached in the preset storage space and contains the product item identifier is deleted.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种产品项的显示方法以及一种产品项的显示装置、设备和计算机可读存储介质。该方法包括:在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容(S10),若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容(S20);将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项(S30),其中,节点在显示界面中是循环移位的。对已经显示过的产品项,下次再显示时,直接提取缓存的数据内容进行显示即可,降低终端系统处理压力,提高终端使用的流畅性。

Description

产品项的显示方法、装置、设备及计算机可读存储介质
本申请要求于2017年2月20日提交中国专利局、申请号为201710091362.X、发明名称为“产品项的显示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本发明涉及互联网技术领域,尤其涉及一种产品项的显示方法、装置、设备及计算机可读存储介质。
背景技术
随着互联网技术的快速发展,人们通过网络购物的方式越来越频繁,当人们通过网络购物时,需要在终端中滚动产品列表以查看产品。
目前,大多数产品的显示,一般都是在滚动的过程中,动态增删列表中的节点及数据,即产品项滚动出显示界面时,将产品项的数据以及节点一起删除,下次若是要重新显示,则重新增加新的节点,并重新获取的数据以添加到新的模板中,最后填充到新的节点中进行显示,由于频繁的节点和数据增删操作会导致终端系统处理压力过大,从而导致终端的使用流畅性差。
发明内容
本发明的主要目的在于提供一种产品项的显示方法、装置、设备及计算机可读存储介质,旨在解决现有的产品项显示方式,容易导致终端的使用流畅性差的技术问题。
为实现上述目的,本发明提供一种产品列表的显示方法,所述产品列表的显示方法包括:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
此外,为实现上述目的,本发明还提供一种产品项的显示装置,所述产品项的显示装置包括:
判断模块,用于在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
提取模块,用于若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
填充模块,用于将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
此外,为实现上述目的,本发明还提供一种产品项的显示设备,所述产品项的显示设备包括处理器、网络接口、用户接口及存储器,所述存储器中存储有产品项的数据内容;
所述网络接口用于连接数据库,与所述数据库进行数据通信;
所述用户接口用于连接客户端,与所述客户端进行数据通信;
所述处理器用于执行所述产品项的显示程序,以实现以下步骤:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现以下步骤:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
本发明提出的产品项显示方法、装置、设备及计算机可读存储介质,在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容,将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项。本方案中,对于已经显示过的产品项,再滚动到当前显示界面时,直接提取缓存的数据内容填充到空余节点中进行显示即可,不用重新从数据库中获取数据并添加到模板,最终增添到新增的节点中进行显示,降低终端系统处理压力,提高终端使用的流畅性。
附图说明
图1为本发明产品项的显示方法第一实施例的流程示意图;
图2为本发明产品项的显示方法第二实施例的流程示意图;
图3为本发明产品项的显示方法第三实施例的流程示意图;
图4为本发明产品项的显示装置第一实施例的功能模块示意图;
图5为本发明产品项的显示装置第二实施例的功能模块示意图;
图6为本发明产品项的显示装置第三实施例的功能模块示意图;
图7是本发明实施例方案涉及的硬件运行环境的设备结构示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例的解决方案主要是:在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容,将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项。以解决现在来回滚动产品列表时,需要重新从数据库中获取数据并添加到模板,最终增添到新增的节点中进行显示,使得终端系统处理压力过大,从而导致终端的使用流畅性差的问题。
本发明提供一种产品项的显示方法。
参照图1,图1为本发明产品项的显示方法第一实施例的流程示意图。
在本实施例中,所述产品项的显示方法包括:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
以下是本实施例中逐步实现产品项显示的具体步骤:
步骤S10,在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
在本实施例中,当用户在终端的显示界面中打开相应的页面时,终端在当前显示界面显示该页面的产品列表,在滚动该产品列表的过程中,若检测到有产品项从隐藏区域滚动到当前显示界面时,就相当于接收到产品项的显示指令。
终端在检测到产品项的显示指令时,确定当前产品列表中待显示的第一产品项,然后在预设存储空间中,判断是否缓存有待显示的所述第一产品项的数据内容。本实施例中,所述预设存储空间实际上是一个缓存区,而所述第一产品项的数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容。
在所述预设存储空间中判断是否缓存有待显示的所述第一产品项的数据内容,实际上就是查询所述缓存区中是否存储第一产品标识符,具体地:根据产品项的显示指令获取待显示的第一产品项的标识符,然后将获取的标识符与缓存区中各个预存产品项标识符进行比对,以确定所述预设存储空间中是否缓存有待显示的所述第一产品项的标识符,若检测到存在第一产品项的标识符,可确定所述预设存储空间中缓存有第一产品项的数据内容。
步骤S20,若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
步骤S30,将提取的所述数据内容填充到当前显示界面的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
在本实施例中,若所述预设存储空间中缓存有所述第一产品项的数据内容,说明所述第一产品项之前已经加载过了,也事先缓存数据内容了,此时无须执行重新加载第一产品项的数据内容并添加到模板,并增添到新增节点中等操作,直接提取出缓存的所述数据内容,并将提取的所述数据内容填充到当前显示界面的空余节点所在区域进行显示即可,从而实现了将第一产品项快速显示到当前显示界面中。
在本实施例中,所述节点优选为DOM(Document Object Model,文档对象模型)节点,所述节点是当前显示界面中用于显示产品项数据内容的模型,并且,所述节点的数量是与显示界面中显示的产品项的数量有关,若显示界面中显示的产品项越多,则节点的数量就越多,反之就越少。
本实施例中,位于显示界面中的节点的位置是随着产品项一起滚动的,当有产品项要滚动出当前显示界面时,按照传统的做法,是将该节点滚动出当前显示界面以删除该节点,当隐藏区域中有待滚动到当前显示界面进行显示的产品项时,重新生成一个新的节点,以将待滚动到当前显示界面的产品项添加到新的节点中以实现显示,这样无可避免会产生一系列繁琐的操作。而本实施例中,节点不会随机增加或删减,而是与显示界面中显示的产品项的数量保持一致,当有产品项滚动出当前显示界面时,就将该产品项对应的节点进行移位,例如,当前显示界面中第一行的产品项要滚动出显示界面,必然的,最后一行将要显示新的产品项,此时,将第一行产品项的节点清空,并移位到最后一行中,以由最后一行的产品项的数据内容填充到该移位的节点中,以完成产品项的显示。同理,在当前显示界面中最后一行的产品项要滚动出显示界面,就将最后一行产品项的节点清空,并移位到第一行中,以由第一行的产品项的数据内容填充到该移位的节点中,以完成产品项的显示。本实施例中,在产品列表滚动过程中,当前显示界面中的各个节点是逐一移位,并且所有节点都是循环移位的。
本实施例中,所述第一产品项不限定个数,可以是一个产品项,也可以是若干个产品项,具体根据实际情况进行设置。例如,滚动一次页面,就滚动了三个产品项,就相当于滚动出三个产品项进行显示,同时滚动其它的三个产品项进行隐藏,相应的,显示界面中的空余节点也是三个,以由待显示的三个产品项的数据内容进行填充显示。
本实施例提出的产品项显示方法,在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容,将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项。本方案中,对于已经显示过的产品项,再滚动到当前显示界面时,直接提取缓存的数据内容填充到空余节点中进行显示即可,不用重新从数据库中获取数据并添加到模板,最终增添到新增的节点中进行显示,降低终端系统处理压力,提高终端使用的流畅性。
进一步地,重复利用已经存在的节点,将滚出当前显示界面的节点移位填充到即将滚动出现的位置,并将数据内容替换成新的数据内容,无须重新生成新的节点,复用已存在的节点,使得终端的滚动更加流畅。
进一步地,基于第一实施例提出本发明产品项的显示方法的第二实施例,在本实施例中,参照图2,所述步骤S10之后,所述产品项的显示方法还包括:
步骤S40,若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
步骤S50,将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
在本实施例中,若所述终端判断所述预设存储空间中未缓存有所述第一产品项的数据内容,说明该第一产品项是第一次显示的,那么所述终端先在数据库中提取所述第一产品项的数据内容,然后将提取的所述数据内容添加到预设模板中,以得到具有规范显示模式的数据内容,最终将具有规范显示模式的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
也就是说,若所述第一产品项是第一次显示的,则需要加载数据内容,并将加载的数据内容添加到预设显示模板得到具有规范显示模式的数据内容之后,再增添到显示界面中空余的节点所在区域中以完成显示。
进一步地,基于第二实施例提出本发明产品项的显示方法的第三实施例,在本实施例中,参照图3,所述步骤S50之后,所述产品项的显示方法还包括:
步骤S60,在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
步骤S70,将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
在本实施例中,若检测到第一产品项滚动出所述当前显示界面时,由于所述第一产品项是第一次显示的,那么,对所述第一产品项的数据内容添加第一产品项标识符,然后将添加了第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。后续,再次将所述第一产品项滚动到当前显示界面进行显示时,就可以直接获取所述第一产品项的数据内容进行显示,提高了产品项显示的效率,也降低了终端系统的处理压力。
本实施例中,基于第一至第三实施例提出本发明产品项的显示方法的第四实施例,在本实施例中,执行所述步骤S30的同时,执行以下步骤:
确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
即,在将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的同时,所述终端会确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项,其中,所述预设范围的具体数值根据实际情况进行设定,此处不做限定。应当理解的是,所述第二产品项和第三产品项是位于隐藏区域中,且距离当前显示界面中两个边界产品项预设范围内的产品项,即第二产品项和第三产品项位于显示界面的不同隐藏区域,一个位于当前显示界面的顶部隐藏区域,一个位于当前显示界面的低部隐藏区域。
在确定第二产品项和第三产品项之后,判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容,若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容,即将第二产品项的的数据内容添加至预设模板中,将第三产品项的数据内容也添加至预设模板,然后在分别添加第二产品项标识符和第三产品项标识符,以得到具有预设显示模式的数据内容。
最终,将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示,无线重新再执行获取数据内容,添加模板和增添至节点等操作。
值得注意的是,第一实施例中已经提及,所述第一产品项的具体个数不做限定,同时,所述第二产品项和所述第三产品项的个数也不做限定,根据实际情况进行设置。
本实施例中,相当于是在当前显示界面中显示产品项时,先将隐藏区域中距离边界产品项较近的产品项进行提前加载,后续,即使是第一次显示,可根据直接提取缓存的数据内容进行显示,提高了产品项显示的智能性和效率。
本实施例中,基于第一至第四实施例提出本发明产品项的显示方法的第五实施例,在本实施例中,所述产品项的显示方法还包括:
在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
在本实施例中,在检测到当前产品列表的页面被关闭时,可以选择直接删除当前产品列表在所述预设存储空间中缓存的各个数据内容。
进一步地,为了防止用户误触关闭当前产品列表的页面,可事先设置一个等待时长,在当前产品列表的页面被关闭的时长达到预设时长时,才删除当前产品列表在所述预设存储空间中缓存的各个数据内容,若等待时长还未达到所述预设时长,则继续缓存当前产品列表在所述预设存储空间中缓存的各个数据内容,直到所述等待时长达到预设时长才删除。其中,所述预设时长可根据具体情况进行设置,此处不做限定。
本实施例中,通过两种方式,限定当前产品列表在所述预设存储空间中缓存的各个数据内容的删除方式,提高了产品项中数据内容删除的灵活性。
需要说明的是,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
本发明进一步提供一种产品项的显示装置。
参照图4,图4为本发明产品项的显示装置100第一实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图4所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图4所示的产品项的显示装置100的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该产品项的显示装置100的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
在本实施例中,所述产品项的显示装置100包括:
判断模块10,用于在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
在本实施例中,当用户在终端的显示界面中打开相应的页面时,在当前显示界面显示该页面的产品列表,在滚动该产品列表的过程中,若检测到有产品项从隐藏区域滚动到当前显示界面时,就相当于接收到产品项的显示指令。
在检测到产品项的显示指令时,确定当前产品列表中待显示的第一产品项,然后判断模块10在预设存储空间中,判断是否缓存有待显示的所述第一产品项的数据内容。本实施例中,所述预设存储空间实际上是一个缓存区,而所述第一产品项的数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容。
所述判断模块10在所述预设存储空间中判断是否缓存有待显示的所述第一产品项的数据内容,实际上就是查询所述缓存区中是否存储第一产品标识符,具体地:根据产品项的显示指令获取待显示的第一产品项的标识符,然后将获取的标识符与缓存区中各个预存产品项标识符进行比对,以确定所述预设存储空间中是否缓存有待显示的所述第一产品项的标识符,若检测到存在第一产品项的标识符,可确定所述预设存储空间中缓存有第一产品项的数据内容。
提取模块20,用于若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
填充模块30,用于将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
在本实施例中,若所述预设存储空间中缓存有所述第一产品项的数据内容,说明所述第一产品项之前已经加载过了,也事先缓存数据内容了,此时无须执行重新加载第一产品项的数据内容并添加到模板,并增添到新增节点中等操作,提取模块20直接提取出缓存的所述数据内容,填充模块30将提取的所述数据内容填充到当前显示界面的空余节点所在区域进行显示即可,从而实现了将第一产品项快速显示到当前显示界面中。
在本实施例中,所述节点优选为DOM(Document Object Model,文档对象模型)节点,所述节点是当前显示界面中用于显示产品项数据内容的模型,并且,所述节点的数量是与显示界面中显示的产品项的数量有关,若显示界面中显示的产品项越多,则节点的数量就越多,反之就越少。
本实施例中,位于显示界面中的节点的位置是随着产品项一起滚动的,当有产品项要滚动出当前显示界面时,按照传统的做法,是将该节点滚动出当前显示界面以删除该节点,当隐藏区域中有待滚动到当前显示界面进行显示的产品项时,重新生成一个新的节点,以将待滚动到当前显示界面的产品项添加到新的节点中以实现显示,这样无可避免会产生一系列繁琐的操作。而本实施例中,节点不会随机增加或删减,而是与显示界面中显示的产品项的数量保持一致,当有产品项滚动出当前显示界面时,就将该产品项对应的节点进行移位,例如,当前显示界面中第一行的产品项要滚动出显示界面,必然的,最后一行将要显示新的产品项,此时,将第一行产品项的节点清空,并移位到最后一行中,以由最后一行的产品项的数据内容填充到该移位的节点中,以完成产品项的显示。同理,在当前显示界面中最后一行的产品项要滚动出显示界面,就将最后一行产品项的节点清空,并移位到第一行中,以由第一行的产品项的数据内容填充到该移位的节点中,以完成产品项的显示。本实施例中,在产品列表滚动过程中,当前显示界面中的各个节点是逐一移位,并且所有节点都是循环移位的。
本实施例中,所述第一产品项不限定个数,可以是一个产品项,也可以是若干个产品项,具体根据实际情况进行设置。例如,滚动一次页面,就滚动了三个产品项,就相当于滚动出三个产品项进行显示,同时滚动其它的三个产品项进行隐藏,相应的,显示界面中的空余节点也是三个,以由待显示的三个产品项的数据内容进行填充显示。
本实施例提出的产品项显示装置,在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容,将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项。本方案中,对于已经显示过的产品项,再滚动到当前显示界面时,直接提取缓存的数据内容填充到空余节点中进行显示即可,不用重新从数据库中获取数据并添加到模板,最终增添到新增的节点中进行显示,降低终端系统处理压力,提高终端使用的流畅性。
进一步地,重复利用已经存在的节点,将滚出当前显示界面的节点移位填充到即将滚动出现的位置,并将数据内容替换成新的数据内容,无须重新生成新的节点,复用已存在的节点,使得终端的滚动更加流畅。
本实施例中,基于第一实施例提出本发明产品项的显示装置的第二实施例,在本实施例中,参照图5,所述产品项的显示装置还包括第一添加模块40:
所述提取模块20,还用于若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
所述第一添加模块40,用于将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
在本实施例中,若判断模块10判断所述预设存储空间中未缓存有所述第一产品项的数据内容,说明该第一产品项是第一次显示的,那么所述提取模块20先在数据库中提取所述第一产品项的数据内容,然后所述第一添加模块40将提取的所述数据内容添加到预设模板中,以得到具有规范显示模式的数据内容,最终将具有规范显示模式的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
也就是说,若所述第一产品项是第一次显示的,则需要加载数据内容,并将加载的数据内容添加到预设显示模板得到具有规范显示模式的数据内容之后,再增添到显示界面中空余的节点所在区域中以完成显示。
本实施例中,基于第二实施例提出本发明产品项的显示装置的第三实施例,在本实施例中,参照图6,所述产品项的显示装置还包括第一缓存模块50:
所述第一添加模块40,还用于在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
所述第一缓存模块50,用于将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
在本实施例中,若检测到第一产品项滚动出所述当前显示界面时,由于所述第一产品项是第一次显示的,那么,所述第一添加模块40对所述第一产品项的数据内容添加第一产品项标识符,然后所述第一缓存模块50将添加了第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。后续,再次将所述第一产品项滚动到当前显示界面进行显示时,就可以直接获取所述第一产品项的数据内容进行显示,提高了产品项显示的效率,也降低了终端系统的处理压力。
本实施例中,基于第一至第三实施例提出本发明产品项的显示装置的第四实施例,在本实施例中,所述产品项的显示装置还包括:
确定模块,用于确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
所述判断模块10,还用于判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
第二添加模块,用于若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
第二缓存模块,用于将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
即,在所述填充模块30将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的同时,确定模块会确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项,其中,所述预设范围的具体数值根据实际情况进行设定,此处不做限定。应当理解的是,所述第二产品项和第三产品项是位于隐藏区域中,且距离当前显示界面中两个边界产品项预设范围内的产品项,即第二产品项和第三产品项位于显示界面的不同隐藏区域,一个位于当前显示界面的顶部隐藏区域,一个位于当前显示界面的低部隐藏区域。
在所述确定模块确定第二产品项和第三产品项之后,所述判断模块10判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容,若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则第二添加模块分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容,即将第二产品项的的数据内容添加至预设模板中,将第三产品项的数据内容也添加至预设模板,然后在分别添加第二产品项标识符和第三产品项标识符,以得到具有预设显示模式的数据内容。
最终,第二缓存模块将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示,无线重新再执行获取数据内容,添加模板和增添至节点等操作。
值得注意的是,第一实施例中已经提及,所述第一产品项的具体个数不做限定,同时,所述第二产品项和所述第三产品项的个数也不做限定,根据实际情况进行设置。
本实施例中,相当于是在当前显示界面中显示产品项时,先将隐藏区域中距离边界产品项较近的产品项进行提前加载,后续,即使是第一次显示,可根据直接提取缓存的数据内容进行显示,提高了产品项显示的智能性和效率。
本实施例中,基于第一至第四实施例提出本发明产品项的显示装置的第五实施例,在本实施例中,所述产品项的显示装置还包括:
删除模块,用于在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
在本实施例中,在检测到当前产品列表的页面被关闭时,删除模块可以选择直接删除当前产品列表在所述预设存储空间中缓存的各个数据内容。
进一步地,为了防止用户误触关闭当前产品列表的页面,可事先设置一个等待时长,在当前产品列表的页面被关闭的时长达到预设时长时,删除模块才删除当前产品列表在所述预设存储空间中缓存的各个数据内容,若等待时长还未达到所述预设时长,则继续缓存当前产品列表在所述预设存储空间中缓存的各个数据内容,直到所述等待时长达到预设时长才删除。其中,所述预设时长可根据具体情况进行设置,此处不做限定。
本实施例中,通过两种方式,限定当前产品列表在所述预设存储空间中缓存的各个数据内容的删除方式,提高了产品项中数据内容删除的灵活性。
需要说明的是,在硬件实现上,以上判断模块10、提取模块20、填充模块30、第一添加模块40及第一缓存模块50等可以以硬件形式内嵌于或独立于产品项的显示装置中,也可以以软件形式存储于产品项的显示装置的存储器中,以便于处理器执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
参照图7,图7是本发明实施例方案涉及的硬件运行环境的设备结构示意图。
本发明实施例产品项的显示设备可以是PC,也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等具有显示功能的终端设备。
如图7所示,该产品项的显示设备可以包括:处理器1001,例如CPU,网络接口1002,用户接口1003,存储器1004。这些组件之间的连接通信可以通过通信总线实现。网络接口1002可选的可以包括标准的有线接口(用于连接有线网络)、无线接口(如WI-FI接口、蓝牙接口、红外线接口等,用于连接无线网络)。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口(例如用于连接有线键盘、有线鼠标等)和/或无线接口(例如用于连接无线键盘、无线鼠标)。存储器1004可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1004可选的还可以是独立于前述处理器1001的存储装置。
可选地,该产品项的显示设备还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。
本领域技术人员可以理解,图7中示出的产品项的显示设备结构并不构成对产品项的显示设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图7所示,作为一种计算机存储介质的存储器1004中可以包括操作系统、网络通信模块、用户接口模块以及产品项的显示程序。其中,操作系统是管理和控制产品项的显示设备硬件与软件资源的程序,支持网络通信模块、用户接口模块、产品项的显示程序以及其他程序或软件的运行;网络通信模块用于管理和控制网络接口1002;用户接口模块用于管理和控制用户接口1003。
在图7所示的产品项的显示设备中,网络接口1002主要用于连接数据库,与数据库进行数据通信;用户接口1003主要用于连接客户端(可以理解为用户端),与客户端进行数据通信,如通过窗口展示信息给客户端,或者接收客户端发送的操作信息;而处理器1001可以用于执行存储器1004中存储的产品项的显示程序,以实现以下步骤:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
进一步地,所述判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容的步骤之后,所述处理器1001还用于执行存储器1004中存储的产品项的显示程序,以实现以下步骤:
若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
进一步地,所述将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示的步骤之后,所述处理器1001还用于执行存储器1004中存储的产品项的显示程序,以实现以下步骤:
在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
进一步地,执行所述将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的步骤的同时,所述处理器1001还用于执行存储器1004中存储的产品项的显示程序,以实现以下步骤:
确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
进一步地,所述处理器还用于执行所述产品项的显示程序,以实现以下步骤:
在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
本发明提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现以下步骤:
在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
进一步地,所述判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容的步骤之后,所述一个或者多个程序可被所述一个或者多个处理器执行,还实现以下步骤:
若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
进一步地,所述将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示的步骤之后,所述一个或者多个程序可被所述一个或者多个处理器执行,还实现以下步骤:
在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
进一步地,执行所述将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的步骤的同时,所述一个或者多个程序可被所述一个或者多个处理器执行,还实现以下步骤:
确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
进一步地,所述一个或者多个程序可被所述一个或者多个处理器执行,还实现以下步骤:
在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种产品项的显示方法,其特征在于,所述产品项的显示方法包括:
    在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
    若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
    将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
  2. 如权利要求1所述的产品项的显示方法,其特征在于,所述判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容的步骤之后,所述产品项的显示方法还包括:
    若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
    将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
  3. 如权利要求2所述的产品项的显示方法,其特征在于,所述将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示的步骤之后,所述产品项的显示方法还包括:
    在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
    将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
  4. 如权利要求1所述的产品项的显示方法,其特征在于,执行所述将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的步骤的同时,执行以下步骤:
    确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
    判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
    若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
    将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
  5. 如权利要求1所述的产品项的显示方法,其特征在于,所述产品项的显示方法还包括:
    在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
    或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
  6. 一种产品项的显示装置,其特征在于,所述产品项的显示装置包括:
    判断模块,用于在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
    提取模块,用于若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
    填充模块,用于将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
  7. 如权利要求6所述的产品项的显示装置,其特征在于,所述提取模块,还用于若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
    所述产品项的显示装置还包括:
    第一添加模块,用于将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
  8. 如权利要求7所述的产品项的显示装置,其特征在于,所述第一添加模块,还用于在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
    所述产品项的显示装置还包括:
    第一缓存模块,用于将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
  9. 如权利要求6所述的产品项的显示装置,其特征在于,所述产品项的显示装置还包括:
    确定模块,用于确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
    所述判断模块,还用于判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
    第二添加模块,用于若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
    第二缓存模块,用于将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
  10. 如权利要求6所述的产品项的显示装置,其特征在于,所述产品项的显示装置还包括:
    删除模块,用于在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
    或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
  11. 一种产品项的显示设备,其特征在于,所述产品项的显示设备包括处理器、网络接口、用户接口及存储器,所述存储器中存储有产品项的显示程序;
    所述网络接口用于连接数据库,与所述数据库进行数据通信;
    所述用户接口用于连接客户端,与所述客户端进行数据通信;
    所述处理器用于执行所述产品项的显示程序,以实现以下步骤:
    在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
    若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
    将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
  12. 如权利要求11所述的产品项的显示设备,其特征在于,所述判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容的步骤之后,所述处理器还用于执行所述产品项的显示程序,以实现以下步骤:
    若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
    将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
  13. 如权利要求12所述的产品项的显示设备,其特征在于,所述将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示的步骤之后,所述处理器还用于执行所述产品项的显示程序,以实现以下步骤:
    在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
    将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
  14. 如权利要求11所述的产品项的显示设备,其特征在于,执行所述将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的步骤的同时,所述处理器还用于执行所述产品项的显示程序,以实现以下步骤:
    确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
    判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
    若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
    将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
  15. 如权利要求11所述的产品项的显示设备,其特征在于,所述处理器还用于执行所述产品项的显示程序,以实现以下步骤:
    在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
    或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现以下步骤:
    在检测到产品项的显示指令时,判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容,其中,所述数据内容是包含有第一产品项标识符,且具有预设显示模式的数据内容;
    若所述预设存储空间中缓存有待显示的所述第一产品项的数据内容,则提取所述第一产品项的数据内容;
    将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项,其中,节点在显示界面中是循环移位的。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述判断预设存储空间中,是否缓存有待显示的第一产品项的数据内容的步骤之后,所述一个或者多个程序可被一个或者多个处理器执行,还实现以下步骤:
    若所述预设存储空间中未缓存有待显示的所述第一产品项的数据内容,则在数据库中提取所述第一产品项的数据内容;
    将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示。
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述将提取的所述数据内容添加到预设模板,并将添加到所述预设模板的数据内容增添到显示界面中空余的节点所在区域,以进行显示的步骤之后,所述一个或者多个程序可被一个或者多个处理器执行,还实现以下步骤:
    在检测到所述第一产品项滚动出所述当前显示界面时,对所述第一产品项的数据内容添加第一产品项标识符;
    将添加了所述第一产品项标识符的数据内容,作为具有预设显示模式的数据内容缓存至所述预设存储空间。
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,执行所述将提取的所述数据内容填充到显示界面中空余的节点所在区域,以显示所述第一产品项的步骤的同时,所述一个或者多个程序可被一个或者多个处理器执行,还实现以下步骤:
    确定当前产品列表中,位于隐藏区域且距离当前显示界面的边界产品项预设范围内的第二产品项和第三产品项;
    判断所述预设存储空间中,是否缓存有所述第二产品项和所述第三产品项对应的数据内容;
    若所述预设存储空间中未缓存有所述第二产品项和所述第三产品项对应的数据内容,则分别将所述第二产品项和所述第三产品项对应的数据内容添加至预设模板,并分别添加产品项标识符以得到具有预设显示模式的数据内容;
    将得到的数据内容缓存至所述预设存储空间,以便于后续显示所述第二产品项或所述第三产品项时,直接提取第二产品项或第三产品项对应的数据内容填充到显示界面中空余的节点所在区域进行显示。
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,所述一个或者多个程序可被一个或者多个处理器执行,还实现以下步骤:
    在检测到当前产品列表的页面被关闭时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容;
    或者,在检测到当前产品列表的页面被关闭的时长达到预设时长时,删除当前产品列表在所述预设存储空间中缓存的各个包含有产品项标识符的数据内容。
PCT/CN2017/089472 2017-02-20 2017-06-22 产品项的显示方法、装置、设备及计算机可读存储介质 Ceased WO2018149071A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710091362.X 2017-02-20
CN201710091362.XA CN107066524B (zh) 2017-02-20 2017-02-20 产品项的显示方法和装置

Publications (1)

Publication Number Publication Date
WO2018149071A1 true WO2018149071A1 (zh) 2018-08-23

Family

ID=59622419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089472 Ceased WO2018149071A1 (zh) 2017-02-20 2017-06-22 产品项的显示方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107066524B (zh)
WO (1) WO2018149071A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562339A (zh) * 2017-08-25 2018-01-09 郑州云海信息技术有限公司 一种部件信息的显示方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017702A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Asynchronous Partial Page Updates Based On Dynamic Dependency Calculation
CN103678486A (zh) * 2013-10-31 2014-03-26 北京优视网络有限公司 页面排版方法及系统
CN103970770A (zh) * 2013-01-29 2014-08-06 腾讯科技(深圳)有限公司 一种网页优化处理方法、装置及客户端
CN104035921A (zh) * 2013-03-04 2014-09-10 联想(北京)有限公司 一种信息处理方法及电子设备
CN104216909A (zh) * 2013-06-04 2014-12-17 腾讯科技(深圳)有限公司 网页数据处理方法及处理装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016135677A1 (en) * 2015-02-26 2016-09-01 Realitygate (Pty) Ltd Navigating a set of selectable items in a user interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017702A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Asynchronous Partial Page Updates Based On Dynamic Dependency Calculation
CN103970770A (zh) * 2013-01-29 2014-08-06 腾讯科技(深圳)有限公司 一种网页优化处理方法、装置及客户端
CN104035921A (zh) * 2013-03-04 2014-09-10 联想(北京)有限公司 一种信息处理方法及电子设备
CN104216909A (zh) * 2013-06-04 2014-12-17 腾讯科技(深圳)有限公司 网页数据处理方法及处理装置
CN103678486A (zh) * 2013-10-31 2014-03-26 北京优视网络有限公司 页面排版方法及系统

Also Published As

Publication number Publication date
CN107066524A (zh) 2017-08-18
CN107066524B (zh) 2020-01-07

Similar Documents

Publication Publication Date Title
WO2014157899A1 (en) Method for controlling dynamically changing contents of web page and electronic device thereof
WO2018201773A1 (zh) 单元格页面的渲染方法、装置、服务器和可读存储介质
WO2020147385A1 (zh) 数据录入方法、装置、终端及计算机可读存储介质
WO2018076865A1 (zh) 数据分享方法、装置、存储介质及电子设备
WO2018201774A1 (zh) 数据审批方法、装置、设备和计算机可读存储介质
WO2019139270A1 (ko) 디스플레이 장치 및 이의 컨텐츠 제공 방법
WO2018076867A1 (zh) 数据备份的删除方法、装置、系统、存储介质和服务器
WO2021012481A1 (zh) 系统性能监控方法、装置、设备及存储介质
WO2019039739A1 (en) DISPLAY APPARATUS AND METHOD FOR CONTROLLING THE SAME
WO2020052247A1 (zh) 网络资源批量加载方法、智能电视、存储介质及装置
WO2018076841A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2012119494A1 (zh) 动态调整桌面布局的方法及系统、计算机存储介质
WO2020177376A1 (zh) 数据的提取方法、装置、终端及计算机可读存储介质
WO2014126335A1 (ko) 클라우드 컴퓨팅 기반의 데이터 관리 방법, 이를 위한 시스템 및 장치
WO2015018243A1 (zh) 一种基于iOS设备的网页拦截方法和设备
WO2014092389A1 (en) Application execution method and apparatus
WO2016101441A1 (zh) 一种进行文件同步的方法及系统
WO2020253125A1 (zh) 日志管理方法、装置、设备及存储介质
WO2016052849A1 (en) Display apparatus and system for providing ui, and method for providing ui of display apparatus
WO2020237849A1 (zh) 网络块设备快照读写方法、装置、设备及存储介质
WO2018161603A1 (zh) 移动终端图像绘制的控制方法、装置、介质及电子设备
WO2020062615A1 (zh) 显示面板的伽马值调节方法、装置及显示设备
WO2016072636A1 (en) User device, driving method of user device, apparatus for providing service and driving method of apparatus for providing service
WO2018149071A1 (zh) 产品项的显示方法、装置、设备及计算机可读存储介质
WO2017020620A1 (zh) 标签页同步方法、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896501

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896501

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17896501

Country of ref document: EP

Kind code of ref document: A1