Content display method, device and equipment, computer readable storage medium and product

By predetermining and using the mapping relationship to generate an ordered view queue, the problem of low content display efficiency in the existing technology is solved, fast and accurate layout and update of view elements are achieved, and the user experience is improved.

CN118779552APending Publication Date: 2024-10-15BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202410917832.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing content display methods take a lot of time to lay out, resulting in low content display efficiency. Especially when switching pages and updating view elements, frequent layout calculations of all view elements are required, which increases time consumption and affects the user experience.

Method used

By predetermining the basic view information and mapping relationship of the display page, an ordered view queue is generated, and spacing information is added to the queue to avoid repeated full layout calculations, and the preset first mapping relationship and second mapping relationship are used to quickly and accurately Complete layout calculation and update of view elements.

Benefits of technology

It reduces the calculation amount of view element layout calculation, improves the efficiency of content display, ensures the accurate layout of view elements and user experience, and avoids spacing failures caused by multiple layout calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779552A_ABST
    Figure CN118779552A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a content display method and device, equipment, a computer readable storage medium and a product. The method comprises the steps that basic view information corresponding to a to-be-displayed content display page is determined; determining a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generating an ordered view queue according to the layout sequence and at least one view element identifier; adding spacing information in the ordered view queue according to a preset second mapping relation to obtain a target view queue; and performing rendering operation on the target view queue, and displaying a content display page obtained by rendering. Therefore, the target view queue can be quickly and accurately determined, the calculation amount of view element layout calculation is reduced, and the content display efficiency is improved. And by setting the second mapping relation, the interval information of the video element pieces can be effectively maintained, and the accuracy of view element layout is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a content display method, device, equipment, computer-readable storage medium, and product. Background Art

[0002] When a user browses content on a terminal device, a plurality of view elements are often displayed on the display page. Different view elements are often required to be displayed for different display pages. When a user switches pages, it is often necessary to perform layout calculation and display for multiple view elements associated with different display pages.

[0003] Therefore, how to quickly and accurately display and update different view elements for different display pages has become an urgent problem to be solved. Summary of the invention

[0004] The embodiments of the present disclosure provide a content display method, apparatus, device, computer-readable storage medium and product, which are used to solve the technical problem that the existing content display method consumes a lot of time for layout, resulting in low content display efficiency.

[0005] In a first aspect, an embodiment of the present disclosure provides a content display method, including:

[0006] Determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element;

[0007] Determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and view element identifiers;

[0008] Adding spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements in the plurality of view elements and a spacing mapping relationship between a view element and a page boundary;

[0009] A rendering operation is performed on the target view queue to display the content display page obtained by rendering.

[0010] In a second aspect, an embodiment of the present disclosure provides a content display device, including:

[0011] A determination module, used to determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element;

[0012] a generating module, configured to determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and the view element identifier;

[0013] an adjustment module, configured to add spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements among the plurality of view elements and a spacing mapping relationship between a view element and a page boundary;

[0014] The rendering module is used to perform a rendering operation on the target view queue and display the content display page obtained by rendering.

[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0016] The memory stores computer-executable instructions;

[0017] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the content display method described in the first aspect and various possible designs of the first aspect.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the content display method described in the first aspect and various possible designs of the first aspect is implemented.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the content display method described in the first aspect and various possible designs of the first aspect.

[0020] The content display method, apparatus, device, computer-readable storage medium and product provided in this embodiment can reduce the amount of calculation of view element layout calculation and improve content display efficiency by performing view element layout calculation based on basic view information associated with the content display page before displaying the content display page. In addition, by presetting the first mapping relationship and the second mapping relationship, the view element identifier corresponding to each first view element can be determined based on the first mapping relationship, and the spacing information between any two view element identifiers and the view element identifier and the page boundary can be accurately determined based on the second mapping relationship, so that the target view queue can be determined quickly and accurately, effectively avoiding the problem of spacing failure caused by multiple full view element layout calculations, which affects the user's browsing experience on the front-end device. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 A flowchart of a content display method provided by an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram of content display page processing provided by an embodiment of the present disclosure;

[0024] Figure 3 A flowchart of a content display method provided by another embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of inserting a view element provided in an embodiment of the present disclosure;

[0026] Figure 5 A flowchart of a content display method provided by another embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram of abbreviated view elements provided in an embodiment of the present disclosure;

[0028] Figure 7 A flowchart of a content display method provided by another embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of the structure of a content display device provided in an embodiment of the present disclosure;

[0030] Fig. 9A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0033] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0034] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0035] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0036] In order to solve the technical problem that the layout of existing content display methods is time-consuming and leads to low content display efficiency, the present disclosure provides a content display method, device, equipment, computer-readable storage medium and product.

[0037] It should be noted that the content display method, device, equipment, computer-readable storage medium and product provided by the present disclosure can be applied to any scenario of displaying page content.

[0038] In the related art, in order to implement the display operation of a display page triggered by a user, it is often necessary to determine all view elements in the display page and perform layout calculation and display operations on all view elements.

[0039] In actual applications, the layout of the display page often has great flexibility. When certain conditions are met, it is necessary to update the view elements in the display page, where the update operation includes but is not limited to adding, removing, and replacing operations. When the above method is used to display the content of the display page, the repeated call execution of the layout calculation of the full view elements will increase the layout time. And the more complex the business associated with the display page, the time-consuming impact of the rigid and repetitive logical layout will be multiplied.

[0040] In addition, since the arrangement and combination of view elements are affected by complex business factors, and the layout spacing between view elements will also change due to different arrangements and combinations, the above method is often more complex to implement in terms of logic dependence on various features of the layout context, and is prone to causing malfunctions in the spacing corresponding to the view elements, affecting the user's browsing experience on the front-end device.

[0041] When solving the above technical problems, the inventors found through research that in order to avoid the problem of long time consumption caused by the layout calculation of all view elements every time the display page is triggered, all basic views corresponding to the display page can be pre-determined for each display page. When the display page is triggered, the basic view is displayed first. When the preset conditions are met, other additional view elements are updated. Therefore, there is no need to perform layout calculation operations on all view elements every time.

[0042] In addition, a first mapping relationship and a second mapping relationship may be established in advance. The first mapping relationship includes a mapping relationship between multiple preset view elements and view element identifiers, and the second mapping relationship includes a spacing information mapping relationship between any two view elements in the multiple view elements, and a spacing mapping relationship between a view element and a page boundary. Thus, when a user triggers the display of a page, a view ordered queue may be constructed based on the first mapping relationship, and spacing information may be added between view element identifiers in the view ordered queue based on the second mapping relationship, so as to quickly and accurately complete the layout calculation.

