Page control method, page control device, electronic device, and storage medium

By managing page controllers using a stack structure and leveraging the page navigation and return logic of the navigation controller, the problem of irrelevant pages flashing during page transitions was solved, thus improving the user experience.

CN115061766BActive Publication Date: 2026-06-02CHINA PING AN LIFE INSURANCE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA PING AN LIFE INSURANCE CO LTD
Filing Date
2022-06-28
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing technologies often cause irrelevant pages to flash during page transitions, resulting in a poor user experience.

Method used

The navigation controller, which uses a stack structure, manages the page controllers. Page navigation and return are achieved through the page controller at the top of the stack. Unnecessary page flashing is avoided by using the logic processing of page navigation instructions and page return.

Benefits of technology

It achieves a natural and smooth page navigation and return, avoids flashing of irrelevant pages, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061766B_ABST
    Figure CN115061766B_ABST
Patent Text Reader

Abstract

The application discloses a page control method, a page control device, an electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a first navigation controller of an application program, and acquiring a first page controller located at the top of the stack from the first navigation controller to control the application program to display a first display page. In response to a page jump instruction, a second display page is determined. In the first navigation controller, a second page controller of the second display page is subjected to stack processing to obtain a second navigation controller to control the application program to jump from the first display page to the second display page. A first return page corresponding to the second display page is acquired. If the second navigation controller comprises a third page controller of the first return page, a target page controller located between the second page controller and the third page controller is determined in the second navigation controller, and the target page controller is deleted from the second navigation controller, so that irrelevant pages are prevented from being displayed when the page jumps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a page control method, page control device, electronic device, and storage medium. Background Technology

[0002] Currently, front-end page development often involves switching between functional pages of different business functions. In existing methods, after opening multiple functional pages of business A, if it's necessary to navigate to a specific functional page of business B, the system typically returns to the main page of business A first, and then navigates to the specified functional page of business B. This ensures that it can subsequently return to the main page of business A from the specified functional page of business B. However, this method is prone to displaying irrelevant pages during page transitions, such as the main page of business A mentioned above. Therefore, how to avoid displaying irrelevant pages during page transitions is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0003] The main objective of this application is to provide a page control method, page control device, electronic device, and storage medium, which aims to prevent irrelevant pages from flashing during page transitions.

[0004] To achieve the above objectives, a first aspect of this application provides a page control method, the method comprising:

[0005] Obtain the first navigation controller of the application, which is used to store at least two page controllers in a stack structure;

[0006] Obtain the first page controller from the first navigation controller, wherein the first page controller is the page controller located at the top of the stack in the first navigation controller;

[0007] The first page controller controls the application to display the first display page;

[0008] Obtain a page redirection instruction, and determine the second display page based on the page redirection instruction;

[0009] In the first navigation controller, the second page controller of the second display page is pushed onto the stack to obtain the second navigation controller;

[0010] The second page controller controls the application to jump from the first display page to the second display page;

[0011] Get the first returned page corresponding to the second displayed page;

[0012] If the second navigation controller includes a third page controller of the first return page, then a target page controller located between the second page controller and the third page controller is determined in the second navigation controller;

[0013] The target page controller is removed from the second navigation controller to obtain the third navigation controller.

[0014] In some optional implementations, after obtaining the first return page corresponding to the second display page, the method further includes:

[0015] If the second navigation controller does not include the third page controller, then upon detecting a page return instruction, the second page controller is popped from the stack and the third page controller is pushed onto the stack to obtain a fourth navigation controller. The third page controller is used to control the application to return from the second display page to the first return page. A second return page specified for the first return page is obtained. The fourth page controller for the second return page and a reference page controller located between the third and fourth page controllers are determined from the fourth navigation controller. The reference page controller is removed from the fourth navigation controller to obtain a fifth navigation controller.

[0016] In some optional implementations, controlling the application to return from the second display page to the first return page via the third page controller includes: obtaining background request data corresponding to the first return page; refreshing the first return page according to the background request data to obtain a refreshed first return page; and controlling the application to return from the second display page to the refreshed first return page via the third page controller.

