Page display method and apparatus for mini program, device, and storage medium

By synchronously enlarging the mini-program page window and page size on PC devices, and automatically splitting the display into columns when a threshold is reached, the problem of low screen utilization on PC devices is solved, achieving efficient multi-page display and information retrieval.

WO2026233155A1PCT designated stage Publication Date: 2026-11-12TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/093186
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-07
Filing Date
2026-04-27
Publication Date
2026-11-12

AI Technical Summary

Technical Problem

When running mini-programs on PC devices, the large screen size and existing technology result in low screen utilization, making it impossible to efficiently display multiple pages.

Method used

By responding to user actions in the mini-program's page window, the page window and page size are simultaneously enlarged. When a threshold is reached, it automatically enters the split-column mode, displaying multiple pages in different areas of the page window.

Benefits of technology

It improves the utilization of the device screen, reduces frequent page returns and jumps, and enhances the efficiency of information retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026093186_12112026_PF_FP_ABST
    Figure CN2026093186_12112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer and Internet technologies, and discloses a page display method and apparatus for a mini program, a device, and a storage medium. The method comprises: displaying a first page of a mini application in a page window of the mini application; in response to a first operation on the page window, synchronously increasing the size of the page window and the size of the first page; and when the size of the page window reaches a first threshold, displaying the first page in a first area of the page window, and displaying a second page of the mini program in a second area of the page window, wherein the first area and the second area do not overlap each other.
Need to check novelty before this filing date? Find Prior Art

Description

Page display methods, devices, equipment and storage media applied to mini-programs

[0001] This application claims priority to Chinese Patent Application No. 202510585360.0, filed on May 7, 2025, entitled "Page Display Method, Apparatus, Device and Storage Medium for Mini Programs", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the fields of computer and internet technology, and in particular to a page display method, apparatus, device, and storage medium for use in mini-programs. Background Technology

[0003] In recent years, with the rapid development of Internet technology, mini-programs have been widely used in various fields due to their ability to be used without installation.

[0004] In some methods, when a mini-program on a PC is opened within a target application running on a PC (Personal Computer), the mini-program's page window can be displayed on the PC. The PC version of the mini-program displays the page similarly to the mobile version, showing the currently used page in the mini-program's page window.

[0005] Technical content

[0006] This application provides a page display method, apparatus, device, and storage medium for use in mini-programs. The technical solution provided by this application is as follows:

[0007] This application provides a page display method for a mini-program, executed by an electronic device, the method comprising:

[0008] The first page of the mini-program is displayed in the page window of the mini-program;

[0009] In response to a first operation on the page window, the size of the page window and the size of the first page are simultaneously enlarged;

[0010] When the size of the page window reaches a first threshold, the first page is displayed in the first area of ​​the page window, and the second page of the mini-program is displayed in the second area of ​​the page window; wherein the first area and the second area do not overlap.

[0011] This application embodiment also provides a page display device for a mini-program, the device comprising:

[0012] The first display module is used to display the first page of the mini-program in the page window of the mini-program;

[0013] A zoom module is used to synchronously zoom in on the size of the page window and the size of the first page in response to a first operation on the page window.

[0014] The second display module is used to display the first page in a first area of ​​the page window and the second page of the mini-program in a second area of ​​the page window when the size of the page window reaches a first threshold; wherein the first area and the second area do not overlap.

[0015] This application also provides a terminal device, which includes a processor and a memory. The memory stores a computer program, which is loaded and executed by the processor to implement the page display method applied to the mini-program described above.

[0016] This application also provides a computer-readable storage medium storing a computer program, which is loaded and executed by a processor to implement the page display method applied to the applet described above.

[0017] This application also provides a computer program product, which includes a computer program that is loaded and executed by a processor to implement the page display method applied to the applet described above.

[0018] Brief description of the attached figures

[0019] Figure 1 is a schematic diagram of the implementation environment of some embodiments of this application;

[0020] Figure 2 is a schematic diagram of a PC-based applet provided in some embodiments of this application;

[0021] Figure 3 is a schematic diagram of a page window in a columnar mode provided in some embodiments of this application;

[0022] Figure 4 is a flowchart of a page display method applied to a mini-program provided in some embodiments of this application;

[0023] Figure 5 is a schematic diagram of a mobile app provided in some embodiments of this application;

[0024] Figure 6 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0025] Figure 7 is a schematic diagram illustrating page navigation on a second page according to some embodiments of this application;

[0026] Figure 8 is a schematic diagram illustrating page navigation on the first page according to some embodiments of this application;

[0027] Figure 9 is a flowchart of a page display method applied to a mini-program provided in some other embodiments of this application;

[0028] Figure 10 is a flowchart of a page display method applied to a mini-program provided in some other embodiments of this application;

[0029] Figure 11 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0030] Figure 12 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0031] Figure 13 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0032] Figure 14 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0033] Figure 15 is a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application;

[0034] Figure 16 is a flowchart of implementing the column mode according to some embodiments of this application;

[0035] Figure 17 is a schematic diagram of the layout logic of the applet provided in some embodiments of this application;

[0036] Figure 18 is a block diagram of a page display device applied to a mini-program according to some embodiments of this application;

[0037] Figure 19 is a structural block diagram of a terminal device provided in some embodiments of this application. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0039] The following describes some of the concepts involved in the embodiments of this application.

[0040] Single-column display mode: This means that the entire page window of the mini-program is a single display area, without being divided into multiple display areas. Only one page of the mini-program is displayed in the page window at any given time. Single-column display mode is the default display state when the mini-program page window has not reached the threshold for triggering column division.

[0041] Two-column display mode: This refers to the mini-program's page window being divided into two non-overlapping, independent display areas, allowing two different pages to be displayed simultaneously within the mini-program's page window. Two-column display mode is a split-column display state triggered when the mini-program's page window size reaches a first threshold.

[0042] Three-column display mode: This refers to the mini-program's page window being divided into three non-overlapping independent display areas, allowing three different pages to be displayed simultaneously within the mini-program's page window. The three-column display mode is a split-column display state triggered when the mini-program's page window size reaches a second threshold.

[0043] In this application, both the two-column display mode and the three-column display mode belong to the column mode (the column mode refers to the mode in which multiple pages of the mini program are displayed simultaneously in the page window of the mini program), while the single-column display mode belongs to the non-column mode (the non-column mode refers to the mode in which only one page of the mini program is displayed in the page window of the mini program).

[0044] The design concept of the embodiments of this application is briefly introduced below:

[0045] When a mini-program on a PC is opened from an application running on the PC, the mini-program's page window can be displayed on the PC. The display method for PC mini-programs is similar to that of mobile mini-programs, showing the currently used page in the mini-program's page window. However, because PC devices have larger screens, displaying the page in the same way as mobile mini-programs results in lower screen utilization on PCs.

[0046] To address the aforementioned problems, embodiments of this application provide a page display method, apparatus, device, and storage medium applicable to mini-programs. In this application, a first page of the mini-program is displayed in its page window. In response to a first operation on the mini-program's page window, the size of both the page window and the first page are simultaneously enlarged. When the size of the page window reaches a first threshold, the first page is displayed in a first area of ​​the page window, and a second page is displayed in a second area of ​​the page window. This achieves automatic columnar page display within the mini-program, avoiding frequent back and forth operations, improving information retrieval efficiency, and increasing the utilization rate of the device screen.

[0047] The embodiments of this application are described below with reference to the accompanying drawings. The term "some embodiments" as used herein refers to a subset of all feasible embodiments; however, "some embodiments" may correspond to the same or different subsets in all feasible embodiments, and can be combined with each other without conflict.

[0048] Please refer to Figure 1, which illustrates a schematic diagram of the implementation environment provided by some embodiments of this application. This implementation environment can be implemented as an application system. The implementation environment may include: terminal device 10 and server 11.

