CN112765511A - 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
CN112765511A
CN112765511A CN202110121912.4A CN202110121912A CN112765511A CN 112765511 A CN112765511 A CN 112765511A CN 202110121912 A CN202110121912 A CN 202110121912A CN 112765511 A CN112765511 A CN 112765511A
Authority
CN
China
Prior art keywords
address information
container
business object
replacing
service object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110121912.4A
Other languages
Chinese (zh)
Other versions
CN112765511B (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
Priority claimed from CN202110121912.4A external-priority 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

Images

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

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for displaying 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 business object is changed, replacing the first address information as second address information of the placeholder business object; displaying the placeholder business object in the container according to the second address information; when third address information of the new service object is acquired, replacing the second address information as the third address information; and displaying the new service object in the container according to the third address information. When the container is reused, the space-occupying business object is displayed in the container. And after the third address information of the new service object is acquired, replacing the second address information of the placeholder service object with the third address information. The problem of business object redisplay caused by poor network environment and other reasons 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 technologies, and in particular, to a method and an apparatus for displaying a business object, an electronic device, a computer-readable storage medium, and a computer program product.
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 show respective network information).
In order to avoid the feed flow blockage phenomenon caused by the excessive number of containers, a virtual rolling technology is adopted in the related technology, namely a plurality of containers can move in sequence on a feed flow display interface to form a rolling effect of the plurality of containers. However, the virtual scrolling technology easily causes the problem that the network information in the multiplexed container is not updated timely, and the network information is repeatedly displayed.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, a computer-readable storage medium, and a 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 disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for displaying a business object is provided, including: acquiring first address information of a current business object stored in a business object component of a container; when the current business object is changed, replacing the first address information as second address information of an occupied business object, wherein the occupied business object is a preset temporary business object; displaying the placeholder 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 placeholder service object includes: scrolling the container in response to a sliding operation with respect to the 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 a preset range of a 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 simultaneously rolled in the container rolling window according to a preset direction, any one container 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.
Optionally, when third address information of a new service object is obtained, replacing the second address information with the third address information includes: when the new service object is obtained, loading the new service object to a cache region; and when the new service object is loaded to the cache region, replacing the second address information as the third address information of the new service object in the cache region.
Optionally, the method further comprises: acquiring the times of the container appearing in the container rolling window within a preset time period; when the number of times is greater than a number threshold, keeping the second address information unchanged.
Optionally, when third address information of a new service object is obtained, replacing the second address information with the third address information includes: replacing 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 represents 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 the embodiments of the present disclosure, there is provided a display apparatus for business objects, including: the acquisition unit is configured to execute acquisition of first address information of a current business object stored in a business object component of a container; the replacing unit is configured to replace the second address information of the first address information as an occupied service object when the current service object is changed, wherein the occupied service object is a preset temporary service object; the showing unit is configured to show the placeholder business object in the container according to the second address information; the acquiring unit is further configured to acquire third address information of the new service object; the replacing unit is further configured to perform, when the obtaining unit obtains the third address information, replacing the second address information with the third address information; the presentation unit is further configured to perform presentation of the new business object in the container according to the third address information.
Optionally, the replacement unit includes: a container scrolling unit configured to perform scrolling of the container in response to a slide operation with respect to a screen; an address replacing 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 perform, when the container is located outside a display range of the screen and the container is located within a preset range of a container rolling window, replacing the first address information with the second address information, where a size of the container rolling window is larger than a size of the display range, the container rolling window is provided with a preset number of containers, the preset number of containers can be simultaneously rolled in the container rolling window according to a preset direction, any one of the containers in 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.
Optionally, the replacing unit further includes: the object loading unit is configured to load the new service object to a cache region when the new service object is acquired; the address replacing unit is further configured to replace the second address information as the third address information of the new service object in the cache region when the new service object is loaded into the cache region.
Optionally, the apparatus further comprises: a number acquisition unit configured to perform acquisition of the number of times the container appears in the container scroll window within a preset time period; 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 perform replacing 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 represents 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 the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method for presenting 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, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method for presenting a business object according to the first aspect.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, where the computer program is executed by a processor to implement the business object displaying method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the display scheme of the business object provided by the embodiment of the disclosure, the first address information of the current business object stored in the business object assembly in the container is acquired, when the current business object is changed, the first address information is replaced to be the second address information of the placeholder business object, the placeholder business object is a preset temporary business object, and then the placeholder business object is displayed in the container according to the second address information. And when the third address information of the new business object is acquired, replacing the second address information as the third address information, and then displaying the new business object in the container according to the third address information.
When a current business object stored in a business object assembly of a container is changed, first address information of the current business object is replaced by second address information of a preset placeholder business object, namely, when the container is multiplexed, the placeholder business object is displayed in the container. And after the third address information of the new business object is acquired, replacing the second address information with the third address information, and displaying the new business object according to the third address information. The embodiment of the disclosure avoids the problem of business object redisplay caused by poor network environment and other reasons when the container is reused.
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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method for presenting a business object in accordance with an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a presentation scheme of multiple pictures in a feed stream according to an exemplary embodiment.
FIG. 3 is a block diagram illustrating an apparatus for presenting a business object in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating a business object presenting electronic device in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating an electronic device for presenting business objects in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related technology, a virtual rolling technology is adopted to display the feed flow, namely, a plurality of containers move in sequence on a display interface of the feed flow to form an effect of rolling the containers. For example, multiple containers may be scrolled in either a top-down or bottom-up direction, and containers are scrolled out of one direction of the presentation interface and into another direction of the presentation interface. However, if the scrolling speed of the container is too fast, the business objects in the container are not updated yet, so that when the container is scrolled in from the other direction of the presentation interface, the business objects before scrolling out from the presentation interface are still presented, i.e. the problem of repeated presentation of the business objects is caused.
Fig. 1 is a flowchart illustrating a method for displaying a business object according to an exemplary embodiment, where the method for displaying a business object may be applied to a terminal, and the terminal loads an application program, such as a browser. The terminal may use the application program or the applet loaded in the application program or the applet associated with the application program to display the business object, and the method for displaying the business object may specifically include the following steps.
In step S11, first address information of the current business object stored in the business object component of the container is acquired.
In the embodiment of the present disclosure, the terminal may present the business object in a feed stream form. In one embodiment, an application or applet provides a number of containers, each of which can expose business objects through business object components encapsulated therein. According to the business object display type of the business object component, the business object component can be divided into a picture component, a video component and the like. If the picture assembly is packaged in the container, the container displays the picture through the picture assembly; if the video component is packaged in the container, the container displays the video through the video component. Moreover, the containers provided by the application or the applet can be multiplexed, that is, after one service object is shown in any container, the container can also show another service object, so that a feed stream for showing pictures or videos is formed. The container provided by the application or applet may expose the business object according to the 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 embodiment of the present disclosure refers to the address information of the current business object stored in the business object component of the container as the first address information, and it can be 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 business object is changed, the first address information is replaced with the second address information of the placeholder business object.
In the embodiment of the disclosure, when the container is multiplexed, that is, when a current business object stored in a business object component of the container is changed, first address information of the current business object in the business object component is replaced with second address information of a preset placeholder business object. The placeholder business object can be understood as a preset business object temporarily shown in the container when the container is multiplexed, namely, a temporary business object.
In step S13, a placeholder business object is exposed in the container according to the second address information.
In the embodiment of the disclosure, the placeholder business object is acquired according to the second address information, and then the placeholder business object is displayed in the container. In practical application, the placeholder business object may be a picture, a segment of text, a segment of video, and the like according to different types of business objects, and the embodiment of the present disclosure does not specifically limit the object type of the placeholder business object and the like. Generally, the volume 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, while the step S12 is executed, the third address information of the new service object may also be obtained, that is, when the container is multiplexed, the third address information of the new service object needs to be obtained while the first address information of the current service object is replaced by the second address information of the placeholder service object. The new business object may be understood as the business object to be exposed in the container. It should be emphasized that the purpose of container multiplexing is to change the presentation of a current business object in a container to the presentation of a new business object in the container.
And when the third address information of the new service object is acquired, replacing the second address information of the placeholder service object with the third address information of the new service object so as to display the new service object in the container.
In step S15, the new business object is presented in the container according to the third address information.
In the embodiment of the disclosure, the new service object is obtained according to the third address information, and then the new service object is displayed in the container. Which business object is shown 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 business object assembly of the container, the container displays the placeholder business object; and 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 may be understood as a replacement process of address information stored in the business object component of the container.
According to the display scheme of the business object provided by the embodiment of the disclosure, the first address information of the current business object stored in the business object assembly in the container is acquired, when the current business object is changed, the first address information is replaced to be the second address information of the placeholder business object, and then the placeholder business object is displayed in the container according to the second address information. And when the third address information of the new business object is acquired, replacing the second address information as the third address information, and then displaying the new business object in the container according to the third address information.
When a current business object stored in a business object assembly of a container is changed, first address information of the current business object is replaced by second address information of a preset placeholder business object, namely, when the container is multiplexed, the placeholder business object is displayed in the container. And after the third address information of the new business object is acquired, replacing the second address information with the third address information, and displaying the new business object according to the third address information. The embodiment of the disclosure avoids the problem of business object redisplay caused by poor network environment and other reasons when the container is reused.
In an 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. And replacing the first address information with the second address information when the container is positioned outside the display range of the screen. In practical applications, the screen a may be rectangular in shape, and when the container is located in the display range b of the screen a, the business objects in the container are displayed. One or more containers can be simultaneously rolled in the container rolling window c according to a preset direction, any container of the container rolling window c is rolled out from the first edge of the container rolling window c, and the container rolling window c can be re-entered from the second edge of the container rolling 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 larger than that of the display range b, and specifically, the height of the container scroll window c is larger than that of the display range b, for example, the height of the container scroll window c is three times that of the display range b, and the width of the container scroll window c may be larger than or equal to that of the display range b. The user can perform a slide 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, that is, container 1, container 2, container 3, … …, and container 9 are provided in the container rolling window c, and the 9 containers roll in the container rolling window c in the downward-upward direction. In the rolling process, at the time T1, the 9 containers in the container rolling window c are in the order of container 1, container 2, container 3, … … and container 9 from top to bottom, and at the time T2, the 9 containers in the container rolling window c are in the order of container 2, container 3, … …, container 9 and container 1 from top to bottom. That is, from time T1 to time T2, 9 containers in the container rolling window c roll from bottom to top, wherein the container 1 rolls out of the container rolling window c from the top edge (first edge) of the container rolling window c and then rolls into the container rolling window c from the bottom edge (second edge) of the container rolling window c.
Taking the container 1 as an example for explanation, as 9 containers are scrolled in the container scroll window c, when the container 1 is located outside the display range b, it is considered that the current business object p01 of the business object component of the container 1 is changed, and at this time, the first address information of the current business object p01 in the business object component of the container 1 is replaced by the second address information of the preset placeholder business 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 business object p01 in the business object component of the container 1 is replaced by the second address information of the preset placeholder business object L.
The container of the embodiment of the present disclosure may be scrolled in the direction of the sliding operation of the user with respect to the 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 scroll in multiple directions within the screen. When the container of the embodiment of the present disclosure is outside the display range of the scroll-out screen, it may be considered that the current business object of the container is changed. And when the container is positioned outside the display range of the screen and within the preset range of the container rolling window, replacing the first address information with the second address information. Generally, in order to ensure that a plurality of business objects can be displayed simultaneously and a plurality of containers can be quickly reused, the range of a container rolling window can be much larger than the display range of a screen, and in order to avoid that the containers are reused when being positioned at any position of the container rolling window, the scheme sets a preset range of the container rolling window: when the container is positioned outside the display range of the screen and within the preset range of the container rolling 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 soon as possible, and the problem that the current service object is still displayed when the container rolls into the display range again due to the fact that the first address information is replaced by the second address information too late and the first address information is not replaced by the second address information timely is solved.
In an exemplary embodiment of the present disclosure, the operation of acquiring 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 region by using the business object function. In practical applications, the created service object function may be an Image object, and the Image object is an Application Programming Interface (API) provided by a browser. When the new business object is loaded to the cache region, the third address information of the new business object, namely the address information of the new business object in the cache region, is considered to be acquired, and then the second address information of the placeholder business object in the replacement business object assembly is the third address information of the new business object in the cache region. The embodiment of the present disclosure uses the address information of the new service object in the cache region as the third address information, that is, the third address information is obtained after the new service object is loaded into the cache region, and the second address information is replaced by the third address information. Compared with the prior art that the address information of the new business object at the remote server is acquired, the speed of displaying the new business object by the container according to the third address information can be improved. And moreover, a cache region is arranged locally at the terminal, and the new service object is loaded to the local cache region of the terminal, so that the problem that the new service object is loaded to the local cache region of the terminal again in a short time under the condition that the address information of the new service object in a remote server is changed is solved, and the occupation amount of network resources of the terminal is reduced.
To this end, embodiments of the present disclosure enable a process of container reuse. With the rolling of the container in the container rolling window, when the current business object of the container is changed, the first address information of the current business object is not immediately replaced by the third address information of the new business object, but in order to avoid the problem that the old business object is still displayed after the container is reused because the third address information of the new business object cannot be obtained in time, the first address information of the current business object is replaced by the second address information of the placeholder business object, and the placeholder business object is temporarily displayed in the container. And after the third address information of the new service object is acquired, replacing the second address information of the placeholder service object with the third address information of the new service object.
In an exemplary embodiment of the present disclosure, the speed of the sliding operation performed on the screen by the user is fast or slow, when the speed of the sliding operation is fast, even if the business object in the container is replaced by the current business object as the new business object, the time for the new business object to be displayed in the display range is short due to the fast speed of the sliding operation, and the multiple containers are frequently reused, and the current business object is frequently replaced by the new business object, which also easily causes the stuck phenomenon of the feed stream. In order to solve the problem, when the container is rolled on the container rolling window at an excessively high speed, namely in the process of quickly rolling the container, the container always displays the space-occupying service object. When the rolling speed of the container is reduced and the quick rolling is changed into stable rolling, the container displays a 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 within a preset time period can be obtained, whether the rolling speed of the container is too fast is judged according to the number of times that the container appears in the container rolling window within the preset time period, and if the number of times that the container appears in the container rolling window within the preset time period is greater than a preset number threshold, the rolling speed of the container is considered to be too fast; and if the frequency of the container appearing in the container rolling window in the preset time period is less than or equal to the preset number threshold, the rolling speed of the container is considered to be not fast. Both the preset time period and the preset number threshold may be set according to actual conditions, for example, the preset time period is 200 milliseconds, and the preset number threshold is 2. If the container 1 appears in the container rolling window c for more than 2 times within 200 milliseconds, the container 1 is considered to be rolled too fast; if the container 1 appears in the container rolling window c less than or equal to 2 times within 200 milliseconds, the container 1 is considered to be not fast rolling. When the container rolling speed is too fast, the second address information in the service object component of the container is kept unchanged, and the third address information of a new service object does not need to be acquired. That is to say, when the container rolling speed is too fast, the corresponding service object function is not created, and no service object function exists, so that the new service object cannot be loaded into the cache region, 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 a new service object to the cache region is avoided, the storage pressure of the terminal is reduced, and the network bandwidth occupation of the terminal is also reduced.
And if the rolling speed of the container slowly decreases, namely the number of times that the container appears in the container rolling window in the preset time period is changed from being larger than the preset number threshold value to being smaller than or equal to the preset number threshold value, replacing the second address information of the placeholder business object in the business object assembly of the container with the third address information. It should be noted that, after the rolling speed of the container is reduced, the third address information used 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, the container 1 appears 2 times in the container rolling window c within 200 milliseconds, and if the rolling speed of the container 1 slowly decreases, the second address information of the placeholder business object of the container 1 is replaced with the address information of the new business object acquired when the current business object of the container 1 is changed for the second time within 200 milliseconds. The rolling speed of the container in the embodiment of the disclosure can be changed along with the speed of the sliding operation of the user, and if the speed of the sliding operation is higher, the rolling speed of the container is also higher; 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 is changed from faster to slower, in particular, when the scrolling speed of the container is stable 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 process of fast rolling the container, so that the address information of other new service objects is avoided, the frequency of obtaining the address information of the new service object by the terminal is reduced, and the operating pressure of the terminal is relieved.
In an exemplary embodiment of the present disclosure, the step S11 may be: and acquiring first address information of the current business object according to the prop attribute of the business object component. In the absence of a state management mechanism, a prop attribute is a main communication mode between components, the prop attribute is actually an object, some data can be defined in the prop attribute, the first address information can be used as data defined in the prop attribute, and the data can be transmitted to sub-components through parent components.
Based on the above description about the embodiment of the method for displaying a business object, a scheme for displaying multiple pictures in a feed stream is introduced below. As shown in fig. 2, 9 containers, namely container 1, container 2, container 3, … … and container 9, are arranged in the container rolling window. In the embodiment of the present disclosure, the container 1 is taken as an example for explanation, and the scheme of displaying pictures in other containers may refer to the scheme of displaying pictures in the container 1. At time T1, container 1 is at the very top of the container scroll window, at which time container 1 is outside the display range of the screen and container 1 is reused. At time T2, container 1 is cyclically rolled to the bottom-most portion of the container rolling window, and container 2 is positioned at the top-most portion of the container rolling window. If the address information of the new picture is not obtained at this time, if the container 1 also displays the old picture (i.e., the container 1 also displays the picture at the time T1), a visual confusion problem may be caused to the user. To avoid this problem, at time T2, container 1 shows a placeholder picture, which may indicate that container 1 is in the loaded state for a new picture. At time T3, if the address information of the new picture is acquired, the placeholder picture of the container 1 is replaced with the new picture, and at this time, the container 1 displays the new picture.
In case of fast scrolling, the container 1 has been reused several times, i.e. the container 1 recurs several times in the container scrolling window. If the old picture is replaced by the new picture every time the container 1 is reused, the previously replaced picture is replaced quickly, and the pictures in the container 1 are replaced too frequently, so that the user cannot clearly and accurately see the new picture. The old picture is frequently replaced by a new picture in the container 1, and the frequently replaced picture cannot be clearly and accurately displayed to a user, so that system resource waste is caused, and the system is easy to jam. To avoid this problem, the embodiment of the present disclosure adds an anti-shake logic to the container, that is, the intermediate state of fast scrolling loads the placeholder pictures, and when the fast scrolling changes to stable scrolling, the new pictures obtained last time are loaded, for example, at time T4, the container 1 loads the new pictures obtained last time.
The business object in the embodiment of the present disclosure may be a video, a text, an audio, and the like, besides a picture, and the embodiment of the present disclosure does not limit the content, the format, and the like of the business object. Moreover, one container may show one business object or a plurality of business objects, and the embodiments of the present disclosure do not limit the number of business objects shown in each container.
The embodiment of the disclosure adds anti-shake logic to the container, and for a fast rolling scene, avoids that the container replaces a new service object every time of multiplexing and only replaces the service object after fast rolling is stable, thereby saving system resources.
FIG. 3 is a block diagram illustrating an apparatus for presenting a business object in accordance with an exemplary embodiment. The apparatus may specifically include 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 a container;
a replacing unit 32, configured to replace, when the current service object is changed, second address information in which the first address information is an placeholder service object, where the placeholder service object is a preset temporary service object;
the showing unit 33 is configured to perform showing of the placeholder business object in the container according to the second address information;
the obtaining unit 31 is further configured to obtain third address information of the new service object;
the replacing unit 32 is further configured to perform, when the obtaining unit 31 obtains the third address information, replacing the second address information with the third address information;
the presentation unit 33 is further configured to perform presentation of the new service object in the container according to the third address information.
In an exemplary embodiment of the present disclosure, the replacement unit 32 includes:
a container scrolling unit configured to perform scrolling of the container in response to a slide operation with respect to a screen;
an address replacing 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 replacing the first address information into 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 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 containers of the preset number can be rolled simultaneously in the container rolling window according to a preset direction, 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.
In an exemplary embodiment of the present disclosure, the replacing unit 32 further includes:
the object loading unit is configured to load the new service object to a cache region when the new service object is acquired;
the address replacing unit is further configured to replace the second address information as the third address information of the new service object in the cache region when the new service object is loaded into the cache region.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
a number acquisition unit configured to perform acquisition of the number of times the container appears in the container scroll window within a preset time period;
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 replacing 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 represents 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.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 4 is a block diagram illustrating a business object presentation electronic device 400 in accordance with an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, 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 interface for input/output (I/O) 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 a portion of the steps of the above-described method of exposing a business object. 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 can 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 operations at the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, images, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The power supply component 406 provides power to the various components of the electronic device 400. 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 electronic device 400.
The multimedia component 408 comprises a screen providing an output interface between the electronic device 400 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to perform outputting and/or inputting audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to perform receiving an external audio signal 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 further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 may detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor assembly 414 may also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, orientation or acceleration/deceleration of the electronic device 400, and a change in the temperature of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without 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 gyroscope 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 means 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, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an 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, micro-controllers, microprocessors or other electronic components for performing the above-described service object presentation methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the electronic device 400 to perform the above-described method of presenting a business object is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by the processor 420 of the electronic device 400 to perform the above-mentioned method of presenting a business object. 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, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
FIG. 5 is a block diagram illustrating an electronic device 500 for presenting business objects in accordance with an exemplary embodiment. For example, the 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, that are executable by processing component 522. The application programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, the processing component 522 is configured to execute instructions to perform the above-described method of exposing a business object.
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 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for displaying a business object is characterized by comprising the following steps:
acquiring first address information of a current business object stored in a business object component of a container;
when the current business object is changed, replacing the first address information as second address information of an occupied business object, wherein the occupied business object is a preset temporary business object;
displaying the placeholder 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.
2. The method of claim 1, wherein the replacing the first address information with second address information of a placeholder business object when the current business object is changed comprises:
scrolling the container in response to a sliding operation with respect to the screen;
and when the container is positioned outside the display range of the screen, replacing the first address information with the second address information.
3. The method according to claim 2, wherein the replacing the first address information into the second address information when the container is located outside the display range of the screen comprises:
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, 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 simultaneously rolled in the container rolling window according to a preset direction, any one container 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.
4. The method according to claim 1, wherein the replacing the second address information with third address information when the third address information of the new service object is obtained comprises:
when the new service object is obtained, loading the new service object to a cache region;
and when the new service object is loaded to the cache region, replacing the second address information as the third address information of the new service object in the cache region.
5. The method of claim 3, further comprising:
acquiring the times of the container appearing in the container rolling window within a preset time period;
when the number of times is greater than a number threshold, keeping the second address information unchanged.
6. The method according to claim 5, wherein the replacing the second address information with third address information when the third address information of the new service object is obtained comprises:
replacing 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 represents 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.
7. A business object display apparatus, comprising:
the acquisition unit is configured to execute acquisition of first address information of a current business object stored in a business object component of a container;
the replacing unit is configured to replace the second address information of the first address information as an occupied service object when the current service object is changed, wherein the occupied service object is a preset temporary service object;
the showing unit is configured to show the placeholder business object in the container according to the second address information;
the acquiring unit is further configured to acquire third address information of the new service object;
the replacing unit is further configured to perform, when the obtaining unit obtains the third address information, replacing the second address information with the third address information;
the presentation unit is further configured to perform presentation of the new business object in the container according to the third address information.
8. 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 presenting a business object of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein 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 presenting a business object of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the method of presentation of a business object according to any one of claims 1 to 6.
CN202110121912.4A 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 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 Business object display method, device, equipment, storage medium and program product