[0043] Furthermore, by pre-establishing a first mapping relationship and a second mapping relationship, the spacing information mapping relationship between any two view elements and the spacing mapping relationship between a view element and a page boundary are maintained, so that the spacing information associated with the view element identifier can be accurately determined based on the second mapping relationship, thereby effectively avoiding the problem of spacing failure caused by multiple full view element layout calculations, which affects the user's browsing experience on the front-end device.

[0044] Figure 1 A flow chart of a content display method provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method includes:

[0045] Step 101: Determine basic view information corresponding to a content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element.

[0046] The executor of this embodiment is a content display device. The content display device can be coupled to a terminal device. Thus, in response to a content display page opening operation triggered by a user, the layout calculation of the view elements is performed based on the preset first mapping relationship and the second mapping relationship, and a display operation of the content display page is performed. Alternatively, the content display device can also be coupled to a server that is communicatively connected to the terminal device. Thus, it is possible to obtain a page opening request triggered by a user on the terminal device, perform a layout calculation of the view elements based on the pre-stored first mapping relationship and the second mapping relationship, and send the calculation result to the terminal device for display. The present disclosure does not limit this.

[0047] In this embodiment, when the user browses content in the target application preset in the terminal device, the content display page can be opened through the preset trigger operation. For example, if the target application is an application software for reading and listening to books, the user can read the selected book or play the voice associated with the book in the target application. In order to enable the user to select, browse and listen to books more intuitively, the content display page associated with the target application includes but is not limited to a book list page, a book reading page, a book listening page, and a book-related interactive page.

[0048] Accordingly, in order to achieve accurate display of the content display page, the basic view information corresponding to the content display page to be displayed can be determined, wherein the basic view information can be at least a portion of the view elements that implement the basic functions of the page, and the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element.

[0049] Continuing with the above example, when a user triggers a book listening page, the basic view elements in the book listening page may include a book title view element, a scrolling subtitle view element, a play function control view element, a play progress view element, and a play control view element. Thus, the user can intuitively understand the book currently being listened to based on the above view elements.

[0050] Step 102: determine the view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between multiple preset view elements and view element identifiers.

[0051] In this implementation, in order to implement layout calculation of the content display page, a first mapping relationship may be pre-constructed, wherein the first mapping relationship includes mapping relationships between a plurality of preset view elements and view element identifiers.

[0052] After determining the basic view information, the view element identifier corresponding to each first view element may be determined based on a preset first mapping relationship, and an ordered view queue may be generated according to the layout order and at least one view element identifier.

[0053] For example, the basic view elements in the audiobook page may include a book title view element A, a scrolling subtitle view element B, a play function control view element C, a play progress view element D, and a play control view element E. The corresponding display order may be ABCDE, and therefore, the view element identifiers associated with the book title view element, the scrolling subtitle view element, the play function control view element, the play progress view element, and the play control view element may be sorted according to the display order to generate an ordered view queue.

[0054] Step 103: Add spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements among the multiple view elements and a spacing mapping relationship between a view element and a page boundary.

[0055] In this embodiment, different view elements may correspond to different spacing information. For example, the spacing between view element A and view element B may be 18 pt, and the spacing between view element B and view element D may be 30 pt.

[0056] Since there are many business scenarios in the content display page, when the business changes, it will cause changes in the view elements, which will in turn cause changes in the spacing between the view elements. In order to accurately implement the view element layout calculation, a second mapping relationship can be established in advance. Among them, the second mapping relationship includes a spacing information mapping relationship between any two view elements in a plurality of view elements, and a spacing mapping relationship between the view elements and the page boundary. Taking view elements A, B, and C as an example, the second mapping relationship can store the spacing information between view elements AB, AC, BC, BA, CA, and CB, and the second mapping relationship can also store the spacing information between view element A and the top and bottom of the page, the spacing information between view element B and the top and bottom of the page, and the spacing information between view element C and the top and bottom of the page.

[0057] Therefore, after determining the ordered view queue, the spacing information between adjacent view element identifiers in the ordered view queue can be accurately determined based on the second mapping relationship. Then, the spacing information can be added to the ordered view queue according to the preset second mapping relationship to obtain the target view queue.

[0058] Step 104: Perform a rendering operation on the target view queue to display the content display page obtained by rendering.

[0059] In this embodiment, after the view layout is calculated to obtain the target view queue, a rendering operation may be performed on the target view queue to obtain a rendered content display page, and the rendered content display page may be displayed.

[0060] As an implementable method, during the rendering process of the target view queue, the target view queue can be first translated into a valid view element arrangement, including the frame content of multiple view elements. After the view element arrangement is rendered with color, display style and other contents, a final content display page is obtained.

[0061] Optionally, based on any of the above embodiments, step 101 includes:

[0062] In response to a user's triggering operation on any item to be displayed, at least one basic view information associated with the item to be displayed and a layout order corresponding to the at least one basic view information are determined.

[0063] The at least one basic view information and a layout order corresponding to the at least one basic view information are determined as the basic view information.

[0064] In this embodiment, the user can browse the content display page in the target application. The target application may include at least one item to be displayed. The user can trigger the item to be displayed according to actual needs. In response to the user's trigger operation, at least one basic view information associated with the item to be displayed and the layout order corresponding to the at least one basic view information can be determined. The at least one basic view information and the layout order corresponding to the at least one basic view information are determined as the basic view information.

[0065] Taking the target application as a book application as an example, the target application may include trigger controls associated with multiple books. In response to the user's triggering operation on the trigger control, at least one basic view information associated with the book and the layout order corresponding to the at least one basic view information may be determined. The at least one basic view information associated with the book may be all view elements that enable the user to understand the content and display status of the book and accurately control the playback of the book.

[0066] The content display method provided in this embodiment performs view element layout calculation based on the basic view information associated with the content display page before displaying the content display page, thereby eliminating the need to perform layout calculations on all view elements in the content display page, thereby reducing the amount of calculations required for view element layout calculations and improving content display efficiency. In addition, by presetting the first mapping relationship and the second mapping relationship, the view element identifier corresponding to each first view element can be determined based on the first mapping relationship, and the spacing information between any two view element identifiers and the view element identifier and the page boundary can be accurately determined based on the second mapping relationship. By setting the second mapping relationship, the spacing information of the video elements can be effectively maintained, thereby improving the accuracy of the view element layout.

[0067] Further, based on any of the above embodiments, step 103 includes:

[0068] Determine first spacing information between a view element identifier corresponding to the first first view element in the ordered view queue and a top of the page according to the second mapping relationship.