[0049] Terminal device 10 includes, but is not limited to, electronic devices such as PCs (Personal Computers), mobile phones, tablets, smart voice interaction devices, game consoles, wearable devices, multimedia playback devices, in-vehicle terminals, smart home appliances, AR (Augmented Reality) devices, and VR (Virtual Reality) devices. Terminal device 10 may be a device with a large display screen, such as a PC or tablet. Terminal device 10 may be a foldable screen device or a flexible screen device, or other mobile phones whose display screen can be enlarged or reduced. Terminal device 10 may run a client of the target application. In some embodiments, the applet depends on the target application to run. In some embodiments, the applet is a lightweight application running on the target application.

[0050] In some embodiments, users can open the applet within the target application.

[0051] In some embodiments, the target application may be an instant messaging application, a social application, a payment application, a lifestyle service application, etc., and this application embodiment does not limit this.

[0052] In this embodiment of the application, the mini-program may include, but is not limited to, any one of the following: life service mini-program, e-commerce shopping mini-program, office tool mini-program, health management mini-program, social entertainment mini-program, education and learning mini-program, game mini-program, etc.

[0053] Server 11 is used to provide backend services for the mini-program in terminal device 10. For example, server 11 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides 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 (Content Delivery Network), and big data and artificial intelligence platforms, but it is not limited to these.

[0054] Terminal device 10 and server 11 can communicate with each other via a network. This network can be a wired network or a wireless network.

[0055] This application proposes a page display method for mini-programs, which aims to enable mini-programs to automatically enter a split-column mode in order to improve the screen utilization of terminal devices.

[0056] S101. After the mini program is launched, obtain the initial size of the mini program's page window.

[0057] For example, please refer to Figure 2, which shows a schematic diagram of a PC-side applet provided in some embodiments of this application, namely, obtaining the initial size of the page window 21.

[0058] S102. The user performs a zoom-in operation on the page window. Performing a zoom-in operation on the page window refers to increasing the size of the page window.

[0059] S103. Get the current size of the mini-program's page window.

[0060] S104. Compare the current size of the page window with its initial size.

[0061] S105. When the current size of the page window reaches the first threshold, the mini-program automatically enters the split-column mode. That is, the mini-program can display multiple different pages simultaneously in the page window.

[0062] The zoom level of the page is determined based on the current and initial dimensions of the page window. When the zoom level of the page window reaches a first threshold, the mini-program automatically enters split-column mode.

[0063] For example, please refer to Figure 3, which shows a schematic diagram of a page window in a column mode provided in some embodiments of this application. When the magnification of the page window reaches a first threshold, the mini program automatically enters the column mode, and displays a page in the first area 31 and the second area 32 of the page window 30 respectively.

[0064] Please refer to Figure 4, which shows a flowchart of a page display method for a mini-program provided in some embodiments of this application. The executing entity for each step of this method can be a terminal device, such as terminal device 10 in the implementation environment shown in Figure 1, or a mini-program running on terminal device 10. This method may include at least one of the following steps (S410-S430):

[0065] S410 displays the first page of the mini-program in the mini-program's page window.

[0066] In some embodiments, a mini-program can be any of the mini-programs described above. The page window of a mini-program is a container provided by the mini-program for displaying its pages. In some embodiments, each mini-program corresponds to at least one page.

[0067] In some embodiments, a mini-program is a PC-based mini-program. A PC-based mini-program is a mini-program that runs on a PC.

[0068] For example, as shown in Figure 2, a PC-based app runs on the personal computer 20, and the app's page window 21 is displayed on the personal computer 20. The page window 21 displays a first page.

[0069] In some embodiments, the mini-program can also be a mobile mini-program, and the mobile mini-program is displayed in a small window. Mobile device refers to a portable device. In some embodiments, the portable device may include, but is not limited to, at least one of the following: mobile phone, tablet computer, VR device, AR device, etc., and may also include at least one of the following, which are not limited in this application embodiment. A mini-program in a small window refers to a mini-program displayed in a small window on the screen of the mobile device.

[0070] For example, please refer to Figure 5, which shows a schematic diagram of a mobile app provided in some embodiments of this application. The mobile app runs on a tablet computer 50, and the page window 51 of the app is displayed in a small window state on the tablet computer 50. The page window 51 displays a first page.

[0071] A page is a UI element in a mini-program used to display information or provide interactive operations. In some embodiments, the first page is the page currently being used by the user. In some embodiments, the first page of a mini-program can be any one of at least one page corresponding to the mini-program.

[0072] S420, in response to the first operation on the page window, synchronously enlarges the size of the page window and the size of the first page.

[0073] The first operation is used to synchronously enlarge the size of the page window and the size of the first page. In some embodiments, the first operation is implemented in at least one of the following ways: interface control, touch screen, physical control, gesture control, voice control, etc., and may also be implemented in other ways, which are not limited in this application embodiment.

[0074] Synchronously enlarging the size of the page window and the size of the first page means enlarging the content displayed on the first page while simultaneously enlarging the visible area of ​​the page window. In some embodiments, during the process of synchronously enlarging the size of the page window and the size of the first page, at least one of the following elements in the first page is enlarged: fonts, controls, images, multimedia, icons, page layout structure, etc., and other elements may also be included, which are not limited in this application embodiment.

[0075] The size of the page window indicates the size of the visible area of ​​the page window. The size of the first page indicates the size of the visible area of ​​the first page. In some embodiments, the size of the page window or the size of the first page can be in rpx (responsive pixel). rpx is a relative pixel that is converted according to the screen width of the terminal device to adapt to different terminal device screen sizes. In some embodiments, the size includes width and height.

[0076] Interface control refers to the process of interacting with the mini-program through displayed interface controls to synchronously enlarge the size of the page window and the size of the first page. Interface controls are visual controls provided by the mini-program for interaction with the user. In some embodiments, interface controls may include, but are not limited to, at least one of the following: buttons, sliders, selectors, draggable areas, etc., and may also include other controls, which are not limited in this application embodiment.

[0077] Touchscreen control refers to interacting with a mini-program via a touchscreen to simultaneously enlarge the size of the page window and the size of the first page. In some embodiments, when the first operation is implemented through a touchscreen, the first operation may include at least one of the following: clicking, dragging, swiping, long pressing, multi-finger gestures, etc., and may also include other operations, which are not limited in this application embodiment.

[0078] For example, the first operation is to enlarge the page window by extending two fingers outward on the touch screen of the terminal device.

[0079] In some embodiments, the first operation is a first drag operation targeting the edge of the page window, the first drag operation being used to enlarge the size of the page window.

[0080] The first drag operation refers to an interactive method that dynamically adjusts the size of the page window by clicking and dragging its edges. The edges of the page window include: the top edge, bottom edge, left edge, right edge, top-left vertex, bottom-left vertex, top-right vertex, and bottom-right vertex. In some embodiments, the first drag operation can be performed on any one of the aforementioned edges of the page window.

[0081] In some embodiments, the drag direction of the first drag operation and the edge of the page window on which it is applied are used to indicate the direction of the page window size adjustment.

[0082] For example, if the edge of the page window affected by the first drag operation is the right edge, and the drag direction of the first drag operation is to the right, then the page window will be enlarged in the horizontal right direction.

[0083] For example, if the edge of the page window affected by the first drag operation is the lower right vertex, and the drag direction of the first drag operation is to the lower right, then the page window will be enlarged in the horizontal lower right direction.

[0084] In some embodiments, the first operation is a double-click operation on the edge of the page window.

[0085] Physical control refers to interacting with the mini-program by inputting control commands for the first operation through physical controls, thereby synchronously enlarging the size of the page window and the size of the first page. In some embodiments, the physical control can be a physical control on the terminal device. In some embodiments, the physical control can also be a physical control on an external device connected to the terminal device. In some embodiments, the external device can include at least one of the following: mouse, keyboard, gamepad, etc., and may also include other physical controls, which are not limited in this application embodiment.