Publications (2)

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

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484500A (en) * 2022-08-01 2022-12-16 武汉斗鱼鱼乐网络科技有限公司 Method, client, medium and equipment for playing information stream

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110179110A1 (en) * 2010-01-21 2011-07-21 Sponsorwise, Inc. DBA Versaic Metadata-configurable systems and methods for network services
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110179110A1 (en) * 2010-01-21 2011-07-21 Sponsorwise, Inc. DBA Versaic Metadata-configurable systems and methods for network services
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484500A (en) * 2022-08-01 2022-12-16 武汉斗鱼鱼乐网络科技有限公司 Method, client, medium and equipment for playing information stream

Similar Documents

Publication Publication Date Title
CN106506448B (en) Live broadcast display method and device and terminal
CN107526494B (en) Keyboard display method, device, terminal and storage medium
CN109961747B (en) Electronic ink screen display method and device and electronic equipment
CN110704059B (en) Image processing method, device, electronic equipment and storage medium
CN107315792B (en) Page updating method and device, electronic equipment and computer readable storage medium
CN108900693B (en) Window display method and device
CN106775235B (en) Screen wallpaper display method and device
CN111857897A (en) Information display method and device and storage medium
CN106504295B (en) Method and device for rendering picture
CN108804179B (en) Method, device, terminal and storage medium for displaying notification bar message
CN112269556A (en) Information display method, device, system, equipment, server and storage medium
CN105389083B (en) Large font implementation method and device and intelligent terminal
CN110321042B (en) Interface information display method and device and electronic equipment
EP3816778A1 (en) Punch-hole screen display method and apparatus
CN110968492A (en) Information processing method and device, and storage medium
CN114339320B (en) Virtual resource processing method, device, equipment and storage medium
CN114356476B (en) Content display method, content display device, electronic equipment and storage medium
CN112765511B (en) Business object display method, device, equipment, storage medium and program product
CN106354464B (en) Information display method and device
CN112765511A (en) Business object display method, device, equipment, storage medium and program product
CN111343510B (en) Information processing method, information processing device, electronic equipment and storage medium
CN114827721A (en) Video special effect processing method and device, storage medium and electronic equipment
CN114186154A (en) Page processing method and device, electronic equipment and storage medium
CN109714247B (en) Group chat information processing method and device, electronic equipment and storage medium
CN112866612A (en) Frame insertion method, device, terminal and computer readable 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