CN112131497A - Multi-page data carousel method and device - Google Patents

Multi-page data carousel method and device Download PDF

Info

Publication number
CN112131497A
CN112131497A CN202011008468.7A CN202011008468A CN112131497A CN 112131497 A CN112131497 A CN 112131497A CN 202011008468 A CN202011008468 A CN 202011008468A CN 112131497 A CN112131497 A CN 112131497A
Authority
CN
China
Prior art keywords
page
displayed
preset
data set
current
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.)
Pending
Application number
CN202011008468.7A
Other languages
Chinese (zh)
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 Jindi Credit Service Co ltd
Original Assignee
Beijing Jindi Credit Service 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 Jindi Credit Service Co ltd filed Critical Beijing Jindi Credit Service Co ltd
Priority to CN202011008468.7A priority Critical patent/CN112131497A/en
Publication of CN112131497A publication Critical patent/CN112131497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The disclosure relates to a multi-page data carousel method and device, electronic equipment and a storage medium. Wherein, the method comprises the following steps: acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page identification; detecting the position of a current page to be displayed on a display frame interface, and judging whether the current page to be displayed is a preset page or not; if so, pointing the position of the current page to be displayed to the position of the designated page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the designated page, and calling a display interface to display the page data of the designated page. The method and the device realize real multi-page carousel circulation display through limited display positions, and improve the page display effect.

Description