[0017] In some optional implementations, obtaining the first return page corresponding to the second display page includes: obtaining a preset page path, the page path being used to specify the jump order of different display pages; obtaining a first page sequence corresponding to the second display page according to the page path, the first page sequence including at least two target display pages arranged in jump order; obtaining the position information of the second display page in the first page sequence to obtain the target page position; if the target page position is not the first position, then determining the target display page arranged before the second display page in the first page sequence as the first return page.

[0018] In some optional implementations, after obtaining the position information of the second display page in the first page sequence, the method further includes: if the target page position is the first position, then according to the page path, obtaining the second page sequence corresponding to the first display page, wherein the second page sequence includes at least two reference display pages arranged in jump order; obtaining the initial page position specified for the second page sequence; and obtaining the reference display page corresponding to the initial page position from the second page sequence as the first return page.

[0019] In some optional implementations, the step of deleting the target page controller from the second navigation controller to obtain the third navigation controller includes: adding a delete tag to the target page controller; traversing all page controllers in the second navigation controller; during the traversal of all page controllers in the second navigation controller, determining the traversed page controller as a specified page controller; if the specified page controller has the delete tag added, deleting the specified page controller from the second navigation controller to update the second navigation controller; and after traversing all page controllers in the second navigation controller, determining the latest second navigation controller as the third navigation controller.

[0020] In some optional implementations, adding a delete tag to the target page controller includes: obtaining a loading object corresponding to the target page controller, the loading object being invoked by the application during application runtime; obtaining tag operation information, the tag operation information representing the operation information of a target tag operation, the target tag operation being used to indicate adding a delete tag to the target page controller; writing the tag operation information into the loading object to obtain a new loading object, such that the target tag operation is executed when the application invokes the new loading object.

[0021] To achieve the above objectives, a second aspect of this application provides a page control device, the device comprising:

[0022] The acquisition module is configured to acquire the first navigation controller of the application, wherein the first navigation controller is configured to store at least two page controllers in a stack structure; and to acquire the first page controller from the first navigation controller, wherein the first page controller is the page controller located at the top of the stack in the first navigation controller.

[0023] The first control module is used to control the application to display the first display page through the first page controller;

[0024] The first determining module is used to obtain a page jump instruction and determine the second display page according to the page jump instruction;

[0025] The first processing module is used to perform a stack-based process on the second page controller of the second display page in the first navigation controller to obtain the second navigation controller;

[0026] The second control module is used to control the application to jump from the first display page to the second display page through the second page controller;

[0027] The acquisition module is further configured to acquire the first return page corresponding to the second display page;

[0028] The second determining module is used to determine a target page controller located between the second page controller and the third page controller in the second navigation controller when the second navigation controller includes a third page controller of the first return page;

[0029] The second processing module is used to remove the target page controller from the second navigation controller to obtain the third navigation controller.

[0030] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for enabling communication between the processor and the memory. When the program is executed by the processor, it implements the page control method described in the first aspect.

[0031] To achieve the above objectives, a fourth aspect of the present application provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs that can be executed by one or more processors to implement the page control method described in the first aspect.

[0032] The page control method, page controller device, electronic device, and storage medium proposed in this application employ a stack-structured first navigation controller to store page controllers. The page controller at the top of the stack within the first navigation controller controls the application to display a first display page. In response to a page jump instruction, a second page controller for the second display page is added to the first navigation controller to obtain a second navigation controller. At this point, the second page controller is at the top of the stack, thus allowing the application to jump from the first display page to the second display page, achieving page jump. Next, the first return page corresponding to the second display page is obtained. If the second navigation controller includes a third page controller for the first return page, a target page controller located between the second and third page controllers is determined within the second navigation controller, and this target page controller is removed from the second navigation controller to obtain a fourth navigation controller. Based on this, simply popping the second page controller from the stack within the third navigation controller, causing the third navigation controller to return to the top of the stack, allows the application to return from the second display page to the first return page, achieving the page return effect. As can be seen, this method ensures that the second display page can return to the designated first return page without having to jump from the first display page to the first return page and then from the first return page to the second display page. Therefore, it avoids the problem of flashing unnecessary pages and helps improve the user's page experience. Attached Figure Description