[0086] In some embodiments, a zoom control is displayed on the first page; in response to an operation on the zoom control, the size of the page window and the size of the first page are simultaneously zoomed in.

[0087] Gesture control refers to interacting with a mini-program by inputting a specified gesture to simultaneously enlarge the size of the page window and the size of the first page. In some embodiments, the specified gesture is set by relevant technical personnel. For example, a gesture of pushing open with both hands can be used to enlarge the page window. In some embodiments, the terminal device captures the user's gesture through a camera to determine whether the user's gesture is a specified gesture related to enlarging the page window. In some embodiments, the camera can be built into the terminal device or a camera connected to the terminal device via wired or wireless means.

[0088] Voice control refers to interacting with a mini-program via voice commands to simultaneously enlarge the size of the page window and the first page. Voice commands refer to the voice commands used to adjust the size of the page window. For example, a user can interact with the mini-program by saying "enlarge the page window" to simultaneously enlarge the size of the page window and the first page. In some embodiments, the terminal device captures the user's voice commands via a microphone to interact with the page window. In some embodiments, the microphone can be built into the terminal device or a microphone connected to the terminal device via a wired or wireless means.

[0089] In some embodiments, in response to a second operation on the page window, the size of the page window and the size of the first page are simultaneously reduced. The second operation is an operation for simultaneously reducing the size of the page window and the size of the first page.

[0090] It should be noted that the second operation and the first operation are a pair of operations used to adjust the size of the page window. Therefore, the implementation of the second operation is similar to that of the first operation. Please refer to the corresponding part of the first operation for relevant explanations.

[0091] S430, when the size of the page window reaches a first threshold, the first page is displayed in the first area of ​​the page window, and the second page of the mini-program is displayed in the second area of ​​the page window; wherein the first area and the second area do not overlap.

[0092] In some embodiments, when the size of the mini-program's page window does not reach a first threshold, the mini-program's page window is in a single-column display mode. In the single-column display mode, the mini-program's page window displays only one page (i.e., the first page).

[0093] In some embodiments, the size of the page window can refer to the horizontal length (i.e., width), the vertical length (i.e., height), or the area of ​​the page window (i.e., the product of the width and height of the page window).

[0094] In some embodiments, the first threshold is preset and used to determine whether to enable the split-column mode (i.e., dual-column display mode) that displays two different pages simultaneously in a page window. In some embodiments, the first threshold is preset by those skilled in the art, and this application does not limit this. In some embodiments, the first threshold can be a single threshold or a threshold range. For example, the first threshold can be 704rpx, which indicates the width threshold of the page window. When the width of the page window is greater than 704rpx, the mini-program automatically enters the split-column mode. For example, the first threshold can be [1.5, 2], which indicates the magnification threshold of the page window. When the magnification of the page window is within [1.5, 2], the mini-program automatically enters the split-column mode. The split-column mode refers to the mode of displaying multiple pages of the mini-program in the same page window.

[0095] The first area is the area in the page window used to display the first page. The second area is the area in the page window used to display the second page. Different areas in the page window are used to display different pages. The second page of a mini-program is a page that is open but not closed within the mini-program. In some embodiments, the second page can be any one of at least one page corresponding to the mini-program.

[0096] In other words, once the page window size reaches the first threshold, the mini-program automatically enters split-column mode, displaying two different pages currently open in the page window using two different areas.

[0097] In some embodiments, the magnification factor of the page window is determined based on the initial size and the current size of the page window. The magnification factor indicates the degree of magnification of the page window. When the magnification factor of the page window is greater than or equal to a first threshold, the page window automatically enters a split-screen mode, displaying the first page in the first area of ​​the page window and the second page of the mini-program in the second area of ​​the page window. The initial size of the page window refers to the size of the page window when the mini-program is first opened. The current size of the page window refers to the magnified page size. In some embodiments, the magnification factor of the page window is determined by dividing the current size of the page window by the initial size of the page window.

[0098] In some embodiments, the magnification factor of the page window is determined based on the initial width and the current width of the page window. In some embodiments, the magnification factor of the page window is determined by dividing the current width of the page window by the initial width of the page window.

[0099] For example, assuming the initial width of the page window is 414rpx and the current width of the page window is 704rpx, the magnification of the page window is approximately 1.7 times. Assuming the first threshold is [1.5, 2], the magnification of the page window within the range indicated by the first threshold indicates that the page window has entered the column mode.

[0100] In some embodiments, the magnification factor of the page window is determined based on the initial height and the current height of the page window. In some embodiments, the magnification factor of the page window is determined by dividing the current height of the page window by the initial height of the page window.

[0101] In some embodiments, the magnification factor of the page window is determined based on the initial area and the current area of ​​the page window. In some embodiments, the magnification factor of the page window is determined by dividing the current area of ​​the page window by the initial area of ​​the page window.

[0102] In some embodiments, first size information and second size information of the page window are obtained, wherein the first size information is used to indicate the initial size of the page window and the second size information is used to indicate the current size of the page window.

[0103] In some embodiments, the second page can be any of the following:

[0104] (1) The second page is the page before the first page displayed in the page window of the mini program.

[0105] In this scenario, the second page is displayed in the page window before the first page. That is, the second page opens before the first page. In some embodiments, the first page is accessed via the second page.

[0106] In some embodiments, first page information and second page information are obtained from the page stack of the mini-program. The first page information is used to indicate the first page, and the second page information is used to indicate the second page. Based on the first page information and the second page information, the first page is displayed in a first area of ​​the page window, and the second page is displayed in a second area of ​​the page window.

[0107] A page stack is a last-in, first-out (LIFO) structure in a mini-program, formed by the order in which users access pages. It is used to store and manage currently opened pages in the mini-program. The page stack is a stack structure. In some embodiments, each element in the page stack corresponds to the page information of an opened page in the mini-program. In some embodiments, the page stack also stores the page information of other pages in the mini-program. In some embodiments, the page stack stores the page information of currently opened pages in the order of access. That is, pages in the page stack are popped out in LIFO order. In some embodiments, the number of page information included in the page stack is less than or equal to a storage threshold. The storage threshold is used to limit the number of pages stored in the page stack. For example, if the storage threshold is 10, the page stack can store the page information of a maximum of 10 pages. In some embodiments, the storage threshold is preset by relevant personnel, and this application embodiment does not limit it.

[0108] In some embodiments, page information includes, but is not limited to, at least one of the following: page path, page parameters, page instance object, lifecycle state, etc., and may also include other information, which is not limited in this application embodiment. The page path is the storage location of the page. In some embodiments, the page path is also used to indicate the page navigation order. Page parameters are additional parameters (such as query parameters) passed when the page is opened, used to pass information between pages. Query parameters are key-value pairs appended to the page path URL (Uniform Resource Locator), used to pass necessary data or status information to the target page during page navigation. The page instance object contains the complete data status and lifecycle information of the page. Based on the page instance object, the page's data attributes, methods, and routing information can be directly accessed. The lifecycle state describes the complete process of the page from loading to destruction. In some embodiments, the lifecycle state includes, but is not limited to, at least one of the following: page loading, page display, page initial rendering completion, page hiding, page unloading, etc., and may also include other states, which are not limited in this application embodiment.

[0109] In some embodiments, the second page is the top element of the page stack of the mini-program. In some embodiments, the first page is the element following the top element of the page stack of the mini-program (i.e., the second to last element to enter the page stack).

[0110] The above method, by setting the page displayed in the second area to the page preceding the currently displayed page, can effectively maintain the contextual association of the pages displayed in the page window, which helps users understand the operation path and improves the traceability of the operation.

[0111] (2) The second page is the main page of the mini program. The main page refers to the first page displayed after the mini program is opened.

[0112] The main page refers to the default page that is first seen when a mini-program is opened, serving as the entry point and starting point for core functions. In some embodiments, the main page is the bottom element of the mini-program's page stack.

