Page switching method and device, equipment, storage medium and program product

By listening to page switching events and adjusting page attribute information, the problem of unsmooth navigation bar switching in mini programs was solved, achieving smoothness and efficiency in page switching.

CN118916112AInactive Publication Date: 2024-11-08CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD

Patent Information

Application Number
CN202411175084.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When dealing with large amounts of page data, the problem of unsmooth navigation bar switching, especially in mini-programs, is difficult to solve effectively with existing technologies.

Method used

By listening to page switching events, we can obtain and adjust the attribute information of different pages, such as display format and display attributes, to achieve smooth page switching.

Benefits of technology

It simplifies the webpage switching process, avoids the problem of unsmooth navigation bar switching under large data volume, and improves the smoothness of page switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916112A_ABST
    Figure CN118916112A_ABST
Patent Text Reader

Abstract

The invention relates to a page switching method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining attribute information of a first page and attribute information of a second page when it is monitored that a page switching event exists in a target webpage; wherein at least two pages are arranged in the target webpage; the first page is a display page before the page switching event; the second page is a to-be-displayed page corresponding to the page switching event; and adjusting the attribute information of the first page and the attribute information of the second page to switch a display page in the target webpage from the first page to the second page. By adopting the method, the problem of unsmooth switching of the navigation bar can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page switching method, device, equipment, storage medium and program product. Background Art

[0002] With the rapid development of big data technology, more and more mobile applications (Application, APP) have emerged. In view of the fact that mobile applications may occupy mobile phone memory and have low usage frequency, mini programs have come into being. Users can complete the corresponding operations without downloading APP.

[0003] However, since the mini program is composed of multiple navigation bar pages merged into a complete page, when the amount of page data is large, the navigation bar switching may not be smooth, which needs to be solved urgently. Summary of the invention

[0004] Based on this, it is necessary to provide a page switching method, device, equipment, storage medium and program product that can avoid the unsmooth switching of the navigation bar in response to the above technical problems.

[0005] In a first aspect, the present application provides a page switching method, comprising:

[0006] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0007] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0008] In one of the embodiments, the process of constructing the target web page includes: obtaining a target container component and adding at least two page components to the target container component; adding corresponding page elements to each page component according to the component type of each page component; setting attribute information of each page component according to the page elements in each page component; and generating the target web page based on the target container component.

[0009] In one of the embodiments, the method also includes: adding corresponding page elements to the newly added page component according to the component type of the newly added page component, and setting the attribute information of the newly added page according to the page elements in the newly added page component; adding the newly added page component to the target container component, and updating the target web page according to the added target container component.

[0010] In one of the embodiments, the attribute information includes display attributes, and accordingly, adjusting the attribute information of the first page and the attribute information of the second page includes: adjusting the display attribute of the first page to hide, and adjusting the display attribute of the second page to show.

[0011] In one of the embodiments, the method further includes: in case of detecting that the user logs into the target webpage, displaying a default display page of the target webpage to the user.

[0012] In one embodiment, displaying a default display page of a target webpage to a user includes: obtaining a user type of the user; determining a default display page of the target webpage according to the user type, and displaying the corresponding default display page to the user.

[0013] In a second aspect, the present application further provides a page switching device, comprising:

[0014] The information acquisition module is used to acquire the attribute information of the first page and the attribute information of the second page when a page switching event is detected in the target webpage; wherein the target webpage is provided with at least two pages; the first page is the display page before the page switching event; and the second page is the page to be displayed corresponding to the page switching event;

[0015] The page switching module is used to adjust the attribute information of the first page and the attribute information of the second page to switch the display page in the target web page from the first page to the second page.

[0016] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0017] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0018] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0019] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0020] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0021] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0022] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0023] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0024] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0025] The above-mentioned page switching method, device, equipment, storage medium and program product set at least two pages in the target web page, and when a page switching event is detected in the target web page, adjust the display page of the target web page by adjusting the attribute information of different pages, so that the process of switching the entire web page in the prior art is simplified to the process of switching different pages in the target web page, avoiding the problem of unsmooth switching of the navigation bar caused by a large amount of page data, that is, the whole process can avoid the problem of unsmooth switching of the navigation bar. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 An application environment diagram of a page switching method provided in this embodiment;