[0033] Figure 1 This is a flowchart of the page control method provided in the embodiments of this application;

[0034] Figure 2 This is a visual schematic diagram of a page path in an embodiment of this application;

[0035] Figure 3 yes Figure 1 A detailed flowchart of step S107 is shown below;

[0036] Figure 4 This is a flowchart illustrating a page return step in an embodiment of this application;

[0037] Figure 5 yes Figure 1 A detailed flowchart of step S109 is shown below;

[0038] Figure 6 This is a schematic diagram illustrating the application of a navigation controller in an embodiment of this application;

[0039] Figure 7 This is a schematic diagram illustrating a page redirection application in an embodiment of this application;

[0040] Figure 8This is a schematic diagram of the structure of the page control device provided in the embodiments of this application;

[0041] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0045] First, let's analyze some of the terms used in this application:

[0046] Artificial Intelligence (AI) is a new branch of computer science that studies, develops, and applies theories, methods, technologies, and systems to simulate, extend, and expand human intelligence. It aims to understand the essence of intelligence and produce intelligent machines that can react in a way similar to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing, and expert systems. AI can simulate the information processes of human consciousness and thought. Furthermore, AI utilizes digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceiving the environment, acquiring knowledge, and using that knowledge to achieve optimal results.

[0047] Natural Language Processing (NLP): NLP uses computers to process, understand, and utilize human language (such as Chinese and English). NLP is a branch of artificial intelligence and an interdisciplinary field of computer science and linguistics, often referred to as computational linguistics. NLP includes syntactic analysis, semantic analysis, and discourse understanding. It is commonly used in machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, intent recognition, information extraction and filtering, text classification and clustering, sentiment analysis, and opinion mining. It involves data mining, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computation.

[0048] Information extraction is a text processing technique that extracts factual information such as entities, relationships, and events from natural language text and outputs it as structured data. Information extraction is a technique for extracting specific information from text data. Text data is composed of specific units, such as sentences, paragraphs, and chapters. Text information is composed of smaller, specific units, such as characters, words, phrases, sentences, paragraphs, or combinations of these units. Extracting noun phrases, names of people, and place names from text data is an example of text information extraction. Of course, text information extraction techniques can extract information of various types.

[0049] Based on this, embodiments of this application provide a page control method, a page control device, an electronic device, and a storage medium, which aim to prevent irrelevant pages from flashing during page transitions.

[0050] The page control method, page control device, electronic device, and storage medium provided in the embodiments of this application are specifically described through the following embodiments. First, the page control method in the embodiments of this application is described.

[0051] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0052] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0053] The page control method provided in this application relates to the field of computer technology. The page control method provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the page control method, but is not limited to the above forms.

[0054] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0055] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards of the relevant countries and regions. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data for the proper functioning of the embodiments of this application obtained.

[0056] Figure 1 This is an optional flowchart of the page control method provided in the embodiments of this application. Figure 1 The method may include, but is not limited to, steps S101 to S109.

[0057] Step S101: Obtain the first navigation controller of the application, which is used to store at least two page controllers in a stack structure.

[0058] In this embodiment, the first navigation controller manages a stack of at least two page controllers. Each page controller corresponds to a different display page. Specifically, the page controller receives page requests for the corresponding display page and displays the page in the application according to the page request. It can also extract relevant data from the display page and call update data to update the display page. In practical applications, the page controller at the top of the stack in the first navigation controller can control the application to display pages. Based on this, and combining the last-in-first-out (LIFO) structure of the stack, page navigation can be achieved by adding a new page controller to the first navigation controller, and page return can be achieved by popping the page controller at the top of the stack in the first navigation controller.

[0059] Step S102: Obtain the first page controller from the first navigation controller. The first page controller is the page controller located at the top of the stack in the first navigation controller.

[0060] Step S103: Control the application to display the first display page through the first page controller.

[0061] Step S104: Obtain the page jump instruction and determine the second display page according to the page jump instruction.