[0113] In some embodiments, the second area always displays the second page, which is the main page of the mini-program. In this case, when a user performs a navigation operation on either the first or second page, the first page is replaced in the first area, displaying the page the user has navigated to. That is, the page displayed in the first area is the top element of the page stack, and the page displayed in the second area is the bottom element of the stack.

[0114] The above method allows users to view the content of the main page and the current page simultaneously in one page window, with the main page always visible. This enables users to quickly return to the main function area or switch operation processes, helping them understand the task path and navigation hierarchy.

[0115] (3) The second page is a page of the mini program that is customized by the user.

[0116] A user-defined page in a mini-program refers to a page selected and set by the user from at least one page corresponding to the mini-program. In some embodiments, the second page can be one of the at least one pages corresponding to the mini-program. That is, the second page is the page that the user has pinned to the top of the page window. When the user performs a navigation operation on the first page or the second page, the first page is replaced and the page to which the user has navigated is displayed in the first area.

[0117] In some embodiments, users can customize the second page in at least one of the following ways: settings page, pinned control, pinned voice command, pinned gesture, etc., and can also customize it in other ways, which are not limited in this application embodiment.

[0118] The settings page is a page in a mini-program that allows users to configure and manage user preferences, page layout, and functions. For example, a user can select a page in the settings page and set it as the second page.

[0119] A pinned control is an interface element in a page window used to pin a specified page within the page window (second area). In some embodiments, a pinned control is displayed on the second page; in response to an operation on the pinned control, the second page is pinned to the second area. In some embodiments, the page window displays a menu control, which triggers the display of selections for at least one function; in response to an operation on the menu control, at least one selection is displayed, and the at least one selection includes the pinned control; in response to an operation on the pinned control, the second page is pinned to the second area.

[0120] A pinned voice command is a voice command that selects a second page from at least one page within a mini-program. For example, a pinned voice command could be "set the last opened page as the second page." When the user issues this pinned voice command, the corresponding page is set as the second page. It should be noted that the specific content of the pinned voice command is preset by relevant technical personnel, or it can be any explicit voice command that instructs the user to customize the setting of the second page, which is recognized by a speech recognition model. This application embodiment does not limit this.

[0121] The "pin to top" gesture is a gesture used to select a second page from at least one page within a mini-program. For example, a "pin to top" gesture could be a long press on a page displayed in the second area, which would then designate that page as the second page and pin it to the second area.

[0122] The above method allows users to customize the second page that is always displayed in the page window. The first page in the page window carries the current main task, while the second page is displayed in parallel as an auxiliary page, reducing page jumps and improving multitasking efficiency.

[0123] In some embodiments, the first region and the second region are arranged side by side in the horizontal direction in the page window, and the first region and the second region have the same length in the vertical direction (i.e., the first region and the second region have the same height).

[0124] In a page window, side-by-side arrangement means that the elements are arranged on the same horizontal axis within the same page window and do not overlap. The first and second areas have the same height.

[0125] In some embodiments, when the first region and the second region are arranged side by side in the horizontal direction in the page window, the first region and the second region have the same height and the same width; or, when the first region and the second region are arranged side by side in the horizontal direction in the page window, the first region and the second region have the same height and the first region and the second region have different widths.

[0126] In some embodiments, in a page window, the second region is positioned to the left of the first region.

[0127] For example, as shown in Figure 3, the page window 30 includes a first area 31 and a second area 32, which are arranged side by side horizontally in the page window 30. The second area 32 is located to the left of the first area 31. In addition, different pages of the mini-program are displayed in the first area 31 and the second area 32.

[0128] In some embodiments, the first region and the second region are arranged vertically aligned in the page window, and the first region and the second region have the same length in the horizontal direction (i.e., the first region and the second region have the same width).

[0129] In some embodiments, when the first region and the second region are arranged vertically aligned in the page window, the first region and the second region have the same width and the same height; or, when the first region and the second region are arranged vertically aligned in the page window, the first region and the second region have the same width and the first region and the second region have different heights.

[0130] In some embodiments, in a page window, the second region is positioned above the first region.

[0131] For example, please refer to Figure 6, which shows a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application. The page window 60 includes a first area 61 and a second area 62, which are vertically aligned and arranged in the page window 60. The second area 62 is arranged on top of the first area 61. In addition, different pages of the mini-program are displayed in the first area 61 and the second area 62.

[0132] In some embodiments, when the terminal device is in landscape mode, the first area and the second area are arranged side-by-side horizontally in the page window; when the terminal device is in portrait mode, the first area and the second area are aligned vertically in the page window. Landscape mode refers to a display state where the terminal device's display orientation is horizontal, i.e., the width of the terminal device is greater than its height. Portrait mode refers to a display state where the terminal device's display orientation is vertical, i.e., the height of the terminal device is greater than its width.

[0133] The above method, by arranging the two areas of the page window side by side horizontally and with the same vertical height, makes it easy for users to quickly switch their attention or perform operations between the two areas, and also effectively utilizes the horizontal space of the screen while maintaining the integrity of vertical information.

[0134] In some embodiments, a second entry element is displayed on the second page, which is used to trigger the display of the third page of the mini-program.

[0135] The second entry element is an interface element with jump or navigation functions, used to jump from the second page to the third page. In some embodiments, the second entry element may include, but is not limited to, at least one of the following: buttons, icons, links, tabs, menu items, list items, etc., and may also include other elements with jump or navigation functions, which are not limited in this application embodiment.

[0136] In some embodiments, the second entry element corresponds to the mini-program's navigation interface. The mini-program's navigation interface is used for navigation between different pages. For example, the navigation interface corresponding to the second entry element is navigateTo. After triggering this navigation interface, the current page (the second page) is retained, and the user is redirected to a new page (the third page).

[0137] In some embodiments, depending on the relationship between the second page and the third page, the third page may be displayed in one of the following two ways.

[0138] (1) When the third page is a subpage of the second page, the third page is displayed in the first area in response to the operation on the second entry element. A subpage is a page that belongs to a parent page and needs to be opened or entered by that parent page. For example, in the hierarchical structure of "Home-News-Domestic News" in the mini program, "Domestic News" is a subpage of "News", and "News" is a subpage of "Home".

[0139] In some embodiments, in response to an operation on a second entry element, the page information of the first page is removed from the page stack; and the page information of the third page is pushed onto the page stack.

[0140] In other words, after the first page and the second page are displayed in the first area and the second area respectively, when a page jump operation is triggered in the second page, and the newly jumped third page is a subpage of the second page, the newly jumped third page replaces the first page and is displayed in the first area.

[0141] For example, please refer to Figure 7, which illustrates a schematic diagram of page navigation performed on a second page according to some embodiments of this application. The page window 70 of the e-commerce mini-program includes a first area 71 and a second area 72. Before page navigation, the first page of the e-commerce mini-program is displayed in the first area 71, and the second page (homepage) of the e-commerce mini-program is displayed in the second area 72. After clicking the second entry element 73 displayed on the second page, since the newly navigated third page 74 is a subpage of the second page, the third page 74 replaces the first page and is displayed in the first area 71.

[0142] (2) If the third page and the second page are sibling pages, the third page is displayed in the second area in response to the operation on the second entry element.

[0143] Sibling pages refer to pages that are at the same level. In some implementations, the second and third pages belong to the same parent page. For example, in a mini-program, "Domestic News" and "International News" are sibling pages, belonging to the same parent page "News".

[0144] In other words, after the first page and the second page are displayed in the first area and the second area respectively, when a page jump operation is triggered in the second page, and the newly jumped third page is a sibling page of the second page, the newly jumped third page replaces the second page and is displayed in the second area.

[0145] In some embodiments, if the first page is not a subpage of the third page, the first page is not displayed in the first area. In some embodiments, after the first page is not displayed in the first area, a placeholder image can be displayed in the first area, that is, the first page is replaced by a placeholder image.