[0069] Determine, according to the second mapping relationship, second spacing information between view element identifiers corresponding to adjacent first view elements in at least one non-edge first view element in the ordered view queue.

[0070] The third spacing information between the view element identifier corresponding to the last first view element in the ordered view queue and the bottom of the page is determined according to the second mapping relationship.

[0071] The first spacing information, the second spacing information and the third spacing information are added to the view element identifier associated position corresponding to each first view element in the ordered view queue to obtain the target view queue.

[0072] In this embodiment, in order to implement the operation of adding spacing information in the ordered view queue, for the first first view element in the ordered view queue, the view element identifier corresponding to the first view element and the first spacing information at the top of the page can be determined according to the second mapping relationship.

[0073] For the last first view element in the ordered view queue, the third spacing information between the view element identifier corresponding to the last first view element and the bottom of the page can be determined according to the second mapping relationship.

[0074] For at least one first view element that is not at the edge of the ordered view queue, second spacing information between view element identifiers corresponding to adjacent first view elements in the at least one first view element that is not at the edge can be determined based on the second mapping relationship. After the first spacing information, the second spacing information, and the third spacing information are determined respectively, the first spacing information, the second spacing information, and the third spacing information can be added to the view element identifier associated position corresponding to each first view element in the ordered view queue to obtain a target view queue.

[0075] Figure 2 A schematic diagram of content display page processing provided by an embodiment of the present disclosure, such as Figure 2 As shown, the content display page 21 can be a book playback page in an online book application. The basic view information corresponding to the content display page to be displayed can be determined, wherein the basic view information can include five first view elements, including a book title view element, a scrolling subtitle view element, a playback function control view element, a playback progress view element, and a playback control view element, for realizing the basic functions of the book playback page, and the display order corresponding to the five view elements. The view element identifier corresponding to the basic view information can be determined based on a preset first mapping relationship. Among them, the view element identifier corresponding to the book title view element can be a view element identifier A, the view element identifier corresponding to the scrolling subtitle view element can be a view element identifier B, the view element identifier corresponding to the playback function control view element can be a view element identifier C, the view element identifier corresponding to the playback progress view element can be a view element identifier D, and the view element identifier corresponding to the playback control view element can be a view element identifier E.

[0076] Among them, the display order can be ABCDE, and the above view element identifiers are sorted according to the display order to obtain an ordered view queue 22. Based on the preset second mapping relationship, the spacing information between the view element identifier A and the top of the page, the spacing information between AB, BC, CD, and DE, and the spacing information between the view element identifier E and the bottom of the page can be determined. Adding the above spacing information to the ordered view queue 22 can obtain the target view queue 23. Rendering the target view queue 23 can obtain the content display page 21.

[0077] The content display method provided in this embodiment can effectively maintain the spacing information of video elements by setting the second mapping relationship, so that after establishing the ordered view queue, the spacing information associated with each view element identifier in the ordered view queue can be accurately determined based on the second mapping relationship, and the view element layout can be accurately implemented.

[0078] Further, based on any of the above embodiments, the method further includes:

[0079] When the preset condition is met, the view change information corresponding to the content display page is determined.

[0080] An update operation is performed on the target view queue based on the view change information to obtain an updated target view queue.

[0081] Step 104 includes:

[0082] A rendering operation is performed on the updated target view queue.

[0083] In this embodiment, after the view element layout calculation of the basic view element is completed, when the preset conditions are met, a view change may also appear in the content display page.

[0084] For example, if the target application is a book application and the content display page is an audiobook page, some books' audiobook pages do not have follow-up subtitles, so the follow-up subtitle area needs to be replaced with a large book cover image. Users who have not recharged can display the recharge entrance. After the current free playback time is used up, the unlocked time view element can be inserted. After the user applies for membership rights, the unlocked time view element can be removed. Users can obtain free time by triggering the playback of patch ads.

[0085] Therefore, when the preset conditions are met, the view change information corresponding to the content display page can be determined, and the view elements in the current content display page can be updated based on the view change information.

[0086] Furthermore, the target view queue can be updated based on the view change information to obtain an updated target view queue. After rendering the updated target view queue, multiple view elements that are more in line with actual needs can be displayed in the content display page.

[0087] The content display method provided in this embodiment determines the view change information corresponding to the content display page when the preset conditions are met, so that when the user triggers the content display page, the basic view elements in the content display page are displayed first, and the attached second view elements are displayed when the preset conditions are met. Therefore, it is not necessary to perform view layout calculation on all view elements in the content display page, which effectively reduces the calculation amount of view element layout and improves the efficiency of page display.

[0088] Figure 3 This is a flow chart of a content display method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the view change information includes at least one second view element to be added. Figure 3As shown, the updating operation on the target view queue based on the view change information to obtain the updated target view queue includes:

[0089] Step 301: Determine an update layout order corresponding to the at least one first view element and the at least one second view element.

[0090] Step 302: insert the view element identifier associated with the at least one second view element into the ordered view queue based on the updated layout order to obtain an updated ordered queue.

[0091] Step 303: Adjust the spacing information in the update ordered queue based on the second mapping relationship to obtain the updated target view queue.

[0092] In this embodiment, the view change information includes at least one second view element to be added. For example, a user who has not recharged can display a recharge entrance. After the current free play time is used up, an unlock time view element can be inserted.

[0093] Therefore, in order to accurately display the second view element in the content display page, the update layout order corresponding to at least one first view element and at least one second view element can be determined. Based on the update layout order, the positional relationship between the at least one second view element currently being updated and the displayed first view element can be accurately determined.

[0094] Further, at least one view element identifier associated with the second view element may be inserted into the ordered view queue based on the update layout order to obtain an updated ordered queue. After the view element changes, the corresponding spacing information may change. Therefore, the spacing information may be adjusted in the updated ordered queue based on the second mapping relationship to obtain an updated target view queue.

[0095] Further, based on any of the above embodiments, step 303 includes:

[0096] Determine an insertion position of a view element identifier corresponding to the first second view element in the ordered view queue.

[0097] The view content before the insertion position is identified, wherein the view content includes a view element identifier associated with the first view element or a page top, and spacing information associated with the view content is deleted.

[0098] The target spacing information between the view content and the view element identifier corresponding to the first second view element is determined based on the second mapping relationship, and the target spacing information is inserted after the view content.

[0099] Based on the second mapping relationship, the spacing information between adjacent second view elements and / or the second view element and the bottom of the page is determined, and the spacing information is added between the view element identifiers associated with each second view element to obtain the updated target view queue.