[0062] In this embodiment, the page jump instruction is a voice instruction received by the electronic device (such as a user's voice instruction "next page" or "please jump to page XX"), or it can be an instruction generated by the electronic device when it detects a preset page jump operation; there is no specific limitation on this. The page jump operation may include, but is not limited to, operations on the electronic device's interface, such as clicking a jump button or icon generated on the interface, clicking a jump link generated on the interface, or a swipe operation based on a specified direction on the interface (such as swiping right). It can be understood that by analyzing the specific type of the page jump instruction, the second display page indicated by the page jump instruction can be identified; the second display page represents the display page after jumping from the first display page.

[0063] Optionally, before step S104, a preset page path can be obtained in advance. The page path is used to specify the jump order of different display pages. It can be understood that the page path specifies the directionality of page jumps and page returns. In one case, if the page jump instruction carries page information (such as the aforementioned voice command and click operation on the jump link), then in step S104, the page information is directly determined according to the page jump instruction, and the second display page corresponding to the page information is obtained. In another case, if the page jump instruction does not carry page information (such as the aforementioned swipe operation), then in step S104, the target operation information can be identified according to the page jump instruction, and a preset conversion relationship can be obtained. The preset conversion relationship is used to represent the conversion relationship between operation information and page positioning information. The page positioning information is used for page positioning within the page path. Through the preset conversion relationship, the target positioning information corresponding to the target operation information is obtained, and thus the second display page is obtained from the page path based on the target positioning information.

[0064] For example, if the swipe operation is a rightward swipe of a first distance d1, the corresponding target positioning information is used to represent the display page after one jump operation based on the first display page. If the swipe operation is a rightward swipe of a second distance d2, where d2 > d1, the corresponding target positioning information is used to represent the display page after N jump operations based on the first display page, where N is a positive integer and N and the second distance d2 are directly proportional. If the swipe operation is a leftward swipe of a first distance, the corresponding target positioning information is used to represent the display page after one back operation based on the first display page.

[0065] For example, please refer to Figure 2 , Figure 2 This is a visual schematic diagram of a page path in an embodiment of this application. From Figure 2 The page path shown identifies sub-paths corresponding to the two business types. Each sub-path includes multiple display pages linked in a jump order. In other words, for any given display page, the page preceding it in the jump order can be used as the return page, and the page following it in the jump order can be used as the jump page. Therefore, in Figure 2In this embodiment, based on the sub-path corresponding to business A, the page jump order is determined as: page a1, page a2, page a3, page a4, page a5, page a6. Based on the sub-path corresponding to business B, the page jump order is determined as: page b1, page b2. It is understood that the page classification method for different business types in this embodiment can be manually specified and adjusted, without specific limitations. Further, optionally, based on actual needs or page jump operations, display pages that satisfy the jump relationship can be obtained from the sub-paths corresponding to different business types, and new associations can be added to the page paths for these display pages to continuously improve the branching of the page paths. For example, jumping from page a6 of business A to page b2 of business B, or returning from page b1 of business B to page a1 of business A, etc.

[0066] Step S105: In the first navigation controller, the second page controller of the second display page is pushed onto the stack to obtain the second navigation controller.

[0067] Step S106: Control the application to jump from the first display page to the second display page through the second page controller.

[0068] It is understood that through steps S105 and S106, the second page controller is located at the top of the stack of the second navigation controller, so the application can be controlled to jump from the first display page to the second display page through the second page controller to realize the page jump function.

[0069] Step S107: Obtain the first return page corresponding to the second display page.

[0070] In the embodiments of this application, the first returned page may refer to the first displayed page mentioned above, or it may be an associated page that precedes the second displayed page in the page path jump order, and there is no specific limitation on this.

[0071] Step S108: If the second navigation controller includes a third page controller for the first return page, then determine the target page controller located between the second page controller and the third page controller in the second navigation controller.

[0072] Step S109: Remove the target page controller from the second navigation controller to obtain the third navigation controller.

[0073] Based on step S109, simply popping the second page controller from the stack in the third navigation controller, causing the third navigation controller to return to the top of the stack, allows the application to return from the second display page to the first return page, achieving the page return effect. Therefore, through steps S101 to S109 as shown in this embodiment, it is not necessary to first jump from the first display page to the first return page and then from the first return page to the second display page to ensure that the second display page can return normally to the designated first return page. This avoids the problem of flashing unnecessary pages and improves the user's page experience.

[0074] Please see Figure 3 , Figure 3 yes Figure 1 A detailed flowchart of step S107 is shown below. Figure 3 As shown, in some embodiments, step S107 may include, but is not limited to, the following steps S301 to S304.

[0075] Step S301: Obtain the preset page path, which is used to specify the jump order of different display pages.

[0076] In some optional implementations, before step S301, user page operation data can be collected, and the user's browsed historical pages and the order of navigation within those pages can be analyzed from the page operation data to generate a page path. The historical display pages are those that meet browsing conditions, including but not limited to at least one of the following: the duration of time spent on a historical display page exceeds a specified duration; a bookmarking operation is detected for a historical display page; a sharing operation is detected for a historical display page. Therefore, this can generate personalized page paths that conform to the operating habits of different users.

[0077] Step S302: Based on the page path, obtain the first page sequence corresponding to the second display page, wherein the first page sequence includes at least two target display pages arranged in the jump order.

[0078] Specifically, in step S302, a sub-path containing the second display page can be determined from the page path. Based on the directionality of the sub-path, the first page sequence corresponding to the second display page is determined according to all display pages included in that sub-path. Figure 2 Taking the example of page b2, the corresponding first page sequence is [page b1, page b2].

[0079] Step S303: Obtain the position information of the second display page in the first page sequence to get the target page position.

[0080] It is understandable that the target page position is used to indicate the order in which the second display page is arranged in the first page sequence.

[0081] Step S304: If the target page position is not the first position, then determine the target display page that is arranged before the second display page in the first page sequence, and use it as the first return page.

[0082] Here, the first position can represent the first position in the sequence of pages. Figure 2 Taking an example, assuming the second display page is page b2, we can obtain page b1, which is arranged before page b2, from the first page sequence, and take page b1 as the first return page.

[0083] As can be seen, the page return function under the same business type can be realized through the above steps S301 to S304.

[0084] In other optional implementations, after step S304, if the target page position is the first position, then according to the page path, the second page sequence corresponding to the first display page is obtained. The second page sequence includes at least two reference display pages arranged in the jump order. An initial page position specified for the second page sequence is obtained, and the reference display page corresponding to the initial page position is obtained from the second page sequence as the first return page. The initial page position can be the first position in the second page sequence, any manually specified position in the second page sequence, or the position corresponding to a display page in the second page sequence that is related to the second display page; there is no limitation on this. (The text continues with further details about the initial page position.) Figure 2 Taking an example, assuming the second display page is page b1 and the first display page is page a6, the second page sequence corresponding to page a6 is obtained, namely [page a1, page a2, page a3, page a4, page a5, page a6]. Based on this, page a1, corresponding to the first position in the second page sequence, can be taken as the first return page. It can be seen that through the above optional implementation method, page navigation and return functions under different business types can be realized, thereby ensuring that after navigating from a page of one business type to a page of another business type, the user can still normally return to the default page of the previous business type.

[0085] Please see Figure 4 , Figure 4 This is a flowchart illustrating one page return step in an embodiment of this application. For example... Figure 4 As shown, in some embodiments, after step S107, the following steps S401 to S405 may also be included.

[0086] Step S401: If the second navigation controller does not include the third page controller, when a page return instruction is detected, the second page controller is popped from the stack and the third page controller is pushed onto the stack to obtain the fourth navigation controller.

[0087] In step S401, the page return instruction can be a voice instruction received by the electronic device (such as a user's voice instruction "previous page" or "please jump to page XX"), or it can be an instruction generated by the electronic device when it detects a preset page return operation; there is no specific limitation on this. The page return operation can include, but is not limited to, operations on the electronic device's interface, such as clicking a return button or icon generated on the interface, or a swipe operation based on a specified direction (such as swiping left). It can be understood that after step S401, the third page controller will be located at the top of the stack of the fourth navigation controller.

[0088] Step S402: Control the application to return from the second display page to the first return page through the third page controller.

[0089] In some optional implementations, if the first returned page is used to display background request data, for example, if the background request data is a list of videos determined by the selected tags in the video category tag list, and the background request data needs to be updated every time the user switches to the first returned page, then step S402 may include, but is not limited to, the following steps: obtaining the background request data corresponding to the first returned page; refreshing the first returned page according to the background request data to obtain the refreshed first returned page; and controlling the application to return from the second display page to the refreshed first returned page through the third page controller.

[0090] Step S403: Obtain the second return page specified for the first return page.

[0091] In step S403, optionally, the target page sequence corresponding to the first returned page can be obtained according to the page path, and the display page arranged before the first returned page in the target page sequence can be determined as the second returned page.

[0092] Step S404: Determine the fourth page controller of the second return page and the reference page controller located between the third page controller and the fourth page controller from the fourth navigation controller.

[0093] Step S405: Remove the reference page controller from the fourth navigation controller to obtain the fifth navigation controller.

[0094] Based on step S405, simply popping the third page controller from the stack in the fourth navigation controller so that the fourth navigation controller is pushed to the top of the stack can control the application to switch from the first return page to the second return page, thus achieving the page return effect.

[0095] Please see Figure 5 , Figure 5 yes Figure 1 A detailed flowchart of step S109 is shown below. Figure 5 As shown, in some embodiments, step S109 may include, but is not limited to, the following steps S501 to S504.

[0096] Step S501: Add a delete tag to the target page controller.

[0097] In some optional implementations, step S501 may include, but is not limited to, the following steps:

[0098] First, obtain the loading object corresponding to the target page controller. This loading object is used by the application during runtime. Specifically, the loading object can be the `load` method in iOS development. Next, obtain the tagging operation information. This information represents the operation details of the target tagging operation, which is used to add or remove tags from the target page controller. Correspondingly, the tagging operation information can be the executable code used to implement the target tagging operation. Finally, write the tagging operation information into the loading object to obtain a new loading object. This allows the application to execute the target tagging operation when calling the new loading object, thus achieving intelligent tagging processing during normal application operation. In practical applications, the above steps S501 can be executed using the iOS runtime mechanism.

[0099] Step S502: Traverse all page controllers in the second navigation controller.

[0100] Step S503: During the process of traversing all page controllers in the second navigation controller, the traversed page controller is identified as the specified page controller. If the specified page controller has a delete tag, the specified page controller is deleted from the second navigation controller to update the second navigation controller.

[0101] Step S504: After traversing all page controllers in the second navigation controller, determine the latest second navigation controller as the third navigation controller.

[0102] As can be seen, steps S501 to S504 enable the marking and deletion operations of the target page controller, which helps to improve the batch processing efficiency of the navigation controller.

[0103] For a better understanding of the embodiments of this application, please refer toFigure 6 , Figure 6 This is a schematic diagram illustrating the application of a navigation controller in an embodiment of this application. For example... Figure 6 As shown, assuming the first navigation controller 601 includes page controllers Ca1, Ca2, Ca3, Ca4, Ca5, and Ca6, if the second display page to be navigated to is page b2, and its corresponding second page controller is page controller Cb2, then page controller Cb2 is pushed onto the stack in the first navigation controller 601 to obtain the second navigation controller 602. Assuming the first return page corresponding to the second display page is page b1, it can be seen that the second navigation controller 602 does not contain the third page controller corresponding to page b1, i.e., page controller Cb1. Therefore, when a page return instruction is detected, page controller Cb2 can be popped from the stack in the second navigation controller 602, and page controller Cb1 can be pushed onto the stack to obtain the fourth navigation controller 603. At this point, assuming the fourth page controller corresponding to the second return page is page controller Ca1, the reference page controllers between page controller Ca1 and page controller Cb1 are determined from the fourth navigation controller 603, namely page controllers Ca2, Ca3, Ca4, Ca5, and Ca6. Therefore, page controllers Ca2, Ca3, Ca4, Ca5, and Ca6 are deleted from the fourth navigation controller 603, resulting in the fifth navigation controller 604. It can be seen that throughout the process, the page navigation in the application is as follows: Figure 7 As shown, it is possible to jump from display page a6 to display page b2, and then return from display page b2 to display page b1, making the page jump effect more natural and avoiding unnecessary page flashes.

[0104] Please see Figure 8 This application also provides a page control device that can implement the above-described page control method. The page control device includes an acquisition module 801, a first control module 802, a first determination module 803, a first processing module 804, a second control module 805, a second determination module 806, and a second processing module 807, wherein:

[0105] The acquisition module 801 is used to acquire the first navigation controller of the application, the first navigation controller is used to store at least two page controllers in a stack structure; and to acquire the first page controller from the first navigation controller, the first page controller being the page controller located at the top of the stack in the first navigation controller.

[0106] The first control module 802 is used to control the application to display the first display page through the first page controller.

[0107] The first determining module 803 is used to obtain a page jump instruction and determine the second display page based on the page jump instruction.

[0108] The first processing module 804 is used in the first navigation controller to perform stack processing on the second page controller of the second display page to obtain the second navigation controller.

[0109] The second control module 805 is used to control the application to jump from the first display page to the second display page through the second page controller.

[0110] The acquisition module 801 is also used to acquire the first return page corresponding to the second display page.

[0111] The second determining module 806 is used to determine the target page controller located between the second page controller and the third page controller when the second navigation controller includes a third page controller of the first return page.

[0112] The second processing module 807 is used to remove the target page controller from the second navigation controller to obtain the third navigation controller.

[0113] The specific implementation of this page control device is basically the same as the specific embodiment of the page control method described above, and will not be repeated here.

[0114] This application also provides an electronic device, which includes: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned page control method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0115] Please see Figure 9 , Figure 9 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:

[0116] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0117] The memory 902 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 using the page control method of the embodiments of this application.