Multi-page data carousel method and device
Technical Field
The present disclosure relates to the field of internet, and in particular, to a method and an apparatus for carousel multi-page data, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of the internet, the information display of the advertisements and the like on multiple pages is gradually transferred to the internet, and especially when some important display positions of the pages display the information of the advertisements and the like, because the display space is limited, the resource positions are important, when a plurality of pieces of content need to be displayed, the purpose of displaying more content on the limited resource positions is generally achieved by adopting a carousel mode. In a conventional carousel mode, fixed data is generally set, and a limited page turning carousel effect according to the set total number of resources is realized by setting automatic page turning time or manually sliding page turning, however, in the existing mode, after the last page is turned, due to the fact that no data exists behind the last page, the last page can only be switched to by sliding forwards, and cannot be continuously slid backwards to return to the first page again, and a real page carousel cycle cannot be realized.
Accordingly, there is a need for one or more methods to address the above-mentioned problems.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a multi-page data carousel method, apparatus, electronic device, and computer-readable storage medium, which overcome one or more of the problems due to the limitations and disadvantages of the related art, at least to some extent.
According to an aspect of the present disclosure, there is provided a multi-page data carousel method, including:
acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page identification;
detecting the position of a current page to be displayed on a display frame interface, and judging whether the current page to be displayed is a preset page or not;
if so, pointing the position of the current page to be displayed to the position of the designated page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the designated page, and calling a display interface to display the page data of the designated page.
In an exemplary embodiment of the present disclosure, before acquiring a page data set corresponding to a display frame interface, the method further includes:
acquiring the initial number of pages in the initial page data set;
when the initial number of pages is greater than a preset threshold value, acquiring a specified page in the page data, adding the acquired specified page in the initial page data set according to a preset setting strategy, and taking the page added with the specified page as a pre-adjustment page; setting the preset page as an identifier for representing the preset page;
and updating the initial number of the pages according to the increased number of the pre-adjusted pages to obtain an updated number of the pages and an updated page data set, wherein the page data set is the updated page data set.
In an exemplary embodiment of the present disclosure, the adding the acquired designated page in the page data set according to a preset setting policy includes:
adding a copy page of a specified page to a specified position in the page data, wherein the specified position comprises a newly added page before a first page or/and a newly added page after a last page;
and establishing an association relation between the position of the preset page and the position of the specified page.
In an exemplary embodiment of the present disclosure, a method for pointing a position of a current page to be displayed to a position of a designated page associated with a preset page according to a preset display pointing policy includes:
when the position of the page to be displayed is the first position in the initial page data set, setting the pointing position of the current page to be displayed as the page position corresponding to the position identification page with the updated number of the pages reduced by one;
when the position of the page to be displayed is the position of the page corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set;
and when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
In an exemplary embodiment of the present disclosure, the determining whether the current page to be displayed is a preset page includes:
judging whether the current page to be displayed has an identifier representing that the current page to be displayed is a preset page or not;
and if so, determining the current page to be displayed as a pre-adjusted page.
In an exemplary embodiment of the present disclosure, pointing a position of a current page to be displayed to a position of a designated page associated with a preset page according to a preset display pointing policy, includes:
acquiring a position identifier of a preset page;
acquiring a position identifier of the designated page corresponding to the preset page according to the incidence relation between the position of the preset page and the position of the designated page;
and acquiring page data corresponding to the position identification of the specified page.
In one aspect of the present disclosure, there is provided a multi-page data carousel device, including:
the data acquisition module is used for acquiring a page data set corresponding to the display frame interface, and the page data set comprises page data, page quantity and page identification;
the page judgment module is used for detecting the position of the current page to be displayed on the display frame interface and judging whether the current page to be displayed is a preset page or not;
and the page adjusting module is used for pointing the position of the current page to be displayed to the position of a specified page associated with the pre-adjusted page according to a preset display pointing strategy when the current page to be displayed is the pre-adjusted page, acquiring page data of the specified page and calling a display interface to display the page data of the specified page.
In an exemplary embodiment of the disclosure, before the acquiring the page data set corresponding to the display frame interface, the data acquiring module is further configured to:
acquiring the initial number of pages in the initial page data set;
when the initial number of pages is greater than a preset threshold value, acquiring a specified page in the page data, adding the acquired specified page in the initial page data set according to a preset setting strategy, and taking the page added with the specified page as a pre-adjustment page; setting the preset page as an identifier for representing the preset page;
and updating the initial number of the pages according to the increased number of the pre-adjusted pages to obtain an updated number of the pages and an updated page data set, wherein the page data set is the updated page data set.
In an exemplary embodiment of the disclosure, the data obtaining module is further configured to:
adding a copy page of a specified page to a specified position in the page data, wherein the specified position comprises a newly added page before a first page or/and a newly added page after a last page;
and establishing an association relation between the position of the preset page and the position of the specified page.
In an exemplary embodiment of the present disclosure, the page adjusting module is configured to:
when the position of the page to be displayed is the first position in the initial page data set, setting the pointing position of the current page to be displayed as the page position corresponding to the position identification page with the updated number of the pages reduced by one;
when the position of the page to be displayed is the position of the page corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set;
and when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
In an exemplary embodiment of the present disclosure, the page determining module is specifically configured to:
judging whether the current page to be displayed has an identifier representing that the current page to be displayed is a preset page or not;
and if so, determining the current page to be displayed as a pre-adjusted page.
In an exemplary embodiment of the disclosure, the page adjusting module is configured to:
acquiring a position identifier of a preset page;
acquiring a position identifier of the designated page corresponding to the preset page according to the incidence relation between the position of the preset page and the position of the designated page;
and acquiring page data corresponding to the position identification of the specified page.
In one aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement a method according to any of the above.
In an aspect of the disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the method according to any one of the above.
A multi-page data carousel method in an exemplary embodiment of the present disclosure, wherein the method includes: acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page identification; detecting the position of a current page to be displayed on a display frame interface, and judging whether the current page to be displayed is a preset page or not; if so, pointing the position of the current page to be displayed to the position of the designated page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the designated page, and calling a display interface to display the page data of the designated page. The method and the device realize real multi-page carousel circulation through limited display positions, and improve the page display effect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 shows a flowchart of a multi-page data carousel method according to an example embodiment of the present disclosure;
fig. 2 shows a schematic block diagram of a multi-page data carousel apparatus according to an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a block diagram of an electronic device according to an exemplary embodiment of the present disclosure; and
fig. 4 schematically illustrates a schematic diagram of a computer-readable storage medium according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
In the present exemplary embodiment, a method for carousel multiple pages of data is first provided; referring to fig. 1, the multi-page data carousel method may include the steps of:
step S110, acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page identification;
step S120, detecting the position of the current page to be displayed on the display frame interface, and judging whether the current page to be displayed is a preset page or not;
step S130, if yes, pointing the position of the current page to be displayed to the position of the appointed page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the appointed page, and calling a display interface to display the page data of the appointed page.
A multi-page data carousel method in an exemplary embodiment of the present disclosure, wherein the method includes: acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page identification; detecting the position of a current page to be displayed on a display frame interface, and judging whether the current page to be displayed is a preset page or not; if so, pointing the position of the current page to be displayed to the position of the designated page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the designated page, and calling a display interface to display the page data of the designated page. The method and the device realize real multi-page carousel circulation through limited display positions, and improve the page display effect.
Next, the multi-page data carousel method in the present exemplary embodiment will be further described.
In step S110, a page data set corresponding to the display frame interface may be obtained, where the page data set includes page data, page number, and page identifier.
In the embodiment of the present example, the display frame interface may be a display slot for carousel multiple display advertisement information or promotion information; corresponding advertisement information or propaganda information to be displayed, such as advertisement information or propaganda information of pictures, description documents and the like, can be preset for the display frame interface; the number of the pages to be displayed of the advertisement information or the propaganda information to be displayed is greater than the number of the display bits of the display frame interface, and the page data set comprises page data, page number and page identification of all the advertisement information or the propaganda information to be displayed, namely the page data is the page content displayed by the display frame interface, such as advertisements; the page number is the number of the preset page contents which can be displayed in carousel on the display frame interface, if the display frame interface comprises 1 display position, and the display position is preset to display 3 pictures in carousel, the page number is 3; the page identification is used to uniquely identify the page.
And acquiring a page data set corresponding to the display frame interface, and initiating a page data set acquisition request to the server through a network frame in the project to acquire data to be displayed. The data content to be displayed can be counted in the form of a plurality of page data through a list.
Acquiring a page data set corresponding to the display frame interface, and further comprising: acquiring the initial number of pages in the initial page data set; when the initial number of pages is greater than a preset threshold value, acquiring a specified page in the page data, adding the acquired specified page in the initial page data set according to a preset setting strategy, and taking the page added with the specified page as a pre-adjustment page; setting the preset page as an identifier for representing the preset page; and updating the initial number of the pages according to the increased number of the pre-adjusted pages to obtain an updated number of the pages and an updated page data set, wherein the page data set is the updated page data set. Adding the acquired designated page in the page data set according to a preset setting strategy comprises the following steps: adding a copy page of a specified page to a specified position in the page data, wherein the specified position comprises a newly added page before a first page or/and a newly added page after a last page; and establishing an association relation between the position of the preset page and the position of the specified page.
The position of the display page of the display frame interface comprises a position identifier for representing the reference position of each display page, for example: the initial number of pages in the initial page data set is 3, the page identifier can be A/B/C, and the identifier represents the page content; the corresponding location identification of the 3 pages may be 0/1/2, representing the location direction of the page content; after the preset pages are newly added, the update number of the pages in the updated page data set is 5, the page identifier may be five pages of C \ a \ B \ C \ a, and the corresponding position identifier of the 5 pages may be 0/1/2/3/4.
In an embodiment of the present example, a kind of lnnerpagertapper class inherited from the pagertapper of the system may be created, where the kind of lnnerpagertapper class is mainly used for the pagertapper set when the agent is used externally, and the member variable originAdapter defined as the pagertapper is assigned by a constructor of this kind, and the observer is set to synchronously listen to the data change of the refresh page data set. And implementing a system getCount function, and returning a count +2 as an actual return count value when the count value is greater than 1 by acquiring the count value of originAdapter (the count value corresponds to the initial number of pages of the initial page data set returned by the original server).
Specifically, in the initial state, the acquired page data set is an initial page data set, and the number of pages is also the initial number of pages. When the initial number of pages is greater than a preset threshold, for example, greater than 1 or greater than the number of display bits of the display frame interface, a designated page in the initial page data set may be obtained, where the designated page may be selected according to a carousel sequence set in the initial page data set, for example, a first page and a last page in the initial page data set may be selected, or only the first page or only the last page may be selected; adding the selected designated page in the initial page data set according to a preset setting strategy; the preset setting policy may be: if the designated page is a head page, adding the head page to a newly added page behind a tail page in the initial page data set, and if the designated page is a tail page, adding the tail page to a newly added page before the head page in the initial page data set; or adding the first page of the appointed page to a newly added page behind the last page of the initial page data set, and adding the last page of the appointed page to a newly added page before the first page of the initial page data set. And taking the added page as a pre-adjusted page, associating the pre-adjusted page with the position identifier of the corresponding appointed page, and generating the association relation between the position of the pre-adjusted page and the position of the appointed page.
And then, updating the initial number of the pages according to the increased number of the preset pages to obtain a new updated number of the pages and an updated page data set, wherein the obtained page data set corresponding to the display frame interface is the updated page data set.
Performing offset processing on a page to be displayed in a display position through an instantiateltem (ViewGroup container, int position) function, specifically, when the position of the page to be displayed is a first position in the initial page data set, setting a pointing position of the current page to be displayed as a page position corresponding to the position identification page obtained by subtracting one from the updated number of the page; when the position of the page to be displayed is the position of the page corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set; and when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed. In specific implementation, for example, when the position (the position in the initial page data set to which the page to be displayed points) is determined to be 0 (the first position in the initial page data set), the position is set to count (initial number of pages) -1 of origin, that is, the pointing position offset of the current page to be displayed is set to the page position corresponding to the position identification page obtained by subtracting one from the updated number of pages; when the position is count +1 of origin, setting the position to be 0, namely setting the pointing position offset of the current page to be displayed to be the first position in the initial page data set, and setting the position to be the value of position-1 under other conditions, namely setting the pointing position offset of the current page to be displayed to be the position of the adjacent previous page of the page to be displayed. Then, invoking an instantiateltem function of originAdapter to transfer the processed data, so as to realize the effect that when the initial number of pages returned by the server is greater than the number of display bits, the pages are supplemented by one page before and after the initial number of pages returned by the server, and the coordinates of the currently and actually rendered page are offset, for example:
when the initial page data set returned by the server side is as follows: three pages of A \ B \ C, the default points to the lower 0 bit A;
the actual page after the offset processing corresponds to: five pages of C \ A \ B \ C \ A, which point to the A at the 1 st position by default;
at this time, the external display is the default display A page, but the actual content is supplemented, and the corresponding direction is also shifted to the second page.
In step S120, the position of the current page to be displayed on the display frame interface may be detected, and whether the current page to be displayed is a preset page is determined.
In step S110, the added page is used as a pre-adjustment page, and when the pre-adjustment page is associated with the corresponding designated page, the pre-adjustment page may also be set as an identifier for representing the pre-adjustment page; for example, the flag for characterizing as the preset page may also be the page flag itself, such as default setting flag 0 (leading flag) or flag 4 (trailing flag) representing as the preset page.
The judging whether the current page to be displayed is a preset page or not includes: judging whether the current page to be displayed has an identifier representing that the current page to be displayed is a preset page or not; and if so, determining the current page to be displayed as a pre-adjusted page.
And when detecting the page position corresponding to the position when the page stops sliding, acquiring the page identifier of the page corresponding to the page position, and if the page identifier is an identifier which is set to be characterized as a preset page, if the page identifier is 0 or 5, determining that the current page to be displayed is the preset page.
In step S130, if the current page to be displayed is a preset page, the position of the current page to be displayed may be pointed to the position of the designated page associated with the preset page according to a preset display pointing policy, and the page data of the designated page is acquired, and a display interface is invoked to display the page data of the designated page.
In the embodiment of the present example, after determining that the current page to be displayed is a pre-adjustment page, pointing the position of the current page to be displayed to the position of the designated page associated with the pre-adjustment page according to a preset display pointing policy, including: acquiring a position identifier of a preset page; acquiring a position identifier of the designated page corresponding to the preset page according to the incidence relation between the position of the preset page and the position of the designated page; and acquiring page data corresponding to the position identification of the specified page.
Because the incidence relation is established in advance according to the position of the preset page and the position of the appointed page, the appointed page corresponding to the position identification of the preset page can be determined according to the incidence relation, namely, the redirection of the page to be displayed is completed, and the page data of the appointed page is acquired and used as the current page to be displayed for displaying.
In the embodiment of the present example, after determining that the current page to be displayed is a pre-adjustment page, pointing the position of the current page to be displayed to the position of the designated page associated with the pre-adjustment page according to a preset display pointing policy, including: when the position of the page to be displayed is the first position in the initial page data set, setting the pointing position of the current page to be displayed as the page position corresponding to the position identification page with the updated number of the pages reduced by one; when the position of the page to be displayed is the position of the page corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set; and when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
Specifically, when it is determined that the current page to be displayed is a pre-adjusted page and is the first in the initial page data set, the pointing position of the current page to be displayed may be the page position corresponding to the position identifier page obtained by subtracting one from the page update number, and if the current page to be displayed is the first 1 in the initial page data set, the position of the corresponding page obtained by subtracting one from the page update number 5 is the identifier "3" whose position identifier is the 4 th position in sequence, that is, the current page to be displayed is the page redirected to the position identifier "3", and then the page data corresponding to the position identifier "3" is obtained for displaying.
When the current page to be displayed is determined to be a pre-adjusted page and is the position of the corresponding page with the initial number 3 plus one, namely the position mark 0, the pointing position of the current page to be displayed is the first 0 in the initial page data set.
And when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
In the exemplary embodiment, an OnPageChangeListener interface of the class I nnernpagechangelistener implementation system may be created, where the class is mainly used for an OnPageChangeListener set when used outside a proxy, a member variable originListener defined as the OnPageChangeListener is assigned through a construction function of the class, and an onpagescalstatutechange (int arg0) function is implemented. For example:
the current page is C \ A \ B \ C \ A
When the page is slid to A of the 4 th bit, the page is positioned to A of the 1 st bit by setting;
when the page is slid to the C of the 0 th bit, the page is positioned to the C of the 3 rd bit by setting;
at the moment, the situation that the multi-page display screen cannot slide to the endless degree no matter the multi-page display screen slides forwards or backwards can be achieved in the sliding operation, so that the real endless carousel of multiple pages is achieved, and the page display effect is improved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In addition, in the present exemplary embodiment, a multi-page data carousel device is also provided. Referring to fig. 2, the multi-page data carousel apparatus 200 may include: 210. 220 and 230. Wherein:
the data obtaining module 210 is configured to obtain a page data set corresponding to a display frame interface, where the page data set includes page data, a page number, and a page identifier;
the page judgment module 220 is configured to detect a position of a current page to be displayed on the display frame interface, and judge whether the current page to be displayed is a preset page;
the page adjusting module 230 is configured to, when the current page to be displayed is a preset page, point the position of the current page to be displayed to a position of a specified page associated with the preset page according to a preset display pointing policy, acquire page data of the specified page, and invoke a display interface to display the page data of the specified page.
The specific details of each multi-page data carousel device module are already described in detail in the corresponding multi-page data carousel method, and therefore are not described herein again.
It should be noted that although several modules or units of the multi-page data carousel device 200 are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 300 according to such an embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: the at least one processing unit 310, the at least one memory unit 320, a bus 330 connecting different system components (including the memory unit 320 and the processing unit 310), and a display unit 340.
Wherein the storage unit stores program code that is executable by the processing unit 310 to cause the processing unit 310 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary method" of the present specification. For example, the processing unit 310 may perform steps S110 to S130 as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache memory unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 370 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. As shown, network adapter 360 communicates with the other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 4, a program product 400 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
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, 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (14)