[0028] Figure 2 A schematic diagram of a flow chart of a page switching method provided in this embodiment;

[0029] Figure 3A schematic diagram of a process for constructing a target web page provided in this embodiment;

[0030] Figure 4 A schematic diagram of a flow chart of another page switching method provided in this embodiment;

[0031] Figure 5 A structural block diagram of a page switching device provided in this embodiment;

[0032] Figure 6 A structural block diagram of another page switching device provided in this embodiment;

[0033] Figure 7 This is a diagram of the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The page switching method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Specifically, when the server 104 monitors the existence of a page switching event in the target web page, it obtains the attribute information of the first page and the attribute information of the second page; and adjusts the attribute information of the first page and the attribute information of the second page to switch the display page in the target page from the first page to the second page. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0036] In one embodiment, Figure 2 As shown, a page switching method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following steps:

[0037] S201, when a page switching event is detected in a target web page, acquiring attribute information of a first page and attribute information of a second page.

[0038] Among them, the target web page can be a web page displayed on a personal computer (PC) or a web page displayed on a mobile terminal, and at least two pages are set in the target web page. Exemplarily, the target web page in this embodiment can refer to a small program web page displayed on a mobile terminal. The page switching event is an event that occurs in the target web page and requires the currently displayed page to be switched to another page. The first page is the display page before the page switching event; the second page is the page to be displayed corresponding to the page switching event. It can be understood that when the user browses the target web page, he can use the navigation information of a page as the page to be displayed corresponding to the page switching event by clicking on the navigation information of the page. The attribute information of the first page and the attribute information of the second page may include information describing the color tone, display form, display area and display timing of the corresponding page.

[0039] When the user manually switches pages, a page switching event is triggered. At this time, the server can use the page being displayed before the page switching event as the first page, and obtain the attribute information of the first page, and use the page to be displayed corresponding to the page switching event as the second page, and obtain the attribute information of the second page. Specifically, when a page switching event is detected in the target web page, the identification information of the target web page can be obtained first, and then the page identifications of the first page and the second page corresponding to the page switching event can be determined. According to the page identification of the first page, the attribute information of the first page can be obtained; according to the page identification of the second page, the attribute information of the second page can be obtained.

[0040] S202: Adjust the attribute information of the first page and the attribute information of the second page to switch the display page in the target web page from the first page to the second page.

[0041] Specifically, in this embodiment, the display form in the attribute information of the first page can be adjusted, and the display form in the attribute information of the second page can be adjusted. Exemplarily, the display form of the first page is adjusted to hidden, and the display form of the second page is adjusted to display, so that the display page in the target web page is switched from the first page to the second page.

[0042] In the above-mentioned page switching method, at least two pages are set in the target web page. When a page switching event is detected in the target web page, the display page of the target web page is adjusted by adjusting the attribute information of different pages, so that the process of switching the entire web page in the prior art is simplified to the process of switching different pages in the target web page, avoiding the problem of unsmooth switching of the navigation bar caused by a large amount of page data, that is, the whole process can avoid the problem of unsmooth switching of the navigation bar.

[0043] On the basis of the above embodiments, further, the above page switching method is executed when the user logs in to the target web page. In one embodiment, the target web page includes a default display page. Accordingly, this embodiment can be to display the default display page of the target web page to the user when it is detected that the user has logged in to the target web page.

[0044] Furthermore, in order to enable the target webpage to display different homepages to different users according to their login requirements, in one embodiment, different users correspond to different user types, and different user types display different pages when logging in to the target webpage. Accordingly, in this embodiment, the user type of the user can be obtained; the default display page of the target webpage is determined according to the user type, and the corresponding default display page is displayed to the user.