[0146] In some embodiments, if the first page is not a subpage of the third page, the page information of the first page and the page information of the second page are removed from the page stack in sequence; and the page information of the third page is pushed onto the page stack.

[0147] In some embodiments, when the first page is a subpage of the third page, the page information of the first page and the page information of the second page are removed from the page stack in sequence; the page information of the third page and the page information of the first page are pushed onto the page stack in sequence.

[0148] For example, as shown in Figure 7, the page window 70 of the e-commerce mini-program includes a first area 71 and a second area 72. Before page navigation, the first page of the e-commerce mini-program is displayed in the first area 71, and the second page (homepage) of the e-commerce mini-program is displayed in the second area 72. After clicking the second entry element 75 displayed on the second page, since the newly navigated third page 76 (takeout page) is a sibling page to the second page, the third page 76 replaces the second page and is displayed in the second area 72.

[0149] In some embodiments, a third entry element is displayed on the first page, which is used to trigger the display of the fifth page of the mini-program; in response to an operation on the third entry element, the first page is displayed in the second area, and the fifth page is displayed in the first area. The third entry element is similar to the second entry element, and also has the function of jumping or navigation.

[0150] In some embodiments, in response to an operation on the third entry element, page information of the fifth page is pushed onto the page stack. At this time, the top element of the page stack is the page information of the fifth page. Based on the updated page stack, the first page is displayed in the second area, and the fifth page is displayed in the first area.

[0151] In other words, after the first page and the second page are displayed in the first area and the second area respectively, when a page jump operation is triggered in the first page, the first page replaces the second page and is displayed in the second area, and the fifth page replaces the first page and is displayed in the first area.

[0152] For example, please refer to Figure 8, which illustrates a schematic diagram of page navigation performed on the first page according to some embodiments of this application. As shown in sub-figure (a) of Figure 8, the page window 80 of the e-commerce mini-program includes a first area 81 and a second area 82. Before page navigation, the first page of the e-commerce mini-program is displayed in the first area 81, and the second page (homepage) of the e-commerce mini-program is displayed in the second area 82. A third entry element 83 is displayed on the first page. After clicking the third entry element 83 on the first page, as shown in sub-figure (b) of Figure 8, the first page replaces the second page and is displayed in the second area 82, and the fifth page replaces the first page and is displayed in the first area 81.

[0153] In some embodiments, a homepage element is displayed on the first page, which triggers the display of the mini-program's main page; in response to an operation on the homepage element, the main page is displayed in the second area. In some embodiments, when the main page is displayed via the homepage element, the first page is de-displayed in the first area. In some embodiments, the page stack is cleared; the page information of the main page is pushed onto the page stack.

[0154] In some embodiments, a menu element is displayed on the first page. This menu element is used to trigger the display of multiple menu items, including the aforementioned homepage element. In some embodiments, the multiple menu items are preset by the developers of the mini-program, and this application embodiment does not limit this.

[0155] For example, as shown in sub-figure (a) of Figure 8, the first page also displays a menu element 84. After clicking the menu element 84, multiple menu items are displayed, including a homepage element 85. After clicking the homepage element 85, the main page can be displayed in the second area 82.

[0156] In some embodiments, a return element is displayed on the fifth page, which is used to restore the display of the first two pages of the fifth page; in response to an operation on the return element, the first page is displayed in a first area and the second page is displayed in a second area.

[0157] In some embodiments, the page information of the fifth page is removed from the page stack. That is, after the page information of the fifth page is removed from the page stack in response to an operation on the returned element, the page window displays the page corresponding to the top element of the page stack, and the page corresponding to the next element after the top element.

[0158] For example, as shown in sub-figure (b) of Figure 8, the fifth page displays a return element 86. After clicking the return element 86 on the fifth page, the page window 80 restores the page shown in sub-figure (a) of Figure 8. That is, the first page is restored to be displayed in the first area 81, and the second page is restored to be displayed in the second area 82. The above method, by triggering the return operation on the current page in the page window's column mode, quickly restores the original column page, simplifies the back operation process, and improves the smoothness of page response.

[0159] In some embodiments, a fourth entry element is displayed on the first page, which is used to trigger the display of the sixth page of the mini-program; in response to an operation on the fourth entry element, the sixth page is displayed in the first area, and the second page is displayed in the second area.

[0160] The fourth entry element is an interface element with jump or navigation functions, used to jump from the first page to the sixth page. In some embodiments, the fourth entry element may include, but is not limited to, at least one of the following: buttons, icons, links, tabs, menu items, list items, etc., and may also include other elements with jump or navigation functions, which are not limited in this application embodiment.

[0161] In some embodiments, the fourth entry element corresponds to the mini-program's redirection interface. For example, the redirection interface corresponding to the fourth entry element is redirectTo or switchTab. After triggering this redirection interface, the second page is retained in the second area, and the sixth page replaces the first page in the first area.

[0162] In some embodiments, in response to a second operation on the page window, the size of the page window and the size of the first page are simultaneously reduced; if the size of the page window is lower than a first threshold, the first page is displayed in the page window, and the second page is not displayed.

[0163] In other words, when the page window of a mini-program is in a split-column mode (such as a two-column display mode), the mini-program exits the split-column mode when the size of the page window is reduced to below a first threshold.

[0164] In summary, the method provided in this application embodiment achieves adaptive column display of the mini-program by dividing the page window into multiple areas to display different pages when the size of the page window reaches a specified threshold. This eliminates the need for manual intervention in switching display modes, reduces frequent return and jump operations, improves information acquisition efficiency, significantly improves the space utilization of the device screen, and enhances the overall user experience.

[0165] The following is another way to trigger the mini program to enter the split-column mode.

[0166] Please refer to Figure 9, which shows a flowchart of a page display method for a mini-program provided in some other embodiments of this application. The process of triggering the split-column mode may include at least one of the following steps (S910 to S940):

[0167] S910 displays a second page in the mini-program's page window. The second page contains the first entry element, which is used to trigger the display of the first page.

[0168] The first entry element is a UI element with jump or navigation functions, used to jump from the second page to the first page. In some embodiments, the first entry element may include, but is not limited to, at least one of the following: buttons, icons, links, tabs, menu items, list items, etc., and may also include other elements with jump or navigation functions, which are not limited in this application embodiment.

[0169] In some embodiments, the first entry element corresponds to the mini-program's navigation interface. For example, the navigation interface is navigateTo. After this interface is triggered, the current page (second page) is retained, and the user is redirected to a new page (first page).

[0170] In some embodiments, the second page is the main page of the mini-program. In some embodiments, the second page is the only page opened in the mini-program. In some embodiments, the page stack of the mini-program only includes page information of the second page.

[0171] S920, in response to an operation on the first entry element, displays the first page of the mini program in the mini program's page window.

[0172] An operation on the first entry element refers to the operation that triggers the display of the first page. In some embodiments, the operation on the first entry element is implemented in at least one of the following ways: interface control, touch screen, physical control, gesture control, voice control, etc., and may also include other methods, which are not limited in this application embodiment.

[0173] S930, in response to the first operation on the page window, simultaneously enlarges the size of the page window and the size of the first page.

[0174] S940, when the size of the page window reaches a first threshold, the first page is displayed in the first area of ​​the page window, and the second page of the mini-program is displayed in the second area of ​​the page window; wherein the first area and the second area do not overlap.

[0175] It should be noted that S930 and S940 correspond to S420 and S430 respectively. For explanations of S930 and S940, please refer to the content corresponding to S420 and S430.

[0176] In this embodiment, when only the second page is displayed in the mini-program's page window, it indicates that the mini-program has not yet entered the split-screen mode. After the user interacts with the first entry element on the second page, a jump from the second page to the first page is triggered. Subsequently, if the page window size reaches a first threshold after the first operation is performed on the page window, the page window is automatically divided into two non-overlapping areas, and the first page and the second page are displayed in these two areas respectively. In this embodiment, the mini-program is triggered to enter the split-screen mode in this way, keeping the second page displayed in the second area of ​​the page window and displaying the first page in the first area of ​​the page window.