1. A multi-page data carousel method is characterized by comprising the following steps:
acquiring a page data set corresponding to a display frame interface, wherein the page data set comprises page data, page quantity and page position identification;
detecting the position of a current page to be displayed on a display frame interface, and judging whether the current page to be displayed is a preset page or not;
if so, pointing the position of the current page to be displayed to the position of the designated page associated with the preset page according to a preset display pointing strategy, acquiring the page data of the designated page, and calling a display interface to display the page data of the designated page.
2. The method of claim 1, wherein the obtaining of the page data set corresponding to the presentation box interface further comprises:
acquiring the initial number of pages in the initial page data set;
when the initial number of pages is greater than a preset threshold value, acquiring a specified page in the page data, adding the acquired specified page in the initial page data set according to a preset setting strategy, and taking the page added with the specified page as a pre-adjustment page; setting the preset page as an identifier for representing the preset page;
and updating the initial number of the pages according to the increased number of the pre-adjusted pages to obtain an updated number of the pages and an updated page data set, wherein the page data set is the updated page data set.
3. The method of claim 2, wherein the adding the obtained designated page in the page data set according to a preset setting policy comprises:
adding a copy page of a specified page to a specified position in the page data, wherein the specified position comprises a newly added page before a first page or/and a newly added page after a last page;
and establishing an association relation between the position of the preset page and the position of the specified page.
4. The method of claim 2, wherein pointing the position of the current page to be displayed to the position of the designated page associated with the pre-adjusted page according to a preset display pointing policy includes any one or more of:
when the position of the page to be displayed is the first position in the initial page data set, setting the pointing position of the current page to be displayed as the page position corresponding to the position identifier obtained by subtracting one from the updated number of the pages;
when the position of the page to be displayed is the page position corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set;
and when the position of the page to be displayed is not the first position in the initial page data set or the page position corresponding to the position mark obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
5. The method of claim 2, wherein the determining whether the current page to be displayed is a pre-adjusted page comprises:
judging whether the current page to be displayed has an identifier representing that the current page to be displayed is a preset page or not;
and if so, determining the current page to be displayed as a pre-adjusted page.
6. The method of claim 3, wherein pointing the position of the current page to be displayed to the position of the designated page associated with the pre-adjusted page according to a preset display pointing policy comprises:
acquiring a position identifier of a preset page;
acquiring a position identifier of the designated page corresponding to the preset page according to the incidence relation between the position of the preset page and the position of the designated page;
and acquiring page data corresponding to the position identification of the specified page.
7. A multi-page data carousel display device, the device comprising:
the data acquisition module is used for acquiring a page data set corresponding to the display frame interface, and the page data set comprises page data, page quantity and page position identification;
the page judgment module is used for detecting the position of the current page to be displayed on the display frame interface and judging whether the current page to be displayed is a preset page or not;
and the page adjusting module is used for pointing the position of the current page to be displayed to the position of a specified page associated with the pre-adjusted page according to a preset display pointing strategy when the current page to be displayed is the pre-adjusted page, acquiring page data of the specified page and calling a display interface to display the page data of the specified page.
8. The module of claim 7, wherein before the data acquisition module acquires the page data set corresponding to the frame interface, the data acquisition module is further configured to:
acquiring the initial number of pages in the initial page data set;
when the initial number of pages is greater than a preset threshold value, acquiring a specified page in the page data, adding the acquired specified page in the initial page data set according to a preset setting strategy, and taking the page added with the specified page as a pre-adjustment page; setting the preset page as an identifier for representing the preset page;
and updating the initial number of the pages according to the increased number of the pre-adjusted pages to obtain an updated number of the pages and an updated page data set, wherein the page data set is the updated page data set.
9. The module of claim 8, wherein the data acquisition module is further configured to:
adding a copy page of a specified page to a specified position in the page data, wherein the specified position comprises a newly added page before a first page or/and a newly added page after a last page;
and establishing an association relation between the position of the preset page and the position of the specified page.
10. The module of claim 8, wherein the page adjustment module is to:
when the position of the page to be displayed is the first position in the initial page data set, setting the pointing position of the current page to be displayed as the page position corresponding to the position identifier obtained by subtracting one from the updated number of the pages;
when the position of the page to be displayed is the position of the page corresponding to the position identifier of the initial number plus one of the pages, setting the pointing position of the current page to be displayed as the first position in the initial page data set;
and when the position of the page to be displayed is not the first position in the initial page data set or the position of the page corresponding to the position mark which is obtained by adding one time to the initial number of the pages, setting the pointing position of the current page to be displayed as the position of the adjacent previous page of the page to be displayed.
11. The module of claim 8, wherein the page determination module is specifically configured to:
judging whether the current page to be displayed has an identifier representing that the current page to be displayed is a preset page or not;
and if so, determining the current page to be displayed as a pre-adjusted page.
12. The module of claim 9, wherein the page adjustment module is to:
acquiring a position identifier of a preset page;
acquiring a position identifier of the designated page corresponding to the preset page according to the incidence relation between the position of the preset page and the position of the designated page;
and acquiring page data corresponding to the position identification of the specified page.
13. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory, and when executed, implementing the method of any of the preceding claims 1-6.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 6.
CN202011008468.7A 2020-09-23 2020-09-23 Multi-page data carousel method and device Pending CN112131497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011008468.7A CN112131497A (en) 2020-09-23 2020-09-23 Multi-page data carousel method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011008468.7A CN112131497A (en) 2020-09-23 2020-09-23 Multi-page data carousel method and device