[0118] The input / output interface 903 is used to implement information input and output;

[0119] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0120] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0121] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0122] This application also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, which can be executed by one or more processors to implement the above-described page control method.

[0123] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0124] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0125] It will be understood by those skilled in the art that Figures 1-9 The technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0126] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0127] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0128] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0129] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0130] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0131] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0132] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0133] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0134] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A page control method, characterized in that, The method includes: Obtain the first navigation controller of the application, which is used to store at least two page controllers in a stack structure; Obtain the first page controller from the first navigation controller, wherein the first page controller is the page controller located at the top of the stack in the first navigation controller; The first page controller controls the application to display the first display page; Obtain a page redirection instruction, and determine the second display page based on the page redirection instruction; In the first navigation controller, the second page controller of the second display page is pushed onto the stack to obtain the second navigation controller; The second page controller controls the application to jump from the first display page to the second display page; Obtaining the first return page corresponding to the second display page includes: obtaining a preset page path, the page path being used to specify the jump order of different display pages; obtaining a first page sequence corresponding to the second display page according to the page path, the first page sequence including at least two target display pages arranged in jump order; obtaining the position information of the second display page in the first page sequence to obtain the target page position; if the target page position is not the first position, then determining the target display page arranged before the second display page in the first page sequence as the first return page; wherein, the process of determining the page path includes: collecting the user's page operation data, and determining the jump order of historical display pages from the page operation data to obtain the page path; the historical display page is a display page that meets browsing conditions, the browsing conditions including but not limited to at least one of the following: the dwell time on the historical display page exceeds a specified time; a favorite operation on the historical display page is detected; a sharing operation on the historical display page is detected; If the second navigation controller includes a third page controller of the first return page, then a target page controller located between the second page controller and the third page controller is determined in the second navigation controller; The target page controller is removed from the second navigation controller to obtain the third navigation controller; If the second navigation controller does not include the third page controller, then upon detecting a page return instruction, the second page controller is popped from the stack and the third page controller is pushed onto the stack to obtain a fourth navigation controller. The third page controller is used to control the application to return from the second display page to the first return page. A second return page specified for the first return page is obtained. The fourth page controller for the second return page and a reference page controller located between the third and fourth page controllers are determined from the fourth navigation controller. The reference page controller is removed from the fourth navigation controller to obtain a fifth navigation controller.