[0100] In this embodiment, for at least one second view element currently added, the insertion position of the view element identifier corresponding to the first second view element in the ordered view queue can be determined. Based on the insertion position, the view content before the insertion position is determined, wherein the view content includes the last first view element or the top of the page before the insertion position. Since the view element after the first view element or the top of the page changes, the spacing information also changes accordingly, and therefore, the spacing information associated with the view content can be deleted.

[0101] Furthermore, the target spacing information between the view content and the view element identifier corresponding to the first second view element can be determined based on the second mapping relationship, and the target spacing information can be inserted after the view element identifier corresponding to the last first view element to update the spacing information at the insertion position.

[0102] Furthermore, after at least one second view element is inserted, the spacing information between adjacent second view elements can be determined based on the second mapping relationship. When at least one second view element is at the bottom of the page, the spacing information between the second view element and the bottom of the page can also be determined based on the second mapping relationship. Alternatively, when the last second view element is followed by a first view element, the spacing information between the last second view element and the first view element can also be determined based on the second mapping relationship. The spacing information is added between the view element identifiers associated with each second view element to obtain an updated target view queue.

[0103] Figure 4 A schematic diagram of inserting a view element provided in an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, when the preset conditions are met, a second view element 42 can be inserted into the content display page 41, wherein the second view element can be a drainage entrance view element. The update layout order corresponding to at least one first view element and at least one second view element can be determined. Based on the update layout order, a view element identifier F44 associated with at least one second view element is inserted into the ordered view queue 43 to obtain an updated ordered queue 45. The invalid spacing information 46 in the updated ordered queue 45 is deleted, and the adapted spacing information 47 is inserted into the updated ordered queue 45 to obtain an updated target view queue, and then the updated target view queue is rendered to obtain the content display page 41.

[0104] The content display method provided in this embodiment can accurately insert the second view element by updating the ordered view queue based on the preset first mapping relationship when adding a new view element in the content display page, and updating the spacing information in the updated ordered queue based on the second mapping relationship. It is not necessary to perform layout calculations on all view elements in the content display page when adding a new view element, thereby improving the efficiency of content display.

[0105] Figure 5 A flowchart of a content display method provided by another embodiment of the present disclosure is shown. Based on any of the above embodiments, the view change information includes at least one first view element to be deleted. Figure 5 As shown, the updating operation on the target view queue based on the view change information to obtain the updated target view queue includes:

[0106] Step 501: Perform a deletion operation on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue.

[0107] Step 502: Adjust the spacing information in the deleted view queue based on the second mapping relationship to obtain the updated target view queue.

[0108] In this embodiment, the view change information includes at least one first view element to be deleted. For example, after the user applies for membership rights, the unlocking duration view element can be removed.

[0109] Optionally, for the currently constructed ordered view queue, a deletion operation may be performed on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue.

[0110] Furthermore, after the view element identifiers in the ordered view queue are deleted, the spacing between the first view elements may change, so the spacing information in the deleted view queue can be adjusted based on the second mapping relationship to obtain an updated target view queue.

[0111] Further, based on any of the above embodiments, step 502 includes:

[0112] The spacing information before and after the view element identifier corresponding to the at least one first view element to be deleted in the target view queue is deleted to obtain an adjusted view queue.

[0113] Based on the second mapping relationship, the updated spacing information between the view element identifiers corresponding to adjacent first view elements in the adjusted view queue is determined, or based on the second mapping relationship, the updated spacing information between the view element identifier corresponding to the first view element before the view element identifier corresponding to the at least one first view element to be deleted and the bottom of the page is determined, or based on the second mapping relationship, the updated spacing information between the view element identifier corresponding to the first view element after the view element identifier corresponding to the at least one first view element to be deleted and the top of the page is determined.

[0114] The spacing information in the adjusted view queue is adjusted according to the updated spacing information to obtain the updated target view queue.

[0115] In this embodiment, a deletion operation may be performed on the spacing information before and after the view element identifier corresponding to at least one first view element to be deleted in the target view queue to obtain an adjusted view queue.

[0116] Furthermore, the deleted at least one second view element may be located at the top of the page, or may be located at the bottom of the page, or may be located in the middle of the page. Therefore, for the deleted at least one second view element, the updated spacing information between the view element identifiers corresponding to adjacent first view elements in the adjusted view queue can be determined based on the second mapping relationship, or the updated spacing information between the view element identifier corresponding to the first view element before the view element identifier corresponding to the at least one first view element to be deleted and the bottom of the page can be determined based on the second mapping relationship, or the updated spacing information between the view element identifier corresponding to the first view element after the view element identifier corresponding to the at least one first view element to be deleted and the top of the page can be determined based on the second mapping relationship. The spacing information in the adjusted view queue is adjusted according to the updated spacing information to obtain an updated target view queue.

[0117] Figure 6 A schematic diagram of abbreviated view elements provided in an embodiment of the present disclosure, such as Figure 6 As shown, when the preset conditions are met, at least one first view element in the original content display page 61 can be deleted. The view element identifier 63 corresponding to at least one first view element to be deleted in the ordered view queue 62 can be deleted to obtain a deleted view queue 64. The invalid spacing information 65 in the deleted view queue 64 is deleted, and the associated spacing information 66 is added to the deleted view queue 64 to obtain an updated target view queue, and then the target view queue is rendered to obtain an updated content display page 67.

[0118] The content display method provided in this embodiment can accurately delete one or more first view elements by deleting the ordered view queue based on the first mapping relationship when the view elements on the content display page need to be deleted, and adjusting the spacing information in the deleted view queue based on the second mapping relationship. It is not necessary to perform layout calculation on all view elements in the content display page when deleting view elements, thereby improving the efficiency of content display.

[0119] Figure 7 This is a flow chart of a content display method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the view change information includes at least one replacement view element of a tile type. Figure 7 As shown, the updating operation on the target view queue based on the view change information to obtain the updated target view queue includes:

[0120] Step 701: Determine the display position corresponding to the replacement view element.

[0121] Step 702: determine, in the target view queue, content to be replaced that matches the replacement view element based on the display position, wherein the content to be replaced includes a target view element identifier corresponding to at least one first view element to be replaced and at least two spacing information associated with at least one target view element identifier.

[0122] Step 703: store the content to be replaced in a preset storage path, and replace and display the view element identifier corresponding to the replacement view element at the display position.

[0123] In this embodiment, the view change information includes at least one replacement view element of a tile type.

[0124] Optionally, the replacement view element may be a sticker advertisement. When a preset condition is met, a sticker advertisement may be displayed in the content display page. For example, when a user is listening to a book in a book application, after the listening time within the current permission is used up, the user may obtain more listening permissions by watching a sticker advertisement.