Publications (1)

Publication Number Publication Date
CN112131497A true CN112131497A (en) 2020-12-25

Family

ID=73841302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011008468.7A Pending CN112131497A (en) 2020-09-23 2020-09-23 Multi-page data carousel method and device

Country Status (1)

Country Link
CN (1) CN112131497A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100083179A1 (en) * 2008-09-30 2010-04-01 Apple Inc. Visual presentation of multiple internet pages

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100083179A1 (en) * 2008-09-30 2010-04-01 Apple Inc. Visual presentation of multiple internet pages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIAOINSTAN: "android开发游记:广告轮播器无限循环滚动 首尾无缝切换解决方案", 《HTTPS://BLOG.CSDN.NET/LIAOINSTAN/ARTICLE/DETAILS/50942529》, pages 1 - 3 *

Similar Documents

Publication Publication Date Title
CN109992589B (en) Method, device, server and medium for generating SQL (structured query language) statements based on visual page
CN110187931B (en) Method and device for running small program
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
US20130145362A1 (en) Hidden automated data mirroring for native interfaces in distributed virtual machines
US10241813B2 (en) Method and apparatus for patching
US20130326371A1 (en) Methods And Apparatuses For Sharing Information
JP2010519611A (en) Application-based copy and paste operations
CN110389786B (en) Kernel management method, electronic device and computer-readable storage medium
US20150249675A1 (en) Browser-based fetch of external libraries
US20130226991A1 (en) Ensuring availability and parameter format of url scheme commands
US20220229769A1 (en) Test automation systems and methods using logical identifiers
CN109582317B (en) Method and apparatus for debugging hosted applications
US10140166B2 (en) Message oriented middleware with integrated rules engine
US20140258785A1 (en) Identifying a storage location for a storage address requested during debugging
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
US20170168999A1 (en) Translating web applications based on a context model
CN112131497A (en) Multi-page data carousel method and device
US20120173984A1 (en) Context-addressed tabs for presentation applications
US11120099B2 (en) Rendering a web element in a web page
CN107045549B (en) Method and device for acquiring page number of electronic book
CN112612991A (en) Page display method and device, electronic equipment and storage medium
CN113760317A (en) Page display method, device, equipment and storage medium
CN112667365A (en) System, method and equipment for issuing desktop application based on cloud edge cooperation

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