2. The method according to claim 1, characterized in that, The step of controlling the application to return from the second display page to the first return page through the third page controller includes: Obtain the backend request data corresponding to the first returned page; The first returned page is refreshed based on the background request data to obtain the refreshed first returned page; The third page controller controls the application to return from the second display page to the refreshed first return page.

3. The method according to claim 1, characterized in that, After obtaining the position information of the second display page in the first page sequence, the method further includes: If the target page location is the first location, then according to the page path, the second page sequence corresponding to the first display page is obtained, and the second page sequence includes at least two reference display pages arranged in the jump order; Obtain the initial page position specified for the second page sequence; Obtain the reference display page corresponding to the initial page position from the second page sequence as the first return page.

4. The method according to any one of claims 1 to 3, characterized in that, The step of deleting the target page controller from the second navigation controller to obtain the third navigation controller includes: Add a delete tag to the target page controller; Iterate through all page controllers in the second navigation controller; During the process of traversing all page controllers in the second navigation controller, the traversed page controller is determined as a specified page controller. If the specified page controller has the delete tag added, the specified page controller is deleted from the second navigation controller to update the second navigation controller. After traversing all page controllers in the second navigation controller, the latest second navigation controller is determined as the third navigation controller.

5. The method according to claim 4, characterized in that, Adding a delete tag to the target page controller includes: Obtain the loading object corresponding to the target page controller, the loading object being invoked by the application during application runtime; Obtain tag operation information, which represents the operation information of the target tag operation, and the target tag operation is used to indicate adding or deleting tags for the target page controller; The marking operation information is written into the loaded object to obtain a new loaded object, so that the target marking operation is executed when the application calls the new loaded object.