[0045] For example, the default display pages corresponding to different user types may be predetermined, and when a corresponding type of user is detected to log in, the corresponding default display page is set for display, so as to meet the login requirements of different types of users for the target web page.

[0046] On the basis of the above embodiments, in order to make the page switching method provided by the embodiment of the present application more complete, in one embodiment, Figure 3 As shown, a method for constructing a target web page is provided, comprising the following steps:

[0047] S301, obtaining a target container component, and adding at least two page components to the target container component.

[0048] The target container component may be a predetermined blank container, and the page component may be a predetermined blank page component.

[0049] Exemplarily, in this embodiment, a tabbar can be created for the target container component and used as a parent component. Corresponding tabbar-item components are set for at least two page components and used as child components, and then at least two tabbar-item components are added to the tabbar.

[0050] It should be noted that each tabbar-item component has a unique val attribute, and the corresponding ref attribute registers the component information on the parent component. When the user selects different tabbar-item components in the tabbar component, the target container component can determine the page to be displayed based on the val attribute of the tabbar-item component.

[0051] S302: Add corresponding page elements to each page component according to the component type of each page component.

[0052] The page elements are the content to be displayed in the page. For example, the page elements may include text content, image content, or website content, which is not limited.

[0053] Exemplarily, in this embodiment, the component type of each page component can be predetermined, and can be a home page type or an additional page type. Of course, corresponding component types can also be set for each page component according to the actual needs of the development plan.

[0054] It is understandable that different component types correspond to different page elements. For example, the page elements added to the page component of the additional page type may be elements of lower importance, while the page elements in the page component of the home page type may be elements of higher importance. In this embodiment, different page elements can be matched to different page components as needed, and the page elements can be added to the corresponding page components.

[0055] S303: Setting attribute information of each page component according to the page elements in each page component.

[0056] Exemplarily, in this embodiment, different page elements correspond to different attribute information. If a page component contains a page element with a hidden attribute, the attribute information of the page component is determined to be hidden. If all page elements in a page component have a display attribute, the attribute information of the page component is determined to be display.

[0057] Exemplarily, in this embodiment, all page elements in a certain page component may be input into a preset attribute information determination model to obtain the attribute information of the page component.

[0058] S304: Generate a target web page based on the target container component.

[0059] Exemplarily, in this embodiment, the target container component may be used as the target webpage, or the target container component may be further configured to obtain the target webpage, which is not limited thereto.

[0060] It should be noted that after the target webpage is generated, if there is a new page component, then in this embodiment, according to the component type of the new page component, a corresponding page element can be added to the new page component, and according to the page element in the new page component, the attribute information of the new page can be set; the new page component is added to the target container component, and the target webpage is updated according to the added target container component. Specifically, the process of adding a new page component to the target webpage is the same as the process of adding a page component to the target container component, which will not be repeated here.

[0061] On the basis of the above embodiments, further, in one embodiment, the attribute information includes display attributes, and accordingly, the specific implementation of adjusting the attribute information of the first page and the attribute information of the second page may be: adjusting the display attribute of the first page to hide, and adjusting the display attribute of the second page to display. Then, the first page is hidden, and the second page is displayed.

[0062] On the basis of the above embodiments, further, in order to facilitate those skilled in the art to understand the present solution, in one embodiment, Figure 4 As shown, the page switching method provided by this application is described in detail, including the following steps:

[0063] S401, when it is detected that a user logs into a target webpage, obtaining the user type of the user.

[0064] S402, determining a default display page of the target web page according to the user type, and displaying the corresponding default display page to the user.

[0065] S403: When a page switching event is detected in the target web page, the attribute information of the first page and the attribute information of the second page are obtained.

[0066] The target web page is provided with at least two pages. The first page is the display page before the page switching event; the second page is the page to be displayed corresponding to the page switching event;

[0067] Specifically, the process of constructing the target web page includes: obtaining the target container component and adding at least two page components in the target container component; adding corresponding page elements to each page component according to the component type of each page component; setting the attribute information of each page component according to the page elements in each page component; and generating the target web page based on the target container component.