[0177] The above method triggers a page jump operation from only the page displayed in the page window, automatically displaying the page before and after the jump simultaneously in different areas of the page window. This allows users to view both pages at the same time, avoiding frequent switching. Additionally, on large-screen devices or in landscape mode, automatically enabling the split-column mode can significantly improve screen space utilization.

[0178] In addition to triggering the split-column mode by performing a first operation on the page window to make the page window size reach a first threshold, in some embodiments, the split-column mode can also be triggered directly when navigating between pages. For example, after step S910, when the user performs an operation on the first entry element, the split-column mode can be entered directly. Specifically, in response to the operation on the first entry element, the size of the page window is automatically enlarged to the first threshold, causing the page window to enter the split-column mode, displaying the first page in the first area of ​​the page window and the second page in the second area of ​​the page window.

[0179] The following describes another scenario where a mini-program enters the split-column mode.

[0180] Please refer to Figure 10, which shows a flowchart of a page display method for a mini-program provided in some other embodiments of this application. This triggering of the split-column mode includes at least one of the following steps (S1010 to S1030):

[0181] S1010 displays the main page of the mini program in the mini program's page window. The main page refers to the first page displayed after opening the mini program.

[0182] In some embodiments, the page stack includes only the page information of the main page of the mini-program.

[0183] S1020, in response to the first operation on the page window, simultaneously enlarges the size of the page window and the size of the main page.

[0184] It should be noted that S1020 is similar to S420, so it will not be described in detail here. For an explanation of S1020, please refer to the explanation of S420.

[0185] S1030, when the size of the page window reaches a first threshold, a placeholder image is displayed in the first area of ​​the page window, and the main page is displayed in the second area of ​​the page window.

[0186] A placeholder image is an image resource displayed in a first area to fill the undisplayed area of ​​a page window. In some embodiments, a placeholder image may include, but is not limited to, at least one of the following: a static image, a dynamic image, an icon, an advertising resource, a prompt message, etc., and may also be other forms of placeholder images, which are not limited in this application embodiment.

[0187] For example, please refer to FIG11, which shows a schematic diagram of a page window in a column mode provided in some other embodiments of the present application, in which a placeholder image 113 is displayed in the first area 111 of the page window 110.

[0188] In this scenario, if the mini-program only opens the main page and the page window is enlarged to the first threshold, the mini-program automatically enters the split-screen mode. Since only the main page is open in the mini-program, there is no page to display in the other area of ​​the split-screen mode. Therefore, a placeholder image is used to display in that area to indicate to the user that the mini-program has entered the split-screen mode.

[0189] The above method, by displaying placeholder images in areas where no pages are displayed, facilitates user operation and activates the function of displaying different pages side by side in the page window.

[0190] The following describes a column mode (i.e., a three-column display mode) that displays three different pages simultaneously in a page window.

[0191] In some embodiments, in response to a third operation on the page window, the size of the page window and the size of the first page are simultaneously enlarged. The third operation is an operation used to simultaneously enlarge the size of the page window, the size of the first page, and the size of the second page when the page is in a two-column display mode. When the size of the page window reaches a second threshold, the page window automatically switches from the two-column display mode to a three-column display mode including a third area, a fourth area, and a fifth area. The first page is displayed in the third area of ​​the page window, the second page is displayed in the fourth area of ​​the page window, and the fourth page is displayed in the fifth area of ​​the page window. The third area, the fourth area, and the fifth area do not overlap with each other.

[0192] The second threshold is preset and used to determine whether to enable the column mode (i.e., three-column display mode) that displays three different pages simultaneously. In some embodiments, the second threshold is preset by those skilled in the art, and this application does not limit this. In some embodiments, the second threshold can be a single threshold or a range of thresholds. In some embodiments, the second threshold is greater than the first threshold.

[0193] For example, when both the first threshold and the second threshold are within the threshold range, the first threshold can be set to (1.5, 2.0), and the second threshold can be set to (2.0, 3.0). When the magnification of the page window falls within the threshold range corresponding to the first threshold, two different pages are displayed simultaneously in the page window. When the magnification of the page window falls within the second threshold, three different pages are displayed simultaneously in the page window.

[0194] The above method, when the size of the page window reaches the second threshold, displays three different pages simultaneously in the page window. Under the large page window size, it makes full use of the wide visible area and displays the content of multiple pages in parallel. Users do not need to frequently switch pages and can view and process multiple tasks at the same time.

[0195] In some embodiments, the fourth page includes at least one of the following cases.

[0196] (1) The fourth page is the page before the second page displayed in the page window.

[0197] In this scenario, the fourth page is the page preceding the second page displayed in the page window, and the second page is the page preceding the first page displayed in the page window. In some embodiments, the elements stored in the page stack of the mini-program, from top to bottom, are the page information of the second page, the page information of the first page, and the page information of the fourth page.

[0198] (2) The fourth page is the main page of the mini program. The main page refers to the first page displayed after opening the mini program.

[0199] When the fourth page is the main page of the mini-program, the first and second pages are the two most active pages. In some embodiments, in the page stack of the mini-program, the elements stored from top to bottom are the page information of the second page and the page information of the first page, respectively, and the page information of the fourth page is the bottom element of the page stack of the mini-program.

[0200] (3) The fourth page is a page of the user-defined mini program.

[0201] It should be noted that the situation (3) on the fourth page is similar to that on the second page, so this application will not repeat it here. For the relevant explanation of the situation (3) on the fourth page, please refer to the explanation of the situation (3) on the second page.

[0202] The above method, by providing multiple sources for the fourth page, allows the displayed page to be dynamically determined according to the actual situation in the three-column display mode, thus meeting the diverse needs for column content in different scenarios.

[0203] In some embodiments, the arrangement of the third region, the fourth region, and the fifth region includes a first arrangement and a second arrangement.

[0204] (1) The first arrangement is that the third, fourth and fifth areas are arranged side by side in the horizontal direction in the page window, and the third, fourth and fifth areas have the same length in the vertical direction.

[0205] In some embodiments, the third, fourth, and fifth regions have the same height, but their widths may be the same or different.

[0206] In some embodiments, the first arrangement is that the fourth, third, and fifth regions are arranged side by side horizontally from left to right in the page window, and the third, fourth, and fifth regions have the same height.

[0207] For example, please refer to Figure 12, which shows a schematic diagram of a page window in a columnar mode provided in other embodiments of this application. The page window 120 includes a third area 121, a fourth area 122, and a fifth area 123, which are arranged side by side horizontally in the page window 121. The fourth area 122, the third area 121, and the fifth area 123 are arranged from left to right in the page window 121. Furthermore, different pages of the mini-program are displayed in the third area 121, the fourth area 122, and the fifth area 123, respectively.

[0208] (2) The second arrangement is that the third and fourth areas are arranged side by side in the horizontal direction in the page window, and the fifth area is arranged vertically aligned with the third and fourth areas. The third and fourth areas have the same height, and the width of the fifth area is equal to the sum of the width of the third area and the width of the fourth area.

[0209] In some embodiments, the third and fourth regions have the same height, and their widths may be the same or different. In some embodiments, the sum of the widths of the third and fourth regions is equal to the width of the fifth region, and the fifth region may have the same or different heights as the third and fourth regions.

[0210] In some embodiments, the fourth region is located to the left of the third region, and the fifth region is located below the third and fourth regions; or, the fourth region is located to the left of the third region, and the fifth region is located above the third and fourth regions.