6. A page control device, characterized in that, The device includes: The acquisition module is configured to acquire the first navigation controller of the application, wherein the first navigation controller is configured to store at least two page controllers in a stack structure; and to acquire the first page controller from the first navigation controller, wherein the first page controller is the page controller located at the top of the stack in the first navigation controller. The first control module is used to control the application to display the first display page through the first page controller; The first determining module is used to obtain a page jump instruction and determine the second display page according to the page jump instruction; The first processing module is used to perform a stack-based process on the second page controller of the second display page in the first navigation controller to obtain the second navigation controller; The second control module is used to control the application to jump from the first display page to the second display page through the second page controller; The acquisition module is further configured to acquire a first return page corresponding to the second display page, including: acquiring a preset page path, the page path being used to specify the jump order of different display pages; acquiring a first page sequence corresponding to the second display page according to the page path, the first page sequence including at least two target display pages arranged in jump order; acquiring the position information of the second display page in the first page sequence to obtain the target page position; if the target page position is not the first position, then determining a target display page arranged before the second display page in the first page sequence as the first return page; wherein, the process of determining the page path includes: collecting the user's page operation data, and determining the jump order of historical display pages from the page operation data to obtain the page path; the historical display page is a display page that meets browsing conditions, the browsing conditions including but not limited to at least one of the following: the dwell time on the historical display page exceeds a specified time; a favorite operation on the historical display page is detected; a sharing operation on the historical display page is detected; The second determining module is configured to: when the second navigation controller includes a third page controller for the first return page, determine a target page controller located between the second page controller and the third page controller in the second navigation controller; further configured to: if the second navigation controller does not include the third page controller, upon detecting a page return instruction, pop the second page controller from the stack and push the third page controller onto the stack in the second navigation controller to obtain a fourth navigation controller; control the application to return from the second display page to the first return page through the third page controller; obtain the second return page specified for the first return page; determine the fourth page controller for the second return page and a reference page controller located between the third page controller and the fourth page controller from the fourth navigation controller; and delete the reference page controller from the fourth navigation controller to obtain a fifth navigation controller; The second processing module is used to remove the target page controller from the second navigation controller to obtain the third navigation controller.

7. An electronic device, characterized in that, The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for enabling communication between the processor and the memory. When the program is executed by the processor, it implements the steps of the page control method as described in any one of claims 1 to 5.

8. A storage medium, said storage medium being a computer-readable storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the page control method according to any one of claims 1 to 5.