[go: up one dir, main page]

CN111309216B - List page display method and device, computer equipment and storage medium - Google Patents

List page display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111309216B
CN111309216B CN202010084346.XA CN202010084346A CN111309216B CN 111309216 B CN111309216 B CN 111309216B CN 202010084346 A CN202010084346 A CN 202010084346A CN 111309216 B CN111309216 B CN 111309216B
Authority
CN
China
Prior art keywords
list
component
page
target
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010084346.XA
Other languages
Chinese (zh)
Other versions
CN111309216A (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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202010084346.XA priority Critical patent/CN111309216B/en
Publication of CN111309216A publication Critical patent/CN111309216A/en
Application granted granted Critical
Publication of CN111309216B publication Critical patent/CN111309216B/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/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the invention discloses a display method and device of a list page, computer equipment and a storage medium. The method comprises the following steps: acquiring a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed; acquiring at least one item of target general list functional component configured in advance; and displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component. The embodiment of the invention can realize the display of the multilingual list page and improve the efficiency and the accuracy of the display of the list page.

Description

List page display method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of networks, in particular to a list page display method and device, computer equipment and a storage medium.
Background
As people use mobile terminals more and more frequently, requirements on applications are higher and higher, and applications are usually displayed by generating a list page in order to display more contents.
Currently, applications may generate list pages in different scrolling manners. At the time of development, development is generally performed for each function of each list page. This results in the reuse of existing or similar functions of other lists, which need to be redeveloped.
Disclosure of Invention
The embodiment of the invention provides a display method and device of a list page, computer equipment and a storage medium, which can reuse the general functions of other lists and reduce the generation cost of the list page.
In a first aspect, an embodiment of the present invention provides a method for displaying a list page, including:
acquiring a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed;
acquiring at least one item of target general list functional component configured in advance;
and displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component.
In a second aspect, an embodiment of the present invention further provides a display apparatus for a list page, including:
the target special list component determining module is used for acquiring a list to be displayed and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed;
the target general list function component determining module is used for acquiring at least one item of target general list function component which is configured in advance;
and the target list page display module is used for displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where when the processor executes the computer program, the method for displaying a list page according to any one of the embodiments of the present invention is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying a list page according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the target special list component and the at least one target general list functional component of the list to be displayed are determined according to the display mode of the list to be displayed, and the target list page matched with the list to be displayed is generated based on the target special list component and the at least one target general list functional component, so that the problem that all functions of the list to be displayed in different display modes in the prior art need to be developed to cause the same function to be repeatedly developed is solved, the list components share the same functional component, the development cost and the generation cost of the list page can be reduced, and the updating efficiency of the list is improved.
Drawings
Fig. 1 is a flowchart of a method for displaying a list page in an embodiment of the present invention;
FIG. 2a is a flowchart of a method for displaying a list page according to a second embodiment of the present invention;
FIG. 2b is a diagram illustrating a display system architecture of a list page according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a display device for listing pages in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic diagram of a flowchart of a method for displaying a list page according to a first embodiment of the present invention, where this embodiment is applicable to a case where a function area of a list to be displayed is divided into a target-specific list component and at least one target general list function component, and a list to be displayed is generated according to the target-specific list component and the at least one target general list function component. As shown in fig. 1, the method of this embodiment specifically includes:
s110, obtaining a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed.
The to-be-displayed list is used for displaying page data in a list form, and a plurality of pieces of content data can be displayed. The display mode is used for displaying the page data, and may specifically include a mode of switching and/or laying out the displayed page data of the list to be displayed. The private list component is used to implement private list functions. Usually, the functions of the partial lists corresponding to the to-be-displayed lists in different display modes are different (may not be all the same), and the components for realizing the different list functions are special list components. The display mode may include a sliding mode and/or a layout mode, for example, the sliding mode includes a vertical sliding mode and/or a horizontal sliding mode; the layout mode comprises a waterfall flow layout mode or a grid layout mode and the like.
In fact, different private list components may exist in different display modes because different private list components have different capabilities, e.g., different caches of different private list components.
S120, acquiring at least one item of target general list function component configured in advance.
The target universal list function component is used for realizing the universal function of the list to be displayed, specifically, realizing the universal function corresponding to the list to be displayed in different display modes, and the universal function refers to a function which can be realized by the list to be displayed in different display modes.
Optionally, the at least one target general list function component is determined by selecting from a plurality of general list function components constructed in advance.
In the process of list development, a developer can develop a plurality of universal list function components in advance. The developer can specify a target universal list function component from the plurality of universal list function components as desired. Specifically, the target general list function component may be determined according to the achievable function of the list to be displayed; or determining the target universal list function component according to the requirements of the browsing user of the list to be displayed.
In fact, the developer will specify the target dedicated list component and the at least one target general list function component in the server, and the server will issue the target dedicated list component and the at least one target general list function component to the terminal device, that is, only the target dedicated list component and the at least one target general list function component are downloaded in the terminal device, and none of the dedicated list components except for the target dedicated list component and the general list function components except for the at least one target general list function component are downloaded. In the process of displaying the list by the terminal equipment, the terminal equipment loads the target special list component and the at least one target general list functional component so as to generate the list to be displayed, and responds according to a trigger instruction of a browsing user.
By pre-configuring a plurality of general list function components, the variety of lists can be improved and the development cost of the general list functions can be reduced by flexibly configuring the general functions of different lists through selection.
Illustratively, the list may include a loop view (Recyclerview) list and a Listrview (Listrview) list. Recyclerview may implement horizontal and vertical sliding through a matching target-specific list component, and Listrview may implement vertical sliding through a matching target-specific list component. The pre-configured generic list function component includes: the device comprises an automatic refreshing component, an automatic loading more component, a page state switching component, a login state monitoring component and a delayed loading component. For example, a Recyclerview association auto-refresh component, auto-load more components, and delayed load component may be specified. A Listrview association auto-refresh component, an auto-load more components page state switch component, and a listen-on state component may also be designated. Therefore, both the Recyclerview and the Listrview have an automatic refreshing function and more automatic loading functions.
Specifically, the auto-refresh component is configured to, when a set condition is satisfied, implement auto-refresh of a list page, specifically, auto-refresh of page data in the list page. The auto-load further components are used to pre-load the list content not shown in the list page. The page state switching component is used for switching the state of the page, for example, from an initialization state to a loading state of the page, and the like. The monitoring login state component is used for acquiring the login state of the account associated with the page. The delay loading component is used for loading the page data to be displayed after delaying the set time in the list page. In addition, there are other components to which embodiments of the present invention are not particularly limited.
S130, displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component.
The list page is used for displaying the list to be displayed and responding to a trigger instruction of a browsing user to operate the list to be displayed. Specifically, page data is filled in the list to be displayed to form a list page. The page data may refer to page content displayed in the page, and specifically, the page content includes at least one of the following: such as text, images, audio, and video.
Specifically, the list function may be divided into a basic function and a general function, the dedicated list component is configured to implement the list basic function, for example, page layout, page generation, sliding switching, and the like of a list page corresponding to the list to be displayed, and the general list function component is configured to implement the general function, for example, automatic refresh, automatic loading, delayed loading, and the like of the list page corresponding to the list to be displayed. It should be noted that the basic functions of the to-be-displayed list in different display modes may be completely the same, partially the same, and completely different. The general function can be a repeated function selected from all functions of the list to be displayed in different display modes, the general function is extracted from all functions of the list to be displayed, the situation of repeated development caused by independent development in each different list to be displayed can be avoided, and therefore the development cost and the generation cost of the list page are reduced.
Optionally, displaying, according to the target specific list component and the at least one item of target general list functional component, a target list page matched with the list to be displayed, including: inheriting a page function configuration component through the target specific list component; sending list attribute information and/or a page life cycle to each target general list function component through the target special list component according to the inherited page function configuration component; each target general list function component is used for executing the matched general function according to the list attribute information and/or the page life cycle and generating result data to be fed back to the target special list component; and displaying the target list page matched with the list to be displayed by the target special list component according to the inherited page function configuration component and the result data.
Specifically, the page function configuration component is used for interacting with the target general list function component and calling the target general list function component. Inheritance refers to the direct use of one object by the properties and methods of another object. The target special list component inherits the page function configuration component, and shows that the target special list component can directly realize the functions of the page function configuration component. The list attribute information is used to describe characteristics of the list, and may specifically include: page data (getDataSource ()), whether the list is empty (isEmpty ()), information obtained by list sliding monitoring, and the like. The page lifecycle is used to describe the phases of the list page in time. Specifically, the page lifecycle consists of a series of phases and steps, for example, the page lifecycle includes: a set-up phase, a return phase and a termination phase. Each stage has a sub-stage, which is respectively composed of a plurality of steps and event initiation points, and for example, the sub-stage specifically includes: a request phase, a start phase, an initialization phase, a load phase, an authentication phase, a return event processing phase, a presentation phase, an unload phase, and the like.
And when the target universal list functional component is called, responding according to the received list attribute information and/or the page life cycle, generating result data and feeding back the result data to the calling party. The result data specifically refers to the operation result of the target universal list function component.
The target-specific list component is used to generate and display a target list page. The browsing user may input a trigger instruction in the target list page to enable the target dedicated list component to call the matched target general list function component according to the trigger instruction, and input list attribute information and/or a page life cycle to enable the target general list function component to respond and feed back to the target dedicated list component to enable the target dedicated list component to perform subsequent processing, such as display on the list page.
The target special list component inherits the page function configuration component to realize calling the target general list function component, so that the target general list function component is mounted on the page function configuration component inherited by the target special list component.
Optionally, before the page function configuration component displays, according to the inherited target-specific list component and the result data, a target list page matched with the list to be displayed, the method further includes: acquiring page data according to the inherited page generation control component through the target special list component, wherein the page function configuration component inherits the page generation control component; displaying, by the target dedicated list component, a target list page matched with the list to be displayed according to the inherited page function configuration component and the result data, including: and displaying a target list page matched with the list to be displayed through the target special list component according to the inherited page function configuration component, the page data and the result data.
The page generation control component is used for acquiring page data. The page function configuration component inherits the page generation control component, so that the page function configuration component realizes the function of the page generation control component, and meanwhile, the target special list component inherits the page function configuration component, so that the target special list component indirectly inherits the page generation control component by inheriting the page function configuration component. The page data is used to populate the list as display content.
In fact, the list page may display the list (such as the layout or color of the list to be displayed), the populated display content, and the data displayed on the list page in response to the triggering instruction of the browsing user. The display of the list is realized through the page function configuration component inherited by the target special list component, the display content is determined according to the page data, and the result data is responded and determined through the page function configuration component inherited by the target special list component according to the calling target general list function component.
In addition, the page generation control component is also used to manage the page life cycle (LifeCycle).
The page data is acquired by the page function configuration component inheriting the page generation control component, and the page data is displayed in the target list page, so that one list page and the content in the list page can be completely displayed.
Optionally, after displaying the target list page matched with the list to be displayed according to the target specific list component and the at least one item of target general list functional component, the method further includes: and acquiring a life cycle event matched with the target list page through the target special list component according to the inherited page life cycle control component, and distributing the page life cycle event to an observer of the target list page.
Wherein the page lifecycle control component is to manage lifecycle events and to distribute the lifecycle events. The life cycle event is used for describing events occurring in the life cycle, such as events for acquiring page layout parameters in a page initialization phase. The observer is used for acquiring the page life cycle event of the target list page and responding the page life cycle event to perform operation processing. Illustratively, the watcher can include a target-specific list component, a general list function configuration component, a respective target general list function component, a page generation control component, and the like.
Specifically, the page lifecycle control component can be inherited by the page function configuration component, so that the page function configuration component realizes the function of the page generation control component, and meanwhile, the target specific list component inherits the page function configuration component, so that the target specific list component indirectly inherits the page generation control component by inheriting the page function configuration component.
Or the page lifecycle control component can be directly inherited by the target specific list component.
The method has the advantages that the monitoring and management of the life cycle of the page are realized by inheriting the life cycle control assembly of the page, and the life cycle event of the page is distributed to at least one observer of the target list page, so that the observer responds to the life cycle event of the page to operate, and the correct operation of the target list page is ensured.
Optionally, before displaying the target list page matched with the list to be displayed according to the target specific list component and the at least one item of target general list functional component, the method further includes: and configuring the attribute information of each target universal list function component through a universal list function configuration component.
The universal list function configuration component is used for configuring the attribute information of each target universal list function component. The attribute information is used for the function of the universal list function component, and may refer to a parameter of the universal list function configuration component. Illustratively, the common list function configuration component is an auto-refresh component, and the attribute information may be an interval time between auto-refreshes of the page.
Specifically, the target common list function component needs to be configured with attribute information in advance when running. The general list function configuration component can be configured according to the operation of a browsing user, and can also be pre-configured in the target special list component during development and sent to the general list function configuration component.
The attribute information of each target general list functional component is configured through the general list functional configuration component, so that specific parameters of the target general list functional components can be flexibly adjusted, and different functions can be correspondingly realized.
According to the embodiment of the invention, the target special list component and the at least one target general list functional component of the list to be displayed are determined according to the display mode of the list to be displayed, and the target list page matched with the list to be displayed is generated based on the target special list component and the at least one target general list functional component, so that the problem that all functions of the list to be displayed in different display modes in the prior art need to be developed to cause the same function to be repeatedly developed is solved, the list components share the same functional component, the development cost and the generation cost of the list page can be reduced, and the updating efficiency of the list is improved.
Example two
Fig. 2a is a flowchart of a method for displaying a list page according to a second embodiment of the present invention, which is embodied based on the above embodiments. The method of the embodiment specifically includes:
s210, obtaining a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed.
The list to be displayed, the display mode, the target specific list component, the target general list function component, the page function configuration component, the list attribute information, the page life cycle, the target specific list component, the page generation control component, and the page life cycle event in the embodiment of the present invention may refer to the description of the above embodiments.
S220, acquiring at least one item of target general list function component which is configured in advance, wherein the at least one item of target general list function component is determined by selecting from a plurality of general list function components which are constructed in advance.
Optionally, the general list function component includes at least one of the following: the device comprises an automatic refreshing component, an automatic loading more component, a page state switching component, a login state monitoring component and a delayed loading component.
S230, inheriting the page function configuration component through the target special list component.
S240, the target special list component sends list attribute information and/or a page life cycle to each target general list functional component according to the inherited page function configuration component, and each target general list functional component is used for executing the matched general function according to the list attribute information and/or the page life cycle and generating result data to be fed back to the target special list component.
Specifically, the result data fed back by each target general list function component is received by the target special list component.
S250, acquiring page data according to the inherited page generation control component through the target special list component, wherein the page function configuration component inherits the page generation control component.
S260, configuring the attribute information of each target universal list function component through a universal list function configuration component.
S270, displaying the target list page matched with the list to be displayed through the target special list component according to the inherited page function configuration component, the page data and the result data.
S280, acquiring a life cycle event matched with the target list page through the target special list component according to the inherited page life cycle control component, and distributing the page life cycle event to an observer of the target list page.
Accordingly, a system architecture diagram implementing the display method of the list page is shown in fig. 2 b. Wherein:
page lifecycle control component 204: i.e., the front end view page lifecycle abstraction layer (IBaseLifeCycleView), may specifically include a lifecycle management component (not shown), a lifecycle distribution assistance component 205 (viewlifecycledispatcher helper), and a page generation control component 211. Wherein the lifecycle management component is for managing a lifecycle component 206 (ilifiecycle). The page lifecycle control component 204 distributes lifecycle events to various observers in "observer mode" through the lifecycle distribution assistance component 205.
The page function configuration component 203: i.e., the front end view page function component (IBaseFeatureConfigView), for handling page function configuration management. The page function configuration component 203 may also configure various general list function components through the view page function component 209(AbsFeature), such as: an auto-refresh component 212, an auto-load more component 213, a page state switch component 214, a listen-to-login state component 215, a delayed load component 216, and other components 217, and the like. The page function configuration component 203 inherits the page life cycle control component 204 and has the function of the page life cycle control component 204.
In addition, the page function configuration component 203 manages the configuration view page function component 209 through the list feature configuration control component 208 builder schema, that is, what general list function component the developer wants to use, i.e., configuring the corresponding general list function component. While various generic list function components may be configured with different attribute information via the list feature configuration control component 208. For example, the value of the attribute information of the auto-refresh component can be configured to control the interval time of the page auto-refresh.
The page function configuration component 203 implements an interface (interface) page list property component 207(IListViewProperty), and the view page function component 209 relies on the page list property component 207 interface, i.e. the view page function component 209 can obtain the list properties, such as: list data, whether the list is empty, page list sliding listening, and the like.
The first special list component 201 may be IBaseRecyclerView: the view page of the list is carried by the RecyclerView, and the list property of the RecyclerView is used to implement the page list attribute component 207.
The second private list component 202 may be an IBaseListViewViewViewView: the ListView is used to carry the view pages of the list, and the ListView properties are used to implement the Page List attributes component 207.
The view page function component 209, which relies on the interfaces of the lifecycle component 206 and the page list attribute component 207, possesses the lifecycle and list attributes necessary for the page from which developers can customize their own required generic list function components, each provided with the framework. Developers can obtain corresponding functional support by configuring corresponding components.
The establishing process of the target list page specifically comprises the following steps: the developer formulates a list carrying mode, that is, a display mode in the terminal device, and more specifically, selects one of recycleview and ListView, that is, a corresponding specified target dedicated list component (ibaslerviewview or ibaslelistviewview), inherits the page function configuration component 203, and indirectly inherits the page life cycle control component 204 inherited by the page function configuration component 203. The developer designates each target general list function component through the view page function component 209, and at this time, each target general list function component designated only for the developer is stored in the terminal device, wherein if the developer does not designate, default designation is adopted.
The business aspect still uses the MVP (Model View Presenter) mode. The target dedicated list component inherits the page generation control component, and can realize a method for acquiring data startRefresh () and a method for returning data endRefresh () to complete a list page.
Therefore, developers only need to pay attention to corresponding list services, do not need to pay attention to implementation of some general functions, and do not need to repeatedly develop the general functions.
The performance change of the list in the whole application can be monitored by monitoring the code injection performance of different machines of the list frame during compiling, the injection access record code can record the access track of a user in the application, and meanwhile, the background configuration page loading logic can realize dynamic loading of the list page and realize a flexible degradation mode.
According to the embodiment of the invention, the list function is divided into the special list component and the general list function component, during development, only the special list component needs to be developed, and the developed general list function component is selected, so that the general functions of the list can be dynamically configured, the repeated development of the general functions of different lists is reduced, the generation cost of the list page is reduced, and the development efficiency of the list page is improved.
EXAMPLE III
Fig. 3 is a schematic diagram of a display device for a list page according to a third embodiment of the present invention. The third embodiment is a corresponding device for implementing the method for displaying a list page provided by the above embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device.
Accordingly, the apparatus of the present embodiment may include:
a target-specific list component determining module 310, configured to obtain a list to be displayed, and determine a target-specific list component matching the list to be displayed according to a pre-configured display manner matching the list to be displayed;
a target general list function component determination module 320, configured to obtain at least one item of target general list function components configured in advance;
and a target list page display module 330, configured to display a target list page matched with the list to be displayed according to the target dedicated list component and the at least one target general list functional component.
According to the embodiment of the invention, the target special list component and the at least one target general list functional component of the list to be displayed are determined according to the display mode of the list to be displayed, and the target list page matched with the list to be displayed is generated based on the target special list component and the at least one target general list functional component, so that the problem that all functions of the list to be displayed in different display modes in the prior art need to be developed to cause the same function to be repeatedly developed is solved, the list components share the same functional component, the development cost and the generation cost of the list page can be reduced, and the updating efficiency of the list is improved.
Further, the at least one target universal list function component is determined by selecting from a plurality of universal list function components that are pre-built.
Further, the target list page display module 330 includes: an inheriting page function configuration component unit for inheriting a page function configuration component through the target dedicated list component; sending list attribute information and/or a page life cycle to each target general list function component through the target special list component according to the inherited page function configuration component; each target general list function component is used for executing the matched general function according to the list attribute information and/or the page life cycle and generating result data to be fed back to the target special list component; and displaying the target list page matched with the list to be displayed by the target special list component according to the inherited page function configuration component and the result data.
Further, the display device of the list page further includes: the page generation control component inheritance module is used for acquiring page data through the target special list component according to the inherited page generation control component before the target list page matched with the list to be displayed is displayed through the page function configuration component according to the inherited target special list component and the result data, and the page function configuration component inherits the page generation control component; the inheriting page function configuration component unit is specifically configured to display, by the target dedicated list component, a target list page matched with the list to be displayed according to the inherited page function configuration component, the page data, and the result data.
Further, the display device of the list page further includes: and the page life cycle control component inheritance module is used for acquiring a life cycle event matched with the target list page through the target special list component according to the inherited page life cycle control component after the target list page matched with the list to be displayed is displayed according to the target special list component and the at least one item of target general list functional component, and distributing the page life cycle event to an observer of the target list page.
Further, the display device of the list page further includes: and the universal list function configuration module is used for configuring the attribute information of each target universal list function component through the universal list function configuration component before the target list page matched with the list to be displayed is displayed according to the target special list component and the at least one target universal list function component.
Further, the general list function component includes at least one of: the device comprises an automatic refreshing component, an automatic loading more component, a page state switching component, a login state monitoring component and a delayed loading component.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16. The computer device 12 may be a device that is attached to a bus.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a PerIPheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read-Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 20. As shown, Network adapter 20 communicates with other modules of computer device 12 via bus 18. it should be understood that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, Redundant processing units, external disk drive array (RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing, such as implementing the methods provided by any of the embodiments of the present invention, by executing programs stored in the system memory 28.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for displaying a list page, according to any embodiment of the present invention:
that is, the program when executed by the processor implements: acquiring a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed; acquiring at least one item of target general list functional component configured in advance; and displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a LAN or a WAN, or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A display method of a list page is characterized by comprising the following steps:
acquiring a list to be displayed, and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed;
acquiring at least one item of target general list functional component configured in advance;
displaying a target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component; specifically, the method comprises the steps of calling a page function configuration component of the target general list function component by using the target special list component;
the displaying the target list page matched with the list to be displayed according to the target special list component and the at least one item of target general list functional component comprises:
inheriting a page function configuration component through the target specific list component;
sending list attribute information and/or a page life cycle to each target general list function component through the target special list component according to the inherited page function configuration component;
each target general list function component is used for executing the matched general function according to the list attribute information and/or the page life cycle and generating result data to be fed back to the target special list component;
and displaying the target list page matched with the list to be displayed by the target special list component according to the inherited page function configuration component and the result data.
2. The method of claim 1, wherein the at least one target generic list function component is determined by selecting from a plurality of generic list function components that are pre-built.
3. The method of claim 2, further comprising, prior to displaying, by the page function configuration component, a target list page matching the list to be displayed according to the inherited target-specific list component and the result data, further comprising:
acquiring page data according to the inherited page generation control component through the target special list component, wherein the page function configuration component inherits the page generation control component;
displaying, by the target dedicated list component, a target list page matched with the list to be displayed according to the inherited page function configuration component and the result data, including:
and displaying a target list page matched with the list to be displayed through the target special list component according to the inherited page function configuration component, the page data and the result data.
4. The method according to any of claims 1-3, further comprising, after displaying a target list page matching the list to be displayed according to the target specific list component and the at least one target general list function component:
and acquiring a life cycle event matched with the target list page through the target special list component according to the inherited page life cycle control component, and distributing the page life cycle event to an observer of the target list page.
5. The method according to any of claims 1-3, further comprising, prior to displaying a target list page matching the list to be displayed according to the target specific list component and the at least one target generic list function component:
and configuring the attribute information of each target universal list function component through a universal list function configuration component.
6. The method of claim 1, wherein the generic list function component comprises at least one of: the device comprises an automatic refreshing component, an automatic loading more component, a page state switching component, a login state monitoring component and a delayed loading component.
7. A display device for list pages, comprising:
the target special list component determining module is used for acquiring a list to be displayed and determining a target special list component matched with the list to be displayed according to a preset display mode matched with the list to be displayed;
the target general list function component determining module is used for acquiring at least one item of target general list function component which is configured in advance;
a target list page display module, configured to display a target list page matched with the list to be displayed according to the target dedicated list component and the at least one target general list function component, specifically including using a page function configuration component that implements the target dedicated list component to call the target general list function component;
the target list page display module specifically includes:
an inheriting page function configuration component unit for inheriting a page function configuration component through the target dedicated list component; sending list attribute information and/or a page life cycle to each target general list function component through the target special list component according to the inherited page function configuration component; each target general list function component is used for executing the matched general function according to the list attribute information and/or the page life cycle and generating result data to be fed back to the target special list component; and displaying the target list page matched with the list to be displayed by the target special list component according to the inherited page function configuration component and the result data.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of displaying a list page according to any one of claims 1-6 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of displaying a list page according to any one of claims 1 to 6.
CN202010084346.XA 2020-02-10 2020-02-10 List page display method and device, computer equipment and storage medium Active CN111309216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010084346.XA CN111309216B (en) 2020-02-10 2020-02-10 List page display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010084346.XA CN111309216B (en) 2020-02-10 2020-02-10 List page display method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111309216A CN111309216A (en) 2020-06-19
CN111309216B true CN111309216B (en) 2022-03-22

Family

ID=71154738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010084346.XA Active CN111309216B (en) 2020-02-10 2020-02-10 List page display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111309216B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112394858A (en) * 2020-12-11 2021-02-23 成都商通数治科技有限公司 iOS list page rapid integration and management
CN112579241B (en) * 2020-12-22 2024-08-13 广州博冠信息科技有限公司 Page layout method and device, computer-readable storage medium and electronic equipment
CN112613287A (en) * 2020-12-29 2021-04-06 北京锐安科技有限公司 Data list display method, device, equipment and storage medium
CN113434800B (en) * 2021-06-28 2023-06-09 青岛海尔科技有限公司 Data processing method and device
CN114860123B (en) * 2022-03-29 2024-05-03 携程旅游信息技术(上海)有限公司 Method, system, medium and equipment for controlling display of list in page

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385595A (en) * 2010-08-30 2012-03-21 腾讯科技(深圳)有限公司 User list multiplex method and device for micro blogs
CN109828802A (en) * 2017-11-23 2019-05-31 腾讯科技(武汉)有限公司 List View display methods, device and readable medium
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5025600A (en) * 1999-05-17 2000-12-05 Foxboro Company, The Process control configuration system with parameterized objects
US7653653B2 (en) * 2005-02-14 2010-01-26 Microsoft Corporation Dynamically configurable lists for including multiple content types
CN100499681C (en) * 2005-12-08 2009-06-10 中兴通讯股份有限公司 Method for realizing flexible-mounting-dismounting guide-type interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385595A (en) * 2010-08-30 2012-03-21 腾讯科技(深圳)有限公司 User list multiplex method and device for micro blogs
CN109828802A (en) * 2017-11-23 2019-05-31 腾讯科技(武汉)有限公司 List View display methods, device and readable medium
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system

Also Published As

Publication number Publication date
CN111309216A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111309216B (en) List page display method and device, computer equipment and storage medium
US10467025B2 (en) Managing delivery of code and dependent data using application containers
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
WO2020119800A1 (en) List display method, apparatus and device, and storage medium
CN110990075B (en) Method, device, equipment and storage medium for starting fast application
CN110413913A (en) A kind of page furbishing method, device, terminal and storage medium
US20220400137A1 (en) Widget display method and apparatus
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN111814089A (en) Page rendering method and device, rendering server and storage medium
CN111796820B (en) Method and device for constructing front-end page based on integrated assembly and electronic equipment
WO2020206691A1 (en) Application processing method and apparatus, storage medium, and electronic device
US10908948B2 (en) Multiple application instances in operating systems that utilize a single process for application execution
CN110019464B (en) Page processing method and device
CN112947918A (en) Data display method and device
US20220236996A1 (en) Dual-system device and method for displaying application thereof, and storage medium
CN115309470B (en) Method, device, equipment and storage medium for loading widget
US20160216929A1 (en) Processing application interface
WO2024109786A1 (en) Instant messaging session information processing method and apparatus, and electronic device
WO2023103759A1 (en) Service calling method, system and apparatus, and device and storage medium
CN114721761A (en) Terminal device, application icon management method and storage medium
JP7010562B2 (en) Wrapping method, registration method, device, rendering device, and program
CN110442342B (en) Interface generation method and device, storage medium and computer equipment
CN113741888A (en) Service processing method and device
CN117631899A (en) Information display methods, devices, equipment and storage media
US12008210B2 (en) Systems and methods for changing representations of applications based on application status

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