[0211] For example, please refer to Figure 13, which shows a schematic diagram of a page window in a columnar mode provided in some other embodiments of this application. The page window 130 includes a third area 131, a fourth area 132, and a fifth area 133. The third area 131 and the fourth area 132 are arranged side by side horizontally, and the fifth area 133 is arranged vertically aligned with the third area 131 and the fourth area 132. In the page window 130, the fourth area 132 is displayed to the left of the third area 131, and the fifth area 133 is displayed below the third area 131 and the fourth area 132. In addition, different pages of the mini-program are displayed in the third area 131, the fourth area 132, and the fifth area 133, respectively.

[0212] For example, please refer to Figure 14, which shows a schematic diagram of a page window in a columnar mode provided in other embodiments of this application. The page window 140 includes a third area 141, a fourth area 142, and a fifth area 143. The third area 141 and the fourth area 142 are arranged side by side horizontally, and the fifth area 143 is arranged vertically aligned with the third area 141 and the fourth area 142. In the page window 140, the fourth area 142 is displayed to the left of the third area 141, and the fifth area 143 is displayed above the third area 141 and the fourth area 142. In addition, different pages of the mini-program are displayed in the third area 141, the fourth area 142, and the fifth area 143, respectively.

[0213] In some embodiments, the arrangement of the third, fourth, and fifth regions may also include a third arrangement.

[0214] (3) The third arrangement is that the third, fourth and fifth areas are arranged vertically aligned in the page window, and the third, fourth and fifth areas have the same width.

[0215] In some embodiments, the third, fourth, and fifth regions have the same width, but their heights may be the same or different.

[0216] In some embodiments, the third arrangement is that the fourth, third, and fifth regions are arranged vertically aligned from top to bottom in the page window, and the third, fourth, and fifth regions have the same width.

[0217] For example, please refer to Figure 15, which shows a schematic diagram of a page window in a columnar mode provided in other embodiments of this application. The page window 150 includes a third area 151, a fourth area 152, and a fifth area 153, which are arranged vertically aligned within the page window 150. The fourth area 152, third area 151, and fifth area 153 are arranged vertically downwards within the page window 150. Furthermore, different pages of the mini-program are displayed in the third area 151, fourth area 152, and fifth area 153.

[0218] In some embodiments, the arrangement of the third, fourth, and fifth regions is determined based on how the size of the page window is adjusted.

[0219] (1) When the third operation is a second drag operation targeting the vertical edge of the page window, the third, fourth and fifth areas are arranged in the page window according to the first arrangement method. The second drag operation is used to horizontally enlarge the size of the page window.

[0220] The vertical edge of a page window refers to the edge of the page window in the vertical direction. In some embodiments, the vertical edge of the page window includes the left edge and the right edge. The second drag operation refers to an interactive method of horizontally enlarging the size of the page window by clicking and dragging the vertical edge of the page window. In some embodiments, the second drag operation can be a drag operation targeting either the left edge or the right edge of the page window.

[0221] (2) When the third operation is a third drag operation targeting the horizontal edge of the page window, the third, fourth and fifth areas are arranged in the page window according to the second arrangement method. The third drag operation is used to vertically enlarge the size of the page window.

[0222] The horizontal edge of a page window refers to the edge of the page window in the horizontal direction. In some embodiments, the horizontal edge of a page window includes a top edge and a bottom edge. The third drag operation refers to an interactive method of vertically enlarging the size of the page window by clicking and dragging its horizontal edge. In some embodiments, the third drag operation can be a drag operation targeting either the top edge or the bottom edge of the page window.

[0223] In some embodiments, when the third operation is a third drag operation targeting the bottom edge of the page window, the third area, the fourth area, and the fifth area are arranged in the page window according to the second arrangement, with the fourth area located to the left of the third area and the fifth area located below the third and fourth areas.

[0224] In some embodiments, when the third operation is a third drag operation targeting the top edge of the page window, the third area, the fourth area, and the fifth area are arranged in the page window according to the second arrangement, with the fourth area located to the left of the third area and the fifth area located above the third and fourth areas.

[0225] In some embodiments, when the third operation is a fourth drag operation targeting the horizontal edge of the page window, the third, fourth, and fifth areas are arranged in the page window according to the third arrangement. In some embodiments, the fourth drag operation is a drag operation targeting the top or bottom edge of the page window. The fourth drag operation can be performed when the width of the page window is small (e.g., less than a certain set width threshold) and insufficient to display two pages horizontally in the page window at the same time.

[0226] In some embodiments, a fourth entry element is displayed on the first page, which is used to trigger the display of the sixth page of the mini-program; when the page window is in a three-column display mode, in response to the operation on the fourth entry element, the first page is displayed in the third area of ​​the page window, the second page is displayed in the fourth area of ​​the page window, and the sixth page is displayed in the fifth area of ​​the page window.

[0227] In other words, when the mini-program's page window is in a two-column display mode that simultaneously displays two different pages, the size of the mini-program's page window, the size of the first page, and the size of the second page are expanded through a third operation on the mini-program's page window. When the size of the mini-program's page window reaches a second threshold, the mini-program's page window automatically switches from the two-column display mode to a three-column display mode that can simultaneously display three different pages (without manual intervention). The third, fourth, and fifth areas are then arranged according to one of the three layout methods mentioned above, with the first page displayed in the third area, the second page in the fourth area, and the fourth page in the fifth area. Subsequently, in response to an operation on the fourth entry element in the first page, the first page is displayed in the third area, the second page in the fourth area, and the sixth page in the fifth area.

[0228] It's important to note that mini-programs can display more pages simultaneously within a single page window, depending on the screen width of the device running the mini-program. In extreme cases, when the device's screen width approaches infinity, any number of different pages can be displayed within the page window by enlarging its size.

[0229] The above method, by further increasing the size of the page window, allows three different pages to be displayed simultaneously in the page window of the mini program. On devices with higher resolution or wider field of view, the three-column layout maximizes the use of screen space.

[0230] The following describes the implementation process of the column mode.

[0231] Please refer to Figure 16, which shows a flowchart of implementing the column mode according to some embodiments of this application. The process of implementing the column mode is described step by step below. In this embodiment, the mini-program is a PC-based mini-program.

[0232] S1601, Mini Program Launch.

[0233] When a user opens a mini-program or switches from the background to the foreground, the mini-program runtime environment is initialized, and the basic libraries and launch page are loaded.

[0234] S1602, triggered by the onLauch lifecycle.

[0235] The `onLaunch` function is called. This stage is typically used to perform global initialization operations, such as obtaining device information, login verification, and requesting global configurations. `onLaunch` is a global lifecycle function in WeChat Mini Programs. It is triggered only once when the Mini Program initialization is complete, and is used to perform some global initialization operations (such as obtaining user information, obtaining device information, and checking login status).

[0236] S1603. Call window.innerWidth to get the initial size of the page window.

[0237] S1604. Record the initial size of the page window.

[0238] S1605, The Monitor is bound to the window.onresize event.

[0239] S1606, The user triggers the zoom-in operation of the page window.

[0240] S1607, the window.onresize event is triggered.

[0241] S1608. Call window.innerWidth to get the current size of the page window.

[0242] S1609. Compare the current size with the initial size. Is there a change? If yes, proceed to S1610; otherwise, proceed to S1611.

[0243] S1610, Update the pages displayed in the page window. In other words, the mini-program enters split-screen mode, displaying multiple different pages simultaneously in the same page window.

[0244] S1611, No operation required.

[0245] The layout logic of the mini program is described below.

[0246] Please refer to Figure 17, which shows a schematic diagram of the layout logic of the mini-programs provided in some embodiments of this application. The layout logic of the mini-programs is explained below. In this embodiment, the mini-program is a PC-based mini-program.

[0247] S1701. The user triggers the navigateTo interface and notifies the routing component (Navigator).

[0248] The Navigator is used to handle routing events.

[0249] S1702, The routing component handles routing-related logic.

[0250] S1703. The routing component transmits routing information to the rendering component (Layouter).