[0068] S404: in the case where there is a newly added page component, according to the component type of the newly added page component, a corresponding page element is added to the newly added page component, and according to the page element in the newly added page component, attribute information of the newly added page is set.

[0069] S405, adding the newly added page component to the target container component, and updating the target web page according to the added target container component.

[0070] S406: Adjust the display attribute of the first page to hidden, and adjust the display attribute of the second page to displayed, so as to switch the displayed page in the target web page from the first page to the second page.

[0071] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0072] Based on the same inventive concept, the embodiment of the present application also provides a page switching device for implementing the page switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more page switching device embodiments provided below can refer to the limitations of the page switching method above, and will not be repeated here.

[0073] In one embodiment, Figure 5 As shown, a page switching device is provided, including: an information acquisition module 510 and a page switching module 520, wherein:

[0074] The information acquisition module 510 is used to acquire the attribute information of the first page and the attribute information of the second page when a page switching event is detected in the target web page.

[0075] Among them, at least two pages are set in the target web page; the first page is the display page before the page switching event; the second page is the page to be displayed corresponding to the page switching event.

[0076] The page switching module 520 is used to adjust the attribute information of the first page and the attribute information of the second page to switch the display page in the target web page from the first page to the second page.

[0077] In one embodiment, Figure 6 As shown, the page switching device also includes a web page construction module 530, including a component acquisition unit, which is used to acquire a target container component and add at least two page components to the target container component; an element adding unit, which is used to add corresponding page elements to each page component according to the component type of each page component; a property setting unit, which is used to set the property information of each page component according to the page elements in each page component; and a web page generation unit, which is used to generate a target web page based on the target container component.

[0078] In one embodiment, the web page construction module also includes an element adding unit, which is used to add corresponding page elements to the newly added page component according to the component type of the newly added page component, and set the attribute information of the newly added page according to the page elements in the newly added page component; a web page updating unit, which is used to add the newly added page component to the target container component, and update the target web page according to the added target container component.

[0079] In one embodiment, the attribute information includes a display attribute, and accordingly, the page switching module is used to adjust the display attribute of the first page to be hidden, and adjust the display attribute of the second page to be displayed.

[0080] In one embodiment, the page switching device further includes a page display module, which is used to display a default display page of the target web page to the user when it is detected that the user logs in to the target web page.

[0081] In one embodiment, the page display module includes a user type acquisition unit for acquiring the user type of the user; a page display unit for determining a default display page of the target web page according to the user type, and displaying the corresponding default display page to the user.

[0082] Each module in the above-mentioned page switching device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0083] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a page switching method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0084] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0085] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0086] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0087] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0088] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0089] Get the target container component and add at least two page components to the target container component;

[0090] According to the component type of each page component, add corresponding page elements to each page component;

[0091] According to the page elements in each page component, set the attribute information of each page component;

[0092] Generates a target web page based on the target container component.

[0093] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0094] According to the component type of the newly added page component, add corresponding page elements to the newly added page component, and set the attribute information of the newly added page according to the page elements in the newly added page component;

[0095] Add the newly added page component to the target container component, and update the target web page according to the added target container component.

[0096] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0097] The display attribute of the first page is adjusted to hide, and the display attribute of the second page is adjusted to show.

[0098] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0099] When it is detected that the user logs in to the target webpage, the default display page of the target webpage is displayed to the user.

[0100] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0101] Get the user type of the user;

[0102] The default display page of the target web page is determined according to the user type, and the corresponding default display page is displayed to the user.

[0103] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0104] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0105] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0107] Get the target container component and add at least two page components to the target container component;

[0108] According to the component type of each page component, add corresponding page elements to each page component;

[0109] According to the page elements in each page component, set the attribute information of each page component;

[0110] Generates a target web page based on the target container component.

[0111] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0112] According to the component type of the newly added page component, add corresponding page elements to the newly added page component, and set the attribute information of the newly added page according to the page elements in the newly added page component;