[0125] The replacement view element is generally associated with a display area, and the display size of the replacement view element may be larger than the first view element currently displayed. In order to accurately implement the view element replacement operation, the display position corresponding to the replacement view element may be determined.

[0126] Further, content to be replaced that matches the replacement view element can be determined in the target view queue based on the display position, wherein the content to be replaced includes a target view element identifier corresponding to at least one first view element to be replaced covered by the replacement view element and at least two spacing information associated with the at least one target view element identifier. The replacement view element can be replaced with the content to be replaced.

[0127] As an implementable method, the replacement view element has a preset display duration. For example, the replacement view element can be a patch advertisement with a duration of 30 seconds. In order to avoid the loss of the currently displayed first view element, the content to be replaced can be stored in a preset storage path, and the view element identifier corresponding to the replacement view element can be replaced and displayed at the display position.

[0128] The content display method provided in this embodiment replaces the matching view element identifier based on the coverage area corresponding to the replacement view element when a replacement view element exists in the content display page, thereby accurately realizing the display of the replacement view element without affecting other view elements.

[0129] Further, based on any of the above embodiments, the replacement view element includes a preset replacement duration. After step 702, the following further includes:

[0130] If the display duration of the replacement view element matches the replacement duration, the display of the replacement view element is stopped.

[0131] The to-be-replaced content is obtained in the preset storage path, and the to-be-replaced content is replaced and displayed at the display position.

[0132] In this embodiment, the replacement view element includes a preset replacement duration, for example, the replacement view element may be a patch advertisement with a duration of 30 seconds.

[0133] Therefore, after completing the replacement operation of the replacement view element, the replacement duration corresponding to the replacement view element can be determined in real time. If the display duration of the replacement view element matches the replacement duration, it indicates that the replacement view element has been replaced. At this time, the display of the replacement view element can be stopped, and the content to be replaced can be displayed again. The content to be replaced is obtained in the preset storage path, and the content to be replaced is replaced and displayed at the display position.

[0134] The content display method provided in this embodiment switches the display content at the display position based on the pre-stored content to be replaced when the display duration of the replacement view element matches the replacement duration, thereby being able to accurately display the limited-time replacement view element in the content display page.

[0135] Further, based on any of the above embodiments, the method further includes:

[0136] If the display duration of the replacement view element does not reach the replacement duration and there is new view change information, the new view change information is added to the preset message queue, wherein the display position of the new view change information is the same as that of the replacement view element.

[0137] After the replacement view element stops being displayed, an update operation is performed on the target view queue based on the new view change information to obtain an updated target view queue.

[0138] In this embodiment, since the replacement view element includes a preset replacement duration, other view change information may exist during the display of the replacement view element. For example, during the playback of the patch advertisement, the display area corresponding to the patch advertisement may need to delete the first view element, or the display area corresponding to the patch advertisement may need to add the second view element.

[0139] In order to prevent the view change information from affecting the replacement view elements and causing failures in the content display page, a "layout lock" can be generated and made effective during the replacement of the view elements.

[0140] Optionally, a message queue may be pre-set. If other view change information exists in the display area associated with the replaced view element during the display of the replaced view element, the view change information may be added to the message queue. When the replaced view element is displayed, the view change information is processed accordingly.

[0141] Therefore, if the display duration of the replacement view element does not reach the replacement duration and there is new view change information, the new view change information is added to the preset message queue, wherein the display position of the new view change information is the same as that of the replacement view element. After the replacement view element stops displaying, the target view queue is updated based on the new view change information to obtain an updated target view queue.

[0142] The content display method provided in this embodiment establishes a message queue in advance, so that when the display duration of the replaced view element does not reach the replacement duration, new view change information with the same display position as the replaced view element can be added to the message queue. This prevents the new view change information from affecting the display of the replaced view element. This improves the accuracy of content display in the content display page.

[0143] Figure 8 A schematic diagram of the structure of a content display device provided in an embodiment of the present disclosure, such as Figure 8As shown, the device includes: a determination module 81, a generation module 82, an adjustment module 83 and a rendering module 84. Among them, the determination module 81 is used to determine the basic view information corresponding to the content display page to be displayed, and the basic view information includes at least one first view element and the layout order corresponding to at least one first view element. The generation module 82 is used to determine the view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier. The first mapping relationship includes a mapping relationship between multiple preset view elements and view element identifiers. The adjustment module 83 is used to add spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue. The second mapping relationship includes a spacing information mapping relationship between any two view elements in the multiple view elements, and a spacing mapping relationship between a view element and a page boundary. The rendering module 84 is used to render the target view queue and display the content display page obtained by rendering.

[0144] Further, based on any of the above embodiments, the adjustment module is used to: determine the first spacing information between the view element identifier corresponding to the first first view element in the ordered view queue and the top of the page according to the second mapping relationship. Determine the second spacing information between the view element identifiers corresponding to adjacent first view elements in at least one non-edge first view element in the ordered view queue according to the second mapping relationship. Determine the third spacing information between the view element identifier corresponding to the last first view element in the ordered view queue and the bottom of the page according to the second mapping relationship. Add the first spacing information, the second spacing information and the third spacing information to the associated positions of the view element identifiers corresponding to each first view element in the ordered view queue to obtain the target view queue.

[0145] Further, based on any of the above embodiments, the device further includes: a determination module, configured to determine the view change information corresponding to the content display page when a preset condition is met; an update module, configured to update the target view queue based on the view change information to obtain an updated target view queue; and a rendering module, configured to render the updated target view queue.

[0146] Further, based on any of the above embodiments, the view change information includes at least one second view element to be added. The update module is used to: determine the update layout order corresponding to the at least one first view element and the at least one second view element. Insert the view element identifier associated with the at least one second view element into the ordered view queue based on the update layout order to obtain an updated ordered queue. Adjust the spacing information in the updated ordered queue based on the second mapping relationship to obtain the updated target view queue.

[0147] Further, based on any of the above embodiments, the update module is used to: determine the insertion position of the view element identifier corresponding to the first second view element in the ordered view queue. Identify the view content before the insertion position, the view content includes the view element identifier associated with the first view element or the top of the page, and delete the spacing information associated with the view content. Determine the target spacing information between the view content and the view element identifier corresponding to the first second view element based on the second mapping relationship, and insert the target spacing information after the view content. Determine the spacing information between adjacent second view elements and / or the second view element and the bottom of the page based on the second mapping relationship, add the spacing information between the view element identifiers associated with each second view element, and obtain the updated target view queue.

