CN113268183A - List page countdown display method and device - Google Patents

List page countdown display method and device Download PDF

Info

Publication number
CN113268183A
CN113268183A CN202110562239.8A CN202110562239A CN113268183A CN 113268183 A CN113268183 A CN 113268183A CN 202110562239 A CN202110562239 A CN 202110562239A CN 113268183 A CN113268183 A CN 113268183A
Authority
CN
China
Prior art keywords
countdown
cell
current
time
displayed
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
CN202110562239.8A
Other languages
Chinese (zh)
Other versions
CN113268183B (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 Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom 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 Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202110562239.8A priority Critical patent/CN113268183B/en
Publication of CN113268183A publication Critical patent/CN113268183A/en
Application granted granted Critical
Publication of CN113268183B publication Critical patent/CN113268183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a countdown display method and device for a list page, wherein the method comprises the following steps: in response to the triggering operation of a user on the current interface, extracting the cells and the timing attributes corresponding to the model arrays to be displayed from the model arrays; based on the countdown requirements corresponding to the model arrays to be displayed, screening out cells with the countdown requirements from the cells corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary; traversing the current countdown cell dictionary, and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell; and displaying the countdown display time in a cell corresponding to the current interface. Therefore, the countdown display function of the whole display interface cell by utilizing one timing component is realized, the whole list does not need to be refreshed by accurately processing the countdown display control of each cell to be displayed, and the resource expenditure is greatly reduced.

Description

List page countdown display method and device
Technical Field
The invention relates to the technical field of computer application, in particular to a countdown display method and device for a list page.
Background
With the development of internet technology, there are many activity countdown in the list activity page of each application, such as: the sales promotion activity interface of the e-commerce platform displays countdown of each commodity time-limited activity, and the countdown corresponding to each commodity data corresponds to a cell in the list page. In order to avoid the problem that resources are wasted by setting a timer corresponding to each cell in the prior art, a method for realizing countdown display of a list page by using only one timer is provided, which is characterized in that deadline time of each item is collected and current time is subtracted when list data is initialized, time required by each item of data to count down is obtained, the time is put into a time array, then a timer is added to the page, one second is subtracted from each time in the time array, and then the value of the time array is returned, so that each time array changes and is reflected on the page.
However, in practical applications, on the current display interface, the countdown cells of all the products need not be displayed, for example, 100 products with countdown displays are provided on the list page, and only 10 products can be displayed on the user interface at most each time. Therefore, although the above method for displaying the countdown of the list page only uses one timer to avoid the waste of resources to a certain extent, it needs to traverse all the list data, i.e. the countdown corresponding to 100 kinds of goods, each time, and refresh the countdown in the current cell no matter whether the countdown is displayed in the current interface, so that the situations of high resource expenditure and resource waste still exist.
Disclosure of Invention
In view of this, embodiments of the present invention provide a list page countdown display method and apparatus, so as to overcome the problem of resource waste caused by large resource expenditure due to the list page countdown display method in the prior art.
The embodiment of the invention provides a countdown display method for a list page, which comprises the following steps:
responding to the triggering operation of a user on the current interface, extracting cells and timing attributes corresponding to each model array to be displayed from a plurality of model arrays, wherein the model arrays are list page data sent by a server, and the timing attribute of each model array is first countdown time of a timing assembly corresponding to the receiving time of the model array;
based on the countdown requirements corresponding to the model arrays to be displayed, screening out cells with the countdown requirements from the cells corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary;
traversing the current countdown cell dictionary, and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell;
and displaying the countdown display time in a cell corresponding to the current interface.
Optionally, traversing the current countdown cell dictionary, and determining a countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell includes:
determining a first model array to be displayed corresponding to a first cell based on the current countdown cell dictionary;
acquiring the timing attribute and the countdown requirement of the first model array to be displayed;
and determining first countdown display time corresponding to the first cell based on the timing attribute, the countdown requirement and the current countdown time.
Optionally, the determining a first countdown display time corresponding to the first cell based on the timing attribute, the countdown requirement and the current countdown time includes:
calculating a first time difference value between the current countdown time and the first countdown time;
and calculating a second time difference value between the total countdown time and the first time difference value, and determining the first countdown display time.
Optionally, the establishing a current countdown cell dictionary includes:
acquiring a last countdown cell dictionary;
updating the last countdown cell dictionary based on the screened cells with countdown requirements;
and determining the updated last countdown cell dictionary as the current countdown cell dictionary.
Optionally, the updating the previous countdown cell dictionary based on the cells screened out to have countdown requirements includes:
extracting second cells which are not in the previous countdown cell dictionary from the screened cells with countdown requirements;
adding the second cell to the last countdown cell dictionary.
Optionally, the method further comprises:
judging whether a third cell which is not included in the screened cell with the countdown requirement exists in the previous countdown cell dictionary or not;
and when a third cell which is not included in the screened cells with the countdown requirements exists in the last countdown cell dictionary, removing the third cell from the last countdown cell dictionary.
Optionally, the method further comprises:
acquiring first data of the first model array to be displayed;
and displaying the first data at the position corresponding to the current interface.
The embodiment of the invention also provides a countdown display device for the list page, which comprises:
the first processing module is used for responding to the triggering operation of a user on the current interface, and extracting the cells and the timing attributes corresponding to the model arrays to be displayed from the model arrays, wherein the model arrays are list page data sent by the server, and the timing attribute of each model array is the first countdown time of the timing assembly corresponding to the receiving moment of the model array;
the second processing module is used for screening out cells with countdown requirements from the cells corresponding to the model arrays to be displayed based on the countdown requirements corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary;
the third processing module is used for traversing the current countdown cell dictionary and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell;
and the fourth processing module is used for displaying the countdown display time in a cell corresponding to the current interface.
An embodiment of the present invention further provides an electronic device, including: the device comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer-readable storage medium, which stores computer instructions for enabling a computer to execute the method provided by the embodiment of the invention.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a list page countdown display method and device, wherein in response to the triggering operation of a user on a current interface, cells and timing attributes corresponding to each model array to be displayed are extracted from a plurality of model arrays, the model arrays are list page data sent by a server, and the timing attribute of each model array is the first countdown time of a timing component corresponding to the receiving moment of the model array; based on the countdown requirements corresponding to the model arrays to be displayed, screening out cells with the countdown requirements from the cells corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary; traversing the current countdown cell dictionary, and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell; and displaying the countdown display time in a cell corresponding to the current interface. Therefore, by adding the timing attribute of the countdown time of the receiving time timing component to the list page data sent by the server, each cell which is to be displayed on the interface and needs to be counted down is screened from the list page data to establish a current countdown cell dictionary, the countdown time displayed by each cell in the current countdown cell dictionary is determined by using the current countdown time of the timing component, and the countdown time is displayed on the current interface. The countdown display function of the whole display interface cell by utilizing one timing assembly is realized, the countdown display control part which is used for accurately processing each countdown display interface cell is not needed to refresh the whole list, the resource expenditure is greatly reduced, in addition, the loading of more list data on the current interface can be supported by a mode of marking the timing attribute of the loading time for each loading list data, the problem of data confusion when more data are loaded is avoided, in addition, the list only has one timer, and the list is destroyed along with the destruction of list pages, the use is more convenient, developers do not need to pay attention to the internal realization logic of the timer, and the destruction and other problems are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a countdown display method for a list page according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary application of countdown display of a list page according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a countdown display device for a list page according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
With the development of internet technology, a large number of event countdown events occur in a list event page of each application, and normally, on a current display interface, countdown cells of all commodities are not required to be displayed, for example, 100 commodities with countdown events are displayed on the list page, and at most, 10 commodities can be displayed on a user interface at a time. Although the conventional method for realizing countdown display of the list page by adopting one timer only avoids resource waste to a certain extent by utilizing one timer, the method needs to traverse all list data, namely countdown corresponding to 100 commodities, each time, and refreshes the countdown in the current cell no matter whether the countdown in the current cell is displayed in the current interface or not, so that the situations of high resource expenditure and resource waste still exist.
Based on the above problem, an embodiment of the present invention provides a list page countdown display method, as shown in fig. 1, the method specifically includes the following steps:
step S101: and responding to the triggering operation of the user on the current interface, and extracting the cells and the timing attributes corresponding to the model arrays to be displayed from the plurality of model arrays.
The plurality of model arrays are list page data sent by the server, and the timing attribute of each model array is the first countdown time of the timing component corresponding to the receiving moment of the model array. Specifically, the list page data may be sent by the server once, or may be sent by the server multiple times according to a user request, and when receiving the list data sent by the server, the countdown time displayed by the timing component, such as a timer, at this time, for example, 30s, is added as the timing attribute of the currently received list data, that is, the first countdown time is the time that the timer has counted down currently. The user's trigger operation on the current interface includes but is not limited to: the present invention is not limited to the above-mentioned operations, such as opening the current page, pulling up, pulling down, scrolling, and turning pages, as long as the operations are used to implement the refresh display of the current interface.
Step S102: and screening out the cells with the countdown requirements from the cells corresponding to the model arrays to be displayed based on the countdown requirements corresponding to the model arrays to be displayed, and establishing the current countdown cell dictionary.
Each model array in the list data sent by the server has information including its own countdown requirement, if the countdown time is 30s, it indicates that the model array needs to count down for 30s, and if the countdown time is not available, it indicates that the model array does not have a countdown display control, etc., which is only taken as an example and not limited by the present invention. The cells stored in the current countdown cell dictionary are all the cells which are to be displayed on the user interface and need to be displayed for countdown.
Step S103: and traversing the current countdown cell dictionary, and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell.
After finding the cell1 through the current countdown cell dictionary, finding the corresponding model1 through the cell1, obtaining the total countdown seconds T of the model1 from the model1, calculating the remaining countdown seconds, and if the seconds is less than 0, ending the countdown. The countdown display time is the countdown time displayed by the current cell on the user interface, and if the model array corresponding to the cell needs to count down for 30s, the countdown time of the timing component at the moment of receiving the model array is 10s, and the current countdown time is 20s, it is indicated that 20-10 equals 10s when counting down, and the final countdown display time is 30-10 equals 20 s.
Step S104: and displaying the countdown display time in a cell corresponding to the current interface.
And displaying the countdown remaining time 20s at the cell position corresponding to the interface.
By executing the steps, the list page countdown display method provided by the embodiment of the invention screens out each cell which is to be displayed on the interface and needs to be counted down from the list page data by adding the timing attribute of the countdown time of the timing component at the receiving time to the list page data sent by the server to establish the current countdown cell dictionary, determines the countdown time displayed by each cell in the current countdown cell dictionary by using the current countdown time of the timing component, and displays the countdown time on the current interface. The countdown display function of the whole display interface cell by utilizing one timing component is realized, the whole list does not need to be refreshed by accurately processing the countdown display control of each cell to be displayed, and the resource expenditure is greatly reduced.
Specifically, in an embodiment, the step S103 specifically includes the following steps:
step S201: and determining a first model array to be displayed corresponding to the first cell based on the current countdown cell dictionary.
After the list page is generated, for example, after the sales commodity list of the sales platform is determined, the corresponding relationship between each cell of each list and the model array thereof, that is, the related commodity data, is determined to be unchanged, so that the corresponding model array can be determined through the cell. A model is corresponding to different cells (cells) of a type of cells to display different contents, for example, model1 is responsible for providing data for the display of cell1, model2 is responsible for providing data for the display of cell2, and model 3 is responsible for providing data for the display of cell 3. Among them, in the model 1(cell1), the model 3(cell3), and the model 4(cell4), a countdown and the like are provided although UI patterns are different.
Step S202: and acquiring the timing attribute and the countdown requirement of the first model array to be displayed.
When the timing attribute is transmitted from the server, the timing value of the built-in timer is the list data where the model array is located, and the timing requirement is the total remaining countdown duration corresponding to the model array, in practical application, because the activity time periods in which different commodities participate are different, different conditions of different commodity timing requirements may exist, for example: a product a count down for 30S, a product B count down for 60S, etc.
Step S203: and determining first countdown display time corresponding to the first cell based on the timing attribute, the countdown requirement and the current countdown time.
Specifically, a first time difference value between the current countdown time and a first countdown time is calculated; and calculating a second time difference value between the total countdown time and the first time difference value, and determining the first countdown display time. For example, assuming that the model array corresponding to the cell needs to count down for 30s, the count-down time of the timing component at the time of receiving the model array is 10s, and the current count-down time is 20s, it is described that 20-10 equals 10s when counting down, and the final count-down display time is 30-10 equals 20 s.
Specifically, in an embodiment, the step of establishing the current countdown cell dictionary in the step S102 specifically includes the following steps:
step S301: and acquiring the last countdown cell dictionary. Specifically, the previous countdown cell dictionary is the countdown cell dictionary corresponding to the content displayed on the display interface currently operated by the user at the previous moment.
Step S302: and updating the last countdown cell dictionary based on the screened cells with countdown requirements.
Specifically, extracting a second cell which is not in the previous countdown cell dictionary from the screened cells with the countdown requirements; the second cell is added to the previous countdown cell dictionary. Judging whether a third cell which is not included in the screened cell with the countdown requirement exists in the previous countdown cell dictionary; and when a third cell which is not included in the screened cells with the countdown requirements exists in the previous countdown cell dictionary, removing the third cell from the previous countdown cell dictionary.
Step S303: and determining the updated last countdown cell dictionary as the current countdown cell dictionary.
In particular, since the user display interface often contains a plurality of identical display contents in adjacent time, such as: the commodities displayed at the last moment are the commodities which are ranked in 1-10 in the list data, and after a user operates a mouse, the commodities to be displayed at the next moment are the commodities which are ranked in 5-15 in the list data, namely the same commodities which are 5-10 are stored. Therefore, in order to avoid the resources occupied by recreating the countdown cell dictionary every time, the resource expenditure can be further reduced by utilizing the mode of updating the countdown cell dictionary at the last moment, and the establishment efficiency of the countdown cell dictionary is improved.
Specifically, in an embodiment, the method further includes the following steps:
step S105: and acquiring first data of the first model array to be displayed.
Wherein, the first data is other data except for the countdown in the model array, such as: product text brief introduction, product picture, product price and other data of a certain product.
Step S106: and displaying the first data at the position corresponding to the current interface.
Specifically, all relevant data and countdown information of the commodity are displayed through the corresponding display control on the user operation interface, so that the user can browse the data and the countdown information.
The list page countdown display method provided by the embodiment of the invention will be described in detail below with reference to a specific application example. In a specific application example, by using the method for displaying countdown of a list page provided by the embodiment of the present invention, a timer management tool is designed to maintain countdown of the list page, and a specific working process is shown in fig. 2. It should be noted that, in the application example, the timer management tool is described by taking the timer management tool as an example running in the iOS system, and in practical applications, the timer management tool may be adaptively adjusted according to different systems, such as an android system, a windows system, and the like, and the invention is not limited thereto.
First, in the present application example, the following definitions are made: countdown management tool: CountDownHandler, list page: TableView, cell in List Page: TableViewCell. The specific working process is as follows:
1. after the server returns the list page data, the data array is registered in a CountDownHandler (countdown management tool), the list data in the server is a model array, and specifically comprises model names such as model1, model2 and the like, countdown requirements such as countdown seconds T or no countdown and other data such as corresponding commodity information picture information;
and 2, traversing the registered model data arrays by the CountDownHandler, and dynamically adding an addT attribute to each model. (addT is the time that the countdown tool has counted down, i.e., model is registering and the countdown tool has counted down addT seconds)
3. Transmitting a list page data request to TableView (list page), and refreshing a UI (interface content required to be displayed initially by the interface when a corresponding user opens the current interface) by the list page;
registering the TableViewcell to be displayed in a CountDownHandler by TableView;
5, when receiving the registered TableViewcell, CountDownHandler first judges whether the countdown is needed, if the countdown is needed, then adds the built-in TableViewcell dictionary (key is the example address of the TableViewcell)
6, a timer is arranged in the CountDownHandler, and a countdown function is called every second at a default time interval; traversing the registered TableViewCell dictionary in the CountDownHandler countdown function, taking a corresponding model according to the TableViewCell dictionary, checking whether countdown is needed, and calling a function for adjusting the countdown display pattern in the TableViewCell if the countdown is needed; and returning the countdown time corresponding to the TableViewCell to be displayed to the client interface for displaying.
7. When the TableViewCell is displayed to be displayed and registered to the CountDownHandler, the state may be registered, and if the state is the registered state, the CountDownHandler directly rejects the registration. The number of the TableViewCells traversed per second is greatly reduced, and the resource expenditure is reduced.
As can be seen from the application examples, the countdown display method for the list page provided by the embodiment of the present invention has the following characteristics: firstly, the resource expenditure is reduced: because the list only has one timer and the timer management tool can also destroy the list page along with the destruction of the list page, the countdown display control of each cell is accurate, and the whole list does not need to be refreshed, the resource expenditure is greatly reduced; secondly, supporting more loads: because each network data can record the timed time added into the timer management tool, the problem of data confusion can not occur when more network data are loaded; and the method is convenient to use, developers only need to register the network data and the view capable of counting down to the tool class and realize counting down and refreshing of the view, and do not need to pay attention to the problems of realizing logic, destroying and the like in the timer.
By executing the steps, the list page countdown display method provided by the embodiment of the invention screens out each cell which is to be displayed on the interface and needs to be counted down from the list page data by adding the timing attribute of the countdown time of the timing component at the receiving time to the list page data sent by the server to establish the current countdown cell dictionary, determines the countdown time displayed by each cell in the current countdown cell dictionary by using the current countdown time of the timing component, and displays the countdown time on the current interface. The countdown display function of the whole display interface cell by utilizing one timing assembly is realized, the countdown display control part which is used for accurately processing each countdown display interface cell is not needed to refresh the whole list, the resource expenditure is greatly reduced, in addition, the loading of more list data on the current interface can be supported by a mode of marking the timing attribute of the loading time for each loading list data, the problem of data confusion when more data are loaded is avoided, in addition, the list only has one timer, and the list is destroyed along with the destruction of list pages, the use is more convenient, developers do not need to pay attention to the internal realization logic of the timer, and the destruction and other problems are solved.
An embodiment of the present invention further provides a list page countdown display device, as shown in fig. 3, the list page countdown display device includes:
the first processing module 101 is configured to, in response to a trigger operation of a user on a current interface, extract cells and timing attributes corresponding to each model array to be displayed from the plurality of model arrays, where the plurality of model arrays are list page data sent by the server, and the timing attribute of each model array is a first countdown time of a timing component corresponding to a receiving time of the model array. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
And the second processing module 102 is configured to screen out cells with countdown requirements from the cells corresponding to each model array to be displayed based on the countdown requirements corresponding to each model array to be displayed, and establish a current countdown cell dictionary. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
And the third processing module 103 is configured to traverse the current countdown cell dictionary, and determine a countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell. For details, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.
And the fourth processing module 104 is configured to display the countdown display time in a cell corresponding to the current interface. For details, refer to the related description of step S104 in the above method embodiment, and no further description is provided here.
Through the cooperative cooperation of the above components, the list page countdown display device provided by the embodiment of the present invention screens out each cell to be displayed on the interface and required to be countdown from the list page data by adding the timing attribute of the countdown time of the receiving time timing component to the list page data sent by the server, establishes the current countdown cell dictionary, determines the countdown time displayed by each cell in the current countdown cell dictionary by using the current countdown time of the timing component, and displays the countdown time on the current interface. The countdown display function of the whole display interface cell by utilizing one timing component is realized, the whole list does not need to be refreshed by accurately processing the countdown display control of each cell to be displayed, and the resource expenditure is greatly reduced.
There is also provided an electronic device according to an embodiment of the present invention, as shown in fig. 4, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 4 takes the example of being connected by a bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A list page countdown display method is characterized by comprising the following steps:
responding to the triggering operation of a user on the current interface, extracting cells and timing attributes corresponding to each model array to be displayed from a plurality of model arrays, wherein the model arrays are list page data sent by a server, and the timing attribute of each model array is first countdown time of a timing assembly corresponding to the receiving time of the model array;
based on the countdown requirements corresponding to the model arrays to be displayed, screening out cells with the countdown requirements from the cells corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary;
traversing the current countdown cell dictionary, and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell;
and displaying the countdown display time in a cell corresponding to the current interface.
2. The method of claim 1, wherein traversing the current countdown cell dictionary and determining the countdown display time for each cell based on the current countdown time of the timing component and the timing attributes of each cell comprises:
determining a first model array to be displayed corresponding to a first cell based on the current countdown cell dictionary;
acquiring the timing attribute and the countdown requirement of the first model array to be displayed;
and determining first countdown display time corresponding to the first cell based on the timing attribute, the countdown requirement and the current countdown time.
3. The method of claim 2, wherein the countdown requirement is a total countdown duration, and wherein determining the first countdown display time corresponding to the first cell based on the timing attribute, the countdown requirement and the current countdown time comprises:
calculating a first time difference value between the current countdown time and the first countdown time;
and calculating a second time difference value between the total countdown time and the first time difference value, and determining the first countdown display time.
4. The method of claim 1, wherein establishing the current countdown cell dictionary comprises:
acquiring a last countdown cell dictionary;
updating the last countdown cell dictionary based on the screened cells with countdown requirements;
and determining the updated last countdown cell dictionary as the current countdown cell dictionary.
5. The method of claim 4, wherein updating the last countdown cell dictionary based on the cells screened for countdown requirements comprises:
extracting second cells which are not in the previous countdown cell dictionary from the screened cells with countdown requirements;
adding the second cell to the last countdown cell dictionary.
6. The method of claim 5, further comprising:
judging whether a third cell which is not included in the screened cell with the countdown requirement exists in the previous countdown cell dictionary or not;
and when a third cell which is not included in the screened cells with the countdown requirements exists in the last countdown cell dictionary, removing the third cell from the last countdown cell dictionary.
7. The method of claim 2, further comprising:
acquiring first data of the first model array to be displayed;
and displaying the first data at the position corresponding to the current interface.
8. A list page countdown display device, comprising:
the first processing module is used for responding to the triggering operation of a user on the current interface, and extracting the cells and the timing attributes corresponding to the model arrays to be displayed from the model arrays, wherein the model arrays are list page data sent by the server, and the timing attribute of each model array is the first countdown time of the timing assembly corresponding to the receiving moment of the model array;
the second processing module is used for screening out cells with countdown requirements from the cells corresponding to the model arrays to be displayed based on the countdown requirements corresponding to the model arrays to be displayed, and establishing a current countdown cell dictionary;
the third processing module is used for traversing the current countdown cell dictionary and determining countdown display time corresponding to each cell based on the current countdown time of the timing component and the timing attribute of each cell;
and the fourth processing module is used for displaying the countdown display time in a cell corresponding to the current interface.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method of any of claims 1-7 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to thereby perform the method of any one of claims 1-7.
CN202110562239.8A 2021-05-21 2021-05-21 List page countdown display method and device Active CN113268183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110562239.8A CN113268183B (en) 2021-05-21 2021-05-21 List page countdown display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110562239.8A CN113268183B (en) 2021-05-21 2021-05-21 List page countdown display method and device

Publications (2)

Publication Number Publication Date
CN113268183A true CN113268183A (en) 2021-08-17
CN113268183B CN113268183B (en) 2023-04-07

Family

ID=77232221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110562239.8A Active CN113268183B (en) 2021-05-21 2021-05-21 List page countdown display method and device

Country Status (1)

Country Link
CN (1) CN113268183B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222148A (en) * 2021-11-03 2022-03-22 广州方硅信息技术有限公司 Countdown control method and device, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621898A (en) * 1994-11-29 1997-04-15 Compaq Computer Corporation Arbiter organization for serial bus transfers
JP2012093839A (en) * 2010-10-25 2012-05-17 Dainippon Printing Co Ltd Information equipment and computer program
CN106919383A (en) * 2017-01-26 2017-07-04 武汉奇米网络科技有限公司 The methods of exhibiting and system of a kind of Android items lists
CN108564416A (en) * 2018-04-25 2018-09-21 掌阅科技股份有限公司 The processing method of activity countdown in limited time, computing device, storage medium
CN112130948A (en) * 2020-09-25 2020-12-25 Oppo广东移动通信有限公司 Display control method and device, computer readable medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621898A (en) * 1994-11-29 1997-04-15 Compaq Computer Corporation Arbiter organization for serial bus transfers
JP2012093839A (en) * 2010-10-25 2012-05-17 Dainippon Printing Co Ltd Information equipment and computer program
CN106919383A (en) * 2017-01-26 2017-07-04 武汉奇米网络科技有限公司 The methods of exhibiting and system of a kind of Android items lists
CN108564416A (en) * 2018-04-25 2018-09-21 掌阅科技股份有限公司 The processing method of activity countdown in limited time, computing device, storage medium
CN112130948A (en) * 2020-09-25 2020-12-25 Oppo广东移动通信有限公司 Display control method and device, computer readable medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222148A (en) * 2021-11-03 2022-03-22 广州方硅信息技术有限公司 Countdown control method and device, storage medium and computer equipment
CN114222148B (en) * 2021-11-03 2024-03-01 广州方硅信息技术有限公司 Countdown control method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN113268183B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US8756593B2 (en) Map generator for representing interrelationships between app features forged by dynamic pointers
US8756614B2 (en) Central registry for binding features using dynamic pointers
US8589876B1 (en) Detection of central-registry events influencing dynamic pointers and app feature dependencies
CN111522711A (en) Data monitoring processing system, method, execution end, monitoring end and electronic equipment
CN110175306A (en) A kind of processing method and processing device of advertising information
CN104021016A (en) Method and browser for loading browser plug-in icons
CN110704097A (en) Data collection method and device, electronic equipment and storage medium
CN104216698A (en) Webpage registration method and relative device
CN112433712A (en) Report display method and device, computer equipment and storage medium
CN107357885A (en) Method for writing data and device, electronic equipment, computer-readable storage medium
CN113051503A (en) Browser page rendering method and device, electronic equipment and storage medium
CN113268183B (en) List page countdown display method and device
CN116467975B (en) Data processing method, device, electronic equipment and storage medium
CN111427637A (en) Page rendering method and device
CN113220403A (en) Method and device for h5 intercepting Android return event and electronic equipment
CN109857501B (en) APP page display method and device, storage medium and server
US10592381B1 (en) Dynamic generation of custom web analytics data
CN113849195A (en) Application program loading method and device, storage medium and terminal
CN113448577A (en) Page generation method and device and storage medium
CN109542609A (en) A kind of method, apparatus withholding refund, computer equipment and storage medium
CN109445838A (en) A kind of configuration comparison method and electronic equipment based on educational system
US11099866B2 (en) Apparatus and method to provide help information to a user in a timely manner
CN111815340B (en) Popularization information determination method, device, equipment and readable storage medium
CN117519764A (en) Update display method, device, equipment and medium of application program interface
CN114371864A (en) Information updating 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