[0113] Add the newly added page component to the target container component, and update the target web page according to the added target container component.

[0114] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0115] The display attribute of the first page is adjusted to hide, and the display attribute of the second page is adjusted to show.

[0116] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0117] When it is detected that the user logs in to the target webpage, the default display page of the target webpage is displayed to the user.

[0118] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0119] Get the user type of the user;

[0120] The default display page of the target web page is determined according to the user type, and the corresponding default display page is displayed to the user.

[0121] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0122] When a page switching event is detected in the target webpage, the attribute information of the first page and the attribute information of the second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event;

[0123] The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

[0124] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0125] Get the target container component and add at least two page components to the target container component;

[0126] According to the component type of each page component, add corresponding page elements to each page component;

[0127] According to the page elements in each page component, set the attribute information of each page component;

[0128] Generates a target web page based on the target container component.

[0129] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0130] According to the component type of the newly added page component, add corresponding page elements to the newly added page component, and set the attribute information of the newly added page according to the page elements in the newly added page component;

[0131] Add the newly added page component to the target container component, and update the target web page according to the added target container component.

[0132] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0133] The display attribute of the first page is adjusted to hide, and the display attribute of the second page is adjusted to show.

[0134] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0135] When it is detected that the user logs in to the target webpage, the default display page of the target webpage is displayed to the user.

[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0137] Get the user type of the user;

[0138] The default display page of the target web page is determined according to the user type, and the corresponding default display page is displayed to the user.

[0139] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0140] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A page switching method, characterized in that: The method comprises: When a page switching event is detected in a target webpage, the attribute information of a first page and the attribute information of a second page are obtained; wherein the target webpage is provided with at least two pages; the first page is a display page before the page switching event; and the second page is a page to be displayed corresponding to the page switching event; The attribute information of the first page and the attribute information of the second page are adjusted to switch the display page in the target web page from the first page to the second page.

2. The method according to claim 1, characterized in that The process of constructing the target web page includes: Obtain a target container component, and add at least two page components to the target container component; According to the component type of each of the page components, adding corresponding page elements to each of the page components; According to the page elements in each of the page components, setting the attribute information of each of the page components; The target webpage is generated based on the target container component.

3. The method according to claim 2, characterized in that The method further comprises: According to the component type of the newly added page component, a corresponding page element is added to the newly added page component, and according to the page element in the newly added page component, attribute information of the newly added page is set; The newly added page component is added to the target container component, and the target web page is updated according to the added target container component.

4. The method according to any one of claims 1 to 3, characterized in that The attribute information includes display attributes. Accordingly, the adjusting the attribute information of the first page and the attribute information of the second page includes: The display attribute of the first page is adjusted to be hidden, and the display attribute of the second page is adjusted to be displayed.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When it is detected that a user logs in to the target webpage, a default display page of the target webpage is displayed to the user.

6. The method according to claim 5, characterized in that The default display page for displaying the target web page to the user includes: Get the user type of the user; A default display page of the target web page is determined according to the user type, and the corresponding default display page is displayed to the user.

7. A page switching device, characterized in that: The device comprises: The information acquisition module is used to acquire the attribute information of the first page and the attribute information of the second page when a page switching event is detected in the target webpage; wherein the target webpage is provided with at least two pages; the first page is the display page before the page switching event; and the second page is the page to be displayed corresponding to the page switching event; The page switching module is used to adjust the attribute information of the first page and the attribute information of the second page to switch the display page in the target web page from the first page to the second page.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Page switching management method and device and mobile terminal

    CN108345480A

  • Page switching method and device, electronic device and storage medium

    CN109446459A

  • Page display method and device, electronic equipment and computer readable storage medium

    CN110134895A

  • Display device and browser multi-label page media resource playing method

    CN113507646A

  • Multi-webpage video playing method and display device

    CN113660532A

Cited By

  • Page switching method and device, terminal and storage medium

    CN119691303A