Interface interaction method and device
By using page record tables and hierarchical relationship update mechanisms in the air purifier equipment, the problems of interface delay and poor interaction experience caused by insufficient processor capacity are solved, and efficient and low-cost interface interaction effect is achieved.
Patent Information
- Application Number
- CN202210653071.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-06-09
AI Technical Summary
The processor capacity of existing air purifier equipment is insufficient, resulting in poor interface display delay and interactive experience, and the cost of replacing high-performance processors is too high.
By obtaining the page record table of the target interface and the operation instructions to be executed, the record table is recorded in the hierarchical order of the pages that have been run on the target interface, the page to be executed is determined based on the operation instructions to be executed, and the page record table is updated according to the page hierarchy relationship, and finally the current page with the lowest level is extracted from the updated record table for display.
It realizes that the efficiency and experience of interface interaction is improved without changing the processor, reduces the requirements for interface display by processor capacity, reduces costs, and makes the page display more logical and closes to the user's usage habits.
Smart Images

Figure CN114968017B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of interface interaction, and in particular to an interface interaction method and device. Background Art
[0002] With the development of embedded technology, the popularization of color screen technology and the reduction of related hardware costs, more and more embedded devices using digital tube displays have begun to use color screen related technical solutions as a display method for human-computer interaction. Different from the previous use of digital tubes to represent different states of display and interaction, color screens have a brand-new interactive interface and method. By introducing previously unavailable concepts such as pages and animations, its display and interaction methods have also changed. For example, the interactive pages of air purifier devices are roughly divided into main pages, subdivided function pages, status prompt pages (such as Bluetooth connection prompts, child lock switch prompts, etc.), etc. There are many types of pages and there are hierarchical relationships. The state interaction method of digital tubes cannot be used. The interaction is relatively complex, so the requirements for the processor are high. The processor capacity in existing air purifier devices is insufficient, resulting in interface display delays and poor interactive experience. Replacing high-performance processors also has the problem of high costs. Summary of the invention
[0003] Therefore, the technical problem to be solved by the present invention is to overcome the high requirements for processors in the prior art. The processors in the existing air purifier equipment have insufficient power, resulting in interface display delays and poor interactive experience. Replacing high-performance processors also has the defect of excessively high costs, thereby providing an interface interaction method and device.
[0004] According to a first aspect, an embodiment of the present invention provides an interface interaction method, the method comprising:
[0005] Obtaining a page record table of the target interface and the operation instructions to be executed, wherein the page record table records the run pages according to the hierarchical order of the run pages of the target interface;
[0006] Determine a page to be operated based on the operation instruction to be executed;
[0007] According to the hierarchical relationship between the page to be operated and each executed page in the page record table, the page record table is updated;
[0008] The current page with the lowest level is extracted from the updated page record table for display.
[0009] Optionally, the to-be-executed operation instruction includes a page rollback instruction and a page add instruction, and determining the to-be-operated page based on the to-be-executed operation instruction includes:
[0010] When the to-be-executed operation instruction is a page rollback instruction, the to-be-operated page is a target rollback page corresponding to the page rollback instruction in the page record table;
[0011] When the operation instruction to be executed is an add page instruction, the page to be operated is a page to be added.
[0012] Optionally, when the to-be-executed operation instruction is a page rollback instruction, updating the page record table according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table includes:
[0013] Delete each executed page in the page record table that is lower than the level of the page to be operated.
[0014] Optionally, when the to-be-executed operation instruction is an add page instruction, updating the page record table according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table includes:
[0015] Compare the level of the page to be operated with the levels of each executed page in the page record table;
[0016] When the level of the page to be operated is lower than the level of the current page with the lowest level in the page record table, the page to be operated is added to the page record table as the page with the lowest level.
[0017] Optionally, the method further comprises:
[0018] When the level of the page to be operated is equal to the level of the current page with the lowest level in the page record table, the current page in the page record table is replaced with the page to be operated.
[0019] Optionally, the method further comprises:
[0020] When the level of the page to be operated is higher than the level of the current page with the lowest level in the page record table, obtaining a target page in the page record table with the same level as the page to be operated;
[0021] The target page in the page record table is replaced with the page to be operated, and all the executed pages in the page record table that are lower than the level of the page to be operated are deleted.
[0022] Optionally, before obtaining the page record table of the target interface and the operation instructions to be executed, the method further includes:
[0023] After the target interface is started, the page with the highest level is displayed on the target interface and added to the page record table to complete the initialization of the page record table.
[0024] According to a second aspect, an embodiment of the present invention provides an interface interaction device, the device comprising:
[0025] An acquisition module, used to acquire a page record table of a target interface and an operation instruction to be executed, wherein the page record table records the executed pages according to the hierarchical order of the executed pages of the target interface;
[0026] A first processing module, configured to determine a page to be operated based on the operation instruction to be executed;
[0027] A second processing module, configured to update the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table;
[0028] The execution module is used to extract the current page with the lowest level from the updated page record table for display.
[0029] According to a third aspect, an embodiment of the present invention provides an electronic device, including:
[0030] A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method described in the first aspect or any optional implementation manner of the first aspect by executing the computer instructions.
[0031] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect or any optional implementation manner of the first aspect.
[0032] The technical solution of the present invention has the following advantages:
[0033] The interface interaction method and device provided by the present invention obtain the page record table and the operation instructions to be executed of the target interface. The page record table records the running pages according to the hierarchical order of the running pages of the target interface; determines the page to be operated based on the operation instructions to be executed; updates the page record table according to the hierarchical relationship between the page to be operated and each running page in the page record table; extracts the current page with the lowest hierarchy from the updated page record table for display. The running pages are recorded through the page record table, the pages to be operated are determined according to the operation instructions to be executed, and the page record table is updated according to the hierarchical relationship. The pages are effectively displayed according to the execution instructions to be operated, the pages to be operated, and the hierarchical relationship of each page. The entire page interaction process is simple, easy and quick to operate, and has low requirements on the processor capacity. Therefore, without changing the processor and reducing costs, the interface display delay is avoided, and the page display is made more logical and closer to the usage habits of the majority of users, greatly improving the interactive experience of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 is a flow chart of an interface interaction method according to an embodiment of the present invention;
[0036] Figure 2 A page level schematic diagram of an interface interaction method according to an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the operation page changes of the interface interaction method according to an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of page interaction logic of an interface interaction method according to an embodiment of the present invention;
[0039] Figure 5 is a schematic diagram of the structure of an interface interaction device according to an embodiment of the present invention;
[0040] Figure 6 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0043] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0044] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0045] The embodiment of the present invention provides an interface interaction method, such as Figure 1 As shown, the interface interaction method specifically includes the following steps:
[0046] Step S101: obtaining a page record table of a target interface and operation instructions to be executed, wherein the page record table records the executed pages according to the hierarchical order of the executed pages of the target interface.
[0047] Specifically, in practical applications, with the development of embedded technology, the popularization of color screen technology and the reduction of related hardware costs, more and more embedded devices using digital tube displays have begun to use related technical solutions of color screens as a display method for human-computer interaction. Different from the previous digital tube display form, the color screen has a brand-new interactive interface and method, which can display more content. While greatly improving the user experience, it also has more complex interactive logic and requirements. Taking an air purifier as an example, an interface interaction method provided in an embodiment of the present invention is described.
[0048] With the gradual popularization of color screen technology in air purifiers, compared with the display and interaction through the brightness and shape of the digital tube to represent different states, the air purifier using the color screen for interaction has introduced concepts such as pages and animations that were not previously available. The display and interaction methods have changed. There are many types of pages, and there is a hierarchical relationship. The state interaction method of the digital tube cannot be used, and the interaction is more complicated. Therefore, in order to better interact and display the air purifier, the embodiment of the present invention first divides all the established pages into levels according to their functions, such as Figure 2 As shown, the embodiment of the present invention sets three levels, with the importance decreasing in sequence. The use of a lower level of page depth is beneficial to user understanding and operation.
[0049] Specifically, the embodiment of the present invention sets the level of the main page to the first level (i.e., the first-level page), the level of the relevant function page to the second level (i.e., the second-level page), and the level of the relevant status display page to the third level (i.e., the third-level page), wherein the main page displays main information such as air quality and device status; the subdivided function pages include pages with different functions such as mode selection, wind speed switching, and filter life query; the third-level status display pages are some pages for prompts, including Bluetooth connection, child lock switch, etc., which are relatively less important, but the actual situation is not limited to this. The change in the number of levels to achieve device interaction and display to meet user needs is also within the protection scope of an interface interaction method provided by an embodiment of the present invention.
[0050] In addition, if Figure 3 As shown, the embodiment of the present invention is designed in terms of interaction logic and provides a page record table for recording running pages to help us implement interaction logic.
[0051] Specifically, the page record table can be stacked in a "first in, last out" manner to better match the user's usage habits and improve page processing efficiency.
[0052] By first dividing the various pages into levels according to their importance, and then operating each running page in the page record table in a targeted manner according to the level and the operation instructions to be executed, efficient multi-level interaction can be achieved without replacing a high-performance processor.
[0053] Step S102: determining a page to be operated based on the operation instruction to be executed.
[0054] Specifically, in actual application, the embodiment of the present invention describes two types of pending operation instructions commonly used by users. The pending operation instructions include page rollback instructions and page add instructions, and the page to be operated is determined according to the pending operation instructions.
[0055] Step S103: updating the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table.
[0056] Specifically, in practical applications, Figure 3 As shown, the embodiment of the present invention operates the page to be operated and updates the page record table after the operation according to the hierarchical relationship between the page to be operated and the running pages in the page record table. This can not only effectively display the page required by the user, but also timely reduce the system temporary cache and the number of user operations, thereby greatly improving the user's operating experience.
[0057] Step S104: extracting the current page with the lowest level from the updated page record table for display.
[0058] Specifically, in actual applications, after the pending operation instruction is executed, the current page with the lowest level in the updated page record table will be extracted and displayed. It should be noted that the low level here refers to the low importance of the page. According to the three levels provided by the embodiment of the present invention, the first level has the highest importance, the second level is second, and the third level has the lowest importance. In particular, when there are only pages of the first level in the page record table, the embodiment of the present invention will display the main page of the first level.
[0059] By executing the above steps, the interface interaction method provided by the embodiment of the present invention obtains the page record table and the operation instructions to be executed of the target interface. The page record table records the running pages according to the hierarchical order of the running pages of the target interface; determines the page to be operated based on the operation instructions to be executed; updates the page record table according to the hierarchical relationship between the page to be operated and each running page in the page record table; extracts the current page with the lowest hierarchy from the updated page record table for display. The running pages are recorded through the page record table, the pages to be operated are determined according to the operation instructions to be executed, and the page record table is updated through the hierarchical relationship. The pages are effectively displayed according to the execution instructions to be operated, the pages to be operated, and the hierarchical relationship of each page. The entire page interaction process is simple, easy and quick to operate, and has low requirements on the processor capacity. Therefore, without changing the processor and reducing costs, the interface display delay is avoided, and the page display is made more logical and closer to the usage habits of the majority of users, greatly improving the interactive experience of the device.
[0060] Specifically, in one embodiment, before executing the above step S101 to obtain the page record table of the target interface and the operation instructions to be executed, the following steps are specifically included:
[0061] Step S201: After the target interface is started, the highest-level page is displayed on the target interface and added to the page record table to complete the initialization of the page record table.
[0062] Specifically, in actual application, when the air purifier is started, the device will run and display the default main page, and add the page to the page record table at the bottom, completing the initialization of the record table.
[0063] The embodiment of the present invention ensures that the main page is located at the bottom layer by initializing the page record table. Therefore, when the page record table stacks pages in a "first in, last out" manner, the main page at the first level will not be adjusted, which effectively reduces the number of user operations and improves the efficiency of interface interaction.
[0064] Specifically, in one embodiment, the to-be-executed operation instruction includes a page rollback instruction and a page add instruction. The above step S102 determines the to-be-operated page based on the to-be-executed operation instruction, and specifically includes the following steps:
[0065] Step S301: When the operation instruction to be executed is a page rollback instruction, the page to be operated is a target rollback page corresponding to the page rollback instruction in the page record table.
[0066] Step S302: when the operation instruction to be executed is an instruction to add a page, the page to be operated is a page to be added.
[0067] Specifically, in one embodiment, when the to-be-executed operation instruction is a page rollback instruction, the above step S103 updates the page record table according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table, and specifically includes the following steps:
[0068] Step S401: Delete all executed pages in the page record table that are lower than the level of the page to be operated.
[0069] Specifically, in actual applications, after the device is initialized, the user can operate the device to generate various types of page switching. Figure 4 As shown, when the to-be-executed operation instruction is a page rollback instruction, the embodiment of the present invention will return to the page corresponding to the previous level, and delete each executed page in the page record table that is lower than the level of the to-be-operated page.
[0070] Exemplarily, when the second-level mode selection page is rolled back, the user returns to the first-level main page corresponding to the mode selection, and deletes the third-level running page under the mode selection page in the page record table.
[0071] Specifically, in actual applications, before executing the page rollback instruction, the embodiment of the present invention will first determine whether there is a cross-level rollback for the page to be operated. For example, when the page rolls back to "return to the main page", no matter how many pages there are in the current record table, the device will display the home page, and the record table will clear all records except the home page. Since the third-level page is designed to be a prompt type page and serves as a prompt, its importance is not high, and "adding a first-level or second-level page" is an explicit operation of the user. It is assumed that the user is aware of the prompt content of the current page, so the current third-level prompt page can be directly destroyed. If it is not destroyed, the user will see the prompt page again when performing the next page rollback, causing confusion and confusion to the user during use.
[0072] Specifically, in actual applications, the page rollback instructions of the embodiment of the present invention include manual rollback by the user and automatic rollback when the countdown of the prompt page ends. Both page rollback instructions only exist between the second-level page and the third-level page, that is, the first-level main page cannot roll back. There will be at least one main page in the page record table and it will be displayed. The automatic rollback process when the countdown of the prompt page ends refers to the page interaction process when the user manually rolls back, and will not be repeated here.
[0073] When the page rollback instruction is executed, the embodiment of the present invention will destroy the current page, remove it from the page record table, and display the page of the previous layer according to the record in the page record table. For example, when the device opens the main page 1 and the function page 3 successively, the page record table will record the main page 1 and the function page 3, and the currently displayed page is the function page 3. At this time, the user generates a page rollback operation, the record table will remove the function page 3, and according to the record in the table, the device will display the main page 1.
[0074] The embodiment of the present invention determines the level of the page, and when performing a page rollback operation, the pages lower than the page to be operated are deleted at the same time, thereby timely reducing the system temporary cache and greatly improving the interface interaction processing efficiency.
[0075] Specifically, in one embodiment, when the operation instruction to be executed is an add page instruction, the above step S103 updates the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table, and specifically includes the following steps:
[0076] Step S501: Compare the level of the page to be operated with the levels of each executed page in the page record table.
[0077] Step S502: when the level of the page to be operated is lower than the level of the current page with the lowest level in the page record table, the page to be operated is added to the page record table as the page with the lowest level.
[0078] Specifically, in actual applications, before executing step S501, the embodiment of the present invention will first judge the level of the page to be operated. When the level of the page to be operated belongs to the third level, the page to be operated will be directly added to the top of the page record table; when the level of the page to be operated does not belong to the third level, the level of the page to be operated will be compared with the levels of each running page in the page record table.
[0079] Specifically, in actual applications, when an instruction to add a page is issued, the embodiment of the present invention will first compare the level of the page to be operated with the level of each running page in the page record table. When the page to be operated is the page with the lowest level, the embodiment of the present invention will add the page to be operated to the page record table.
[0080] For example, Figure 4 As shown, the embodiment of the present invention can also obtain the level of the current page of the page record table. When the level of the page to be operated does not belong to the third level, by comparing the level relationship between the page to be operated and the current page of the page record table, the process of adding the page to be operated can be quickly completed according to the level comparison result. Specifically, if the level of the current page belongs to the third level, since the level of the page to be operated is at least the second level, the current page in the page record table can be directly deleted at this time, thereby timely reducing the number of user operations; if the level of the current page does not belong to the third level, the level comparison of the page to be operated and the currently displayed page is performed, and targeted interactive display is performed according to the comparison result.
[0081] Specifically, according to the "first in, last out" method of the page record table and to better meet the user experience, the embodiment of the present invention adds the lowest-level page to be operated to the top of the page record table, so that when the user subsequently rolls back the page, the operation page can be rolled back and deleted without mobilizing other pages, thereby greatly improving processing efficiency.
[0082] Specifically, in one embodiment, when the operation instruction to be executed is an add page instruction, the above step S103 updates the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table, and specifically further includes the following steps:
[0083] Step S503: When the level of the page to be operated is equal to the level of the current page with the lowest level in the page record table, the current page in the page record table is replaced with the page to be operated.
[0084] Specifically, in actual applications, when the level of the page to be operated is equal to the level of the currently displayed page in the page record table, the embodiment of the present invention will replace the currently displayed page in the page record table with the page to be operated. By performing level comparison and replacement, not only can the unlimited growth of the page record table and the resulting system crash be avoided, but the depth of the page level can also be further limited to avoid logical confusion.
[0085] Specifically, in one embodiment, when the operation instruction to be executed is an add page instruction, the above step S103 updates the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table, and specifically further includes the following steps:
[0086] Step S601: when the level of the page to be operated is higher than the level of the current page with the lowest level in the page record table, a target page with the same level as the page to be operated in the page record table is obtained.
[0087] Step S602: Replace the target page in the page record table with the page to be operated, and delete all the executed pages in the page record table that are lower in level than the page to be operated.
[0088] Specifically, when the level of the page to be operated is higher than the level of the lowest currently displayed page in the page record table, the target page of this level in the page record table will be obtained, the target page will be replaced with the page to be operated, and all running pages with a level lower than the page to be operated will be deleted.
[0089] Exemplarily, when the page to be operated is at the second level, the run pages of the second level in the page record table are obtained, the run pages of the second level are replaced with the page to be operated, and all the run pages of the third level in the page record table are deleted, so that the user does not need to manually delete them again. This avoids the user seeing the third-level prompt page again when performing the next operation, causing confusion and chaos to the user during use, while greatly improving the user's interactive experience with the device.
[0090] By executing the above steps, the interface interaction method provided by the embodiment of the present invention obtains the page record table and the operation instructions to be executed of the target interface. The page record table records the running pages according to the hierarchical order of the running pages of the target interface; determines the page to be operated based on the operation instructions to be executed; updates the page record table according to the hierarchical relationship between the page to be operated and each running page in the page record table; extracts the current page with the lowest hierarchy from the updated page record table for display. The running pages are recorded through the page record table, the pages to be operated are determined according to the operation instructions to be executed, and the page record table is updated through the hierarchical relationship. The pages are effectively displayed according to the execution instructions to be operated, the pages to be operated, and the hierarchical relationship of each page. The entire page interaction process is simple, easy and quick to operate, and has low requirements on the processor capacity. Therefore, on the basis of not changing the processor and reducing costs, the page display is made more logical and closer to the usage habits of the majority of users, greatly improving the interactive experience of the device.
[0091] The interface interaction method provided by the embodiment of the present invention will be described in detail below in conjunction with specific application examples.
[0092] Combination Figure 1-Figure 4 As shown, the display logic of the air purifier device includes a large number of different interactive pages. The embodiment of the present invention first divides all the established pages into levels according to their functions, which are divided into first-level pages (main pages, used to display main information such as air quality, device status, etc.), second-level pages (subdivided functional pages, used to display functional information such as mode selection, wind speed switching, filter life query, etc.) and third-level pages (used to display prompt information such as Bluetooth and child lock switch). Then logically, the embodiment of the present invention designs a page record table to record the running pages to help us implement the logic of interaction. The page record table is stacked in a "first in, last out" manner. When the device starts, the device will run and display the default main page, and add the page to the page record table at the bottom, completing the initialization of the record table. After initialization, the user operates the device to generate various types of page switches,
[0093] (1) Page rollback. Rollback includes two situations: manual rollback by the user and prompt of the end of the page countdown. It only exists in the second-level and third-level pages. That is, the first-level pages cannot be rolled back. There will be at least one main page existing and displayed in the page record table. Specifically, page rollback will destroy the current page, remove it from the page record table, and display the page of the previous level according to the records in the page record table, so as to reduce the system temporary cache in time and improve processing efficiency. For example, if the device opens the main page 1 and function page 3 successively, then the record table will record the main page 1 and function page 3. The currently displayed page is function page 3. At this time, the user generates a page rollback operation, then the page record table will remove function page 3. According to the records in the table, the device will display the main page 1.
[0094] At the same time, there are special operations for page rollback: cross-level rollback, such as the "return to home page" operation. No matter how many pages there are in the current page record table, the device will display the main page, and the page record table will clear all records except the main page, thereby reducing the number of user operations and improving the user's operating experience.
[0095] (2) Adding pages. The third-level page has the priority of being added, that is, if a third-level page is added, it will be directly added to the page record table and displayed; if it is not a third-level page, and the level of the added page belongs to the first level or the second level, the current page (top-level page) of the page record table will be compared. If the current page is a third-level page, the current page will be directly destroyed first, and then the level size of the current page and the added page will be compared. If they are the same, the current page will be directly replaced with the added page; if the level of the added page is lower than the current page, it will be added to the top of the record table and displayed; if the added page is higher than the current page, the page of the same level as the added page will be found in the page record table, replaced, and then all pages below the level will be cleared. For example, if there is a page "1233" (the number represents the level) in the table, when the "1" page is added, the table will clear all pages above "1" and become "1".
[0096] The page record table records the pages that have been run, the pages to be operated are determined according to the operation instructions to be executed, and the page record table is updated through the hierarchical relationship. The pages are effectively displayed according to the instructions to be operated, the pages to be operated, and the hierarchical relationship of each page. The entire page interaction process is simple, easy and quick to operate, with low requirements on processor power. Therefore, without changing the processor and reducing costs, interface display delays are avoided, making the page display more logical and more in line with the usage habits of the majority of users, greatly improving the interactive experience of the device.
[0097] The embodiment of the present invention provides an interface interaction device, such as Figure 5As shown, the interface interaction device includes:
[0098] The acquisition module 101 is used to acquire the page record table of the target interface and the operation instructions to be executed. The page record table records the executed pages according to the hierarchical order of the executed pages of the target interface. For details, please refer to the relevant description of step S101 in the above method embodiment, which will not be repeated here.
[0099] The first processing module 102 is used to determine the page to be operated based on the operation instruction to be executed. For details, please refer to the relevant description of step S102 in the above method embodiment, which will not be repeated here.
[0100] The second processing module 103 is used to update the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table. For details, please refer to the relevant description of step S103 in the above method embodiment, which will not be repeated here.
[0101] The execution module 104 is used to extract the current page with the lowest level from the updated page record table for display. For details, please refer to the relevant description of step S104 in the above method embodiment, which will not be repeated here.
[0102] For further description of the above-mentioned interface interaction device, please refer to the relevant description of the above-mentioned interface interaction method embodiment, which will not be repeated here.
[0103] Through the coordinated cooperation of the above-mentioned components, the interface interaction device provided by the embodiment of the present invention records the run pages through the page record table, determines the pages to be operated according to the operation instructions to be executed, and updates the page record table through the hierarchical relationship, and effectively displays the pages according to the instructions to be operated, the pages to be operated, and the hierarchical relationship of each page. The entire page interaction process is simple, easy and quick to operate, and has low requirements on processor power. Therefore, without changing the processor and reducing costs, interface display delays are avoided, making the page display more logical and closer to the usage habits of the majority of users, thereby greatly improving the interactive experience of the device.
[0104] An embodiment of the present invention provides an electronic device, such as Figure 6 As shown, the electronic device includes a processor 901 and a memory 902, and the memory 902 and the processor 901 are connected to each other in a communication manner, wherein the processor 901 and the memory 902 can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0105] The processor 901 may be a central processing unit (CPU). The processor 901 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0106] The memory 902 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor 901 executes various functional applications and data processing of the processor 901 by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the method in the above method embodiment.
[0107] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 901, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 902 may optionally include a memory remotely arranged relative to the processor 901, and these remote memories may be connected to the processor 901 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0108] One or more modules are stored in the memory 902 , and when executed by the processor 901 , the method in the above method embodiment is executed.
[0109] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here.
[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the implemented program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0111] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. An interface interaction method, characterized in that: include: Obtaining a page record table of the target interface and the operation instructions to be executed, wherein the page record table records the run pages according to the hierarchical order of the run pages of the target interface; Determine a page to be operated based on the operation instruction to be executed; According to the hierarchical relationship between the page to be operated and each executed page in the page record table, the page record table is updated; Extract the current page with the lowest level from the updated page record table for display; When the to-be-executed operation instruction is an add page instruction, updating the page record table according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table includes: Compare the level of the page to be operated with the levels of each executed page in the page record table; When the level of the page to be operated is lower than the level of the current page with the lowest level in the page record table, adding the page to be operated as the page with the lowest level to the page record table; When the level of the page to be operated is equal to the level of the current page with the lowest level in the page record table, the current page in the page record table is replaced with the page to be operated; The method further comprises: When the level of the page to be operated is higher than the level of the current page with the lowest level in the page record table, obtaining a target page in the page record table with the same level as the page to be operated; The target page in the page record table is replaced with the page to be operated, and all the executed pages in the page record table that are lower than the level of the page to be operated are deleted.
2. The method according to claim 1, characterized in that The to-be-executed operation instruction includes a page rollback instruction and a page add instruction, and determining the to-be-operated page based on the to-be-executed operation instruction includes: When the to-be-executed operation instruction is a page rollback instruction, the to-be-operated page is a target rollback page corresponding to the page rollback instruction in the page record table; When the operation instruction to be executed is an add page instruction, the page to be operated is a page to be added.
3. The method according to claim 2, characterized in that When the to-be-executed operation instruction is a page rollback instruction, updating the page record table according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table includes: Delete each executed page in the page record table that is lower than the level of the page to be operated.
4. The method according to claim 1, characterized in that: Before obtaining the page record table of the target interface and the operation instructions to be executed, the method further includes: After the target interface is started, the page with the highest level is displayed on the target interface and added to the page record table to complete the initialization of the page record table.
5. An interface interaction device, characterized in that: include: An acquisition module, used to acquire a page record table of a target interface and an operation instruction to be executed, wherein the page record table records the executed pages according to the hierarchical order of the executed pages of the target interface; A first processing module, configured to determine a page to be operated based on the operation instruction to be executed; A second processing module, configured to update the page record table according to the hierarchical relationship between the page to be operated and each executed page in the page record table; When the to-be-executed operation instruction is an add page instruction, the page record table is updated according to the hierarchical relationship between the to-be-operated page and each executed page in the page record table, including: comparing the hierarchical level of the to-be-operated page with the hierarchical levels of each executed page in the page record table; when the hierarchical level of the to-be-operated page is lower than the hierarchical level of the current page with the lowest hierarchical level in the page record table, adding the to-be-operated page as the page with the lowest hierarchical level to the page record table; when the hierarchical level of the to-be-operated page is equal to the hierarchical level of the current page with the lowest hierarchical level in the page record table, replacing the current page in the page record table with the to-be-operated page; when the hierarchical level of the to-be-operated page is higher than the hierarchical level of the current page with the lowest hierarchical level in the page record table, obtaining a target page in the page record table with the same hierarchical level as the to-be-operated page; replacing the target page in the page record table with the to-be-operated page, and deleting all executed pages in the page record table with a hierarchical level lower than that of the to-be-operated page; The execution module is used to extract the current page with the lowest level from the updated page record table for display.
6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 4 by executing the computer instructions.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Interface switching method and device and electronic equipment
CN112148171A