[0251] The Layouter is the renderer responsible for controlling the layout. Routing information includes, but is not limited to, at least one of the following: page stack, event name, and active page. The event name indicates the type of redirect interface that is triggered. The active page is the page that triggered the redirect interface.

[0252] S1704. If the page layout needs to be updated, the rendering component sends the window state to the window manager component.

[0253] WindowManager is responsible for handling different types of window size settings (such as page window size, draggability, etc.). Here, the focus event of the iframe (page) tag in PageView is used to determine this. When a page is focused, the Navigator is notified, and the Navigator determines the currently active webview in the routing interface to perform different actions.

[0254] S1705, The rendering component sends a switching action to the page window (Pageview).

[0255] PageView refers to the page elements in a mini-program.

[0256] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0257] Please refer to Figure 18, which shows a block diagram of a page display device for a mini-program provided in some embodiments of this application. This device has the functions described above, which can be implemented by hardware or by hardware executing corresponding software. This device can be the terminal device 10 described above, or it can be disposed within the terminal device 10. As shown in Figure 18, the device 1800 may include a first display module 1810, a magnification module 1820, and a second display module 1830.

[0258] The first display module 1810 is used to display the first page of the mini-program in the page window of the mini-program.

[0259] The magnification module 1820 is used to synchronously magnify the size of the page window and the size of the first page in response to a first operation on the page window.

[0260] The second display module 1830 is used to display the first page in a first area of ​​the page window and the second page of the mini-program in a second area of ​​the page window when the size of the page window reaches a first threshold; wherein the first area and the second area do not overlap.

[0261] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0262] Please refer to Figure 19, which shows a structural block diagram of a terminal device 1900 provided in some embodiments of this application. The terminal device 1900 may be the terminal device 10 in the implementation environment shown in Figure 1, used to implement the page display method for mini-programs provided in the above embodiments. Specifically:

[0263] Typically, terminal device 1900 includes a processor 1910 and a memory 1920.

[0264] Processor 1910 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 1910 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1910 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1910 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1910 may also include an AI processor for handling computational operations related to machine learning.

[0265] The memory 1920 may include one or more computer-readable storage media, which may be non-transitory. The memory 1920 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1920 is used to store a computer program configured to be executed by one or more processors to implement the page display method applied to the applet described above.

[0266] In some embodiments, the terminal device 1900 may further include a peripheral device interface 1930 and at least one peripheral device. The processor 1910, memory 1920, and peripheral device interface 1930 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1930 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1940, a display screen 1950, an audio circuit 1960, and a power supply 1970.

[0267] Those skilled in the art will understand that the structure shown in FIG19 does not constitute a limitation on the terminal device 1900, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0268] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the storage medium, and the computer program, when executed by a processor, implements the page display method applied to the applet described above. In some embodiments, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0269] In an exemplary embodiment, a computer program product is also provided, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the page display method applied to the applet described above.

[0270] It should be noted that the collection and processing of relevant data (such as page information) in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0271] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.

[0272] The above description is merely an embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A page display method applied to a mini-program, executed by an electronic device, the method comprising: The first page of the mini-program is displayed in the page window of the mini-program; In response to a first operation on the page window, the size of the page window and the size of the first page are simultaneously enlarged; When the size of the page window reaches a first threshold, the first page is displayed in the first area of ​​the page window, and the second page of the mini-program is displayed in the second area of ​​the page window; wherein the first area and the second area do not overlap.

2. The method according to claim 1, wherein, The first region and the second region are arranged side by side horizontally in the page window, and the first region and the second region have the same height; Alternatively, the first region and the second region are arranged side by side along the vertical axis in the page window, and the first region and the second region have the same width.

3. The method according to any one of claims 1 to 2, characterized in that, The first operation is a first drag operation on the edge of the page window, which is used to enlarge the size of the page window.

4. The method according to any one of claims 1 to 3, wherein, The second page displays a second entry element, which is used to trigger the display of the third page of the mini-program; After displaying the first page in the first area and the second page of the mini-program in the second area, the method further includes: If the third page is a subpage of the second page, the third page is displayed in the first area in response to an operation on the second entry element; If the third page and the second page are at the same level, the third page is displayed in the second area in response to an operation on the second entry element.

5. The method according to claim 4, wherein, When displaying the third page in the second area, the method further includes: if the first page is not a subpage of the third page, canceling the display of the first page in the first area.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The main page of the mini program is displayed in the page window of the mini program. The main page refers to the first page displayed after the mini program is opened. In response to a first operation on the page window, the size of the page window and the size of the main page are simultaneously enlarged; When the size of the page window reaches the first threshold, a placeholder image is displayed in the first area of ​​the page window, and the main page is displayed in the second area of ​​the page window.

7. The method according to any one of claims 1 to 6, wherein, After displaying the first page in the first area and the second page of the mini-program in the second area, the method further includes: In response to a third operation on the page window, the size of the page window, the size of the first page, and the size of the second page are simultaneously enlarged; When the size of the page window reaches a second threshold, the first page is displayed in the third area, the second page is displayed in the fourth area, and the fourth page is displayed in the fifth area; wherein the third area, the fourth area, and the fifth area do not overlap with each other, and the second threshold is greater than the first threshold.

8. The method according to claim 7, wherein, The fourth page is the page preceding the second page displayed in the page window; or, The fourth page is the main page of the mini program, which refers to the first page displayed after the mini program is opened; or, The fourth page is a page of the mini-program that is customized by the user.

9. The method according to claim 7 or 8, wherein, The arrangement of the third region, the fourth region, and the fifth region includes a first arrangement and a second arrangement; The first arrangement is that the third region, the fourth region, and the fifth region are arranged side by side horizontally in the page window, and the third region, the fourth region, and the fifth region have the same height; The second arrangement is that the third and fourth regions are arranged side by side horizontally in the page window, the fifth region is aligned vertically with the third and fourth regions, the third and fourth regions have the same height, and the width of the fifth region is equal to the sum of the widths of the third and fourth regions.

10. The method according to claim 9, wherein, Before displaying the first page in the third area, the second page in the fourth area, and the fourth page in the fifth area, the method further includes: When the third operation is a second drag operation targeting the vertical edge of the page window, the third area, the fourth area, and the fifth area are arranged in the page window according to the first arrangement, and the second drag operation is used to horizontally enlarge the size of the page window; When the third operation is a third drag operation targeting the horizontal edge of the page window, the third region, the fourth region, and the fifth region are arranged in the page window according to the second arrangement method. The third drag operation is used to vertically enlarge the size of the page window.

11. The method according to any one of claims 1-10, wherein, The second page is the page preceding the first page displayed in the page window.

12. The method according to claim 11, wherein, Before displaying the first page of the mini-program in the page window of the mini-program in single-column display mode, the method further includes: In the page window of the mini-program, the second page is displayed, and the second page displays a first entry element, which is used to trigger the display of the first page; In response to an operation on the first entry element, the step of displaying the first page of the mini-program in the page window of the mini-program is performed.

13. The method according to claims 1-12, wherein, The second page is the main page of the mini program, which refers to the first page displayed after the mini program is opened; or, The second page is a page of the mini-program that is customized by the user.

14. A page display device for use in WeChat Mini Programs, wherein, The device includes: The first display module is used to display the first page of the mini-program in the page window of the mini-program; A zoom module is used to synchronously zoom in on the size of the page window and the size of the first page in response to a first operation on the page window. The second display module is used to display the first page in a first area of ​​the page window and the second page of the mini-program in a second area of ​​the page window when the size of the page window reaches a first threshold; wherein the first area and the second area do not overlap.

15. A terminal device, wherein, The terminal device includes a processor and a memory, the memory storing a computer program, which is loaded and executed by the processor to implement the method as described in any one of claims 1 to 13.

16. A computer-readable storage medium, wherein, The storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1 to 13.

17. A computer program product, wherein, The computer program product includes a computer program that is loaded and executed by a processor to implement the method as claimed in any one of claims 1 to 13.