[0148] Further, based on any of the above embodiments, the view change information includes at least one first view element to be deleted. The updating module is used to: perform a deletion operation on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue. Adjust the spacing information in the deleted view queue based on the second mapping relationship to obtain the updated target view queue.

[0149] Further, based on any of the above embodiments, the update module is used to: delete the spacing information before and after the view element identifier corresponding to the at least one first view element to be deleted in the target view queue to obtain an adjusted view queue. Determine the updated spacing information between the view element identifiers corresponding to adjacent first view elements in the adjusted view queue based on the second mapping relationship, or determine the updated spacing information between the view element identifier corresponding to the first view element before the view element identifier corresponding to the at least one first view element to be deleted and the bottom of the page based on the second mapping relationship, or determine the updated spacing information between the view element identifier corresponding to the first view element after the view element identifier corresponding to the at least one first view element to be deleted and the top of the page based on the second mapping relationship. Adjust the spacing information in the adjusted view queue according to the updated spacing information to obtain the updated target view queue.

[0150] Further, based on any of the above embodiments, the view change information includes at least one replacement view element of patch type. The update module is used to: determine the display position corresponding to the replacement view element. Based on the display position, determine the content to be replaced that matches the replacement view element in the target view queue, wherein the content to be replaced includes at least one target view element identifier corresponding to the first view element to be replaced and at least two spacing information associated with at least one target view element identifier. The content to be replaced is stored in a preset storage path, and the view element identifier corresponding to the replacement view element is replaced and displayed at the display position.

[0151] Further, based on any of the above embodiments, the replacement view element includes a preset replacement duration. The update module is used to: if the display duration of the replacement view element matches the replacement duration, stop displaying the replacement view element. Obtain the content to be replaced in the preset storage path, and replace and display the content to be replaced at the display position.

[0152] Further, based on any of the above embodiments, the device further comprises: an adding module, configured to add the new view change information to a preset message queue if the display duration of the replacement view element does not reach the replacement duration and there is new view change information, wherein the display position of the new view change information is the same as that of the replacement view element. An updating module, configured to update the target view queue based on the new view change information after the replacement view element stops displaying, to obtain an updated target view queue.

[0153] Further, based on any of the above embodiments, the determination module is used to: in response to a user's triggering operation on any item to be displayed, determine at least one basic view information associated with the item to be displayed and a layout order corresponding to the at least one basic view information, and determine the at least one basic view information and the layout order corresponding to the at least one basic view information as the basic view information.

[0154] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0155] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the content display method described in any of the above embodiments is implemented.

[0156] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, and when the computer program is executed by a processor, the content display method as described in any of the above embodiments is implemented.

[0157] In order to implement the above embodiment, the present disclosure also provides an electronic device, including: a processor and a memory;

[0158] The memory stores computer-executable instructions;

[0159] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the content display method as described in any of the above embodiments.

[0160] Fig. 9 The electronic device 900 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0161] like Fig. 9As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0162] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0163] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0164] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0165] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0166] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0167] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0168] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0169] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0170] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0171] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0172] In a first aspect, according to one or more embodiments of the present disclosure, a content display method is provided, including:

[0173] Determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element;

[0174] Determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and view element identifiers;

[0175] Adding spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements in the plurality of view elements and a spacing mapping relationship between a view element and a page boundary;

[0176] A rendering operation is performed on the target view queue to display the content display page obtained by rendering.

[0177] According to one or more embodiments of the present disclosure, adding spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue includes:

[0178] Determine first spacing information between a view element identifier corresponding to the first first view element in the ordered view queue and a top of the page according to the second mapping relationship;

[0179] Determine, according to the second mapping relationship, second spacing information between view element identifiers corresponding to adjacent first view elements in at least one first view element that is not at an edge in the ordered view queue;

[0180] Determine, according to the second mapping relationship, third spacing information between the view element identifier corresponding to the last first view element in the ordered view queue and the bottom of the page;

[0181] The first spacing information, the second spacing information and the third spacing information are added to the view element identifier associated position corresponding to each first view element in the ordered view queue to obtain the target view queue.

[0182] According to one or more embodiments of the present disclosure, the method further includes:

[0183] When a preset condition is met, determining view change information corresponding to the content display page;

[0184] Performing an update operation on the target view queue based on the view change information to obtain an updated target view queue;

[0185] The rendering operation on the target view queue includes:

[0186] A rendering operation is performed on the updated target view queue.

[0187] According to one or more embodiments of the present disclosure, the view change information includes at least one second view element to be added;

[0188] The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes:

[0189] Determining an update layout order corresponding to the at least one first view element and the at least one second view element;

[0190] Inserting the view element identifier associated with the at least one second view element into the ordered view queue based on the update layout order, to obtain an updated ordered queue;

[0191] The spacing information is adjusted in the update ordered queue based on the second mapping relationship to obtain the updated target view queue.

[0192] According to one or more embodiments of the present disclosure, adjusting the spacing information in the updated ordered queue based on the second mapping relationship to obtain the updated target view queue includes:

[0193] Determine an insertion position of a view element identifier corresponding to a first second view element in the ordered view queue;

[0194] Identify the view content before the insertion position, the view content includes the view element identifier associated with the first view element or the page top, and delete the spacing information associated with the view content;

[0195] Determine target spacing information between the view content and the view element identifier corresponding to the first second view element based on the second mapping relationship, and insert the target spacing information after the view content;

[0196] Based on the second mapping relationship, the spacing information between adjacent second view elements and / or the second view element and the bottom of the page is determined, and the spacing information is added between the view element identifiers associated with each second view element to obtain the updated target view queue.

[0197] According to one or more embodiments of the present disclosure, the view change information includes at least one first view element to be deleted;

[0198] The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes:

[0199] Performing a deletion operation on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue;

[0200] The spacing information in the deleted view queue is adjusted based on the second mapping relationship to obtain the updated target view queue.

[0201] According to one or more embodiments of the present disclosure, adjusting the spacing information in the deleted view queue based on the second mapping relationship to obtain the updated target view queue includes:

[0202] Deleting the spacing information before and after the view element identifier corresponding to the at least one first view element to be deleted in the target view queue to obtain an adjusted view queue;

[0203] Determine, based on the second mapping relationship, updated spacing information between view element identifiers corresponding to adjacent first view elements in the adjusted view queue, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element before the view element identifier corresponding to the at least one first view element to be deleted and a bottom of the page, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element after the view element identifier corresponding to the at least one first view element to be deleted and a top of the page;

[0204] The spacing information in the adjusted view queue is adjusted according to the updated spacing information to obtain the updated target view queue.

[0205] According to one or more embodiments of the present disclosure, the view change information includes at least one replacement view element of a tile type;

[0206] The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes:

