Page display control method and device, equipment and storage medium
By receiving and managing the priority and coverage level information of pages, and storing and controlling the page display order using the data structure, the confusion and conflict of multiple page displays are solved, and orderly and efficient page management is achieved.
Patent Information
- Application Number
- CN202311867922.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, as the number of pages displayed by the application increases, the code is messy, prone to chaos and page conflicts, and difficult to maintain.
By receiving information about the page to be displayed, including content, priority and coverage level, the page's storage space is used to control the display order of pages and coverage level, and data structures such as queues, stacks, arrays, and hash tables are used for storage and management.
It realizes the orderliness and orderliness of page display, reduces the chaos and conflicts of page display, and improves the integrity and fluency of page display.
Smart Images

Figure CN120234074A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular to the fields of page control technologies and user interface technologies. Background Art
[0002] An application (APP) can display various types of pages, such as permission pre-reminder pages, check update pages, etc. As the number of pages to be displayed increases, the frequency and quantity of pages displayed on the device also increase. In the case of multi-page display, the code will become chaotic, difficult to maintain, and prone to confusion and page conflicts. Summary of the Invention
[0003] The present disclosure provides a page display control method, apparatus, device, and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides a page display control method, including:
[0005] Receiving information of a page to be displayed, where the information of the page to be displayed includes the content, priority, and coverage level of the page to be displayed;
[0006] Adding the information of the page to be displayed to a page storage space according to the priority of the page to be displayed;
[0007] Controlling the display order of the pages to be displayed in the page storage space according to the coverage level of the page to be displayed.
[0008] In a second aspect, the present disclosure provides a page display control apparatus, including:
[0009] A receiving module, configured to receive information of a page to be displayed, where the information of the page to be displayed includes the content, priority, and coverage level of the page to be displayed;
[0010] A storage module, configured to add the information of the page to be displayed to a page storage space according to the priority of the page to be displayed;
[0011] A control module, configured to control the display order of the pages to be displayed in the page storage space according to the coverage level of the page to be displayed.
[0012] In a third aspect, an electronic device is provided, including:
[0013] At least one processor; and
[0014] A memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0016] The beneficial effects of the technical solution provided by the present disclosure at least include: the display order of multiple pages can be controlled according to the coverage level and priority, making the page display more organized and orderly. Further, it is possible to reduce the chaos and conflicts when multiple pages need to be displayed, and reduce the errors and vulnerabilities when multiple pages are displayed.
[0017] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In the drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided by the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0019] Figure 1 is a schematic flowchart of a page display control method according to an embodiment of the present disclosure;
[0020] Figure 2 is a schematic flowchart of a page display control method according to another embodiment of the present disclosure;
[0021] Figure 3 is a schematic flowchart of a page display control method according to another embodiment of the present disclosure;
[0022] Figure 4 is a schematic flowchart of a page display control method according to another embodiment of the present disclosure;
[0023] Figure 5 is a schematic flowchart of a page display control method according to another embodiment of the present disclosure;
[0024] Figure 6 is an architecture diagram of a page display control system according to an embodiment of the present disclosure;
[0025] Figure 7 is a schematic diagram of a queue according to an embodiment of the present disclosure;
[0026] Figure 8 is a schematic diagram of a queue group according to an embodiment of the present disclosure;
[0027] Figure 9It is a schematic diagram of a page display control process according to an embodiment of the present disclosure;
[0028] Figure 10 It is a schematic structural diagram of a page display control device according to an embodiment of the present disclosure;
[0029] Figure 11 It is a schematic structural diagram of a page display control device according to another embodiment of the present disclosure;
[0030] Figure 12 It is a block diagram of an electronic device for implementing the embodiments of the present disclosure. Detailed implementation manners
[0031] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not have to be drawn to scale unless otherwise specified.
[0032] In addition, for a better illustration of the present disclosure, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present disclosure can also be implemented without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art are not described in detail so as to highlight the gist of the present disclosure.
[0033] Figure 1 It is a schematic flowchart of a page display control method according to an embodiment of the present disclosure, and the method may include:
[0034] S101. Receive information of the page to be displayed; wherein, the information of the page to be displayed includes the content, priority, and overlay level of the page to be displayed;
[0035] S102. Add the information of the page to be displayed to the page storage space according to the priority of the page to be displayed;
[0036] S103. Control the display order of the pages to be displayed in the page storage space according to the overlay level of the page to be displayed.
[0037] In the embodiments of the present disclosure, the page to be displayed may include an APP page, a pop-up page, a prompt message page, etc. that need to be displayed. For example, a control terminal, such as a controller of a smart home system, may send a page display request to the user terminal according to the status of a controlled device, such as a smart appliance. The user terminal may parse and obtain information such as the content, priority, coverage level, service type, etc. of the page to be displayed from the received page display request. Then, the scheduler may store the information of the page to be displayed, such as the content, priority, coverage level, service type, etc. of the page to be displayed, in the page storage space according to the order of the priorities of the pages to be displayed. When a page needs to be displayed, the scheduler may read and display the content of the page to be displayed from the page storage space according to the coverage level of the page to be displayed. In the embodiments of the present disclosure, the scheduler may perform operations such as adding, deleting, modifying, querying, sorting, etc. on the pages to be displayed stored in the page storage space.
[0038] In the embodiments of the present disclosure, the page storage space may be used to store various information of the page to be displayed, and the form of the page storage space may include a queue, a stack, an array, a hash table, etc. Sort and store the page to be displayed according to the obtained priority of the page to be displayed. In one case, the pages may be sorted according to the priority first, and then the sorted pages to be displayed may be stored in the page storage space. In another case, the pages to be displayed may also be stored in the page storage space one by one. When storing, compare the priority of the page to be stored with the priorities of the pages already stored in the page storage space, and store the page to be stored in the corresponding position in the page storage space according to the magnitude relationship of the priorities. If the priorities of multiple pages are the same, the storage order of these pages may be random or determined according to information such as the reception time, identifier, coverage level, etc.
[0039] For example, when the user terminal receives three pages to be displayed, the scheduler may respectively obtain the priorities of these three pages to be displayed: Page A, priority 3; Page B, priority 1; Page C, priority 4. When the page storage space is a queue, if it is considered that the larger the priority number, the higher the priority, the arrangement order of these three pages to be displayed may be: Page C - Page A - Page B. These three pages to be displayed may be sequentially stored in the queue according to this arrangement order to obtain a queue of Page C (queue head) - Page A - Page B (queue tail). If it is considered that the smaller the priority number, the higher the priority, the arrangement order of these three pages to be displayed may be: Page B - Page A - Page C. These three pages to be displayed may be sequentially stored in the queue according to this arrangement order to obtain a queue of Page B (queue head) - Page A - Page C (queue tail).
[0040] For another example, when the user terminal receives a page D to be displayed with a priority of 2, in combination with the queue in the above example, the scheduler can compare the priority relationship between page D and other pages in the queue. If it is considered that the larger the priority number, the higher the priority, the sorting order after inserting page D into the queue can be: page C - page A - page D - page B. If it is considered that the smaller the priority number, the higher the priority, the sorting order after inserting page D into the queue can be: page B - page D - page A - page C.
[0041] In the embodiments of the present disclosure, only the queue is taken as an example for illustration. Stacks, arrays, hash tables, etc. can be stored according to the characteristics of their respective data structures, which will not be elaborated here.
[0042] In the embodiments of the present disclosure, the coverage level can represent the coverage level when the page to be displayed is displayed. For example, when a new page to be displayed needs to be displayed, if the coverage level of the new page to be displayed is higher than the page currently being displayed, the new page to be displayed is used to cover and display on the upper layer of the currently displayed page. For another example, when two pages to be displayed need to be displayed, the page with a higher coverage level is covered and displayed on the upper layer of the page with a lower coverage level.
[0043] For example, the coverage level of page D read from the page storage space by the scheduler is 2, and the coverage level of the currently displayed page E is 1. If it is considered that the larger the coverage level number, the higher the coverage level, page D can be used to cover and display on the upper layer of page E; if it is considered that the smaller the coverage level number, the higher the coverage level, page E can still be covered and displayed on the upper layer of page D.
[0044] According to the embodiments of the present disclosure, the display order of multiple pages can be controlled according to the coverage level and priority, making the page display more organized and orderly. Further, it is possible to reduce the chaos and conflicts when multiple pages need to be displayed, and reduce the errors and vulnerabilities when multiple pages are displayed.
[0045] Figure 2 It is a flowchart of a page display control method according to another embodiment of the present disclosure. This method may include one or more features of the above page display control method. In one implementation, this method may further include:
[0046] S201. Create a page storage space group, which includes multiple page storage spaces, and one page storage space corresponds to one service type.
[0047] In the embodiments of the present disclosure, a page storage space group may include multiple page storage spaces. For example, a queue group includes multiple queues. Multiple pages to be displayed may be divided into several categories according to the service types to which the pages to be displayed belong. Each category belongs to a service type, and a correspondence relationship is established between the service type and the page storage space. The pages to be displayed of different service types are respectively stored in the page storage spaces corresponding to their respective service types. The service type and the page storage space may be in a one-to-one relationship, a one-to-many relationship, or a many-to-one relationship. For example, an intelligent appliance in a smart home system belongs to a service type. The page to be displayed of an intelligent appliance may be stored in a queue. The pages to be displayed of multiple intelligent appliances may also be stored in a queue. For another example, a certain type of intelligent appliance in a smart home system, such as 3 refrigerators, belongs to a service type. The pages to be displayed of the 3 refrigerators may be stored in a queue. The pages to be displayed of the 3 refrigerators may also be stored in 3 queues. For another example, the status reminder pages of different intelligent appliances in a smart home system belong to a service type. The status reminder pages of a microwave oven, a refrigerator, and a television may be stored in a queue.
[0048] In the embodiments of the present disclosure, the scheduler may initialize the page storage space according to the preset type and quantity of the page storage space. For example, the preset type of the page storage space is a queue, and the quantity is 4. When creating a page storage space group, 4 empty queues are initialized as the page storage space group. The scheduler may also initialize the page storage space according to the quantity of the service types of the pages to be displayed and the preset type of the page storage space. For example, the preset type of the page storage space is a queue, and the quantity of the service types of the pages to be displayed is 5 categories. When creating a page storage space group, 5 empty queues are initialized as the page storage space group. According to the service types of the respective pages to be displayed, they are respectively stored in the corresponding queues. When it is necessary to display, multiple pages in the same page storage space may be displayed in the same page container, or multiple pages may be extracted from different page storage spaces and then displayed in the same page container.
[0049] According to the embodiments of the present disclosure, the page storage space group may include page storage spaces corresponding to multiple service types. The pages to be displayed may be stored in the corresponding page storage spaces according to the service types, and the pages of different service types may be stored separately, which is beneficial to improving the orderliness of page display and reducing the page conflicts of different service types.
[0050] In one implementation manner, the information of the page to be displayed further includes the service type of the page to be displayed. As Figure 2 shown, the method may further include:
[0051] S202. When there is no page storage space corresponding to the service type of the page to be displayed, add a page storage space corresponding to the service type of the page to be displayed to the page storage space group.
[0052] In the embodiments of the present disclosure, after creating a page storage space group, a page storage space can also be added to the page storage space group according to the newly added service type, and a corresponding relationship is established between the newly added page storage space and the newly added service type. For example, when the type of the preset page storage space is a queue, the page storage space group initialized by the scheduler includes two queues, corresponding to service types Ty1 and Ty2 respectively, and the service type of the newly received page to be displayed is Ty3. Therefore, there is no queue corresponding to Ty3 in the page storage space group, and a queue corresponding to Ty3 can be added to the page storage space group.
[0053] According to the embodiments of the present disclosure, when there is no page storage space corresponding to the service type of the page to be displayed in the page storage space group, the page storage space in the page storage space group can be expanded to meet the storage requirements of the page to be displayed and reduce the situation of page loss.
[0054] Figure 3 It is a flowchart of a page display control method according to another embodiment of the present disclosure. This method may include one or more features of the above page display control method. In one implementation, S102 adds the information of the page to be displayed to the page storage space according to the priority of the page to be displayed, including:
[0055] S301. Add the page to be displayed to the page storage space corresponding to the service type according to the priority and service type of the page to be displayed.
[0056] In the embodiments of the present disclosure, when storing a page to be displayed, the page storage space where the page to be displayed needs to be stored can be first determined according to the service type of the page to be displayed. Then, according to the priority of the page to be displayed, the storage position of the page to be displayed in the page storage space corresponding to its service type can be determined. For example, the scheduler can obtain the priority and service type of the page to be displayed from the page display request. The scheduler searches for the page storage space corresponding to the service type in the page storage space group. When the page storage space corresponding to the service type is found, if the page storage space is empty, the page to be displayed is directly stored in the page storage space. If there are other pages to be displayed in the page storage space, the scheduler is used to obtain the priorities of all the pages to be displayed in the page storage space, and according to the magnitude relationship between the page priority of the page to be stored currently and the priorities of all the pages to be displayed in the page storage space, the page to be stored is inserted into the corresponding position in the page storage space. For example, the service type of the newly received page K is Ty1 and the priority is 2. If there are pages H, I, and J in the page storage space corresponding to Ty1, where the priority of page H is 3, the priority of page I is 1, and the priority of page J is 1. After comparing the priorities of page K with pages H, I, and J, page K can be inserted between page H and page I.
[0057] In the embodiments of the present disclosure, when multiple pages to be displayed with the same priority need to be stored in the same page storage space, the scheduler can be used to obtain the coverage levels of the multiple pages to be displayed with the same priority and store them in sorted order according to the coverage levels.
[0058] According to the embodiments of the present disclosure, the pages to be displayed can be stored in different page storage spaces respectively according to the service types for management, which increases the orderliness of storing multiple pages to be displayed and reduces the chaos and page conflicts when multiple pages to be displayed are presented.
[0059] In one implementation, as Figure 3 shown, S102 adding the information of the page to be displayed to the page storage space according to the priority of the page to be displayed further includes:
[0060] S302. When the page storage space corresponding to the service type is full, expanding the page storage space corresponding to the service type.
[0061] In the embodiments of the present disclosure, after the page storage space of a certain service type is full, the capacity of the page storage space can be increased according to the number of to-be-displayed pages of the service type newly obtained; or the capacity of the storage space with a preset value can be increased or decreased according to the preset value. For example, the scheduler can detect the remaining space capacity in each page storage space in the page storage space group. When it is detected that the remaining space capacity of a certain page storage space is 0, the capacity of the page storage space can be expanded according to the preset value or the number of to-be-displayed pages that need to be stored in the page storage space.
[0062] For example, the type of the page storage space is a queue. At initialization, the length of each queue is 10. After the scheduler obtains that 10 to-be-displayed pages have been stored in a certain queue, the capacity of the queue can be expanded. If the preset value is 5, the original queue is expanded to a queue with a length of 15. Or, if 3 to-be-displayed pages need to be newly stored in the service type corresponding to the queue, the original queue can be expanded to a queue with a length of 13.
[0063] According to the embodiments of the present disclosure, the full page storage space can be expanded, and each page storage space can accommodate more to-be-displayed pages of its corresponding service type, avoiding the situation of page loss caused by insufficient capacity and improving the integrity of multiple page displays.
[0064] In one implementation manner, S103 controls the display order of the to-be-displayed pages in the page storage space according to the coverage level of the to-be-displayed pages, including at least one of the following:
[0065] Search for the page with the highest priority in each page storage space in the page storage space group, and display the found pages in the order of the coverage level;
[0066] Search for the page with the highest coverage level in each page storage space in the page storage space group, and display the found pages in the order of the coverage level;
[0067] Search for the page with the highest coverage level in each page storage space in the page storage space group, and display the found pages in the order of the priority.
[0068] In the embodiments of the present disclosure, the coverage level of the page can be set according to the urgency of the page display. For example, for the notification page of alarm messages such as fire and earthquake, its coverage level can be higher than that of the call page. In the event of a fire, the fire notification page can be used to cover and display on top of the currently displayed call page. Also, for example, the coverage level of the device offline message page can be lower than that of the fire alarm message notification page. If the fire notification page is currently being displayed, the offline message page will not cover the fire notification page.
[0069] In an embodiment of the present disclosure, a user interface configuration (uiconfig) may also be included. The user interface configuration may include configuration information for each component used to display a user interface (UI). The content of the page to be displayed may include specific abstractions such as page instances. The page instances are used to read the corresponding component information in the uiconfig and assemble it into a complete page for display. A page rendering function (such as the show function) may be called to obtain a new display page after assembling the corresponding components according to the correspondence between the page instance of the page to be displayed and the components in the uiconfig that need to be displayed.
[0070] For example, if there are N page storage spaces in the page storage space group, a scheduler may be used to find the page to be displayed with the highest priority among the N page storage spaces, obtaining N pages to be displayed. The N pages to be displayed are sorted according to the coverage level, and the N pages to be displayed are displayed according to the hierarchy corresponding to the sorted coverage level.
[0071] For example, if there are N page storage spaces in the page storage space group, a scheduler may also be used to find the N page storage spaces, and M pages to be displayed with the highest coverage level are found from all the pages to be displayed. The M pages to be displayed are sorted according to the coverage level, and the M pages to be displayed are displayed according to the hierarchy corresponding to the sorted coverage level. M may be less than N, or may be greater than or equal to N.
[0072] For example, if there are N page storage spaces in the page storage space group, a scheduler may also be used to find the N page storage spaces, and M pages to be displayed with the highest coverage level are found from all the pages to be displayed. The M pages to be displayed are sorted according to the priority, and the M pages to be displayed are displayed according to the order corresponding to the sorted priority. M may be less than N, or may be greater than or equal to N.
[0073] In an embodiment of the present disclosure, multiple page storage spaces may be independent of each other, and a scheduler may be used for independent scheduling respectively. For a single page storage space, a scheduler may also be used to preferentially display the page to be displayed with the highest coverage level therein, or preferentially display the page to be displayed with the highest priority therein.
[0074] According to an embodiment of the present disclosure, the pages to be displayed may be displayed according to the coverage level and / or priority, which can make the display of multiple pages more organized and orderly, and reduce the chaos or conflict of page display. Further, the coverage level and / or priority may be used to control the display of pages according to the urgency, so as to achieve the purpose of timely reminder.
[0075] Figure 4It is a flowchart of a page display control method according to another embodiment of the present disclosure. This method may include one or more features of the above page display control method. In one implementation, this method may further include:
[0076] S401. Detect whether the to-be-displayed page to be displayed is in a state that needs to be intercepted;
[0077] S402. When the to-be-displayed page is in an intercepted state, prevent the display of the to-be-displayed page.
[0078] In the embodiments of the present disclosure, before page display, an interceptor may also be used to detect the interception state of the to-be-displayed page. The interception state may be included in the information of the to-be-displayed page. The interception state of certain pages in the smart home system may be set in response to user configuration, and the intercepted to-be-displayed pages are not displayed. The interception state may include intercept, not intercept, intercept prompt, etc.
[0079] In the embodiments of the present disclosure, when the interceptor queries that the interception state of the current to-be-displayed page is intercept, the page rendering function may be stopped from being called, thereby preventing the display of the page. When the interception is successful, the intercepted to-be-displayed page may also be deleted from the page storage space.
[0080] In the embodiments of the present disclosure, when the interceptor queries that the interception state of the current to-be-displayed page is not intercept, the page rendering function may be continued to be called, and the page is assembled and displayed according to each component in the uiconfig corresponding to the page instance of the to-be-displayed page.
[0081] In the embodiments of the present disclosure, when the interceptor queries that the interception state of the current to-be-displayed page is intercept prompt, a new to-be-displayed page with an intercept prompt may be generated, and the intercept prompt page is displayed. The intercept prompt page changes the interception state of the to-be-displayed page in response to user input.
[0082] According to the embodiments of the present disclosure, some pages among multiple to-be-displayed pages may be intercepted, reducing the number of pages to be displayed, and improving the fluency and orderliness of page display. Intercepting pages according to the interception state may reduce the display of irrelevant or less important pages.
[0083] Figure 5 It is a flowchart of a page display control method according to another embodiment of the present disclosure. This method may include one or more features of the above page display control method. In one implementation, this method may further include:
[0084] S501. Delete the displayed page from the page storage space.
[0085] In the embodiments of the present disclosure, when the page to be displayed has been displayed, intercepted, exceeded the waiting time, etc., the corresponding page to be displayed can be deleted from the page storage space. For example, a statuser can detect the display status of the page to be displayed. When the display status is "displayed", a scheduler can delete the page to be displayed with the display status of "displayed" from the page storage space.
[0086] According to the embodiments of the present disclosure, the displayed page can be deleted, reducing the occupation of storage resources by the displayed page, clearing storage space for new pages to be displayed, avoiding saturation of the page storage space, and improving the fluency and operation efficiency of multi-page display.
[0087] Figure 6 It is an architecture diagram of a page display control system according to an embodiment of the present disclosure. In the embodiments of the present disclosure, the page display control system may include the following modules:
[0088] The call processing module 601 of the display page. This module may include a scheduler, a queue, and a low-level object abstraction protocol. Among them, the invoker can schedule and process the specific abstractions in the queue. The queue can support the addition and removal of pages. The low-level object abstraction protocol may include user interface configuration (uiconfig), an interceptor, a statuser, etc. Various configurations of the user interface can be configured in uiconfig, and various configurations of the user interface can be maintained through uiconfig. The interceptor can intercept the dynamic modification of page content. The dynamic modification of page content may include at least one of the following modifications: the main title, subtitle, display copywriting, the copywriting and color of the placeholder button in the page, and the customization of the overall page content.
[0089] The basic abstraction / concrete UI style implementation module 602 of the display page. This module can be used to display multiple pages. The scheduler can send the pages in the queue to this module 602, where multiple pages can wait to be displayed at any time.
[0090] In the embodiments of the present disclosure, the multi-page storage queue policy may include:
[0091] 1. Default rule: The pages to be displayed stored in the queue are sequentially operated, such as addition, deletion, or display, according to the principle of first in, first out.
[0092] 2. Priority rule: Regardless of whether the page with a higher priority enters the queue first, it can be popped up for display first. It can be understood as appropriate queue jumping. For example, when displaying pages, the page to be displayed with a higher priority can be popped up for display first. When storing the pages to be displayed, queue jumping can be performed according to the magnitude relationship of the priorities.
[0093] 3. Coverage rule: For example, the coverage level of the notification page for alarm messages such as fires and earthquakes can be higher than that of the call page. In the event of a fire, the fire notification page can be used to overlay and display on top of the currently displayed call page. Another example is that the coverage level of the device offline message page can be lower than that of the fire alarm message notification page. If the fire notification page is currently being displayed, the offline message page will not overlay the fire notification page after it is displayed.
[0094] An example of a single queue is Figure 7 As shown, a single queue of the display queue can be marked as Q, where information of pages of a group of services with the same or related service types can be saved. Different service types can have different service logics. However, if a group of services has no need to be associated with the services in Figure 7 the single queue, has its own set of service logics, and this group of services is not affected by other page queue policies, it may be difficult to meet the requirements using a single queue. Therefore, multiple different groups (i.e., multiple groups of services) can be maintained through multiple queues. As Figure 8 shown, one queue can correspond to one group of services, and different groups of services do not affect each other. For example, the display queue 1 includes pages 1, 6, 8, 9... of the first group of services, the display queue 2 includes pages 2, 3, 4, 5... of the second group of services, and the display queue 3 includes pages 7, 10, 11, 12... of the third group of services. Based on the framework instance, the scheduler can schedule the pages of different groups of services in the display queue 1, the display queue 2, and the display queue 3. The framework instance can also be called an object and can include specific page display logics and policies.
[0095] Figure 9 is a schematic diagram of the page display control process according to an embodiment of the present disclosure. As Figure 9 shown, the process can include:
[0096] S901. Initialize and configure the display UI with a custom style required for page display.
[0097] S902. Create a maintenance queue group including several maintenance queues and create a scheduler.
[0098] S903. Add the pages to be displayed to the maintenance queue through the scheduler and obtain the priority and coverage level of the pages.
[0099] S904. Start the interceptor, judge the interceptor status, and according to the priority of the queue head, call the page rendering function such as the show function to display the page of the un-intercepted queue head.
[0100] S905. Complete the display of the page or close other pages. It can respond to the user or the program to close other pages according to the current business situation. The current business situation may include the user actively closing other pages, or the program actively closing other pages, etc.
[0101] Figure 10 FIG. 4 is a schematic structural diagram of a page display control device according to an embodiment of the present disclosure. The device may include:
[0102] A receiving module 1001, configured to receive information of a page to be displayed, where the information of the page to be displayed includes the content, priority, and overlay level of the page to be displayed;
[0103] A storage module 1002, configured to add the information of the page to be displayed to the page storage space according to the priority of the page to be displayed;
[0104] A control module 1003, configured to control the display order of the pages to be displayed in the page storage space according to the overlay level of the page to be displayed.
[0105] Figure 11 FIG. 5 is a schematic structural diagram of a page display control device according to another embodiment of the present disclosure. The device may include one or more features of the above display control device. In one implementation, the device may further include:
[0106] A creation module 1004, configured to create a page storage space group, where the page storage space group includes a plurality of page storage spaces, and one page storage space corresponds to one business type.
[0107] In one implementation, the information of the page to be displayed further includes the business type of the page to be displayed. As Figure 11 shown, the device may further include:
[0108] A new addition module 1005, configured to add a page storage space corresponding to the business type of the page to be displayed to the page storage space group when there is no corresponding page storage space for the business type of the page to be displayed.
[0109] In one implementation, the storage module 1002 is further configured to add the page to be displayed to the page storage space corresponding to the business type according to the priority and business type of the page to be displayed.
[0110] In one implementation, the storage module 1002 is further configured to expand the page storage space corresponding to the business type when the page storage space corresponding to the business type is full.
[0111] In one implementation, the control module 1003 is further configured to perform at least one of the following:
[0112] In the page storage space group, find the page with the highest priority in each page storage space, and display the found pages in the order of the coverage level.
[0113] In the page storage space group, find the page with the highest coverage level in each page storage space, and display the found pages in the order of the coverage level.
[0114] In the page storage space group, find the page with the highest coverage level in each page storage space, and display the found pages in the order of the priority.
[0115] In one embodiment, as Figure 11 shown, the device may further include:
[0116] A detection module 1006, configured to detect whether the to-be-displayed page to be displayed is in a state that needs to be intercepted;
[0117] An interception module 1007, configured to prevent the display of the to-be-displayed page when the to-be-displayed page is in an intercepted state.
[0118] In one embodiment, as Figure 11 shown, the device may further include:
[0119] A deletion module 1008, configured to delete the displayed page from the page storage space.
[0120] For the specific functions and examples of the modules and sub-modules of the device in the embodiments of the present disclosure, reference may be made to the relevant descriptions of the corresponding steps in the above method embodiments, which will not be elaborated herein.
[0121] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0122] Figure 12 It is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As Figure 12 shown, the electronic device includes: a memory 1210 and a processor 1220. The memory 1210 stores a computer program that can run on the processor 1220. The number of the memory 1210 and the processor 1220 can be one or more. The memory 1210 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided in the above method embodiments. The electronic device may further include: a communication interface 1230, configured to communicate with external devices and perform data interaction and transmission.
[0123] If the memory 1210, the processor 1220, and the communication interface 1230 are implemented independently, the memory 1210, the processor 1220, and the communication interface 1230 can be interconnected via a bus and communicate with each other. Such a bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 12 only a thick line is used to represent it in Figure 12 , but it does not mean that there is only one bus or one type of bus.
[0124] Optionally, in a specific implementation, if the memory 1210, the processor 1220, and the communication interface 1230 are integrated on a single chip, the memory 1210, the processor 1220, and the communication interface 1230 can communicate with each other through an internal interface.
[0125] It should be understood that the above-mentioned processor can be a Central Processing Unit (CPU), or can also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor can be a processor that supports the Advanced RISC Machines (ARM) architecture.
[0126] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).
[0127] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, Bluetooth, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disc (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), etc. It should be noted that the computer-readable storage medium mentioned in the present disclosure can be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0128] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, or an optical disc, etc.
[0129] In the description of the embodiments of the present disclosure, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0130] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. "And / or" herein is merely a description of the relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone.
[0131] In the description of the embodiments of the present disclosure, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, "a plurality of" means two or more.
[0132] The foregoing are only exemplary embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.
Claims
1. A page display control method, comprising: Receiving information of a page to be displayed; wherein, the information of the page to be displayed includes the content, priority, and coverage level of the page to be displayed; Adding the information of the page to be displayed to a page storage space according to the priority of the page to be displayed; Controlling the display order of the pages to be displayed in the page storage space according to the coverage level of the page to be displayed.
2. The method according to claim 1, further comprising: Creating a page storage space group, where the page storage space group includes multiple page storage spaces, and one page storage space corresponds to one service type.
3. The method according to claim 1, wherein The information of the page to be displayed further includes the service type of the page to be displayed, and further comprises: In the case that there is no corresponding page storage space for the service type of the page to be displayed, adding a page storage space corresponding to the service type of the page to be displayed to the page storage space group.
4. The method according to claim 2 or 3, wherein Adding the information of the page to be displayed to a page storage space according to the priority of the page to be displayed includes: Adding the page to be displayed to the page storage space corresponding to the service type according to the priority and service type of the page to be displayed.
5. The method according to claim 4, wherein, Adding the information of the page to be displayed to a page storage space according to the priority of the page to be displayed includes: In the case that the page storage space corresponding to the service type is full, expanding the page storage space corresponding to the service type.
6. The method according to any one of claims 1 to 5, wherein Controlling the display order of the pages to be displayed in the page storage space according to the coverage level of the page to be displayed includes at least one of the following: Searching for the page with the highest priority in each page storage space in the page storage space group respectively, and sequentially displaying the found pages in the order of the coverage level; Searching for the page with the highest coverage level in each page storage space in the page storage space group respectively, and sequentially displaying the found pages in the order of the coverage level; Searching for the page with the highest coverage level in each page storage space in the page storage space group respectively, and sequentially displaying the found pages in the order of the priority.
7. The method according to any one of claims 1 to 6, further comprising: Detecting whether the page to be displayed that needs to be displayed is in a state that needs to be intercepted; In the case that the page to be displayed is in an intercepted state, preventing the display of the page to be displayed.
8. The method according to any one of claims 1 to 7, further comprising: Deleting the displayed pages from the page storage space.
9. A page display control device, comprising: A receiving module, configured to receive information of a page to be displayed, where the information of the page to be displayed includes the content, priority, and coverage level of the page to be displayed; A storage module, configured to add the information of the page to be displayed to a page storage space according to the priority of the page to be displayed; A control module, configured to control the display order of the pages to be displayed in the page storage space according to the coverage level of the page to be displayed.
10. The device according to claim 9, further comprising: A creation module, configured to create a page storage space group, where the page storage space group includes a plurality of page storage spaces, and one page storage space corresponds to one service type.
11. The device according to claim 9, wherein, The information of the page to be displayed further includes the service type of the page to be displayed, and further includes: A new addition module, configured to, when there is no corresponding page storage space for the service type of the page to be displayed, add a page storage space corresponding to the service type of the page to be displayed to the page storage space group.
12. The device according to claim 10 or 11, wherein, The storage module is further configured to add the page to be displayed to the page storage space corresponding to the service type according to the priority and service type of the page to be displayed.
13. The device according to claim 12, wherein, The storage module is further configured to expand the page storage space corresponding to the service type when the page storage space corresponding to the service type is full.
14. The apparatus according to any one of claims 9 to 13, wherein, The control module is further configured to perform at least one of the following: Search for the page with the highest priority in each page storage space in the page storage space group, and display the found pages in the order of the coverage levels; Search for the page with the highest coverage level in each page storage space in the page storage space group, and display the found pages in the order of the coverage levels; Search for the page with the highest coverage level in each page storage space in the page storage space group, and display the found pages in the order of the priorities.
15. The apparatus according to any one of claims 9 to 14 further includes: A detection module, configured to detect whether the page to be displayed that needs to be displayed is in a state that needs to be intercepted; An interception module, configured to prevent the display of the page to be displayed when the page to be displayed is in an intercepted state.
16. The apparatus according to any one of claims 9 to 15 further includes: A deletion module, configured to delete the displayed page from the page storage space.
17. An electronic device includes: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-8.