Nothing Special   »   [go: up one dir, main page]

CN112765511B - Business object display method, device, equipment, storage medium and program product - Google Patents

Business object display method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN112765511B
CN112765511B CN202110121912.4A CN202110121912A CN112765511B CN 112765511 B CN112765511 B CN 112765511B CN 202110121912 A CN202110121912 A CN 202110121912A CN 112765511 B CN112765511 B CN 112765511B
Authority
CN
China
Prior art keywords
address information
container
service object
business object
replacing
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
CN202110121912.4A
Other languages
Chinese (zh)
Other versions
CN112765511A (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110121912.4A priority Critical patent/CN112765511B/en
Publication of CN112765511A publication Critical patent/CN112765511A/en
Application granted granted Critical
Publication of CN112765511B publication Critical patent/CN112765511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, a computer readable storage medium and a computer program product for exposing a business object, wherein the method comprises: acquiring first address information of a current business object stored in a business object component of a container; when the current service object is changed, replacing the first address information with the second address information of the occupied service object; displaying the occupied service object in the container according to the second address information; when the third address information of the new service object is acquired, replacing the second address information with the third address information; and displaying the new business object in the container according to the third address information. The present disclosure first exposes placeholder business objects in a container when the container is reused. And after the third address information of the new service object is acquired, replacing the second address information of the occupied service object with the third address information. The problem of redisplay of service objects due to poor network environment and the like when the container is reused is avoided.

Description

Business object display method, device, equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, a computer readable storage medium, and a computer program product for displaying a business object.
Background
Currently, more and more websites or applications provide network information, such as text, video, pictures, etc., to users in the form of feed streams (which can be understood as a data format in which a plurality of sequentially arranged containers each display respective network information).
In order to avoid the problem of the feed stream jamming caused by excessive number of containers, a virtual rolling technology is adopted in the related art, that is, a plurality of containers can move in sequence on a display interface of the feed stream, so as to form an effect of rolling the plurality of containers. However, the virtual scrolling technology easily causes that the network information in the multiplexed container is not updated timely, and the problem of repeated display of the network information occurs.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, computer readable storage medium and computer program product for displaying a business object, so as to at least solve the problem of repeated display of network information in the related art. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for displaying a business object, including: acquiring first address information of a current business object stored in a business object component of a container; when the current service object is changed, replacing the first address information with second address information of a space occupying service object, wherein the space occupying service object is a preset temporary service object; displaying the occupied business object in the container according to the second address information; when third address information of a new service object is acquired, replacing the second address information with the third address information; and displaying the new business object in the container according to the third address information.
Optionally, when the current service object is changed, replacing the first address information with second address information of the occupied service object includes: scrolling the container in response to a sliding operation with respect to a screen; and when the container is positioned outside the display range of the screen, replacing the first address information with the second address information.
Optionally, when the container is located outside the display range of the screen, replacing the first address information with the second address information includes: when the container is located outside the display range of the screen and the container is located within the preset range of the container rolling window, replacing the first address information with the second address information, wherein the size of the container rolling window is larger than that of the display range, the container rolling window is provided with a preset number of containers, the preset number of containers can be rolled in the container rolling window at the same time according to a preset direction, any container of the container rolling window is rolled out from a first side of the container rolling window, the container rolling window is re-entered from a second side of the container rolling window, and the first side and the second side are opposite sides of the container rolling window.
Optionally, when the third address information of the new service object is acquired, replacing the second address information with the third address information includes: when the new business object is acquired, loading the new business object to a cache area; and when the new business object is loaded to the cache area, replacing the second address information with the third address information of the new business object in the cache area.
Optionally, the method further comprises: acquiring the number of times that the container appears in the container rolling window in a preset time period; and when the number of times is larger than a quantity threshold value, keeping the second address information unchanged.
Optionally, when the third address information of the new service object is acquired, replacing the second address information with the third address information includes: when the number of times is changed from being greater than the number threshold to being less than or equal to the number threshold, replacing the second address information with the third address information; and the third address information indicates the address information of the new service object obtained when the first address information is changed for the last time in the preset time period.
According to a second aspect of an embodiment of the present disclosure, there is provided a display apparatus for a business object, including: an acquisition unit configured to perform acquisition of first address information of a current business object stored in a business object component of a container; a replacing unit configured to replace the first address information with second address information of a space occupying service object, which is a preset temporary service object, when the current service object is changed; a display unit configured to perform displaying the placeholder business object in the container according to the second address information; the acquisition unit is further configured to acquire third address information of the new service object; the replacing unit is further configured to perform replacement of the second address information into the third address information when the acquiring unit acquires the third address information; the display unit is further configured to display the new business object in the container according to the third address information.
Optionally, the replacing unit includes: a container scrolling unit configured to perform scrolling of the container in response to a sliding operation with respect to a screen; an address replacement unit configured to perform replacement of the first address information to the second address information when the container is located outside a display range of the screen.
Optionally, the address replacing unit is configured to replace the first address information with the second address information when the container is located outside the display range of the screen and the container is located within a preset range of a container rolling window, wherein the size of the container rolling window is larger than the size of the display range, the container rolling window is provided with a preset number of containers, the preset number of containers can be rolled in the container rolling window at the same time according to a preset direction, any one of the containers of the container rolling window is rolled out from a first side of the container rolling window, and the container rolling window is re-entered from a second side of the container rolling window, the first side and the second side being opposite sides of the container rolling window.
Optionally, the replacing unit further includes: an object loading unit configured to perform loading the new business object into a cache area when the new business object is acquired; the address replacement unit is further configured to replace the second address information with the third address information of the new service object in the cache area when the new service object is loaded into the cache area.
Optionally, the apparatus further comprises: a number-of-times obtaining unit configured to perform obtaining a number of times the container appears in the container rolling window within a preset period of time; an address holding unit configured to perform holding the second address information unchanged when the number of times is greater than a number threshold.
Optionally, the replacing unit is configured to replace the second address information with the third address information when the number of times is changed from being greater than the number threshold to being less than or equal to the number threshold; and the third address information indicates the address information of the new service object obtained when the first address information is changed for the last time in the preset time period.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method for exposing a business object according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of presenting business objects as described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, comprising a computer program, which when executed by a processor, implements the method for exposing a business object according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
According to the service object display scheme provided by the embodiment of the disclosure, the first address information of the current service object stored in the service object component in the container is obtained, when the current service object is changed, the first address information is replaced by the second address information of the occupied service object, the occupied service object is a preset temporary service object, and the occupied service object is displayed in the container according to the second address information. And when the third address information of the new service object is acquired, replacing the second address information with the third address information, and then displaying the new service object in the container according to the third address information.
When the current service object stored by the service object component of the container is changed, the embodiment of the disclosure firstly replaces the first address information of the current service object with the second address information of the preset occupied service object, namely, when the container is multiplexed, the occupied service object is displayed in the container. After the third address information of the new service object is obtained, the second address information is replaced by the third address information, and the new service object is displayed according to the third address information. The embodiment of the disclosure avoids the problem of re-displaying the business objects caused by poor network environment and the like when the containers are multiplexed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flow chart illustrating a method of exposing a business object according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a scheme for displaying multiple pictures in a feed stream according to an exemplary embodiment.
Fig. 3 is a block diagram of a business object presentation device, according to an example embodiment.
Fig. 4 is a block diagram of a business object presentation electronic device, according to an exemplary embodiment.
Fig. 5 is a block diagram of an electronic device for exposing business objects, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the related art, a virtual rolling technology is adopted to display the feed stream, namely, a plurality of containers move in sequence on a display interface of the feed stream, so that a rolling effect of the plurality of containers is formed. For example, the containers may scroll in a top-down or bottom-up direction, and the containers scroll out of one direction of the presentation interface and then into the other direction of the presentation interface. However, if the scrolling speed of the container is too high, the business objects in the container are not updated yet, so that when the container scrolls in from the other direction of the display interface, the business objects before scrolling out from the display interface are still displayed, that is, the problem of repeated display of the business objects is caused.
Fig. 1 is a flowchart illustrating a method for exposing a business object according to an exemplary embodiment, and as shown in fig. 1, the method for exposing a business object may be applied to a terminal, which loads an application program, such as a browser. The terminal can display the business object by using the application program or the applet loaded in the application program or the applet associated with the application program, and the display method of the business object specifically comprises the following steps.
In step S11, first address information of a current business object stored in a business object component of a container is acquired.
In embodiments of the present disclosure, a terminal may present a business object in a feed stream format and. In one embodiment, an application or applet provides a number of containers, each of which can expose a business object through a business object component packaged therein. The service object display types of the service object components can be divided into picture components, video components and the like. If the container is packaged with the picture component, the container displays the picture through the picture component; if a video component is packaged in the container, the container presents the video through the video component. Moreover, the containers provided by the application or applet may be multiplexed, i.e., after any container has been presented with one business object, the container may also be presented with another business object, thereby forming a feed stream that presents a picture or video. The application or applet provided container may expose the business object based on address information of the business object stored in the business object component. When the container is multiplexed, the business objects stored in the business object component of the container. The embodiments of the present disclosure refer to address information of a current business object stored in a business object component of a container as first address information, and it is understood that when the container is multiplexed, the address information stored in the business object component of the container is also changed.
In step S12, when the current service object is changed, the first address information is replaced with the second address information of the occupied service object.
In an embodiment of the present disclosure, when a container is multiplexed, that is, when a current service object stored in a service object component of the container is changed, first address information of the current service object in the service object component is replaced with second address information of a preset occupied service object. The space occupying business object is understood to be a business object which is preset and temporarily displayed in a container, namely a temporary business object, when the container is multiplexed.
In step S13, the placeholder business object is presented in the container according to the second address information.
In the embodiment of the disclosure, the occupied service object is acquired according to the second address information, and then the occupied service object is displayed in the container. In practical applications, according to different types of service objects, the occupied service object may be a picture, a text, a video, etc., and the embodiment of the present disclosure does not specifically limit the object type of the occupied service object. In general, the capacity of the placeholder business object is smaller, so that when the placeholder business object is displayed in the container, very small network traffic is consumed, and the speed of displaying the placeholder business object can be improved.
In step S14, when the third address information of the new service object is acquired, the second address information is replaced with the third address information.
In the embodiment of the present disclosure, the step S12 may be performed while the third address information of the new service object is acquired, that is, when the container is multiplexed, the third address information of the new service object needs to be acquired while the first address information of the current service object is replaced with the second address information of the occupied service object. The new business object may be understood as a business object to be presented in the container. It should be emphasized that the purpose of container multiplexing is to change the display of a current business object in a container to the display of a new business object in the container.
When the third address information of the new service object is acquired, the second address information of the occupied service object is replaced by the third address information of the new service object so as to display the new service object in the container.
In step S15, a new business object is presented in the container according to the third address information.
In an embodiment of the disclosure, a new business object is obtained according to the third address information, and then the new business object is displayed in the container. Which business object is displayed in the container needs to be determined according to address information stored in the business object component of the container. If the first address information is stored in the business object component of the container, the container displays the current business object; if the second address information is stored in the service object component of the container, the container displays the occupied service object; if the third address information is stored in the business object component of the container, the container displays the new business object. The process of container multiplexing can be understood as a replacement process of address information stored in a business object component of a container.
According to the service object display scheme provided by the embodiment of the disclosure, the first address information of the current service object stored in the service object component in the container is obtained, when the current service object is changed, the first address information is replaced by the second address information of the occupied service object, and then the occupied service object is displayed in the container according to the second address information. And when the third address information of the new service object is acquired, replacing the second address information with the third address information, and then displaying the new service object in the container according to the third address information.
When the current service object stored by the service object component of the container is changed, the embodiment of the disclosure firstly replaces the first address information of the current service object with the second address information of the preset occupied service object, namely, when the container is multiplexed, the occupied service object is displayed in the container. After the third address information of the new service object is obtained, the second address information is replaced by the third address information, and the new service object is displayed according to the third address information. The embodiment of the disclosure avoids the problem of re-displaying the business objects caused by poor network environment and the like when the containers are multiplexed.
In one exemplary embodiment of the present disclosure, the container is scrolled in response to a sliding operation of a user with respect to a screen of the terminal. When the container is located outside the display range of the screen, the first address information is replaced with the second address information. In practical application, the shape of the screen a may be rectangular, and when the container is located in the display range b of the screen a, the business object in the container is displayed. One or more containers can be simultaneously scrolled in the container scroll window c in a predetermined direction, and any container of the container scroll window c is scrolled out of a first side of the container scroll window c, and the container scroll window can be re-entered into a second side of the container scroll window c. The first and second edges are opposite edges of the container rolling window c. The size of the container scroll window c is greater than the size of the display range b, and specifically, the height of the container scroll window c may be greater than the height of the display range b, for example, the height of the container scroll window c is three times the height of the display range b, and the width of the container scroll window c may be greater than or equal to the width of the display range b. The user can perform a sliding operation from bottom to top with respect to the screen a, and the container is scrolled from bottom to top in the container scroll window c. For example, 9 containers, i.e., container 1, container 2, container 3, … …, and container 9, are provided in the container rolling window c, and the 9 containers roll in the downward-upward direction in the container rolling window c. In the rolling process, at time T1, the sequence of 9 containers from top to bottom in the container rolling window c is container 1, container 2, container 3, … …, and container 9, and at time T2, the sequence of 9 containers from top to bottom in the container rolling window c is container 2, container 3, … …, container 9, and container 1. That is, from time T1 to time T2, 9 containers in the container rolling window c are rolled from bottom to top, wherein the container 1 is rolled out of the container rolling window c from the top side (first side) of the container rolling window c, and is rolled into the container rolling window c from the bottom side (second side) of the container rolling window c.
Taking the above container 1 as an example, with the scrolling of 9 containers in the container scrolling window c, when the container 1 is located outside the display range b, it can be considered that the current service object p01 of the service object component of the container 1 is changed, and at this time, the first address information of the current service object p01 in the service object component of the replacement container 1 is the second address information of the preset occupied service object L.
In practical applications, since the size of the container scroll window c is larger than the size of the display range b, it is possible that the size of the container scroll window c is much larger than the size of the display range b. Therefore, a preset range m may be set for the container scrolling window, and when the container 1 is located outside the display range b and the container 1 is located within the preset range m of the container scrolling window c, the first address information of the current service object p01 in the service object component of the replacement container 1 is the second address information of the preset occupied service object L.
The container of embodiments of the present disclosure may be scrolled in a direction of a sliding operation of a user on a screen, including, but not limited to: from top to bottom, bottom to top, left to right, and right to left. That is, the container may be scrolled in multiple directions within the screen. The container of the embodiments of the present disclosure may be considered as having a change in the current business object of the container when it is outside the display range of the scroll screen. And, when the container is located outside the display range of the screen and within the preset range of the container scroll window, the first address information is replaced with the second address information. In general, to ensure that multiple business objects can be displayed simultaneously and multiple containers can be quickly multiplexed, the range of the container rolling window can be much larger than the display range of the screen, and to avoid that the containers are multiplexed when being positioned at any position of the container rolling window, the preset range of one container rolling window is set in the scheme: when the container is positioned outside the display range of the screen and is positioned in the preset range of the container scrolling window, the first address information is replaced by the second address information, so that the first address information is replaced by the second address information as early as possible, the problem that the first address information is replaced by the second address information untimely due to the fact that the first address information is replaced by the second address information too late is avoided, and when the container is scrolled into the display range again, the problem of the current service object is still displayed.
In one exemplary embodiment of the present disclosure, the acquiring of the third address information of the new business object may be performed by a pre-created business object function. When the current business object is changed, a corresponding business object function is created, and a new business object is loaded to the cache area by utilizing the business object function. In practical applications, the created service object function may be an Image object, where the Image object is an application program interface (Application Programming Interface, abbreviated as API) provided by the browser. When the new service object is loaded into the cache area, the third address information of the new service object is considered to be acquired, namely the address information of the new service object in the cache area, and then the second address information of the occupied service object in the replacement service object assembly is the third address information of the new service object in the cache area. The embodiment of the disclosure takes the address information of the new service object in the cache area as the third address information, that is, the third address information is obtained after the new service object is loaded in the cache area, and the second address information is replaced by the third address information. According to the embodiment of the disclosure, the new business object is loaded into the cache area to obtain the third address information, and compared with the method for acquiring the address information of the new business object in the remote server in the related art, the speed of the container for displaying the new business object according to the third address information can be improved. And the buffer area is set locally at the terminal, and the new service object is loaded to the buffer area locally at the terminal, so that the problem that the new service object is loaded to the buffer area locally at the terminal again in a short time under the condition that the address information of the remote server is changed by the new service object is avoided, and the network resource occupation amount of the terminal is reduced.
To this end, embodiments of the present disclosure implement a process of container multiplexing. With the rolling of the container in the container rolling window, when the current service object of the container is changed, the first address information of the current service object is not replaced by the third address information of the new service object immediately, but the first address information of the current service object is replaced by the second address information of the occupied service object, so as to avoid the problem that the old service object is still displayed after the container is multiplexed because the third address information of the new service object cannot be acquired in time. After the third address information of the new service object is obtained, the second address information of the occupied service object is replaced by the third address information of the new service object.
In an exemplary embodiment of the present disclosure, there is a fast or slow speed of a sliding operation performed on a screen by a user, and when the speed of the sliding operation is fast, even though a service object in a container has been replaced with a new service object by a current service object, since the speed of the sliding operation is fast, a time in which the new service object is displayed in a display range is short, and a plurality of containers are frequently multiplexed, frequently replace the current service object with the new service object, and a stuck phenomenon of a feed stream is also easily caused. To solve the above problem, when the rolling speed of the container in the container rolling window is too high, that is, during the fast rolling process of the container, the container always displays the occupied business object. When the rolling speed of the container is reduced and the rapid rolling is changed into stable rolling, the container displays the new service object obtained after the last current service object is changed.
In practical application, the number of times that the container appears in the container rolling window in the preset time period can be obtained, whether the rolling speed of the container is too high or not is judged according to the number of times that the container appears in the container rolling window in the preset time period, and if the number of times that the container appears in the container rolling window in the preset time period is larger than a preset quantity threshold value, the rolling speed of the container is considered to be too high; if the number of times the container appears in the container rolling window within the preset time period is smaller than or equal to a preset quantity threshold value, the rolling speed of the container is not high. The preset time period and the preset number threshold may be set according to practical situations, for example, the preset time period is 200 ms, and the preset number threshold is 2. If the number of times that the container 1 appears in the container rolling window c is greater than 2 in 200 milliseconds, the container 1 is considered to roll at an excessively high speed; if the number of times that the container 1 appears in the container rolling window c within 200 milliseconds is less than or equal to 2, the container 1 is considered to be not rolling fast. When the container is rolled at too high a speed, the second address information in the business object component of the container is kept unchanged, and the third address information of the new business object is not required to be acquired. That is, when the rolling speed of the container is too high, the corresponding service object function is not created, and no service object function exists, so that a new service object cannot be loaded into the cache area, and the purpose of not acquiring the third address information of the new service object is achieved. According to the embodiment of the disclosure, when the rolling speed of the container is too high, loading of new business objects into the cache area is avoided, the storage pressure of the terminal is reduced, and the network bandwidth occupation of the terminal is also reduced.
If the rolling speed of the container is slowly reduced, that is, the number of times that the container appears in the container rolling window in the preset time period is changed from being larger than a preset quantity threshold value to being smaller than or equal to the preset quantity threshold value, replacing the second address information of the occupied service object in the service object component of the container with the third address information. After the rolling speed of the container is reduced, the third address information for replacing the second address information is the address information of the new service object obtained when the first address information of the current service object is changed for the last time within the preset time period. For example, if the rolling speed of the container 1 is slowly reduced when the container 1 appears 2 times in the container rolling window c within 200 ms, the second address information of the occupied service object of the container 1 is replaced by the address information of the new service object acquired when the current service object of the container 1 is changed for the second time within 200 ms. The rolling speed of the container in the embodiment of the present disclosure may vary with the speed of the sliding operation of the user, and if the speed of the sliding operation is faster, the rolling speed of the container is also faster; if the speed of the sliding operation is slow, the rolling speed of the container will also be slow. When the scrolling speed of the container changes from faster to slower, in particular, when the scrolling speed of the container stabilizes to begin with the presentation of a new business object for the user, the second address information is replaced with the third address information. And the replaced third address information is the address information of the new service object obtained when the first address information is changed for the last time in the fast rolling process of the container, thereby avoiding obtaining the address information of other new service objects, reducing the times of obtaining the address information of the new service object by the terminal and relieving the operation pressure of the terminal.
In an exemplary embodiment of the present disclosure, the step S11 may be: and acquiring the first address information of the current service object according to the prop attribute of the service object component. Without a state management mechanism, a pro attribute is a main communication mode between components, the pro attribute is an object, some data can be defined in the pro attribute, the first address information can be used as the data defined in the pro attribute, and the data can be transferred to a sub-component through a parent component.
Based on the above description about an embodiment of a method for displaying a business object, a scheme for displaying multiple pictures in a feed stream is described below. As shown in fig. 2, 9 containers, namely, container 1, container 2, container 3, … …, and container 9, are provided in the container rolling window. In the embodiment of the present disclosure, taking the container 1 as the target container as an example, the scheme of displaying the picture by other containers may refer to the scheme of displaying the picture by the container 1. At time T1, the container 1 is positioned at the top of the container scroll window, and at this time, the container 1 is positioned outside the display range of the screen, and the container 1 is multiplexed. At time T2, container 1 is cyclically scrolled to the very bottom of the container scroll window, with container 2 at the very top of the container scroll window. If the address information of the new picture is not obtained at this time, if the container 1 still displays the old picture (i.e., the container 1 still displays the picture at the time T1), a problem of visual confusion is caused to the user. To avoid this problem, at time T2, container 1 presents a placeholder picture that may indicate that container 1 is in the loaded state of the new picture. At time T3, if the address information of the new picture is acquired, the occupied picture of the container 1 is replaced with the new picture, and at this time, the container 1 displays the new picture.
In the case of a fast scroll, the container 1 has been multiplexed a plurality of times, i.e. the container 1 has been repeated several times in the container scroll window. If the old picture is replaced with the new picture every time the container 1 is multiplexed, the previously replaced picture is replaced soon, and the picture in the container 1 is replaced too frequently, so that the user cannot clearly and accurately see the new picture. The old picture is frequently replaced by the new picture in the container 1, and the frequently replaced picture cannot be clearly and accurately displayed to the user, so that system resource waste is caused, and system blocking is easily caused. To avoid this problem, the embodiment of the disclosure adds an anti-shake logic to the container, that is, the intermediate state loading occupancy picture of the fast scrolling, and loads the new picture acquired last time when the fast scrolling is changed to the stable scrolling, for example, at time T4, the container 1 loads the new picture acquired last time.
The business object in the embodiment of the present disclosure may be video, text, audio, and the like, in addition to the picture, and the embodiment of the present disclosure does not limit the content, format, and the like of the business object. Moreover, one business object or a plurality of business objects may be displayed in one container, and the number of business objects displayed in each container is not limited by the embodiments of the present disclosure.
The embodiment of the disclosure adds anti-shake logic to the container, avoids that the container replaces new service objects for each multiplexing, only replaces the service objects after fast rolling and stabilization aiming at the fast rolling scene, and saves system resources.
Fig. 3 is a block diagram of a business object presentation device, according to an example embodiment. The device may comprise the following modules.
An obtaining unit 31 configured to perform obtaining first address information of a current business object stored in a business object component of the container;
A replacing unit 32 configured to replace the first address information with second address information of a placeholder service object, which is a preset temporary service object, when the current service object is changed;
A display unit 33 configured to perform displaying the placeholder business object in the container according to the second address information;
The acquiring unit 31 is further configured to acquire third address information of the new service object;
The replacing unit 32 is further configured to perform replacement of the second address information with the third address information when the acquiring unit 31 acquires the third address information;
The display unit 33 is further configured to perform displaying the new business object in the container according to the third address information.
In an exemplary embodiment of the present disclosure, the replacing unit 32 includes:
a container scrolling unit configured to perform scrolling of the container in response to a sliding operation with respect to a screen;
An address replacement unit configured to perform replacement of the first address information to the second address information when the container is located outside a display range of the screen.
In an exemplary embodiment of the present disclosure, the address replacing unit is configured to perform replacement of the first address information to the second address information when the container is located outside a display range of the screen and the container is located within a preset range of a container scroll window, wherein a size of the container scroll window is larger than a size of the display range, the container scroll window is provided with a preset number of the containers, the preset number of the containers can be simultaneously scrolled in a preset direction in the container scroll window, any one of the containers of the container scroll window is scrolled out from a first side of the container scroll window, the container scroll window is reentered from a second side of the container scroll window, the first side and the second side are opposite sides of the container scroll window.
In an exemplary embodiment of the present disclosure, the replacing unit 32 further includes:
an object loading unit configured to perform loading the new business object into a cache area when the new business object is acquired;
The address replacement unit is further configured to replace the second address information with the third address information of the new service object in the cache area when the new service object is loaded into the cache area.
In an exemplary embodiment of the present disclosure, the apparatus further comprises:
a number-of-times obtaining unit configured to perform obtaining a number of times the container appears in the container rolling window within a preset period of time;
An address holding unit configured to perform holding the second address information unchanged when the number of times is greater than a number threshold.
In an exemplary embodiment of the present disclosure, the replacing unit 32 is configured to perform replacement of the second address information to the third address information when the number of times is changed from being larger than the number threshold to being smaller than or equal to the number threshold; and the third address information indicates the address information of the new service object obtained when the first address information is changed for the last time in the preset time period.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 4 is a block diagram of a business object presentation electronic device 400, according to an example embodiment. For example, electronic device 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 4, an electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the business object presentation method described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to perform operations to store various types of data to support the electronic device 400. Examples of such data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, images, video, and the like. The memory 404 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 406 provides power to the various components of the electronic device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 400.
The multimedia component 408 includes a screen between the electronic device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the electronic device 400 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to perform outputting and/or inputting audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to perform receiving external audio signals when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the electronic device 400. For example, the sensor assembly 414 may detect an on/off state of the electronic device 400, a relative positioning of the components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in position of the electronic device 400 or a component of the electronic device 400, the presence or absence of a user's contact with the electronic device 400, an orientation or acceleration/deceleration of the electronic device 400, and a change in temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to perform communications that facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described business object presentation methods.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 404, that includes instructions executable by processor 420 of electronic device 400 to perform the method of exposing business objects described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program executable by the processor 420 of the electronic device 400 to perform the method of presentation of business objects as described above. Alternatively, the computer program may be stored in a computer readable storage medium of the electronic device 400, which may be a non-transitory computer readable storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 5 is a block diagram illustrating an electronic device 500 for exposing business objects, according to an example embodiment. For example, electronic device 500 may be provided as a server. Referring to fig. 5, electronic device 500 includes a processing component 522 that further includes one or more processors and memory resources represented by memory 532 for storing instructions, such as applications, executable by processing component 522. The application programs stored in the memory 532 may include one or more modules each corresponding to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the method of presentation of business objects described above.
The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to perform connecting the electronic device 500 to a network, and an input output (I/O) interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method for displaying a business object, comprising:
acquiring first address information of a current business object stored in a business object component of a container;
when the current service object is changed, replacing the first address information with second address information of a space occupying service object, wherein the space occupying service object is a preset temporary service object;
displaying the occupied business object in the container according to the second address information;
when third address information of a new service object is acquired, replacing the second address information with the third address information;
Displaying the new business object in the container according to the third address information;
and when the current service object is changed, replacing the first address information with the second address information of the occupied service object, including:
Scrolling the container in response to a sliding operation with respect to a screen;
When the container is located outside the display range of the screen, replacing the first address information with the second address information;
and when the container is located outside the display range of the screen, replacing the first address information with the second address information, including:
when the container is located outside the display range of the screen and the container is located within the preset range of the container rolling window, replacing the first address information with the second address information, wherein the size of the container rolling window is larger than that of the display range, the container rolling window is provided with a preset number of containers, and the preset number of containers can be rolled simultaneously in the container rolling window according to a preset direction.
2. The method of claim 1, wherein the predetermined number of the containers are simultaneously scrollable in the container scroll window in a predetermined direction, comprising:
any one of the containers of the container rolling window is rolled out from a first edge of the container rolling window, the container rolling window is re-entered from a second edge of the container rolling window, and the first edge and the second edge are opposite edges of the container rolling window.
3. The method according to claim 1, wherein when third address information of a new service object is acquired, replacing the second address information with the third address information includes:
When the new business object is acquired, loading the new business object to a cache area;
And when the new business object is loaded to the cache area, replacing the second address information with the third address information of the new business object in the cache area.
4. The method according to claim 1, wherein the method further comprises:
acquiring the number of times that the container appears in the container rolling window in a preset time period;
and when the number of times is larger than a quantity threshold value, keeping the second address information unchanged.
5. The method according to claim 4, wherein when third address information of a new service object is acquired, replacing the second address information with the third address information includes:
When the number of times is changed from being greater than the number threshold to being less than or equal to the number threshold, replacing the second address information with the third address information; and the third address information indicates the address information of the new service object obtained when the first address information is changed for the last time in the preset time period.
6. A business object display device, comprising:
an acquisition unit configured to perform acquisition of first address information of a current business object stored in a business object component of a container;
a replacing unit configured to replace the first address information with second address information of a space occupying service object, which is a preset temporary service object, when the current service object is changed;
a display unit configured to perform displaying the placeholder business object in the container according to the second address information;
The acquisition unit is further configured to acquire third address information of the new service object;
the replacing unit is further configured to perform replacement of the second address information into the third address information when the acquiring unit acquires the third address information;
the display unit is further configured to display the new business object in the container according to the third address information;
the replacement unit includes:
a container scrolling unit configured to perform scrolling of the container in response to a sliding operation with respect to a screen;
an address replacement unit configured to perform replacement of the first address information to the second address information when the container is located outside a display range of the screen;
The address replacement unit is configured to replace the first address information with the second address information when the container is located outside a display range of the screen and the container is located within a preset range of a container scroll window, wherein a size of the container scroll window is larger than a size of the display range, the container scroll window is provided with a preset number of the containers, and the preset number of the containers can be simultaneously scrolled in a preset direction in the container scroll window.
7. The apparatus of claim 6, wherein the predetermined number of the containers are simultaneously scrollable in the container scroll window in a predetermined direction, comprising:
any one of the containers of the container rolling window is rolled out from a first edge of the container rolling window, the container rolling window is re-entered from a second edge of the container rolling window, and the first edge and the second edge are opposite edges of the container rolling window.
8. The apparatus of claim 6, wherein the replacement unit further comprises:
an object loading unit configured to perform loading the new business object into a cache area when the new business object is acquired;
The address replacement unit is further configured to replace the second address information with the third address information of the new service object in the cache area when the new service object is loaded into the cache area.
9. The apparatus of claim 6, wherein the apparatus further comprises:
a number-of-times obtaining unit configured to perform obtaining a number of times the container appears in the container rolling window within a preset period of time;
An address holding unit configured to perform holding the second address information unchanged when the number of times is greater than a number threshold.
10. The apparatus according to claim 9, wherein the replacing unit is configured to perform replacement of the second address information to the third address information when the number of times is changed from greater than the number threshold to less than or equal to the number threshold; and the third address information indicates the address information of the new service object obtained when the first address information is changed for the last time in the preset time period.
11. An electronic device, comprising:
A processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of presentation of business objects as claimed in any one of claims 1 to 5.
12. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of presentation of business objects according to any one of claims 1 to 5.
13. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of presentation of business objects according to any of claims 1 to 5.
CN202110121912.4A 2021-01-28 2021-01-28 Business object display method, device, equipment, storage medium and program product Active CN112765511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110121912.4A CN112765511B (en) 2021-01-28 2021-01-28 Business object display method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110121912.4A CN112765511B (en) 2021-01-28 2021-01-28 Business object display method, device, equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN112765511A CN112765511A (en) 2021-05-07
CN112765511B true CN112765511B (en) 2024-04-23

Family

ID=75706553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110121912.4A Active CN112765511B (en) 2021-01-28 2021-01-28 Business object display method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN112765511B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491171A (en) * 2013-09-24 2014-01-01 成都金山数字娱乐科技有限公司 Network resource asynchronous loading method and device
CN107085580A (en) * 2016-02-16 2017-08-22 阿里巴巴集团控股有限公司 The method and client of client displayed page
CN110489682A (en) * 2019-07-08 2019-11-22 北京三快在线科技有限公司 A kind of page loading method and device
CN110750744A (en) * 2019-10-11 2020-02-04 浙江口碑网络技术有限公司 Page presentation method and device
CN111767492A (en) * 2020-06-30 2020-10-13 中国平安财产保险股份有限公司 Picture loading method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8949317B2 (en) * 2010-01-21 2015-02-03 Versaic Inc. Metadata-configurable systems and methods for network services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491171A (en) * 2013-09-24 2014-01-01 成都金山数字娱乐科技有限公司 Network resource asynchronous loading method and device
CN107085580A (en) * 2016-02-16 2017-08-22 阿里巴巴集团控股有限公司 The method and client of client displayed page
CN110489682A (en) * 2019-07-08 2019-11-22 北京三快在线科技有限公司 A kind of page loading method and device
CN110750744A (en) * 2019-10-11 2020-02-04 浙江口碑网络技术有限公司 Page presentation method and device
CN111767492A (en) * 2020-06-30 2020-10-13 中国平安财产保险股份有限公司 Picture loading method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112765511A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN106506448B (en) Live broadcast display method and device and terminal
CN105489194B (en) A kind of method and apparatus of display image
EP3182716A1 (en) Method and device for video display
CN104636106B (en) Image display method and device, terminal device
CN110704059B (en) Image processing method, device, electronic equipment and storage medium
US20150116368A1 (en) Method and device for adjusting characters of application
CN110119239B (en) Input method application display method and device
CN105094539B (en) Reference information display methods and device
CN106504295B (en) Method and device for rendering picture
CN106775235B (en) Screen wallpaper display method and device
CN105389083B (en) Large font implementation method and device and intelligent terminal
CN112256219A (en) Display method and device, terminal and storage medium
CN110321042B (en) Interface information display method and device and electronic equipment
CN107123078A (en) The method and device of display image
CN112199552B (en) Video image display method and device, electronic equipment and storage medium
CN112698684B (en) Screen display device, screen display control method, screen display control device, and storage medium
EP3816778A1 (en) Punch-hole screen display method and apparatus
CN111612875A (en) Dynamic image generation method and device, electronic equipment and storage medium
CN111610899A (en) Interface display method, interface display device and storage medium
CN112765511B (en) Business object display method, device, equipment, storage medium and program product
CN107967233B (en) Electronic work display method and device
CN114339320B (en) Virtual resource processing method, device, equipment and storage medium
CN106354464B (en) Information display method and device
CN111092971A (en) Display method and device for displaying
CN109714247B (en) Group chat information processing method and device, electronic equipment and storage medium

Legal Events

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