[0207] Determine a display position corresponding to the replacement view element;

[0208] Determining, in the target view queue, content to be replaced that matches the replacement view element based on the display position, wherein the content to be replaced includes a target view element identifier corresponding to at least one first view element to be replaced and at least two spacing information associated with at least one target view element identifier;

[0209] The content to be replaced is stored in a preset storage path, and the view element identifier corresponding to the replacement view element is replaced and displayed at the display position.

[0210] According to one or more embodiments of the present disclosure, the replacement view element includes a preset replacement duration;

[0211] After replacing and displaying the view element identifier corresponding to the replacement view element at the display position, the method further includes:

[0212] If the display duration of the replacement view element matches the replacement duration, then stopping displaying the replacement view element;

[0213] The to-be-replaced content is obtained in the preset storage path, and the to-be-replaced content is replaced and displayed at the display position.

[0214] According to one or more embodiments of the present disclosure, the method further includes:

[0215] If the display duration of the replacement view element does not reach the replacement duration and there is new view change information, the new view change information is added to a preset message queue, wherein the display position of the new view change information is the same as that of the replacement view element;

[0216] After the replacement view element stops being displayed, an update operation is performed on the target view queue based on the new view change information to obtain an updated target view queue.

[0217] According to one or more embodiments of the present disclosure, determining basic view information corresponding to the content display page to be displayed includes:

[0218] In response to a user's triggering operation on any item to be displayed, determining at least one basic view information associated with the item to be displayed, and a layout order corresponding to the at least one basic view information;

[0219] The at least one basic view information and a layout order corresponding to the at least one basic view information are determined as the basic view information.

[0220] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a content display device, including:

[0221] A determination module, used to determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element;

[0222] a generating module, configured to determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and the view element identifier;

[0223] an adjustment module, configured to add spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements among the plurality of view elements and a spacing mapping relationship between a view element and a page boundary;

[0224] The rendering module is used to perform a rendering operation on the target view queue and display the content display page obtained by rendering.

[0225] According to one or more embodiments of the present disclosure, the adjustment module is used to:

[0226] Determine first spacing information between a view element identifier corresponding to the first first view element in the ordered view queue and a top of the page according to the second mapping relationship;

[0227] Determine, according to the second mapping relationship, second spacing information between view element identifiers corresponding to adjacent first view elements in at least one first view element that is not at an edge in the ordered view queue;

[0228] Determine, according to the second mapping relationship, third spacing information between the view element identifier corresponding to the last first view element in the ordered view queue and the bottom of the page;

[0229] The first spacing information, the second spacing information and the third spacing information are added to the view element identifier associated position corresponding to each first view element in the ordered view queue to obtain the target view queue.

[0230] According to one or more embodiments of the present disclosure, the device further includes:

[0231] A determination module, used to determine the view change information corresponding to the content display page when a preset condition is met;

[0232] An updating module, configured to update the target view queue based on the view change information to obtain an updated target view queue;

[0233] The rendering module is used to:

[0234] A rendering operation is performed on the updated target view queue.

[0235] According to one or more embodiments of the present disclosure, the view change information includes at least one second view element to be added;

[0236] The update module is used to:

[0237] Determining an update layout order corresponding to the at least one first view element and the at least one second view element;

[0238] Inserting the view element identifier associated with the at least one second view element into the ordered view queue based on the update layout order, to obtain an updated ordered queue;

[0239] The spacing information is adjusted in the update ordered queue based on the second mapping relationship to obtain the updated target view queue.

[0240] According to one or more embodiments of the present disclosure, the update module is used to:

[0241] Determine an insertion position of a view element identifier corresponding to a first second view element in the ordered view queue;

[0242] Identify the view content before the insertion position, the view content includes the view element identifier associated with the first view element or the page top, and delete the spacing information associated with the view content;

[0243] Determine target spacing information between the view content and the view element identifier corresponding to the first second view element based on the second mapping relationship, and insert the target spacing information after the view content;

[0244] Based on the second mapping relationship, the spacing information between adjacent second view elements and / or the second view element and the bottom of the page is determined, and the spacing information is added between the view element identifiers associated with each second view element to obtain the updated target view queue.

[0245] According to one or more embodiments of the present disclosure, the view change information includes at least one first view element to be deleted;

[0246] The update module is used to:

[0247] Performing a deletion operation on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue;

[0248] The spacing information in the deleted view queue is adjusted based on the second mapping relationship to obtain the updated target view queue.

[0249] According to one or more embodiments of the present disclosure, the update module is used to:

[0250] Deleting the spacing information before and after the view element identifier corresponding to the at least one first view element to be deleted in the target view queue to obtain an adjusted view queue;

[0251] Determine, based on the second mapping relationship, updated spacing information between view element identifiers corresponding to adjacent first view elements in the adjusted view queue, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element before the view element identifier corresponding to the at least one first view element to be deleted and a bottom of the page, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element after the view element identifier corresponding to the at least one first view element to be deleted and a top of the page;

[0252] The spacing information in the adjusted view queue is adjusted according to the updated spacing information to obtain the updated target view queue.

[0253] According to one or more embodiments of the present disclosure, the view change information includes at least one replacement view element of a tile type;

[0254] The update module is used to:

[0255] Determine a display position corresponding to the replacement view element;

[0256] Determining, in the target view queue, content to be replaced that matches the replacement view element based on the display position, wherein the content to be replaced includes a target view element identifier corresponding to at least one first view element to be replaced and at least two spacing information associated with at least one target view element identifier;

[0257] The content to be replaced is stored in a preset storage path, and the view element identifier corresponding to the replacement view element is replaced and displayed at the display position.

[0258] According to one or more embodiments of the present disclosure, the replacement view element includes a preset replacement duration;

[0259] The update module is used to:

[0260] If the display duration of the replacement view element matches the replacement duration, then stopping displaying the replacement view element;

[0261] The to-be-replaced content is obtained in the preset storage path, and the to-be-replaced content is replaced and displayed at the display position.

[0262] According to one or more embodiments of the present disclosure, the device further includes:

[0263] an adding module, configured to add the new view change information to a preset message queue if the display duration of the replacement view element does not reach the replacement duration and there is new view change information, wherein the display position of the new view change information is the same as that of the replacement view element;

[0264] An updating module is used to update the target view queue based on the new view change information after the replacement view element stops displaying, so as to obtain an updated target view queue.

[0265] According to one or more embodiments of the present disclosure, the determining module is used to:

[0266] In response to a user's triggering operation on any item to be displayed, determining at least one basic view information associated with the item to be displayed, and a layout order corresponding to the at least one basic view information;

[0267] The at least one basic view information and a layout order corresponding to the at least one basic view information are determined as the basic view information.

[0268] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0269] The memory stores computer-executable instructions;

[0270] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the content display method described in the first aspect and various possible designs of the first aspect.

[0271] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the content display method described in the first aspect and various possible designs of the first aspect is implemented.

[0272] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the content display method described in the first aspect and various possible designs of the first aspect.

[0273] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0274] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0275] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A content display method, characterized in that: include: Determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element; Determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and view element identifiers; Adding spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements in the plurality of view elements and a spacing mapping relationship between a view element and a page boundary; A rendering operation is performed on the target view queue to display the content display page obtained by rendering.

2. The method according to claim 1, characterized in that The adding spacing information to the ordered view queue according to the preset second mapping relationship to obtain the target view queue includes: Determine first spacing information between a view element identifier corresponding to the first first view element in the ordered view queue and a top of the page according to the second mapping relationship; Determine, according to the second mapping relationship, second spacing information between view element identifiers corresponding to adjacent first view elements in at least one first view element that is not at an edge in the ordered view queue; Determine, according to the second mapping relationship, third spacing information between the view element identifier corresponding to the last first view element in the ordered view queue and the bottom of the page; The first spacing information, the second spacing information and the third spacing information are added to the view element identifier associated position corresponding to each first view element in the ordered view queue to obtain the target view queue.

3. The method according to claim 1, characterized in that The method further comprises: When a preset condition is met, determining view change information corresponding to the content display page; Performing an update operation on the target view queue based on the view change information to obtain an updated target view queue; The rendering operation on the target view queue includes: A rendering operation is performed on the updated target view queue.

4. The method according to claim 3, characterized in that The view change information includes at least one second view element to be added; The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes: Determining an update layout order corresponding to the at least one first view element and the at least one second view element; Inserting the view element identifier associated with the at least one second view element into the ordered view queue based on the update layout order, to obtain an updated ordered queue; The spacing information is adjusted in the update ordered queue based on the second mapping relationship to obtain the updated target view queue.

5. The method according to claim 4, characterized in that The adjusting the spacing information in the updated ordered queue based on the second mapping relationship to obtain the updated target view queue includes: Determine an insertion position of a view element identifier corresponding to a first second view element in the ordered view queue; Identify the view content before the insertion position, the view content includes the view element identifier associated with the first view element or the page top, and delete the spacing information associated with the view content; Determine target spacing information between the view content and the view element identifier corresponding to the first second view element based on the second mapping relationship, and insert the target spacing information after the view content; Based on the second mapping relationship, the spacing information between adjacent second view elements and / or between the second view element and the bottom of the page is determined, and the spacing information is added between the view element identifiers associated with each second view element to obtain the updated target view queue.

6. The method according to claim 3, characterized in that: The view change information includes at least one first view element to be deleted; The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes: Performing a deletion operation on a view element identifier corresponding to at least one first view element to be deleted in the ordered view queue to obtain a deleted view queue; The spacing information in the deleted view queue is adjusted based on the second mapping relationship to obtain the updated target view queue.

7. The method according to claim 6, characterized in that The adjusting the spacing information in the deleted view queue based on the second mapping relationship to obtain the updated target view queue includes: Deleting the spacing information before and after the view element identifier corresponding to the at least one first view element to be deleted in the target view queue to obtain an adjusted view queue; Determine, based on the second mapping relationship, updated spacing information between view element identifiers corresponding to adjacent first view elements in the adjusted view queue, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element before the view element identifier corresponding to the at least one first view element to be deleted and a bottom of the page, or, based on the second mapping relationship, determine updated spacing information between a view element identifier corresponding to a first view element after the view element identifier corresponding to the at least one first view element to be deleted and a top of the page; The spacing information in the adjusted view queue is adjusted according to the updated spacing information to obtain the updated target view queue.

8. The method according to claim 3, characterized in that The view change information includes at least one replacement view element of a tile type; The updating operation on the target view queue based on the view change information to obtain an updated target view queue includes: Determine a display position corresponding to the replacement view element; Determining, in the target view queue, content to be replaced that matches the replacement view element based on the display position, wherein the content to be replaced includes a target view element identifier corresponding to at least one first view element to be replaced and at least two spacing information associated with at least one target view element identifier; The content to be replaced is stored in a preset storage path, and the view element identifier corresponding to the replacement view element is replaced and displayed at the display position.

9. The method according to claim 8, characterized in that The replacement view element includes a preset replacement duration; After replacing and displaying the view element identifier corresponding to the replacement view element at the display position, the method further includes: If the display duration of the replacement view element matches the replacement duration, then stopping displaying the replacement view element; The to-be-replaced content is obtained in the preset storage path, and the to-be-replaced content is replaced and displayed at the display position.

10. The method according to claim 9, characterized in that The method further comprises: If the display duration of the replacement view element does not reach the replacement duration and there is new view change information, the new view change information is added to a preset message queue, wherein the display position of the new view change information is the same as that of the replacement view element; After the replacement view element stops being displayed, an update operation is performed on the target view queue based on the new view change information to obtain an updated target view queue.

11. The method according to any one of claims 1 to 10, characterized in that: The determining of basic view information corresponding to the content display page to be displayed includes: In response to a user's triggering operation on any item to be displayed, determining at least one basic view information associated with the item to be displayed, and a layout order corresponding to the at least one basic view information; The at least one basic view information and a layout order corresponding to the at least one basic view information are determined as the basic view information.

12. A content display device, characterized in that: include: A determination module, used to determine basic view information corresponding to the content display page to be displayed, wherein the basic view information includes at least one first view element and a layout order corresponding to the at least one first view element; a generating module, configured to determine a view element identifier corresponding to each first view element based on a preset first mapping relationship, and generate an ordered view queue according to the layout order and at least one view element identifier, wherein the first mapping relationship includes a mapping relationship between a plurality of preset view elements and the view element identifier; an adjustment module, configured to add spacing information to the ordered view queue according to a preset second mapping relationship to obtain a target view queue, wherein the second mapping relationship includes a spacing information mapping relationship between any two view elements among the plurality of view elements and a spacing mapping relationship between a view element and a page boundary; The rendering module is used to perform a rendering operation on the target view queue and display the content display page obtained by rendering.

13. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the content display method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the content display method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the content display method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • List page layout method and computing equipment

    CN113867862A

  • Page generation method and device, equipment and storage medium

    CN117149174A

  • Element processing method and device, electronic equipment and storage medium

    CN117873625A

Cited By

  • Interface updating method and device, computer equipment and storage medium

    CN119356786A